Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiController.java66 private final WifiSettingsStore mSettingsStore; field in WifiController
114 mSettingsStore = wss; in WifiController()
138 boolean isAirplaneModeOn = mSettingsStore.isAirplaneModeOn(); in start()
139 boolean isWifiEnabled = mSettingsStore.isWifiToggleEnabled(); in start()
140 boolean isScanningAlwaysAvailable = mSettingsStore.isScanAlwaysAvailable(); in start()
188 return mSettingsStore.isScanAlwaysAvailable(); in checkScanOnlyModeAvailable()
283 if (mSettingsStore.isAirplaneModeOn()) { in processMessage()
289 if (mSettingsStore.isWifiToggleEnabled()) { in processMessage()
305 if (mSettingsStore.isWifiToggleEnabled()) { in processMessage()
337 if (mSettingsStore.isWifiToggleEnabled()) { in processMessage()
[all …]
DWifiInjector.java103 private final WifiSettingsStore mSettingsStore; field in WifiInjector
173 mSettingsStore = new WifiSettingsStore(mContext); in WifiInjector()
330 mSettingsStore, mWifiServiceHandlerThread.getLooper(), mFrameworkFacade, in WifiInjector()
447 return mSettingsStore; in getWifiSettingsStore()
DWifiServiceImpl.java182 final WifiSettingsStore mSettingsStore; field in WifiServiceImpl
465 mSettingsStore = mWifiInjector.getWifiSettingsStore(); in WifiServiceImpl()
519 boolean wifiEnabled = mSettingsStore.isWifiToggleEnabled(); in checkAndStartWifi()
528 if (mSettingsStore.handleAirplaneModeToggled()) { in checkAndStartWifi()
531 if (mSettingsStore.isAirplaneModeOn()) { in checkAndStartWifi()
884 if (mSettingsStore.isAirplaneModeOn() && !isPrivileged) { in setWifiEnabled()
900 if (!mSettingsStore.handleWifiToggled(enable)) { in setWifiEnabled()
1647 return mSettingsStore.isScanAlwaysAvailable(); in isScanAlwaysAvailable()
2651 mSettingsStore.handleWifiScanAlwaysAvailableToggled(); in registerForScanModeChange()
2757 mSettingsStore.dump(fd, pw, args); in dump()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiControllerTest.java87 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in initializeSettingsStore()
88 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(false); in initializeSettingsStore()
89 when(mSettingsStore.isScanAlwaysAvailable()).thenReturn(false); in initializeSettingsStore()
96 @Mock WifiSettingsStore mSettingsStore; field in WifiControllerTest
123 mSettingsStore, mLooper.getLooper(), mFacade, mActiveModeWarden, in setUp()
157 when(mSettingsStore.isWifiToggleEnabled()).thenReturn(true); in enableWifi()
168 when(mSettingsStore.isScanAlwaysAvailable()).thenReturn(true); in enableScanMode()
179 when(mSettingsStore.isScanAlwaysAvailable()).thenReturn(true); in testEnterScanModeAtStartWhenSet()
186 mSettingsStore, mLooper.getLooper(), mFacade, in testEnterScanModeAtStartWhenSet()
202 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testDoesNotEnterScanModeWhenLocationModeDisabled()
[all …]
DWifiServiceImplTest.java233 @Mock WifiSettingsStore mSettingsStore; field in WifiServiceImplTest
376 when(mWifiInjector.getWifiSettingsStore()).thenReturn(mSettingsStore); in setUp()
529 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsPrivilegedApp()
530 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsPrivilegedApp()
548 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
549 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppBelowQSDK()
567 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement()
568 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement()
582 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
583 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledSuccessWithNetworkSettingsPermission()
[all …]