Searched refs:VpnUtils (Results 1 – 9 of 9) sorted by relevance
152 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()
185 final boolean wasLockdown = VpnUtils.isAnyLockdownActive(getActivity()); in onAlwaysOnVpnClick()209 VpnUtils.clearLockdownVpn(getContext()); in setAlwaysOnVpnByUI()229 && VpnUtils.isAnyLockdownActive(getActivity()); in updateUI()
36 public class VpnUtils { class
165 if (mPackageInfo.packageName.equals(VpnUtils.getConnectedPackage(mService, userId))) { in onDisconnect()
140 mAlwaysOnVpn.setChecked(mProfile.key.equals(VpnUtils.getLockdownVpn())); in onCreate()
234 final String lockdownVpnKey = VpnUtils.getLockdownVpn(); in handleMessage()
35 import com.android.settings.vpn2.VpnUtils;144 return VpnUtils.isAlwaysOnVpnSet(mCm, MY_USER_ID); in isAlwaysOnVpnSetInCurrentUser()151 VpnUtils.isAlwaysOnVpnSet(mCm, managedProfileUserId); in isAlwaysOnVpnSetInManagedProfile()
40 assertThat(VpnUtils.isAlwaysOnVpnSet(cm, 0)).isTrue(); in testIsAlwaysOnVpnSet()43 assertThat(VpnUtils.isAlwaysOnVpnSet(cm, 0)).isFalse(); in testIsAlwaysOnVpnSet()
52 import com.android.settings.vpn2.VpnUtils;386 boolean isDone = VpnUtils.disconnectLegacyVpn(getApplicationContext()); in clearLegacyVpnIfEstablished()