/frameworks/base/tests/net/java/android/net/ |
D | IpSecManagerTest.java | 73 private IpSecManager mIpSecManager; 84 mIpSecManager = new IpSecManager(mMockContext, mMockIpSecService); in setUp() 94 new IpSecSpiResponse(IpSecManager.Status.OK, DUMMY_RESOURCE_ID, DROID_SPI); in testAllocSpi() 101 IpSecManager.SecurityParameterIndex droidSpi = in testAllocSpi() 113 new IpSecSpiResponse(IpSecManager.Status.OK, DUMMY_RESOURCE_ID, DROID_SPI); in testAllocRandomSpi() 116 eq(IpSecManager.INVALID_SECURITY_PARAMETER_INDEX), in testAllocRandomSpi() 120 IpSecManager.SecurityParameterIndex randomSpi = in testAllocRandomSpi() 136 new IpSecSpiResponse(IpSecManager.Status.RESOURCE_UNAVAILABLE, 0, 0); in testAllocSpiResUnavailableException() 144 } catch (IpSecManager.ResourceUnavailableException e) { in testAllocSpiResUnavailableException() 153 IpSecSpiResponse spiResp = new IpSecSpiResponse(IpSecManager.Status.SPI_UNAVAILABLE, 0, 0); in testAllocSpiSpiUnavailableException() [all …]
|
D | IpSecConfigTest.java | 44 assertEquals(IpSecManager.INVALID_RESOURCE_ID, c.getEncapSocketResourceId()); in testDefaults() 49 assertEquals(IpSecManager.INVALID_RESOURCE_ID, c.getSpiResourceId()); in testDefaults()
|
/frameworks/base/core/java/android/net/ |
D | IpSecTransform.java | 18 import static android.net.IpSecManager.INVALID_RESOURCE_ID; 109 throws IOException, IpSecManager.ResourceUnavailableException, in checkResultStatus() 110 IpSecManager.SpiUnavailableException { in checkResultStatus() 112 case IpSecManager.Status.OK: in checkResultStatus() 115 case IpSecManager.Status.RESOURCE_UNAVAILABLE: in checkResultStatus() 116 throw new IpSecManager.ResourceUnavailableException( in checkResultStatus() 118 case IpSecManager.Status.SPI_UNAVAILABLE: in checkResultStatus() 128 throws IOException, IpSecManager.ResourceUnavailableException, in activate() 129 IpSecManager.SpiUnavailableException { in activate() 141 throw IpSecManager.rethrowUncheckedExceptionFromServiceSpecificException(e); in activate() [all …]
|
D | IpSecUdpEncapResponse.java | 59 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()
|
D | IpSecSpiResponse.java | 54 if (inStatus == IpSecManager.Status.OK) { in IpSecSpiResponse() 58 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecSpiResponse() 59 spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in IpSecSpiResponse()
|
D | IpSecTransformResponse.java | 46 if (inStatus == IpSecManager.Status.OK) { in IpSecTransformResponse() 50 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTransformResponse()
|
D | IpSecTunnelInterfaceResponse.java | 48 if (inStatus == IpSecManager.Status.OK) { in IpSecTunnelInterfaceResponse() 52 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTunnelInterfaceResponse()
|
D | IpSecManager.java | 59 public final class IpSecManager { class 281 IpSecManager.INVALID_SECURITY_PARAMETER_INDEX); in allocateSecurityParameterIndex() 311 if (requestedSpi == IpSecManager.INVALID_SECURITY_PARAMETER_INDEX) { in allocateSecurityParameterIndex() 933 public IpSecManager(Context ctx, IIpSecService service) { in IpSecManager() method in IpSecManager
|
D | IpSecConfig.java | 48 private int mSpiResourceId = IpSecManager.INVALID_RESOURCE_ID; 62 private int mEncapSocketResourceId = IpSecManager.INVALID_RESOURCE_ID;
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceTest.java | 40 import android.net.IpSecManager; 163 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenAndCloseUdpEncapsulationSocket() 210 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenUdpEncapsulationSocketAfterClose() 232 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testUdpEncapPortNotReleased() 252 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenUdpEncapsulationSocketOnRandomPort() 280 assertEquals(IpSecManager.Status.OK, udpEncapResp.status); in testOpenUdpEncapsulationSocketTwice() 286 assertEquals(IpSecManager.Status.RESOURCE_UNAVAILABLE, testUdpEncapResp.status); in testOpenUdpEncapsulationSocketTwice() 464 if (IpSecManager.Status.OK != newUdpEncapSocket.status) { in testSocketResourceTrackerLimitation() 479 assertEquals(IpSecManager.Status.RESOURCE_UNAVAILABLE, extraUdpEncapSocket.status); in testSocketResourceTrackerLimitation() 489 assertEquals(IpSecManager.Status.OK, extraUdpEncapSocket.status); in testSocketResourceTrackerLimitation() [all …]
|
D | IpSecServiceParameterizedTest.java | 35 import android.net.IpSecManager; 166 assertEquals(IpSecManager.Status.OK, spiResp.status); in testIpSecServiceReserveSpi() 244 IpSecManager.INVALID_SECURITY_PARAMETER_INDEX, in getNewSpiResourceId() 268 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTransform() 303 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTransformAead() 337 assertEquals(IpSecManager.Status.OK, createTransformResp.status); in testCreateTwoTransformsWithSameSpis() 474 mIpSecService.applyTransportModeTransform(pfd, IpSecManager.DIRECTION_OUT, resourceId); in testApplyTransportModeTransform() 480 eq(IpSecManager.DIRECTION_OUT), in testApplyTransportModeTransform() 501 assertEquals(IpSecManager.Status.OK, createTunnelResp.status); in createAndValidateTunnel()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IpSecService.java | 20 import static android.net.IpSecManager.INVALID_RESOURCE_ID; 35 import android.net.IpSecManager; 93 new int[] {IpSecManager.DIRECTION_OUT, IpSecManager.DIRECTION_IN}; 691 mSpi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in freeUnderlyingResources() 826 int mark = (direction == IpSecManager.DIRECTION_IN) ? mIkey : mOkey; in freeUnderlyingResources() 1065 case IpSecManager.DIRECTION_OUT: in checkDirection() 1066 case IpSecManager.DIRECTION_IN: in checkDirection() 1086 int spi = IpSecManager.INVALID_SECURITY_PARAMETER_INDEX; in allocateSecurityParameterIndex() 1090 IpSecManager.Status.RESOURCE_UNAVAILABLE, INVALID_RESOURCE_ID, spi); in allocateSecurityParameterIndex() 1105 IpSecManager.Status.SPI_UNAVAILABLE, INVALID_RESOURCE_ID, spi); in allocateSecurityParameterIndex() [all …]
|
/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 85 import android.net.IpSecManager; 283 registerService(Context.IPSEC_SERVICE, IpSecManager.class, in registerService() 284 new CachedServiceFetcher<IpSecManager>() { in registerService() 286 public IpSecManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService() 289 return new IpSecManager(ctx, service); in registerService()
|
/frameworks/base/api/ |
D | test-current.txt | 567 public final class IpSecManager {
|
D | current.txt | 27019 public final class IpSecManager { 27020 …lic android.net.IpSecManager.SecurityParameterIndex allocateSecurityParameterIndex(java.net.InetAd… 27021 …IpSecManager.SecurityParameterIndex allocateSecurityParameterIndex(java.net.InetAddress, int) thro… 27025 …lic android.net.IpSecManager.UdpEncapsulationSocket openUdpEncapsulationSocket(int) throws java.io… 27026 …ublic android.net.IpSecManager.UdpEncapsulationSocket openUdpEncapsulationSocket() throws java.io.… 27034 …public static final class IpSecManager.ResourceUnavailableException extends android.util.AndroidEx… 27037 public static final class IpSecManager.SecurityParameterIndex implements java.lang.AutoCloseable { 27042 …public static final class IpSecManager.SpiUnavailableException extends android.util.AndroidExcepti… 27046 public static final class IpSecManager.UdpEncapsulationSocket implements java.lang.AutoCloseable { 27058 …net.IpSecManager.SecurityParameterIndex) throws java.io.IOException, android.net.IpSecManager.Reso… [all …]
|
/frameworks/base/config/ |
D | preloaded-classes | 2236 android.net.IpSecManager 2237 android.net.IpSecManager$SpiUnavailableException
|
D | hiddenapi-public-dex.txt | 25355 Landroid/net/IpSecManager$ResourceUnavailableException; 25356 Landroid/net/IpSecManager$SecurityParameterIndex; 25357 Landroid/net/IpSecManager$SecurityParameterIndex;->close()V 25358 Landroid/net/IpSecManager$SecurityParameterIndex;->finalize()V 25359 Landroid/net/IpSecManager$SecurityParameterIndex;->getSpi()I 25360 Landroid/net/IpSecManager$SecurityParameterIndex;->toString()Ljava/lang/String; 25361 Landroid/net/IpSecManager$SpiUnavailableException; 25362 Landroid/net/IpSecManager$SpiUnavailableException;->getSpi()I 25363 Landroid/net/IpSecManager$UdpEncapsulationSocket; 25364 Landroid/net/IpSecManager$UdpEncapsulationSocket;->close()V [all …]
|
D | boot-image-profile.txt | 56720 Landroid/net/IpSecManager$SpiUnavailableException; 56721 Landroid/net/IpSecManager;
|