Home
last modified time | relevance | path

Searched refs:provisionVpnProfile (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DVpnManagerTest.java71 when(mMockCs.provisionVpnProfile(any(VpnProfile.class), eq(PKG_NAME))).thenReturn(true); in testProvisionVpnProfilePreconsented()
74 assertNull(mVpnManager.provisionVpnProfile(profile)); in testProvisionVpnProfilePreconsented()
75 verify(mMockCs).provisionVpnProfile(eq(profile.toVpnProfile()), eq(PKG_NAME)); in testProvisionVpnProfilePreconsented()
81 when(mMockCs.provisionVpnProfile(any(VpnProfile.class), eq(PKG_NAME))).thenReturn(false); in testProvisionVpnProfileNeedsConsent()
84 final Intent intent = mVpnManager.provisionVpnProfile(profile); in testProvisionVpnProfileNeedsConsent()
91 verify(mMockCs).provisionVpnProfile(eq(profile.toVpnProfile()), eq(PKG_NAME)); in testProvisionVpnProfileNeedsConsent()
/frameworks/base/core/java/android/net/
DVpnManager.java106 public Intent provisionVpnProfile(@NonNull PlatformVpnProfile profile) { in provisionVpnProfile() method in VpnManager
120 if (mService.provisionVpnProfile(internalProfile, mContext.getOpPackageName())) { in provisionVpnProfile()
DIConnectivityManager.aidl127 boolean provisionVpnProfile(in VpnProfile profile, String packageName); in provisionVpnProfile() method
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java720 assertEquals(expectedResult, vpn.provisionVpnProfile(TEST_VPN_PKG, mVpnProfile, mKeyStore)); in checkProvisionVpnProfile()
782 vpn.provisionVpnProfile(TEST_VPN_PKG, bigProfile, mKeyStore); in testProvisionVpnProfileTooLarge()
795 vpn.provisionVpnProfile(TEST_VPN_PKG, mVpnProfile, mKeyStore); in testProvisionVpnProfileRestrictedUser()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java2896 public synchronized boolean provisionVpnProfile(
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java4577 public boolean provisionVpnProfile(@NonNull VpnProfile profile, @NonNull String packageName) { in provisionVpnProfile() method in ConnectivityService
4580 return mVpns.get(user).provisionVpnProfile(packageName, profile, mKeyStore); in provisionVpnProfile()
/frameworks/base/non-updatable-api/
Dcurrent.txt29429 …method @Nullable public android.content.Intent provisionVpnProfile(@NonNull android.net.PlatformVp…
/frameworks/base/api/
Dcurrent.txt29559 …method @Nullable public android.content.Intent provisionVpnProfile(@NonNull android.net.PlatformVp…