Searched refs:WifiEnterpriseRestrictionUtils (Results 1 – 6 of 6) sorted by relevance
69 assertThat(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).isFalse(); in isWifiTetheringAllowed_hasDisallowRestriction_shouldReturnFalse()76 assertThat(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).isTrue(); in isWifiTetheringAllowed_noDisallowRestriction_shouldReturnTrue()83 assertThat(WifiEnterpriseRestrictionUtils.isWifiDirectAllowed(mContext)).isFalse(); in isWifiDirectAllowed_hasDisallowRestriction_shouldReturnFalse()90 assertThat(WifiEnterpriseRestrictionUtils.isWifiDirectAllowed(mContext)).isTrue(); in isWifiDirectAllowed_noDisallowRestriction_shouldReturnTrue()97 assertThat(WifiEnterpriseRestrictionUtils.isAddWifiConfigAllowed(mContext)).isFalse(); in isAddWifiConfigAllowed_hasDisallowRestriction_shouldReturnFalse()104 assertThat(WifiEnterpriseRestrictionUtils.isAddWifiConfigAllowed(mContext)).isTrue(); in isAddWifiConfigAllowed_noDisallowRestriction_shouldReturnTrue()111 assertThat(WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(mContext)).isFalse(); in isChangeWifiStateAllowed_hasDisallowRestriction_shouldReturnFalse()118 assertThat(WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(mContext)).isTrue(); in isChangeWifiStateAllowed_noDisallowRestriction_shouldReturnTrue()125 assertThat(WifiEnterpriseRestrictionUtils.hasUserRestrictionFromT(mContext, "key")) in hasUserRestrictionFromT_setSDKForS_shouldReturnTrue()134 assertThat(WifiEnterpriseRestrictionUtils.hasUserRestrictionFromT(mContext, "key")) in hasUserRestrictionFromT_setSDKForT_shouldReturnHasUserRestriction()[all …]
33 import com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils;111 .spyStatic(WifiEnterpriseRestrictionUtils.class) in handleUpdateState_wifiTetheringIsAllowed_stateIsNotUnavailable()113 when(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).thenReturn(true); in handleUpdateState_wifiTetheringIsAllowed_stateIsNotUnavailable()126 .spyStatic(WifiEnterpriseRestrictionUtils.class) in handleUpdateState_wifiTetheringIsDisallowed_stateIsUnavailable()128 when(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).thenReturn(false); in handleUpdateState_wifiTetheringIsDisallowed_stateIsUnavailable()
29 public class WifiEnterpriseRestrictionUtils { class
34 import com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils;164 WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mHost.getUserContext()); in handleUpdateState()
33 import com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils;126 .spyStatic(WifiEnterpriseRestrictionUtils.class) in setUp()128 when(WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(mContext)).thenReturn(true); in setUp()497 when(WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(mContext)).thenReturn(false); in updateDialog_disallowChangeWifiState_disableWifiSwitch()511 when(WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(mContext)).thenReturn(true); in updateDialog_allowChangeWifiState_enableWifiSwitch()
63 import com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils;211 mCanChangeWifiState = WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(context); in InternetDialogDelegate()