Home
last modified time | relevance | path

Searched refs:VpnUtils (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java152 final boolean wasLockdown = VpnUtils.isAnyLockdownActive(mContext); in onClick()
154 final boolean replace = VpnUtils.isVpnActive(mContext); in onClick()
204 VpnUtils.setLockdownVpn(mContext, profile.key); in updateLockdownVpn()
207 if (VpnUtils.isVpnLockdown(profile.key)) { in updateLockdownVpn()
208 VpnUtils.clearLockdownVpn(mContext); in updateLockdownVpn()
229 if (!VpnUtils.isVpnLockdown(profile.key)) { in connect()
230 VpnUtils.clearLockdownVpn(mContext); in connect()
252 return VpnUtils.disconnectLegacyVpn(getContext()); in disconnect()
DAppManagementFragment.java185 final boolean wasLockdown = VpnUtils.isAnyLockdownActive(getActivity()); in onAlwaysOnVpnClick()
209 VpnUtils.clearLockdownVpn(getContext()); in setAlwaysOnVpnByUI()
229 && VpnUtils.isAnyLockdownActive(getActivity()); in updateUI()
DVpnUtils.java36 public class VpnUtils { class
DAppDialogFragment.java165 if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mService, userId))) { in onDisconnect()
DConfigDialog.java140 mAlwaysOnVpn.setChecked(mProfile.key.equals(VpnUtils.getLockdownVpn())); in onCreate()
DVpnSettings.java234 final String lockdownVpnKey = VpnUtils.getLockdownVpn(); in handleMessage()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java35 import com.android.settings.vpn2.VpnUtils;
144 return VpnUtils.isAlwaysOnVpnSet(mCm, MY_USER_ID); in isAlwaysOnVpnSetInCurrentUser()
151 VpnUtils.isAlwaysOnVpnSet(mCm, managedProfileUserId); in isAlwaysOnVpnSetInManagedProfile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/vpn2/
DVpnUtilsTest.java40 assertThat(VpnUtils.isAlwaysOnVpnSet(cm, 0)).isTrue(); in testIsAlwaysOnVpnSet()
43 assertThat(VpnUtils.isAlwaysOnVpnSet(cm, 0)).isFalse(); in testIsAlwaysOnVpnSet()
/packages/apps/Settings/src/com/android/settings/
DCredentialStorage.java52 import com.android.settings.vpn2.VpnUtils;
386 boolean isDone = VpnUtils.disconnectLegacyVpn(getApplicationContext()); in clearLegacyVpnIfEstablished()