Home
last modified time | relevance | path

Searched refs:isWifiTetheringAllowed (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DHotspotTile.java163 final boolean isWifiTetheringAllowed = in handleUpdateState()
164 WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mHost.getUserContext()); in handleUpdateState()
165 final boolean isTileUnavailable = isDataSaverEnabled || !isWifiTetheringAllowed; in handleUpdateState()
175 numConnectedDevices, isWifiTetheringAllowed); in handleUpdateState()
181 boolean isDataSaverEnabled, int numConnectedDevices, boolean isWifiTetheringAllowed) { in getSecondaryLabel() argument
182 if (!isWifiTetheringAllowed) { in getSecondaryLabel()
/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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiEnterpriseRestrictionUtils.java38 public static boolean isWifiTetheringAllowed(Context context) { in isWifiTetheringAllowed() method in WifiEnterpriseRestrictionUtils
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DHotspotTileTest.java113 when(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).thenReturn(true); in handleUpdateState_wifiTetheringIsAllowed_stateIsNotUnavailable()
128 when(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).thenReturn(false); in handleUpdateState_wifiTetheringIsDisallowed_stateIsUnavailable()