Searched refs:mSettingsStore (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiController.java | 66 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 …]
|
D | WifiInjector.java | 105 private final WifiSettingsStore mSettingsStore; field in WifiInjector 181 mSettingsStore = new WifiSettingsStore(mContext); in WifiInjector() 339 mSettingsStore, mWifiServiceHandlerThread.getLooper(), mFrameworkFacade, in WifiInjector() 456 return mSettingsStore; in getWifiSettingsStore()
|
D | WifiServiceImpl.java | 183 final WifiSettingsStore mSettingsStore; field in WifiServiceImpl 466 mSettingsStore = mWifiInjector.getWifiSettingsStore(); in WifiServiceImpl() 520 boolean wifiEnabled = mSettingsStore.isWifiToggleEnabled(); in checkAndStartWifi() 529 if (mSettingsStore.handleAirplaneModeToggled()) { in checkAndStartWifi() 913 if (mSettingsStore.isAirplaneModeOn() && !isPrivileged) { in setWifiEnabled() 934 if (!mSettingsStore.handleWifiToggled(enable)) { in setWifiEnabled() 1694 return mSettingsStore.isScanAlwaysAvailable(); in isScanAlwaysAvailable() 2695 mSettingsStore.handleWifiScanAlwaysAvailableToggled(); in registerForScanModeChange() 2801 mSettingsStore.dump(fd, pw, args); in dump()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiControllerTest.java | 87 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 …]
|
D | WifiServiceImplTest.java | 239 @Mock WifiSettingsStore mSettingsStore; field in WifiServiceImplTest 383 when(mWifiInjector.getWifiSettingsStore()).thenReturn(mSettingsStore); in setUp() 536 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsPrivilegedApp() 537 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsPrivilegedApp() 555 when(mSettingsStore.handleWifiToggled(anyBoolean())).thenReturn(true); in testSetWifiEnabledMetricsNormalAppBelowQSDK() 556 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppBelowQSDK() 574 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement() 575 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement() 589 when(mSettingsStore.handleWifiToggled(eq(true))).thenReturn(true); in testSetWifiEnabledSuccessWithNetworkSettingsPermission() 590 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testSetWifiEnabledSuccessWithNetworkSettingsPermission() [all …]
|