Searched refs:IpSecManager (Results 1 – 25 of 27) sorted by relevance
12
75 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 …]
45 assertEquals(IpSecManager.INVALID_RESOURCE_ID, c.getEncapSocketResourceId()); in testDefaults()50 assertEquals(IpSecManager.INVALID_RESOURCE_ID, c.getSpiResourceId()); in testDefaults()
18 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 …]
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()
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()
46 if (inStatus == IpSecManager.Status.OK) { in IpSecTransformResponse()50 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTransformResponse()
48 if (inStatus == IpSecManager.Status.OK) { in IpSecTunnelInterfaceResponse()52 resourceId = IpSecManager.INVALID_RESOURCE_ID; in IpSecTunnelInterfaceResponse()
60 public final class IpSecManager { class277 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
49 private int mSpiResourceId = IpSecManager.INVALID_RESOURCE_ID;63 private int mEncapSocketResourceId = IpSecManager.INVALID_RESOURCE_ID;
18 import static android.net.IpSecManager.INVALID_RESOURCE_ID;34 import android.net.IpSecManager.UdpEncapsulationSocket;
20 import android.net.IpSecManager;33 @IntDef(value = {IpSecManager.DIRECTION_IN, IpSecManager.DIRECTION_OUT})
41 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 …]
39 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 …]
162 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()
20 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 …]
123 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()
66 import android.net.IpSecManager;170 private IpSecManager mIpSecManager;185 mIpSecManager = new IpSecManager(mContext, mIpSecService); in setUp()
54 import android.net.IpSecManager;55 import android.net.IpSecManager.IpSecTunnelInterface;2201 @NonNull private final IpSecManager mIpSecManager;2224 mIpSecManager = (IpSecManager) mContext.getSystemService(Context.IPSEC_SERVICE);
61 GenericException: android.net.IpSecManager.IpSecTunnelInterface#finalize():367 …ctivityManager#createSocketKeepalive(android.net.Network, android.net.IpSecManager.UdpEncapsulatio…
6108 public final class IpSecManager {6109 …EC_TUNNELS) public void applyTunnelModeTransform(@NonNull android.net.IpSecManager.IpSecTunnelInte…6110 …IpSecManager.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…
29862 …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…30063 …IpSecManager.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 …]
10 GenericException: android.net.IpSecManager.IpSecTunnelInterface#finalize():
6056 public final class IpSecManager {6057 …EC_TUNNELS) public void applyTunnelModeTransform(@NonNull android.net.IpSecManager.IpSecTunnelInte…6058 …IpSecManager.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…
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
4209 android.net.IpSecManager$SpiUnavailableException4210 android.net.IpSecManager$UdpEncapsulationSocket4211 android.net.IpSecManager