Home
last modified time | relevance | path

Searched refs:isWifiEnabled (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiStateWorkerTest.java110 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_wifiStateDisabling_returnFalse()
118 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_wifiStateDisabled_returnFalse()
126 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_wifiStateEnabling_returnFalse()
134 assertThat(mWifiStateWorker.isWifiEnabled()).isTrue(); in isWifiEnabled_wifiStateEnabled_returnTrue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegate.java370 final boolean isWifiEnabled = mInternetDialogController.isWifiEnabled(); in updateDialog()
372 updateWifiToggle(isWifiEnabled, isDeviceLocked); in updateDialog()
373 updateConnectedWifi(isWifiEnabled, isDeviceLocked); in updateDialog()
374 updateWifiListAndSeeAll(isWifiEnabled, isDeviceLocked); in updateDialog()
375 updateWifiScanNotify(isWifiEnabled, isWifiScanEnabled, isDeviceLocked); in updateDialog()
432 if (mInternetDialogController.isWifiEnabled() == isChecked) { in setWifiEnable()
462 boolean isWifiEnabled = mInternetDialogController.isWifiEnabled(); in setMobileDataLayout()
464 && (!isWifiEnabled || !isCarrierNetworkActive)) { in setMobileDataLayout()
582 private void updateWifiToggle(boolean isWifiEnabled, boolean isDeviceLocked) { in updateWifiToggle() argument
583 if (mWiFiToggle.isChecked() != isWifiEnabled) { in updateWifiToggle()
[all …]
DWifiStateWorker.java109 public boolean isWifiEnabled() { in isWifiEnabled() method in WifiStateWorker
DInternetDialogController.java388 if (mCanConfigWifi && !isWifiEnabled()) { in getSubtitleText()
815 public boolean isWifiEnabled() {
816 return mWifiStateWorker.isWifiEnabled();
1164 if (!isWifiEnabled() || isDeviceLocked()) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/connectivity/
DConnectivitySubsystemsRecoveryManager.java162 private boolean isWifiEnabled() { in isWifiEnabled() method in ConnectivitySubsystemsRecoveryManager
166 return mWifiManager != null && (mWifiManager.isWifiEnabled() in isWifiEnabled()
180 return isWifiEnabled(); in isRecoveryAvailable()
277 if (isWifiEnabled()) { in triggerSubsystemRestart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/
DWifiRepositorySwitcher.kt103 override val isWifiEnabled: StateFlow<Boolean> = in <lambda>() constant
105 .flatMapLatest { it.isWifiEnabled } in <lambda>()
106 .stateIn(scope, SharingStarted.WhileSubscribed(), realImpl.isWifiEnabled.value) in <lambda>()
DWifiRepository.kt27 val isWifiEnabled: StateFlow<Boolean> constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DWifiStateWorkerTest.java179 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_receiveWifiStateDisabling_returnFalse()
187 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_receiveWifiStateDisabled_returnFalse()
195 assertThat(mWifiStateWorker.isWifiEnabled()).isTrue(); in isWifiEnabled_receiveWifiStateEnabling_returnTrue()
203 assertThat(mWifiStateWorker.isWifiEnabled()).isTrue(); in isWifiEnabled_receiveWifiStateEnabled_returnTrue()
DInternetDialogDelegateTest.java123 when(mInternetDialogController.isWifiEnabled()).thenReturn(true); in setUp()
266 when(mInternetDialogController.isWifiEnabled()).thenReturn(false); in updateDialog_apmOnWithCarrierNetworkAndWifiStatus_mobileDataLayout()
275 when(mInternetDialogController.isWifiEnabled()).thenReturn(true); in updateDialog_apmOnWithCarrierNetworkAndWifiStatus_mobileDataLayout()
570 when(mInternetDialogController.isWifiEnabled()).thenReturn(false); in updateDialog_wifiOffAndWifiScanOff_hideWifiScanNotify()
580 when(mInternetDialogController.isWifiEnabled()).thenReturn(false); in updateDialog_wifiOffAndWifiScanOnAndDeviceLocked_hideWifiScanNotify()
591 when(mInternetDialogController.isWifiEnabled()).thenReturn(false); in updateDialog_wifiOffAndWifiScanOnAndDeviceUnlocked_showWifiScanNotify()
605 when(mInternetDialogController.isWifiEnabled()).thenReturn(false); in updateDialog_wifiIsDisabled_uncheckWifiSwitch()
615 when(mInternetDialogController.isWifiEnabled()).thenReturn(true); in updateDialog_wifiIsEnabled_checkWifiSwitch()
DInternetDialogDelegateControllerTest.java228 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in setUp()
369 when(mWifiStateWorker.isWifiEnabled()).thenReturn(false); in getSubtitleText_withApmOnAndWifiOff_returnWifiIsOff()
384 when(mWifiStateWorker.isWifiEnabled()).thenReturn(false); in getSubtitleText_withWifiOff_returnWifiIsOff()
399 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withNoWifiEntry_returnSearchWifi()
416 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withWifiEntry_returnTapToConnect()
431 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_deviceLockedWithWifiOn_returnUnlockToViewNetworks()
443 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withNoService_returnNoNetworksAvailable()
465 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withNoService_returnNoNetworksAvailable_flagOff()
485 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withMobileDataDisabled_returnNoOtherAvailable()
506 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withCarrierNetworkActiveOnly_returnNoOtherAvailable()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DCarrierMergedConnectionRepository.kt80 wifiRepository.isWifiEnabled, in <lambda>()
191 override val dataEnabled: StateFlow<Boolean> = wifiRepository.isWifiEnabled in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DDisabledWifiRepositoryTest.kt43 assertThat(underTest.isWifiEnabled.value).isEqualTo(false) in enabled_alwaysFalse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DDisabledWifiRepository.kt37 override val isWifiEnabled: StateFlow<Boolean> = MutableStateFlow(false).asStateFlow() constant in com.android.systemui.statusbar.pipeline.wifi.data.repository.prod.DisabledWifiRepository
DWifiRepositoryImpl.kt186 override val isWifiEnabled: StateFlow<Boolean> = in <lambda>() constant
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/
DFakeWifiRepository.kt29 override val isWifiEnabled: StateFlow<Boolean> = _isWifiEnabled constant in com.android.systemui.statusbar.pipeline.wifi.data.repository.FakeWifiRepository
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/
DWifiInteractor.kt94 override val isEnabled: Flow<Boolean> = wifiRepository.isWifiEnabled
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStateWorker.java152 public boolean isWifiEnabled() { in isWifiEnabled() method in WifiStateWorker
DWifiTracker.java312 if (isWifiEnabled()) { in resumeScanning()
443 public boolean isWifiEnabled() { in isWifiEnabled() method in WifiTracker
444 return mWifiManager != null && mWifiManager.isWifiEnabled(); in isWifiEnabled()
783 if (!isWifiEnabled()) { in updateNetworkInfo()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DConnectivitySetupRule.java105 return mWifiManager.isWifiEnabled() && mConnectivityManager.getActiveNetwork() != null
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java333 if (!mWifiManager.isWifiEnabled()) { in connectToWifiWithConfiguration()
363 if (!mWifiManager.isWifiEnabled()) { in disconnectAP()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/
DDemoWifiRepository.kt44 override val isWifiEnabled: StateFlow<Boolean> = _isWifiEnabled in <lambda>() constant in com.android.systemui.statusbar.pipeline.wifi.data.repository.demo.DemoWifiRepository
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImplTest.kt124 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_enabled_true()
135 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_enabling_false()
146 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_disabling_true()
157 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_disabled_false()
168 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_respondsToUpdates()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java99 if (!mWifiManager.isWifiEnabled()) { in setUp()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java557 if (!mWifiManager.isWifiEnabled()) { in connectToWifiWithConfiguration()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java182 when(mockWifiManager.isWifiEnabled()).thenReturn(true); in setUp()
933 when(mockWifiManager.isWifiEnabled()).thenReturn(false); in disablingWifiShouldClearExistingAccessPoints()

12