Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java173 @Mock WifiSettingsStore mSettingsStore; field in ActiveModeWardenTest
241 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(false); in setUp()
242 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in setUp()
243 when(mSettingsStore.isScanAlwaysAvailable()).thenReturn(false); in setUp()
322 mSettingsStore, in createActiveModeWarden()
381 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(true); in enterClientModeActiveState()
426 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in enterScanOnlyModeActiveState()
427 when(mSettingsStore.isScanAlwaysAvailable()).thenReturn(true); in enterScanOnlyModeActiveState()
428 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(false); in enterScanOnlyModeActiveState()
506 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(false); in enterStaDisabledMode()
[all …]
DMultiInternetManagerTest.java68 @Mock private WifiSettingsStore mSettingsStore; field in MultiInternetManagerTest
183 mContext, mCmiMonitor, mSettingsStore, mTestHandler, mClock); in setUp()
224 verify(mSettingsStore, never()).handleWifiMultiInternetMode( in testSetMultiInternetStateWhenFeatureDisabled()
240 verify(mSettingsStore).handleWifiMultiInternetMode( in testSetMultiInternetStateWhenFeatureEnabled()
249 verify(mSettingsStore).handleWifiMultiInternetMode( in testSetMultiInternetStateWhenFeatureEnabled()
262 verify(mSettingsStore).handleWifiMultiInternetMode( in testSetMultiInternetConnectionWorksource()
285 verify(mSettingsStore).handleWifiMultiInternetMode( in testSetMultiInternetConnectionWorksourceOnTwoBands()
DWifiServiceImplTest.java416 @Mock WifiSettingsStore mSettingsStore; field in WifiServiceImplTest
600 when(mWifiInjector.getWifiSettingsStore()).thenReturn(mSettingsStore); in setUp()
889 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsPrivilegedApp()
890 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsPrivilegedApp()
919 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
920 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppBelowQSdk()
941 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement()
942 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement()
958 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
959 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java132 private final WifiSettingsStore mSettingsStore; field in ActiveModeWarden
396 mSettingsStore = settingsStore; in ActiveModeWarden()
690 boolean airplaneModeUpdated = mSettingsStore.updateAirplaneModeTracker(); in start()
696 mSettingsStore.handleAirplaneModeToggled(); in start()
1381 if (mSettingsStore.isWifiToggleEnabled()) { in getRoleForPrimaryOrScanOnlyClientModeManager()
1936 boolean isAirplaneModeOn = mSettingsStore.isAirplaneModeOn(); in start()
1937 boolean isWifiEnabled = mSettingsStore.isWifiToggleEnabled(); in start()
1938 boolean isScanningAlwaysAvailable = mSettingsStore.isScanAlwaysAvailable(); in start()
1940 boolean isSatelliteModeOn = mSettingsStore.isSatelliteModeOn(); in start()
1962 mWifiMetrics.noteWifiEnabledDuringBoot(mSettingsStore.isWifiToggleEnabled()); in start()
[all …]
DWifiInjector.java176 private final WifiSettingsStore mSettingsStore; field in WifiInjector
445 mSettingsStore = new WifiSettingsStore(mContext, mSettingsConfigStore, mWifiThreadRunner, in WifiInjector()
449 mWifiMetrics.setWifiSettingsStore(mSettingsStore); in WifiInjector()
480 mWifiConfigManager, mWifiConfigStore, mSettingsStore, mWifiMetrics, in WifiInjector()
505 mContext, mSettingsStore, mFrameworkFacade, mWifiPermissionsUtil, mWifiMetrics, in WifiInjector()
527 mContext, mCmiMonitor, mSettingsStore, wifiHandler, mClock); in WifiInjector()
579 mSettingsStore, mActiveModeWarden, mFrameworkFacade); in WifiInjector()
754 return mSettingsStore; in getWifiSettingsStore()
893 ifaceName, mExternalScoreUpdateObserverProxy, mSettingsStore, mWifiGlobals, in makeClientModeImpl()
DMultiInternetManager.java55 private final WifiSettingsStore mSettingsStore; field in MultiInternetManager
323 mSettingsStore = settingsStore; in MultiInternetManager()
328 mStaConcurrencyMultiInternetMode = mSettingsStore.getWifiMultiInternetMode(); in MultiInternetManager()
397 mSettingsStore.handleWifiMultiInternetMode(mode); in setStaConcurrencyForMultiInternetMode()
DWakeupController.java77 private final WifiSettingsStore mSettingsStore; field in WakeupController
169 mSettingsStore = wifiInjector.getWifiSettingsStore(); in WakeupController()
242 && mSettingsStore.isScanAlwaysAvailableToggleEnabled() in isUsable()
DWifiServiceImpl.java288 private final WifiSettingsStore mSettingsStore; field in WifiServiceImpl
531 mSettingsStore = mWifiInjector.getWifiSettingsStore(); in WifiServiceImpl()
602 boolean wifiEnabled = mSettingsStore.isWifiToggleEnabled(); in checkAndStartWifi()
1284 if (mSettingsStore.isSatelliteModeOn()) { in setWifiEnabled()
1290 if (mSettingsStore.isAirplaneModeOn() && !isPrivileged) { in setWifiEnabled()
1345 if (!mSettingsStore.handleWifiToggled(enable)) { in setWifiEnabledInternal()
3071 mSettingsStore.handleWifiScanAlwaysAvailableToggled(isAvailable); in setScanAlwaysAvailable()
3091 return mSettingsStore.isScanAlwaysAvailableToggleEnabled(); in isScanAlwaysAvailable()
5493 mSettingsStore.isScanAlwaysAvailableToggleEnabled());
5537 mSettingsStore.dump(fd, pw, args);
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java139 private final WifiSettingsStore mSettingsStore; field in PasspointManager
405 mSettingsStore = wifiSettingsStore; in PasspointManager()
1715 mSettingsStore.handleWifiPasspointEnabled(enabled); in setWifiPasspointEnabled()
1737 mEnabled = mSettingsStore.isWifiPasspointEnabled(); in handleBootCompleted()