Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java147 @Mock WifiSettingsStore mSettingsStore; field in ActiveModeWardenTest
202 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(false); in setUp()
203 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in setUp()
204 when(mSettingsStore.isScanAlwaysAvailable()).thenReturn(false); in setUp()
274 mSettingsStore, in createActiveModeWarden()
317 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(true); in enterClientModeActiveState()
350 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in enterScanOnlyModeActiveState()
351 when(mSettingsStore.isScanAlwaysAvailable()).thenReturn(true); in enterScanOnlyModeActiveState()
352 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(false); in enterScanOnlyModeActiveState()
426 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(false); in enterStaDisabledMode()
[all …]
DWifiServiceImplTest.java319 @Mock WifiSettingsStore mSettingsStore; field in WifiServiceImplTest
448 when(mWifiInjector.getWifiSettingsStore()).thenReturn(mSettingsStore); in setUp()
683 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsPrivilegedApp()
684 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsPrivilegedApp()
709 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
710 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
728 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement()
729 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement()
743 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
744 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java106 private final WifiSettingsStore mSettingsStore; field in ActiveModeWarden
265 mSettingsStore = settingsStore; in ActiveModeWarden()
514 if (mSettingsStore.handleAirplaneModeToggled()) { in start()
1038 if (mSettingsStore.isWifiToggleEnabled()) { in getRoleForPrimaryOrScanOnlyClientModeManager()
1503 boolean isAirplaneModeOn = mSettingsStore.isAirplaneModeOn(); in start()
1504 boolean isWifiEnabled = mSettingsStore.isWifiToggleEnabled(); in start()
1505 boolean isScanningAlwaysAvailable = mSettingsStore.isScanAlwaysAvailable(); in start()
1527 mWifiMetrics.noteWifiEnabledDuringBoot(mSettingsStore.isWifiToggleEnabled()); in start()
1717 if (mSettingsStore.isAirplaneModeOn()) { in processMessage()
1747 && mSettingsStore.isScanAlwaysAvailable()) in shouldEnableScanOnlyMode()
[all …]
DWifiInjector.java156 private final WifiSettingsStore mSettingsStore; field in WifiInjector
377 mSettingsStore = new WifiSettingsStore(mContext, mSettingsConfigStore); in WifiInjector()
379 mWifiMetrics.setWifiSettingsStore(mSettingsStore); in WifiInjector()
438 mContext, mSettingsStore, mFrameworkFacade, mWifiPermissionsUtil, mWifiMetrics, in WifiInjector()
494 mSettingsStore, mActiveModeWarden, mFrameworkFacade); in WifiInjector()
634 return mSettingsStore; in getWifiSettingsStore()
749 ifaceName, mExternalScoreUpdateObserverProxy, mSettingsStore), in makeClientModeImpl()
DWifiServiceImpl.java202 private final WifiSettingsStore mSettingsStore; field in WifiServiceImpl
332 mSettingsStore = mWifiInjector.getWifiSettingsStore(); in WifiServiceImpl()
389 boolean wifiEnabled = mSettingsStore.isWifiToggleEnabled(); in checkAndStartWifi()
904 if (mSettingsStore.isAirplaneModeOn() && !isPrivileged) { in setWifiEnabled()
919 if (!mSettingsStore.handleWifiToggled(enable)) { in setWifiEnabled()
2262 mSettingsStore.handleWifiScanAlwaysAvailableToggled(isAvailable); in setScanAlwaysAvailable()
2282 return mSettingsStore.isScanAlwaysAvailableToggleEnabled(); in isScanAlwaysAvailable()
3808 mSettingsStore.isScanAlwaysAvailableToggleEnabled());
3846 mSettingsStore.dump(fd, pw, args);
5315 () -> mSettingsStore.handleWifiScoringEnabled(enabled), false);