Home
last modified time | relevance | path

Searched refs:IpSecConfig (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DIpSecConfigTest.java39 IpSecConfig c = new IpSecConfig(); in testDefaults()
54 private IpSecConfig getSampleConfig() { in getSampleConfig()
55 IpSecConfig c = new IpSecConfig(); in getSampleConfig()
89 IpSecConfig original = getSampleConfig(); in testCopyConstructor()
90 IpSecConfig copy = new IpSecConfig(original); in testCopyConstructor()
92 assertTrue(IpSecConfig.equals(original, copy)); in testCopyConstructor()
98 assertParcelingIsLossless(new IpSecConfig()); in testParcelUnparcel()
100 IpSecConfig c = getSampleConfig(); in testParcelUnparcel()
104 private void assertParcelingIsLossless(IpSecConfig ci) throws Exception { in assertParcelingIsLossless()
108 IpSecConfig co = IpSecConfig.CREATOR.createFromParcel(p); in assertParcelingIsLossless()
[all …]
DIpSecTransformTest.java36 IpSecConfig config = new IpSecConfig(); in testCreateTransformCopiesConfig()
52 IpSecConfig config = new IpSecConfig(); in testCreateTransformsWithSameConfigEqual()
DIpSecManagerTest.java203 IpSecConfig dummyConfig = new IpSecConfig(); in testApplyTransportModeTransformEnsuresSocketCreation()
/frameworks/base/core/java/android/net/
DIpSecConfig.java29 public final class IpSecConfig implements Parcelable { class
243 public IpSecConfig() {} in IpSecConfig() method in IpSecConfig
247 public IpSecConfig(IpSecConfig c) { in IpSecConfig() method in IpSecConfig
265 private IpSecConfig(Parcel in) { in IpSecConfig() method in IpSecConfig
325 public static final @android.annotation.NonNull Parcelable.Creator<IpSecConfig> CREATOR =
326 new Parcelable.Creator<IpSecConfig>() {
327 public IpSecConfig createFromParcel(Parcel in) {
328 return new IpSecConfig(in);
331 public IpSecConfig[] newArray(int size) {
332 return new IpSecConfig[size];
[all …]
DIpSecTransform.java92 public IpSecTransform(Context context, IpSecConfig config) { in IpSecTransform()
94 mConfig = new IpSecConfig(config); in IpSecTransform()
161 return IpSecConfig.equals(lhs.getConfig(), rhs.getConfig()) in equals()
209 IpSecConfig getConfig() { in getConfig()
213 private final IpSecConfig mConfig;
351 private IpSecConfig mConfig;
514 mConfig = new IpSecConfig(); in Builder()
DIIpSecService.aidl21 import android.net.IpSecConfig;
64 in IpSecConfig c, in IBinder binder, in String callingPackage); in createTransform()
DIpSecConfig.aidl20 parcelable IpSecConfig;
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java38 import android.net.IpSecConfig;
278 private void addDefaultSpisAndRemoteAddrToIpSecConfig(IpSecConfig config) throws Exception { in addDefaultSpisAndRemoteAddrToIpSecConfig()
284 private void addAuthAndCryptToIpSecConfig(IpSecConfig config) throws Exception { in addAuthAndCryptToIpSecConfig()
289 private void addEncapSocketToIpSecConfig(int resourceId, IpSecConfig config) throws Exception { in addEncapSocketToIpSecConfig()
296 IpSecConfig config, IpSecTransformResponse resp) throws Exception { in verifyTransformNetdCalledForCreatingSA()
301 IpSecConfig config, IpSecTransformResponse resp, int encapSocketPort) throws Exception { in verifyTransformNetdCalledForCreatingSA()
333 IpSecConfig ipSecConfig = new IpSecConfig(); in testCreateTransform()
346 IpSecConfig ipSecConfig = new IpSecConfig(); in testCreateTransformAead()
362 IpSecConfig ipSecConfig = new IpSecConfig(); in testCreateTransportModeTransformWithEncap()
388 IpSecConfig ipSecConfig = new IpSecConfig(); in testCreateTunnelModeTransformWithEncap()
[all …]
DIpSecServiceTest.java40 import android.net.IpSecConfig;
311 IpSecConfig config = new IpSecConfig(); in testValidateAlgorithmsAuth()
318 config = new IpSecConfig(); in testValidateAlgorithmsAuth()
330 IpSecConfig config = new IpSecConfig(); in testValidateAlgorithmsCrypt()
337 config = new IpSecConfig(); in testValidateAlgorithmsCrypt()
349 IpSecConfig config = new IpSecConfig(); in testValidateAlgorithmsAead()
356 config = new IpSecConfig(); in testValidateAlgorithmsAead()
368 IpSecConfig config = new IpSecConfig(); in testValidateAlgorithmsAuthCrypt()
376 IpSecConfig config = new IpSecConfig(); in testValidateAlgorithmsNoAlgorithms()
386 IpSecConfig config = new IpSecConfig(); in testValidateAlgorithmsAeadWithAuth()
[all …]
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java37 import android.net.IpSecConfig;
589 private final IpSecConfig mConfig;
594 int resourceId, IpSecConfig config, SpiRecord spi, EncapSocketRecord socket) { in TransformRecord()
603 public IpSecConfig getConfig() { in getConfig()
1430 void validateAlgorithms(IpSecConfig config) throws IllegalArgumentException { in validateAlgorithms()
1468 private void checkIpSecConfig(IpSecConfig config) { in checkIpSecConfig()
1573 IpSecConfig c, int resourceId, SpiRecord spiRecord, EncapSocketRecord socketRecord) in createOrUpdateTransform()
1627 IpSecConfig c, IBinder binder, String callingPackage) throws RemoteException { in createTransform()
1700 IpSecConfig c = info.getConfig(); in applyTransportModeTransform()
1754 IpSecConfig c = transformInfo.getConfig(); in applyTunnelModeTransform()