Home
last modified time | relevance | path

Searched refs:VpnManager (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DPlatformVpnConfirmDialog.java19 import android.net.VpnManager;
27 super(VpnManager.TYPE_VPN_PLATFORM); in PlatformVpnConfirmDialog()
DConfirmDialog.java26 import android.net.VpnManager;
47 @VpnManager.VpnType private final int mVpnType;
54 this(VpnManager.TYPE_VPN_SERVICE); in ConfirmDialog()
57 public ConfirmDialog(@VpnManager.VpnType int vpnType) { in ConfirmDialog()
/frameworks/base/core/java/android/net/
DVpnManager.java52 public class VpnManager { class
85 public VpnManager(@NonNull Context ctx, @NonNull IConnectivityManager service) { in VpnManager() method in VpnManager
DVpnService.java237 cm.setVpnPackageAuthorization(packageName, userId, VpnManager.TYPE_VPN_SERVICE); in prepareAndAuthorize()
/frameworks/base/tests/net/java/android/net/
DVpnManagerTest.java53 private VpnManager mVpnManager;
65 mVpnManager = new VpnManager(mMockContext, mMockCs); in setUp()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java71 import android.net.VpnManager;
584 (profile == null) ? VpnManager.TYPE_VPN_SERVICE : VpnManager.TYPE_VPN_PLATFORM; in setAlwaysOnPackageInternal()
781 String oldPackage, String newPackage, @VpnManager.VpnType int vpnType) { in prepare()
885 public boolean setPackageAuthorization(String packageName, @VpnManager.VpnType int vpnType) { in setPackageAuthorization()
901 case VpnManager.TYPE_VPN_NONE: in setPackageAuthorization()
906 case VpnManager.TYPE_VPN_PLATFORM: in setPackageAuthorization()
909 case VpnManager.TYPE_VPN_SERVICE: in setPackageAuthorization()
924 vpnType == VpnManager.TYPE_VPN_NONE in setPackageAuthorization()
938 case VpnManager.TYPE_VPN_SERVICE: in isVpnPreConsented()
940 case VpnManager.TYPE_VPN_PLATFORM: in isVpnPreConsented()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java73 import android.net.VpnManager;
512 vpn.prepare(null, PKGS[0], VpnManager.TYPE_VPN_SERVICE); in testLockdownRuleReversibility()
517 vpn.prepare(null, VpnConfig.LEGACY_VPN, VpnManager.TYPE_VPN_SERVICE); in testLockdownRuleReversibility()
938 assertTrue(vpn.setPackageAuthorization(TEST_VPN_PKG, VpnManager.TYPE_VPN_SERVICE)); in testSetPackageAuthorizationVpnService()
951 assertTrue(vpn.setPackageAuthorization(TEST_VPN_PKG, VpnManager.TYPE_VPN_PLATFORM)); in testSetPackageAuthorizationPlatformVpn()
964 assertTrue(vpn.setPackageAuthorization(TEST_VPN_PKG, VpnManager.TYPE_VPN_NONE)); in testSetPackageAuthorizationRevokeAuthorization()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java129 import android.net.VpnManager;
384 registerService(Context.VPN_MANAGEMENT_SERVICE, VpnManager.class, in registerService()
385 new CachedServiceFetcher<VpnManager>() { in registerService()
387 public VpnManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
390 return new VpnManager(ctx, service); in registerService()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java187 import android.net.VpnManager;
1027 private int mVpnType = VpnManager.TYPE_VPN_SERVICE;
6915 private void setupConnectionOwnerUid(int vpnOwnerUid, @VpnManager.VpnType int vpnType) in setupConnectionOwnerUid()
6926 private void setupConnectionOwnerUidAsVpnApp(int vpnOwnerUid, @VpnManager.VpnType int vpnType) in setupConnectionOwnerUidAsVpnApp()
6946 setupConnectionOwnerUidAsVpnApp(myUid, VpnManager.TYPE_VPN_PLATFORM); in testGetConnectionOwnerUidPlatformVpn()
6958 setupConnectionOwnerUidAsVpnApp(myUid + 1, VpnManager.TYPE_VPN_SERVICE); in testGetConnectionOwnerUidVpnServiceWrongUser()
6970 setupConnectionOwnerUidAsVpnApp(myUid, VpnManager.TYPE_VPN_SERVICE); in testGetConnectionOwnerUidVpnServiceDoesNotThrow()
6979 setupConnectionOwnerUid(myUid, VpnManager.TYPE_VPN_SERVICE); in testGetConnectionOwnerUidVpnServiceNetworkStackDoesNotThrow()
6991 setupConnectionOwnerUid(myUid, VpnManager.TYPE_VPN_SERVICE); in testGetConnectionOwnerUidVpnServiceMainlineNetworkStackDoesNotThrow()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java132 import android.net.VpnManager;
4521 return vpn.prepare(oldPackage, newPackage, VpnManager.TYPE_VPN_SERVICE); in prepareVpn()
4545 String packageName, int userId, @VpnManager.VpnType int vpnType) { in setVpnPackageAuthorization()
7566 setVpnPackageAuthorization(alwaysOnPackage, userId, VpnManager.TYPE_VPN_NONE); in factoryReset()
7590 vpnConfig.user, userId, VpnManager.TYPE_VPN_NONE); in factoryReset()
7735 if (vpn != null && vpn.getActiveAppVpnType() != VpnManager.TYPE_VPN_SERVICE) { in getConnectionOwnerUid()
/frameworks/base/api/
Dlint-baseline.txt516 IntentBuilderName: android.net.VpnManager#provisionVpnProfile(android.net.PlatformVpnProfile):
Dcurrent.txt30658 public class VpnManager {
/frameworks/base/config/
Dpreloaded-classes4346 android.net.VpnManager
Dboot-image-profile.txt44543 Landroid/net/VpnManager;