Searched refs:isWifiTetheringAllowed (Results 1 – 4 of 4) sorted by relevance
163 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() argument182 if (!isWifiTetheringAllowed) { in getSecondaryLabel()
69 assertThat(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).isFalse(); in isWifiTetheringAllowed_hasDisallowRestriction_shouldReturnFalse()76 assertThat(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).isTrue(); in isWifiTetheringAllowed_noDisallowRestriction_shouldReturnTrue()
38 public static boolean isWifiTetheringAllowed(Context context) { in isWifiTetheringAllowed() method in WifiEnterpriseRestrictionUtils
113 when(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).thenReturn(true); in handleUpdateState_wifiTetheringIsAllowed_stateIsNotUnavailable()128 when(WifiEnterpriseRestrictionUtils.isWifiTetheringAllowed(mContext)).thenReturn(false); in handleUpdateState_wifiTetheringIsDisallowed_stateIsUnavailable()