Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/wifi/
DWifiAPITest.java21 import static com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed;
81 boolean isChangeWifiStateAllowed = isChangeWifiStateAllowed(context); in onCreatePreferences()
86 mWifiDisconnect.setEnabled(isChangeWifiStateAllowed); in onCreatePreferences()
87 if (isChangeWifiStateAllowed) { in onCreatePreferences()
94 mWifiDisableNetwork.setEnabled(isChangeWifiStateAllowed); in onCreatePreferences()
95 if (isChangeWifiStateAllowed) { in onCreatePreferences()
102 mWifiEnableNetwork.setEnabled(isChangeWifiStateAllowed); in onCreatePreferences()
103 if (isChangeWifiStateAllowed) { in onCreatePreferences()
/packages/apps/Settings/src/com/android/settings/network/
DWifiSwitchPreferenceController.java19 import static com.android.settingslib.wifi.WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed;
60 mIsChangeWifiStateAllowed = isChangeWifiStateAllowed(context); in WifiSwitchPreferenceController()
DNetworkProviderSettings.java1313 if (!mWifiRestriction.isChangeWifiStateAllowed(context)) { in getNonIndexableKeys()
1336 public boolean isChangeWifiStateAllowed(@Nullable Context context) { in isChangeWifiStateAllowed() method in NetworkProviderSettings.WifiRestriction
1338 return WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(context); in isChangeWifiStateAllowed()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSlice.java224 if (!mWifiRestriction.isChangeWifiStateAllowed(mContext)) { in getHeaderRow()
236 if (!isWiFiPermissionGranted || !mWifiRestriction.isChangeWifiStateAllowed(mContext) in getListBuilder()
423 public boolean isChangeWifiStateAllowed(@Nullable Context context) { in isChangeWifiStateAllowed() method in WifiSlice.WifiRestriction
425 return WifiEnterpriseRestrictionUtils.isChangeWifiStateAllowed(context); in isChangeWifiStateAllowed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java113 when(mWifiRestriction.isChangeWifiStateAllowed(mContext)).thenReturn(true); in setUp()
309 when(mWifiRestriction.isChangeWifiStateAllowed(mContext)).thenReturn(false); in getWifiSlice_disallowedChangeWifiState_addSubtitleAndNoToggle()
321 when(mWifiRestriction.isChangeWifiStateAllowed(mContext)).thenReturn(true); in getWifiSlice_allowedChangeWifiState_noSubtitleAndAddToggle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DNetworkProviderSettingsTest.java822 when(mWifiRestriction.isChangeWifiStateAllowed(mContext)).thenReturn(true); in getNonIndexableKeys_allowedChangeWifiState_keyNotReturned()
833 when(mWifiRestriction.isChangeWifiStateAllowed(mContext)).thenReturn(false); in getNonIndexableKeys_disallowedChangeWifiState_keyReturned()