/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ActiveModeWardenTest.java | 173 @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 …]
|
D | MultiInternetManagerTest.java | 68 @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()
|
D | WifiServiceImplTest.java | 416 @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/ |
D | ActiveModeWarden.java | 132 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 …]
|
D | WifiInjector.java | 176 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()
|
D | MultiInternetManager.java | 55 private final WifiSettingsStore mSettingsStore; field in MultiInternetManager 323 mSettingsStore = settingsStore; in MultiInternetManager() 328 mStaConcurrencyMultiInternetMode = mSettingsStore.getWifiMultiInternetMode(); in MultiInternetManager() 397 mSettingsStore.handleWifiMultiInternetMode(mode); in setStaConcurrencyForMultiInternetMode()
|
D | WakeupController.java | 77 private final WifiSettingsStore mSettingsStore; field in WakeupController 169 mSettingsStore = wifiInjector.getWifiSettingsStore(); in WakeupController() 242 && mSettingsStore.isScanAlwaysAvailableToggleEnabled() in isUsable()
|
D | WifiServiceImpl.java | 288 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/ |
D | PasspointManager.java | 139 private final WifiSettingsStore mSettingsStore; field in PasspointManager 405 mSettingsStore = wifiSettingsStore; in PasspointManager() 1715 mSettingsStore.handleWifiPasspointEnabled(enabled); in setWifiPasspointEnabled() 1737 mEnabled = mSettingsStore.isWifiPasspointEnabled(); in handleBootCompleted()
|