Home
last modified time | relevance | path

Searched refs:isTetherAvailable (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DTetherPreferenceControllerTest.kt51 ExtendedMockito.doReturn(true).`when` { TetherUtil.isTetherAvailable(context) } in setUp()
61 ExtendedMockito.doReturn(true).`when` { TetherUtil.isTetherAvailable(context) } in getAvailabilityStatus_whenTetherAvailable()
70 ExtendedMockito.doReturn(false).`when` { TetherUtil.isTetherAvailable(context) } in getAvailabilityStatus_whenTetherNotAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSettingsTest.java153 when(mWifiRestriction.isTetherAvailable(mContext)).thenReturn(true); in setUp()
266 when(mWifiRestriction.isTetherAvailable(mContext)).thenReturn(true); in getNonIndexableKeys_tetherAvailable_keysNotReturned()
284 when(mWifiRestriction.isTetherAvailable(mContext)).thenReturn(false); in getNonIndexableKeys_tetherNotAvailable_keysReturned()
302 when(mWifiRestriction.isTetherAvailable(mContext)).thenReturn(true); in getNonIndexableKeys_hotspotNotAvailable_keysReturned()
320 when(mWifiRestriction.isTetherAvailable(mContext)).thenReturn(false); in getNonIndexableKeys_tetherAndHotspotNotAvailable_keysReturned()
337 when(mWifiRestriction.isTetherAvailable(mContext)).thenReturn(true); in getNonIndexableKeys_instantHotspotNotAvailableOnly_keysContainInstantHotspotOnly()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSettings.java370 if (!mWifiRestriction.isTetherAvailable(context) in getNonIndexableKeys()
407 public boolean isTetherAvailable(@Nullable Context context) { in isTetherAvailable() method in WifiTetherSettings.WifiRestriction
409 return TetherUtil.isTetherAvailable(context); in isTetherAvailable()
/packages/apps/Settings/src/com/android/settings/network/
DTetherPreferenceController.kt50 if (TetherUtil.isTetherAvailable(mContext)) AVAILABLE else CONDITIONALLY_UNAVAILABLE in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/network/tether/
DTetherSettings.java636 if (!TetherUtil.isTetherAvailable(context)) {
640 if (!canShowWifiHotspot(context) || !TetherUtil.isTetherAvailable(context)) {