Home
last modified time | relevance | path

Searched refs:mWifiGlobals (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiGlobalsTest.java43 private WifiGlobals mWifiGlobals; field in WifiGlobalsTest
57 mWifiGlobals = new WifiGlobals(mContext); in setUp()
63 assertEquals(3000, mWifiGlobals.getPollRssiIntervalMillis()); in testPollRssiIntervalIsSetCorrectly()
65 assertEquals(6000, mWifiGlobals.getPollRssiIntervalMillis()); in testPollRssiIntervalIsSetCorrectly()
67 assertEquals(6000, mWifiGlobals.getPollRssiIntervalMillis()); in testPollRssiIntervalIsSetCorrectly()
73 mWifiGlobals.setBluetoothEnabled(true); in verifyBluetoothStateAndConnectionStateChanges()
74 assertThat(mWifiGlobals.isBluetoothConnected()).isFalse(); in verifyBluetoothStateAndConnectionStateChanges()
76 mWifiGlobals.setBluetoothConnected(true); in verifyBluetoothStateAndConnectionStateChanges()
77 assertThat(mWifiGlobals.isBluetoothConnected()).isTrue(); in verifyBluetoothStateAndConnectionStateChanges()
79 mWifiGlobals.setBluetoothEnabled(false); in verifyBluetoothStateAndConnectionStateChanges()
[all …]
DWifiShellCommandTest.java93 @Mock WifiGlobals mWifiGlobals; field in WifiShellCommandTest
122 mWifiGlobals, mWifiThreadRunner); in setUp()
139 verify(mWifiGlobals, never()).setIpReachabilityDisconnectEnabled(anyBoolean()); in testSetIpReachDisconnect()
147 verify(mWifiGlobals).setIpReachabilityDisconnectEnabled(true); in testSetIpReachDisconnect()
152 verify(mWifiGlobals).setIpReachabilityDisconnectEnabled(false); in testSetIpReachDisconnect()
158 verifyNoMoreInteractions(mWifiGlobals); in testSetIpReachDisconnect()
168 verify(mWifiGlobals, never()).getIpReachabilityDisconnectEnabled(); in testGetIpReachDisconnect()
173 when(mWifiGlobals.getIpReachabilityDisconnectEnabled()).thenReturn(true); in testGetIpReachDisconnect()
177 verify(mWifiGlobals).getIpReachabilityDisconnectEnabled(); in testGetIpReachDisconnect()
181 when(mWifiGlobals.getIpReachabilityDisconnectEnabled()).thenReturn(false); in testGetIpReachDisconnect()
[all …]
DScanResultMatchInfoTest.java57 @Mock WifiGlobals mWifiGlobals; field in ScanResultMatchInfoTest
72 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
77 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
78 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
355 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(false); in testEqualityRulesForPskToSaeUpgradeWithOverlayDisable()
402 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(false); in testEqualityRulesForOpenToOweUpgradeWithOverlayDisable()
497 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(false); in testMatchBehaviorWithWpa3AutoUpgradeFlagStates()
535 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(false); in testMatchBehaviorWithOweAutoUpgradeFlagStates()
DWifiVendorHalTest.java206 private WifiGlobals mWifiGlobals; field in WifiVendorHalTest
443 mWifiVendorHal = new WifiVendorHal(mContext, mHalDeviceManager, mHandler, mWifiGlobals); in setUp()
899 when(mWifiGlobals.isWpa3SaeH2eSupported()).thenReturn(true); in testGetSupportedFeatures()
916 mWifiGlobals); in testGetSupportedFeatures()
955 mWifiGlobals); in testGetSupportedFeaturesForHalV1_3()
991 mWifiGlobals); in testGetSupportedFeaturesForHalV1_5()
1024 mWifiGlobals); in testGetSupportedFeaturesFromPackageManager()
1043 mWifiGlobals); in testGetStaFactoryMacWithHalV1_3()
1080 mWifiGlobals); in testLinkLayerStatsCorrectVersionWithHalV1_3()
1091 mWifiGlobals); in testLinkLayerStatsCorrectVersionWithHalV1_5()
[all …]
DWakeupEvaluatorTest.java69 @Mock private WifiGlobals mWifiGlobals; field in WakeupEvaluatorTest
109 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
110 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
111 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
DWifiNetworkSelectorTest.java112 mWifiGlobals, in setUp()
123 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
282 @Mock private WifiGlobals mWifiGlobals; field in WifiNetworkSelectorTest
338 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setupWifiGlobals()
339 when(mWifiGlobals.isWpa3SaeUpgradeOffloadEnabled()).thenReturn(true); in setupWifiGlobals()
340 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setupWifiGlobals()
2105 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in testSaeAutoUpgradeWithPskNetworkWhenAutoUpgradeEnabled()
2106 when(mWifiGlobals.isWpa3SaeUpgradeOffloadEnabled()).thenReturn(true); in testSaeAutoUpgradeWithPskNetworkWhenAutoUpgradeEnabled()
2130 when(mWifiGlobals.isWpa3SaeUpgradeOffloadEnabled()).thenReturn(false); in testSaeAutoUpgradeWithPskNetworkWhenAutoUpgradeEnabled()
2155 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(false); in testSaeNoAutoUpgradeWithPskNetworkWhenAutoUpgradeDisabled()
[all …]
DConfigurationMapTest.java90 @Mock WifiGlobals mWifiGlobals; field in ConfigurationMapTest
107 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
111 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
112 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
DSavedNetworkNominatorTest.java62 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
66 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
67 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
112 private @Mock WifiGlobals mWifiGlobals; field in SavedNetworkNominatorTest
DWifiCandidatesTest.java57 @Mock WifiGlobals mWifiGlobals; field in WifiCandidatesTest
82 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
87 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
88 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
DScoredNetworkNominatorTest.java83 @Mock private WifiGlobals mWifiGlobals; field in ScoredNetworkNominatorTest
103 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
108 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
109 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
DSupplicantStaNetworkHalTest.java96 @Mock private WifiGlobals mWifiGlobals; field in SupplicantStaNetworkHalTest
188 when(mWifiGlobals.isWpa3SaeUpgradeOffloadEnabled()).thenReturn(true); in setUp()
961 when(mWifiGlobals.isWpa3SaeUpgradeOffloadEnabled()).thenReturn(false); in testAddPskSaeAkmWhenAutoUpgradeOffloadIsNotSupported()
1238 when(mWifiGlobals.isWpa3SaeH2eSupported()).thenReturn(true); in testEnableSaeH2eOnlyMode()
1256 when(mWifiGlobals.isWpa3SaeH2eSupported()).thenReturn(true); in testDisableSaeH2eOnlyMode()
1274 when(mWifiGlobals.isWpa3SaeH2eSupported()).thenReturn(false); in testDisableSaeH2eOnlyModeWhenH2eNotSupported()
1292 when(mWifiGlobals.isWpa3SaeH2eSupported()).thenReturn(true); in testSaeH2eOnlyModeWithHal1_3OrLower()
2294 mWifiGlobals, mAdvanceKeyMgmtFeatures); in createSupplicantStaNetwork()
2299 mWifiGlobals, mAdvanceKeyMgmtFeatures); in createSupplicantStaNetwork()
2304 mWifiGlobals, mAdvanceKeyMgmtFeatures); in createSupplicantStaNetwork()
[all …]
DClientModeImplTest.java463 @Mock WifiGlobals mWifiGlobals; field in ClientModeImplTest
542 mWifiInfo = new ExtendedWifiInfo(mWifiGlobals, WIFI_IFACE_NAME); in setUp()
544 when(mWifiGlobals.isConnectedMacRandomizationEnabled()).thenReturn(true); in setUp()
553 when(mWifiGlobals.getPollRssiIntervalMillis()).thenReturn(3000); in setUp()
554 when(mWifiGlobals.getIpReachabilityDisconnectEnabled()).thenReturn(true); in setUp()
578 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
579 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
580 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
581 when(mWifiGlobals.getClientModeImplNumLogRecs()).thenReturn(100); in setUp()
682 mWifiScoreReport, mWifiP2pConnection, mWifiGlobals, in initializeCmi()
[all …]
DWakeupControllerTest.java98 @Mock private WifiGlobals mWifiGlobals; field in WakeupControllerTest
129 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
130 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(true); in setUp()
131 when(mWifiGlobals.isOweUpgradeEnabled()).thenReturn(true); in setUp()
DConcreteClientModeManagerTest.java114 @Mock WifiGlobals mWifiGlobals; field in ConcreteClientModeManagerTest
257 mWifiGlobals, mDefaultClientModeManager, 0, TEST_WORKSOURCE, role, in createClientModeManager()
578 when(mWifiGlobals.isConnectedMacRandomizationEnabled()).thenReturn(false); in clientModeStartedStopsWhenInterfaceDown()
598 when(mWifiGlobals.isConnectedMacRandomizationEnabled()).thenReturn(true); in clientModeStartedWithConnectedMacRandDoesNotStopWhenInterfaceDown()
DWifiServiceImplTest.java371 @Mock WifiGlobals mWifiGlobals; field in WifiServiceImplTest
479 when(mWifiInjector.getWifiGlobals()).thenReturn(mWifiGlobals); in setUp()
1452 verify(mWifiGlobals).setShowKeyVerboseLoggingModeEnabled(eq(false)); in testWifiVerboseLoggingInitialization()
4546 verify(mWifiGlobals).setShowKeyVerboseLoggingModeEnabled(eq(true)); in testEnableShowKeyVerboseLoggingWithNetworkSettingsPermission()
4551 verify(mWifiGlobals).setShowKeyVerboseLoggingModeEnabled(eq(false)); in testEnableShowKeyVerboseLoggingWithNetworkSettingsPermission()
5249 verify(mWifiGlobals).setBluetoothConnected(false); in testBluetoothBroadcastHandling()
5262 verify(mWifiGlobals).setBluetoothConnected(true); in testBluetoothBroadcastHandling()
5274 verify(mWifiGlobals).setBluetoothEnabled(false); in testBluetoothBroadcastHandling()
5286 verify(mWifiGlobals).setBluetoothEnabled(true); in testBluetoothBroadcastHandling()
8144 when(mWifiGlobals.isWpa3SaeUpgradeEnabled()).thenReturn(saeAutoUpgradeEnabled); in setupMultiTypeConfigs()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DExtendedWifiInfo.java32 private final WifiGlobals mWifiGlobals; field in ExtendedWifiInfo
39 mWifiGlobals = wifiGlobals; in ExtendedWifiInfo()
48 if (mWifiGlobals.isConnectedMacRandomizationEnabled()) { in reset()
DWifiInjector.java226 private final WifiGlobals mWifiGlobals; field in WifiInjector
260 mWifiGlobals = new WifiGlobals(mContext); in WifiInjector()
299 mWifiVendorHal = new WifiVendorHal(mContext, mHalDeviceManager, wifiHandler, mWifiGlobals); in WifiInjector()
302 mWifiGlobals); in WifiInjector()
392 mThroughputPredictor, mWifiChannelUtilizationScan, mWifiGlobals, in WifiInjector()
466 mActiveModeWarden, mWifiGlobals); in WifiInjector()
723 ExtendedWifiInfo wifiInfo = new ExtendedWifiInfo(mWifiGlobals, ifaceName); in makeClientModeImpl()
750 mWifiP2pConnection, mWifiGlobals, ifaceName, clientModeManager, in makeClientModeImpl()
779 this, mSelfRecovery, mWifiGlobals, mDefaultClientModeManager, in makeClientModeManager()
1018 return mWifiGlobals; in getWifiGlobals()
DWifiNetworkSelector.java109 private final WifiGlobals mWifiGlobals; field in WifiNetworkSelector
952 if (!mWifiGlobals.isWpa3SaeUpgradeOffloadEnabled()) { in removeSecurityParamsIfNecessary()
958 mWifiGlobals.isWpa3SaeUpgradeEnabled()); in removeSecurityParamsIfNecessary()
965 mWifiGlobals.isOweUpgradeEnabled()); in removeSecurityParamsIfNecessary()
1198 mWifiGlobals.isBluetoothConnected()); in predictThroughput()
1284 mWifiGlobals = wifiGlobals; in WifiNetworkSelector()
DWifiShellCommand.java144 private final WifiGlobals mWifiGlobals; field in WifiShellCommand
204 mWifiGlobals = wifiGlobals; in WifiShellCommand()
245 mWifiGlobals.setIpReachabilityDisconnectEnabled(enabled); in onCommand()
250 + mWifiGlobals.getIpReachabilityDisconnectEnabled()); in onCommand()
270 mWifiGlobals.setPollRssiIntervalMillis(newPollIntervalMsecs); in onCommand()
274 + mWifiGlobals.getPollRssiIntervalMillis()); in onCommand()
DClientModeImpl.java241 private final WifiGlobals mWifiGlobals; field in ClientModeImpl
748 mWifiGlobals = wifiGlobals; in ClientModeImpl()
1107 setLogRecSize(mWifiGlobals.getClientModeImplNumLogRecs()); in enableVerboseLogging()
2668 if (!mWifiGlobals.isBluetoothConnected()) {
3207 if (mWifiGlobals.isConnectedMacRandomizationEnabled()) {
3228 mInterfaceName, mWifiGlobals.isBluetoothConnected());
3701 mInterfaceName, mWifiGlobals.isBluetoothConnected());
4244 if (mWifiGlobals.isConnectedMacRandomizationEnabled()) {
4997 if (mWifiGlobals.getIpReachabilityDisconnectEnabled()) {
5052 mWifiGlobals.getPollRssiIntervalMillis());
[all …]
DConcreteClientModeManager.java116 private final WifiGlobals mWifiGlobals; field in ConcreteClientModeManager
182 mWifiGlobals = wifiGlobals; in ConcreteClientModeManager()
1065 if (mWifiGlobals.isConnectedMacRandomizationEnabled() in processMessage()
DWifiServiceImpl.java217 private final WifiGlobals mWifiGlobals; field in WifiServiceImpl
361 mWifiGlobals = wifiInjector.getWifiGlobals(); in WifiServiceImpl()
531 mWifiGlobals.setBluetoothConnected(isConnected); in handleBootCompleted()
539 mWifiGlobals.setBluetoothEnabled(isEnabled); in handleBootCompleted()
3791 mWifiGlobals, mWifiThreadRunner);
4030 mWifiGlobals.setShowKeyVerboseLoggingModeEnabled(true);
4035 mWifiGlobals.setShowKeyVerboseLoggingModeEnabled(false);
DWifiConnectivityManager.java154 private final WifiGlobals mWifiGlobals; field in WifiConnectivityManager
1037 mWifiGlobals = wifiGlobals; in WifiConnectivityManager()
2525 if (mWifiGlobals.flushAnqpCacheOnWifiToggleOffEvent()) { in setWifiEnabled()
DSupplicantStaNetworkHal.java96 private final WifiGlobals mWifiGlobals; field in SupplicantStaNetworkHal
145 mWifiGlobals = wifiGlobals; in SupplicantStaNetworkHal()
449 if (!mWifiGlobals.isWpa3SaeH2eSupported() && securityParams.isSaeH2eOnlyMode()) { in saveWifiConfiguration()
453 byte mode = mWifiGlobals.isWpa3SaeH2eSupported() in saveWifiConfiguration()
3831 || !mWifiGlobals.isWpa3SaeUpgradeOffloadEnabled()) { in addPskSaeUpgradableTypeFlagsIfSupported()
DSupplicantStaIfaceHal.java135 private final WifiGlobals mWifiGlobals; field in SupplicantStaIfaceHal
201 mWifiGlobals = wifiGlobals; in SupplicantStaIfaceHal()
1395 mWifiMonitor, mWifiGlobals, getAdvancedCapabilities(ifaceName)); in getStaNetworkMockable()
2600 turnOnVerbose && mWifiGlobals.getShowKeyVerboseLoggingModeEnabled()); in setLogLevel()

12