Home
last modified time | relevance | path

Searched refs:VpnProfile (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/tests/net/java/com/android/internal/net/
DVpnProfileTest.java51 final VpnProfile p = new VpnProfile(DUMMY_PROFILE_KEY); in testDefaults()
55 assertEquals(VpnProfile.TYPE_PPTP, p.type); in testDefaults()
78 private VpnProfile getSampleIkev2Profile(String key) { in getSampleIkev2Profile()
79 final VpnProfile p = new VpnProfile(key, true /* isRestrictedToTestNetworks */); in getSampleIkev2Profile()
82 p.type = VpnProfile.TYPE_IKEV2_IPSEC_USER_PASS; in getSampleIkev2Profile()
118 final VpnProfile modified = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testEquals()
130 final VpnProfile profile = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testSetInvalidAlgorithmValueDelimiter()
134 Arrays.asList("test" + VpnProfile.VALUE_DELIMITER + "test")); in testSetInvalidAlgorithmValueDelimiter()
142 final VpnProfile profile = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testSetInvalidAlgorithmListDelimiter()
146 Arrays.asList("test" + VpnProfile.LIST_DELIMITER + "test")); in testSetInvalidAlgorithmListDelimiter()
[all …]
/frameworks/base/core/java/android/net/
DPlatformVpnProfile.java26 import com.android.internal.net.VpnProfile;
58 public static final int TYPE_IKEV2_IPSEC_USER_PASS = VpnProfile.TYPE_IKEV2_IPSEC_USER_PASS;
59 public static final int TYPE_IKEV2_IPSEC_PSK = VpnProfile.TYPE_IKEV2_IPSEC_PSK;
60 public static final int TYPE_IKEV2_IPSEC_RSA = VpnProfile.TYPE_IKEV2_IPSEC_RSA;
95 public abstract VpnProfile toVpnProfile() throws IOException, GeneralSecurityException; in toVpnProfile()
99 public static PlatformVpnProfile fromVpnProfile(@NonNull VpnProfile profile) in fromVpnProfile()
DIkev2VpnProfile.java36 import com.android.internal.net.VpnProfile;
202 VpnProfile.validateAllowedAlgorithms(algorithmNames); in validateAllowedAlgorithms()
399 public VpnProfile toVpnProfile() throws IOException, GeneralSecurityException { in toVpnProfile()
400 final VpnProfile profile = new VpnProfile("" /* Key; value unused by IKEv2VpnProfile(s) */, in toVpnProfile()
445 public static Ikev2VpnProfile fromVpnProfile(@NonNull VpnProfile profile) in fromVpnProfile()
461 @NonNull VpnProfile profile, @Nullable KeyStore keyStore) in fromVpnProfile()
514 public static boolean isValidVpnProfile(@NonNull VpnProfile profile) { in isValidVpnProfile()
701 mType = VpnProfile.TYPE_IKEV2_IPSEC_USER_PASS; in setAuthUsernamePassword()
738 mType = VpnProfile.TYPE_IKEV2_IPSEC_RSA; in setAuthDigitalSignature()
759 mType = VpnProfile.TYPE_IKEV2_IPSEC_PSK; in setAuthPsk()
DVpnManager.java31 import com.android.internal.net.VpnProfile;
107 final VpnProfile internalProfile; in provisionVpnProfile()
DIConnectivityManager.aidl43 import com.android.internal.net.VpnProfile;
126 boolean provisionVpnProfile(in VpnProfile profile, String packageName); in provisionVpnProfile()
137 void startLegacyVpn(in VpnProfile profile); in startLegacyVpn()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java51 public final class VpnProfile implements Cloneable, Parcelable { class
145 public VpnProfile(String key) { in VpnProfile() method in VpnProfile
149 public VpnProfile(String key, boolean isRestrictedToTestNetworks) { in VpnProfile() method in VpnProfile
155 public VpnProfile(Parcel in) { in VpnProfile() method in VpnProfile
239 public static VpnProfile decode(String key, byte[] value) { in decode()
262 VpnProfile profile = new VpnProfile(key, isRestrictedToTestNetworks); in decode()
360 case VpnProfile.TYPE_IKEV2_IPSEC_USER_PASS: // fall through in isLegacyType()
361 case VpnProfile.TYPE_IKEV2_IPSEC_RSA: // fall through in isLegacyType()
362 case VpnProfile.TYPE_IKEV2_IPSEC_PSK: in isLegacyType()
451 if (!(obj instanceof VpnProfile)) { in equals()
[all …]
DVpnProfile.aidl19 parcelable VpnProfile;
/frameworks/base/tests/net/java/android/net/
DVpnManagerTest.java35 import com.android.internal.net.VpnProfile;
71 when(mMockCs.provisionVpnProfile(any(VpnProfile.class), eq(PKG_NAME))).thenReturn(true); in testProvisionVpnProfilePreconsented()
81 when(mMockCs.provisionVpnProfile(any(VpnProfile.class), eq(PKG_NAME))).thenReturn(false); in testProvisionVpnProfileNeedsConsent()
DIkev2VpnProfileTest.java31 import com.android.internal.net.VpnProfile;
260 private void verifyVpnProfileCommon(VpnProfile profile) { in verifyVpnProfileCommon()
274 final VpnProfile profile = builder.build().toVpnProfile(); in testPskConvertToVpnProfile()
291 final VpnProfile profile = builder.build().toVpnProfile(); in testUsernamePasswordConvertToVpnProfile()
308 final VpnProfile profile = builder.build().toVpnProfile(); in testRsaConvertToVpnProfile()
329 final VpnProfile profile = builder.build().toVpnProfile(); in testPskFromVpnProfileDiscardsIrrelevantValues()
348 final VpnProfile profile = builder.build().toVpnProfile(); in testUsernamePasswordFromVpnProfileDiscardsIrrelevantValues()
363 final VpnProfile profile = builder.build().toVpnProfile(); in testRsaFromVpnProfileDiscardsIrrelevantValues()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java108 import com.android.internal.net.VpnProfile;
574 final VpnProfile profile; in setAlwaysOnPackageInternal()
701 VpnProfile profile = getVpnProfilePrivileged(alwaysOnPackage, keyStore); in startAlwaysOnVpn()
1905 public void startLegacyVpn(VpnProfile profile, KeyStore keyStore, LinkProperties egress) {
1921 public void startLegacyVpnPrivileged(VpnProfile profile, KeyStore keyStore,
1959 case VpnProfile.TYPE_IKEV2_IPSEC_RSA:
1966 case VpnProfile.TYPE_IKEV2_IPSEC_USER_PASS:
1973 case VpnProfile.TYPE_IKEV2_IPSEC_PSK:
1982 case VpnProfile.TYPE_L2TP_IPSEC_PSK:
1988 case VpnProfile.TYPE_L2TP_IPSEC_RSA:
[all …]
DVpnIkev2Utils.java67 import com.android.internal.net.VpnProfile;
132 case VpnProfile.TYPE_IKEV2_IPSEC_USER_PASS: in setIkeAuth()
139 case VpnProfile.TYPE_IKEV2_IPSEC_PSK: in setIkeAuth()
142 case VpnProfile.TYPE_IKEV2_IPSEC_RSA: in setIkeAuth()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java46 import com.android.internal.net.VpnProfile;
72 @NonNull private final VpnProfile mProfile;
92 @NonNull VpnProfile profile) { in LockdownVpnTracker()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java93 import com.android.internal.net.VpnProfile;
168 private final VpnProfile mVpnProfile;
778 final VpnProfile bigProfile = new VpnProfile(""); in testProvisionVpnProfileTooLarge()
829 .thenReturn(new VpnProfile("").encode()); in testGetVpnProfilePrivileged()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java189 import com.android.internal.net.VpnProfile;
4585 public boolean provisionVpnProfile(@NonNull VpnProfile profile, @NonNull String packageName) { in provisionVpnProfile()
4649 public void startLegacyVpn(VpnProfile profile) { in startLegacyVpn()
4804 final VpnProfile profile = VpnProfile.decode( in updateLockdownVpn()
/frameworks/base/config/
Dpreloaded-classes8220 com.android.internal.net.VpnProfile$1
8221 com.android.internal.net.VpnProfile
Dboot-image-profile.txt48649 Lcom/android/internal/net/VpnProfile$1;
48650 Lcom/android/internal/net/VpnProfile;
/frameworks/base/services/
Dart-profile2114 PLcom/android/server/ConnectivityService;->startLegacyVpn(Lcom/android/internal/net/VpnProfile;)V
12905 …nternal/net/VpnConfig;[Ljava/lang/String;[Ljava/lang/String;Lcom/android/internal/net/VpnProfile;)V
12951 …ofilePrivileged(Ljava/lang/String;Landroid/security/KeyStore;)Lcom/android/internal/net/VpnProfile;
12980 …nternal/net/VpnConfig;[Ljava/lang/String;[Ljava/lang/String;Lcom/android/internal/net/VpnProfile;)V
12981 PLcom/android/server/connectivity/Vpn;->startLegacyVpn(Lcom/android/internal/net/VpnProfile;Landroi…
12982 …/connectivity/Vpn;->startLegacyVpnPrivileged(Lcom/android/internal/net/VpnProfile;Landroid/securit…