Searched refs:isTetherAvailable (Results 1 – 5 of 5) sorted by relevance
51 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()
153 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()
370 if (!mWifiRestriction.isTetherAvailable(context) in getNonIndexableKeys()407 public boolean isTetherAvailable(@Nullable Context context) { in isTetherAvailable() method in WifiTetherSettings.WifiRestriction409 return TetherUtil.isTetherAvailable(context); in isTetherAvailable()
50 if (TetherUtil.isTetherAvailable(mContext)) AVAILABLE else CONDITIONALLY_UNAVAILABLE in getAvailabilityStatus()
636 if (!TetherUtil.isTetherAvailable(context)) {640 if (!canShowWifiHotspot(context) || !TetherUtil.isTetherAvailable(context)) {