Home
last modified time | relevance | path

Searched refs:IpSecManager (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/tests/net/java/android/net/
DIpSecManagerTest.java75 private IpSecManager mIpSecManager;
86 mIpSecManager = new IpSecManager(mMockContext, mMockIpSecService); in setUp()
96 new IpSecSpiResponse(IpSecManager.Status.OK, DUMMY_RESOURCE_ID, DROID_SPI); in testAllocSpi()
103 IpSecManager.SecurityParameterIndex droidSpi = in testAllocSpi()
115 new IpSecSpiResponse(IpSecManager.Status.OK, DUMMY_RESOURCE_ID, DROID_SPI); in testAllocRandomSpi()
118 eq(IpSecManager.INVALID_SECURITY_PARAMETER_INDEX), in testAllocRandomSpi()
122 IpSecManager.SecurityParameterIndex randomSpi = in testAllocRandomSpi()
138 new IpSecSpiResponse(IpSecManager.Status.RESOURCE_UNAVAILABLE, 0, 0); in testAllocSpiResUnavailableException()
146 } catch (IpSecManager.ResourceUnavailableException e) { in testAllocSpiResUnavailableException()
155 IpSecSpiResponse spiResp = new IpSecSpiResponse(IpSecManager.Status.SPI_UNAVAILABLE, 0, 0); in testAllocSpiSpiUnavailableException()
[all …]
DIpSecConfigTest.java45 assertEquals(IpSecManager.INVALID_RESOURCE_ID, c.getEncapSocketResourceId()); in testDefaults()
50 assertEquals(IpSecManager.INVALID_RESOURCE_ID, c.getSpiResourceId()); in testDefaults()
/frameworks/base/core/java/android/net/
DIpSecTransform.java18 import static android.net.IpSecManager.INVALID_RESOURCE_ID;
112 throws IOException, IpSecManager.ResourceUnavailableException, in checkResultStatus()
113 IpSecManager.SpiUnavailableException { in checkResultStatus()
115 case IpSecManager.Status.OK: in checkResultStatus()
118 case IpSecManager.Status.RESOURCE_UNAVAILABLE: in checkResultStatus()
119 throw new IpSecManager.ResourceUnavailableException( in checkResultStatus()
121 case IpSecManager.Status.SPI_UNAVAILABLE: in checkResultStatus()
131 throws IOException, IpSecManager.ResourceUnavailableException, in activate()
132 IpSecManager.SpiUnavailableException { in activate()
144 throw IpSecManager.rethrowUncheckedExceptionFromServiceSpecificException(e); in activate()
[all …]
DIpSecUdpEncapResponse.java59 if (inStatus == IpSecManager.Status.OK) { in IpSecUdpEncapResponse()
63 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecUdpEncapResponse()
70 if (inStatus == IpSecManager.Status.OK && inFd == null) { in IpSecUdpEncapResponse()
76 fileDescriptor = (status == IpSecManager.Status.OK) ? ParcelFileDescriptor.dup(inFd) : null; in IpSecUdpEncapResponse()
DIpSecSpiResponse.java54 if (inStatus == IpSecManager.Status.OK) { in IpSecSpiResponse()
58 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecSpiResponse()
59 spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in IpSecSpiResponse()
DIpSecTransformResponse.java46 if (inStatus == IpSecManager.Status.OK) { in IpSecTransformResponse()
50 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTransformResponse()
DIpSecTunnelInterfaceResponse.java48 if (inStatus == IpSecManager.Status.OK) { in IpSecTunnelInterfaceResponse()
52 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTunnelInterfaceResponse()
DIpSecManager.java60 public final class IpSecManager { class
277 IpSecManager.INVALID_SECURITY_PARAMETER_INDEX); in allocateSecurityParameterIndex()
307 if (requestedSpi == IpSecManager.INVALID_SECURITY_PARAMETER_INDEX) { in allocateSecurityParameterIndex()
939 public IpSecManager(Context ctx, IIpSecService service) { in IpSecManager() method in IpSecManager
DIpSecConfig.java49 private int mSpiResourceId = IpSecManager.INVALID_RESOURCE_ID;
63 private int mEncapSocketResourceId = IpSecManager.INVALID_RESOURCE_ID;
DConnectivityManager.java18 import static android.net.IpSecManager.INVALID_RESOURCE_ID;
34 import android.net.IpSecManager.UdpEncapsulationSocket;
/frameworks/base/core/java/android/net/annotations/
DPolicyDirection.java20 import android.net.IpSecManager;
33 @IntDef(value = {IpSecManager.DIRECTION_IN, IpSecManager.DIRECTION_OUT})
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceTest.java41 import android.net.IpSecManager;
170 if (udpEncapResp.status == IpSecManager.Status.OK) { in testOpenAndCloseUdpEncapsulationSocket()
178 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenAndCloseUdpEncapsulationSocket()
224 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenUdpEncapsulationSocketAfterClose()
245 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testUdpEncapPortNotReleased()
265 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenUdpEncapsulationSocketOnRandomPort()
291 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenUdpEncapsulationSocketTwice()
296 assertEquals(IpSecManager.Status.RESOURCE_UNAVAILABLE, testUdpEncapResp.status); in testOpenUdpEncapsulationSocketTwice()
476 if (IpSecManager.Status.OK != newUdpEncapSocket.status) { in testSocketResourceTrackerLimitation()
491 assertEquals(IpSecManager.Status.RESOURCE_UNAVAILABLE, extraUdpEncapSocket.status); in testSocketResourceTrackerLimitation()
[all …]
DIpSecServiceParameterizedTest.java39 import android.net.IpSecManager;
198 assertEquals(IpSecManager.Status.OK, spiResp.status); in testIpSecServiceReserveSpi()
276 IpSecManager.INVALID_SECURITY_PARAMETER_INDEX, in getNewSpiResourceId()
342 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTransform()
356 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTransformAead()
374 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTransportModeTransformWithEncap()
400 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTunnelModeTransformWithEncap()
421 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTwoTransformsWithSameSpis()
576 mIpSecService.applyTransportModeTransform(pfd, IpSecManager.DIRECTION_OUT, resourceId); in verifyApplyTransportModeTransformCommon()
582 eq(IpSecManager.DIRECTION_OUT), in verifyApplyTransportModeTransformCommon()
[all …]
DConnectivityServiceTest.java162 import android.net.IpSecManager;
163 import android.net.IpSecManager.UdpEncapsulationSocket;
4169 final IpSecManager mIpSec = (IpSecManager) mContext.getSystemService(Context.IPSEC_SERVICE); in doTestNattSocketKeepalivesWithExecutor()
4422 final IpSecManager mIpSec = (IpSecManager) mContext.getSystemService(Context.IPSEC_SERVICE); in doTestNattSocketKeepalivesFdWithExecutor()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java20 import static android.net.IpSecManager.INVALID_RESOURCE_ID;
36 import android.net.IpSecManager;
705 mSpi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in freeUnderlyingResources()
847 IpSecManager.DIRECTION_OUT, in freeUnderlyingResources()
854 IpSecManager.DIRECTION_IN, in freeUnderlyingResources()
1099 case IpSecManager.DIRECTION_OUT: in checkDirection()
1100 case IpSecManager.DIRECTION_IN: in checkDirection()
1121 int spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in allocateSecurityParameterIndex()
1125 IpSecManager.Status.RESOURCE_UNAVAILABLE, INVALID_RESOURCE_ID, spi); in allocateSecurityParameterIndex()
1140 IpSecManager.Status.SPI_UNAVAILABLE, INVALID_RESOURCE_ID, spi); in allocateSecurityParameterIndex()
[all …]
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java123 import android.net.IpSecManager;
375 registerService(Context.IPSEC_SERVICE, IpSecManager.class, in registerService()
376 new CachedServiceFetcher<IpSecManager>() { in registerService()
378 public IpSecManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
381 return new IpSecManager(ctx, service); in registerService()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java66 import android.net.IpSecManager;
170 private IpSecManager mIpSecManager;
185 mIpSecManager = new IpSecManager(mContext, mIpSecService); in setUp()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java54 import android.net.IpSecManager;
55 import android.net.IpSecManager.IpSecTunnelInterface;
2201 @NonNull private final IpSecManager mIpSecManager;
2224 mIpSecManager = (IpSecManager) mContext.getSystemService(Context.IPSEC_SERVICE);
/frameworks/base/api/
Dsystem-lint-baseline.txt61 GenericException: android.net.IpSecManager.IpSecTunnelInterface#finalize():
367 …ctivityManager#createSocketKeepalive(android.net.Network, android.net.IpSecManager.UdpEncapsulatio…
Dsystem-current.txt6108 public final class IpSecManager {
6109 …EC_TUNNELS) public void applyTunnelModeTransform(@NonNull android.net.IpSecManager.IpSecTunnelInte…
6110IpSecManager.IpSecTunnelInterface createIpSecTunnelInterface(@NonNull java.net.InetAddress, @NonNu…
6113 public static final class IpSecManager.IpSecTunnelInterface implements java.lang.AutoCloseable {
6121 …net.IpSecManager.SecurityParameterIndex) throws java.io.IOException, android.net.IpSecManager.Reso…
Dcurrent.txt29862 …ateSocketKeepalive(@NonNull android.net.Network, @NonNull android.net.IpSecManager.UdpEncapsulatio…
30061 public final class IpSecManager {
30062 …android.net.IpSecManager.SecurityParameterIndex allocateSecurityParameterIndex(@NonNull java.net.I…
30063IpSecManager.SecurityParameterIndex allocateSecurityParameterIndex(@NonNull java.net.InetAddress, …
30067 …lic android.net.IpSecManager.UdpEncapsulationSocket openUdpEncapsulationSocket(int) throws java.io…
30068 …ublic android.net.IpSecManager.UdpEncapsulationSocket openUdpEncapsulationSocket() throws java.io.…
30076 …public static final class IpSecManager.ResourceUnavailableException extends android.util.AndroidEx…
30079 public static final class IpSecManager.SecurityParameterIndex implements java.lang.AutoCloseable {
30084 …public static final class IpSecManager.SpiUnavailableException extends android.util.AndroidExcepti…
30088 public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable {
[all …]
/frameworks/base/non-updatable-api/
Dsystem-lint-baseline.txt10 GenericException: android.net.IpSecManager.IpSecTunnelInterface#finalize():
Dsystem-current.txt6056 public final class IpSecManager {
6057 …EC_TUNNELS) public void applyTunnelModeTransform(@NonNull android.net.IpSecManager.IpSecTunnelInte…
6058IpSecManager.IpSecTunnelInterface createIpSecTunnelInterface(@NonNull java.net.InetAddress, @NonNu…
6061 public static final class IpSecManager.IpSecTunnelInterface implements java.lang.AutoCloseable {
6069 …net.IpSecManager.SecurityParameterIndex) throws java.io.IOException, android.net.IpSecManager.Reso…
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/config/
Dpreloaded-classes4209 android.net.IpSecManager$SpiUnavailableException
4210 android.net.IpSecManager$UdpEncapsulationSocket
4211 android.net.IpSecManager

12