Rename create/delete transform methods
CreateTransportModeTransform and DeleteTransportModeTransform are both agnostic as far as which mode of transform it creates/deletes. As such, to facilitate the implementation of tunnel mode, this patch renames them to CreateTransform and DeleteTransform, along with all test names. Bug: 63588681 Test: frameworks/base unit tests and CTS tests run, passed Change-Id: I1f015eb7ad0e85fca966658a9402485ca2b44091
This commit is contained in:
@@ -1105,10 +1105,10 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
* receive data.
|
||||
*/
|
||||
@Override
|
||||
public synchronized IpSecTransformResponse createTransportModeTransform(
|
||||
IpSecConfig c, IBinder binder) throws RemoteException {
|
||||
public synchronized IpSecTransformResponse createTransform(IpSecConfig c, IBinder binder)
|
||||
throws RemoteException {
|
||||
checkIpSecConfig(c);
|
||||
checkNotNull(binder, "Null Binder passed to createTransportModeTransform");
|
||||
checkNotNull(binder, "Null Binder passed to createTransform");
|
||||
final int resourceId = mNextResourceId++;
|
||||
|
||||
UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid());
|
||||
@@ -1186,7 +1186,7 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
* other reasons.
|
||||
*/
|
||||
@Override
|
||||
public synchronized void deleteTransportModeTransform(int resourceId) throws RemoteException {
|
||||
public synchronized void deleteTransform(int resourceId) throws RemoteException {
|
||||
UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid());
|
||||
releaseResource(userRecord.mTransformRecords, resourceId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user