/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | AlwaysOnVpnCurrentUserPreferenceControllerTest.java | 47 private VpnManager mVpnManager; field in AlwaysOnVpnCurrentUserPreferenceControllerTest 51 when(mSpiedContext.getSystemService(VpnManager.class)).thenReturn(mVpnManager); in setUp() 61 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn("com.test"); in testAlwaysOnVpnPackageSet_preferenceEnabled() 72 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn("com.test"); in testAlwaysOnVpnPackageSet_preferenceEnabled_zoneWrite() 83 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn("com.test"); in testAlwaysOnVpnPackageSet_preferenceEnabled_zoneRead() 95 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn("com.test"); in testAlwaysOnVpnPackageSet_preferenceEnabled_zoneHidden() 106 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn(null); in testAlwaysOnVpnPackageNotSet_preferenceDisabled() 118 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn(null); in testAlwaysOnVpnPackageNotSet_preferenceDisabled_zoneWrite() 130 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn(null); in testAlwaysOnVpnPackageNotSet_preferenceDisabled_zoneRead() 142 when(mVpnManager.getAlwaysOnVpnPackageForUser(anyInt())).thenReturn(null); in testAlwaysOnVpnPackageNotSet_preferenceDisabled_zoneHidden() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppDialogFragment.java | 53 private VpnManager mVpnManager; field in AppDialogFragment 101 mVpnManager = getContext().getSystemService(VpnManager.class); in onCreate() 148 mVpnManager.setVpnPackageAuthorization( in onForget() 162 if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mVpnManager, userId))) { in onDisconnect() 163 mVpnManager.setAlwaysOnVpnPackageForUser(userId, null, /* lockdownEnabled */ false, in onDisconnect() 165 mVpnManager.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); in onDisconnect()
|
D | AppManagementFragment.java | 72 private VpnManager mVpnManager; field in AppManagementFragment 125 mVpnManager = getContext().getSystemService(VpnManager.class); in onCreate() 229 return mVpnManager.setAlwaysOnVpnPackageForUser(mUserId, in setAlwaysOnVpn() 272 if (mVpnManager.isAlwaysOnVpnPackageSupportedForUser(mUserId, mPackageName)) { in updateRestrictedViews() 294 return mVpnManager.getAlwaysOnVpnPackageForUser(mUserId); in getAlwaysOnVpnPackage() 351 final VpnConfig config = mVpnManager.getVpnConfig(mUserId); in isAnotherVpnActive()
|
D | VpnSettings.java | 102 private VpnManager mVpnManager; field in VpnSettings 132 mVpnManager = (VpnManager) getSystemService(Context.VPN_MANAGEMENT_SERVICE); in onActivityCreated() 584 mConnectedLegacyVpn = mVpnManager.getLegacyVpnInfo(UserHandle.myUserId()); in getConnectedLegacyVpns() 599 VpnConfig config = mVpnManager.getVpnConfig(profile.getIdentifier()); in getConnectedAppVpns() 615 final String packageName = mVpnManager.getAlwaysOnVpnPackageForUser(profileId); in getAlwaysOnAppVpnInfos()
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | AlwaysOnVpnCurrentUserPreferenceController.java | 33 private final VpnManager mVpnManager; field in AlwaysOnVpnCurrentUserPreferenceController 39 mVpnManager = context.getSystemService(VpnManager.class); in AlwaysOnVpnCurrentUserPreferenceController() 47 return mVpnManager.getAlwaysOnVpnPackageForUser(UserHandle.myUserId()) != null in getDefaultAvailabilityStatus()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ResetNetworkOperationBuilderTest.java | 54 private VpnManager mVpnManager; field in ResetNetworkOperationBuilderTest 92 doReturn(mVpnManager).when(mContext) in resetVpnManager_performReset_whenBuildAndRun() 97 verify(mVpnManager).factoryReset(); in resetVpnManager_performReset_whenBuildAndRun()
|
D | VpnPreferenceControllerTest.java | 65 private VpnManager mVpnManager; field in VpnPreferenceControllerTest 80 when(mContext.getSystemService(VpnManager.class)).thenReturn(mVpnManager); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImplTest.java | 96 private VpnManager mVpnManager; field in EnterprisePrivacyFeatureProviderImplTest 116 mPackageManager, mUserManager, mConnectivityManger, mVpnManager, mResources); in setUp() 213 when(mVpnManager.getAlwaysOnVpnPackageForUser(mUserId)).thenReturn(null); in testIsAlwaysOnVpnSetInCurrentUser() 216 when(mVpnManager.getAlwaysOnVpnPackageForUser(mUserId)).thenReturn(VPN_PACKAGE_ID); in testIsAlwaysOnVpnSetInCurrentUser() 226 when(mVpnManager.getAlwaysOnVpnPackageForUser(mManagedProfileUserId)).thenReturn(null); in testIsAlwaysOnVpnSetInManagedProfileProfile() 229 when(mVpnManager.getAlwaysOnVpnPackageForUser(mManagedProfileUserId)) in testIsAlwaysOnVpnSetInManagedProfileProfile()
|