Home
last modified time | relevance | path

Searched refs:WifiEnterpriseRestrictionUtils (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiEnterpriseRestrictionUtilsTest.java69 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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DHotspotTileTest.java33 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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiEnterpriseRestrictionUtils.java29 public class WifiEnterpriseRestrictionUtils { class
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DHotspotTile.java34 import com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils;
164 WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mHost.getUserContext()); in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateTest.java33 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegate.java63 import com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils;
211 mCanChangeWifiState = WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(context); in InternetDialogDelegate()