Home
last modified time | relevance | path

Searched refs:ROLE_CLIENT_PRIMARY (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DMakeBeforeBreakManagerTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
69 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()
98 when(mNewPrimaryCmm.getPreviousRole()).thenReturn(ROLE_CLIENT_PRIMARY); in onL3ValidatedSecondaryTransientThatWasPreviouslyPrimary_noOp()
117 verify(mNewPrimaryCmm).setRole(ROLE_CLIENT_PRIMARY, mSettingsWorkSource); in onL3Validated_noPrimary_immediatelyMakeValidatedNetworkPrimary()
133 verify(mNewPrimaryCmm).setRole(ROLE_CLIENT_PRIMARY, mSettingsWorkSource); in makeBeforeBreakSuccess()
145 when(mNewPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared()
250 verify(mNewPrimaryCmm).setRole(ROLE_CLIENT_PRIMARY, mSettingsWorkSource); in recovery()
274 verify(mNewPrimaryCmm).setRole(ROLE_CLIENT_PRIMARY, mSettingsWorkSource); in captivePortalDetected_disconnectOldPrimary_makeCaptivePortalPrimary()
324 verify(mNewPrimaryCmm).setRole(ROLE_CLIENT_PRIMARY, mSettingsWorkSource); in onInternetValidationSuccessful()
367 verify(mNewPrimaryCmm).setRole(ROLE_CLIENT_PRIMARY, mSettingsWorkSource); in onInternetValidationFailedWhenLingering()
[all …]
DClientModeManagerBroadcastQueueTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
64 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()
112 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()
129 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()
134 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()
160 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_clientModeManagerRemoved_queueCleared()
DWifiNetworkSelectorTest.java22 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
557 false, ROLE_CLIENT_PRIMARY)), in emptyScanResults()
591 false, ROLE_CLIENT_PRIMARY)), in verifyMinimumRssiThreshold()
628 false, ROLE_CLIENT_PRIMARY)), in verifyMinimumTimeGapWhenConnected()
640 false, ROLE_CLIENT_PRIMARY)), in verifyMinimumTimeGapWhenConnected()
682 false, ROLE_CLIENT_PRIMARY)), in verifyNoMinimumTimeGapWhenDisconnected()
694 false, ROLE_CLIENT_PRIMARY)), in verifyNoMinimumTimeGapWhenDisconnected()
734 false, ROLE_CLIENT_PRIMARY)), in lowRssi5GNetworkIsNotSufficient()
752 false, ROLE_CLIENT_PRIMARY)), in lowRssi5GNetworkIsNotSufficient()
794 false, ROLE_CLIENT_PRIMARY)), in noInternetAccessNetworkIsNotSufficient()
[all …]
DActiveModeWardenTest.java25 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
227 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()
386 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in enterClientModeActiveState()
396 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in enterClientModeActiveState()
398 verify(mClientModeManager).setRole(ROLE_CLIENT_PRIMARY, SETTINGS_WORKSOURCE); in enterClientModeActiveState()
809 assertTrue(currentCMMs.stream().anyMatch(cmm -> cmm.getRole() == ROLE_CLIENT_PRIMARY)); in testSwitchFromConnectModeToScanOnlyModeRemovesAdditionalCMMs()
838 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in testToggleWifiWithOnlySecondaryCmmsCreatesPrimaryOrScanOnlyCmm()
846 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in testToggleWifiWithOnlySecondaryCmmsCreatesPrimaryOrScanOnlyCmm()
864 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in testToggleWifiWithOnlySecondaryCmmsCreatesPrimaryOrScanOnlyCmm()
871 any(), eq(TEST_WORKSOURCE), eq(ROLE_CLIENT_PRIMARY), anyBoolean()); in testPrimaryNotCreatedTwice()
[all …]
DConcreteClientModeManagerTest.java29 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
305 mClientModeManager = createClientModeManager(ROLE_CLIENT_PRIMARY); in startClientInConnectModeAndVerifyEnabled()
434 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in switchFromScanOnlyModeToConnectMode()
565 mClientModeManager = createClientModeManager(ROLE_CLIENT_PRIMARY); in detectAndReportErrorWhenSetupForClientInConnectivityModeWifiNativeFailure()
589 mClientModeManager = createClientModeManager(ROLE_CLIENT_PRIMARY); in detectAndReportErrorWhenSetupInterfaceForClientInScanModeWifiNativeFailure()
607 mClientModeManager = createClientModeManager(ROLE_CLIENT_PRIMARY); in clientModeStopBeforeStartCleansUpState()
1429 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in stayAtConnectedModeWithWifiOffDeferringTimeAndWifiCallingTimedOutMultipleSwitch()
1433 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in stayAtConnectedModeWithWifiOffDeferringTimeAndWifiCallingTimedOutMultipleSwitch()
1498 assertEquals(ActiveModeManager.ROLE_CLIENT_PRIMARY, mClientModeManager.getRole()); in clientInConnectModeChangeRoles()
1499 mClientModeManager.setRole(ActiveModeManager.ROLE_CLIENT_PRIMARY, TEST_WORKSOURCE); in clientInConnectModeChangeRoles()
[all …]
DWifiMulticastLockManagerTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
74 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()
165 when(mClientModeManager2.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in oneLock_changePrimaryClientModeManager()
DMultiInternetManagerTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
163 when(mPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()
174 when(mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_PRIMARY)) in setUp()
DWifiCountryCodeTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
144 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()
274 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in telephonyCountryCodeChangeAfterSupplicantStarts()
299 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in telephonyCountryCodeChangeAfterSupplicantStop()
DVelocityBasedConnectedScoreTest.java94 mVelocityBasedConnectedScore.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp()
DWifiDataStallTest.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
345 when(cmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in verifyDataStallTxFailureAfterConnectionEnd()
DWifiScoreReportTest.java265 mWifiScoreReport.onRoleChanged(mIsPrimary ? ActiveModeManager.ROLE_CLIENT_PRIMARY in setUp()
379 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in mbbNetworkForceKeepUp()
400 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in calculateAndReportScoreWhileLingering_sendLingeringScore()
431 mWifiScoreReport.onRoleChanged(ActiveModeManager.ROLE_CLIENT_PRIMARY); in calculateAndReportScoreWhileLingering_sendLingeringScore()
DWifiNetworkFactoryTest.java281 when(mPrimaryClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp()
290 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp()
2305 when(primaryCmm.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testMetricsUpdateForConcurrentConnections()
3565 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testShareConnectedNetworkWithoutCarModePriority()
3633 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testShareConnectedNetworkWithCarModePriority()
3779 if (mClientModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in sendNetworkRequestAndSetupForConnectionStatus()
3791 if (mClientModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in sendNetworkRequestAndSetupForConnectionStatus()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DMakeBeforeBreakManager.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
282 manager.setRole(ROLE_CLIENT_PRIMARY, mFrameworkFacade.getSettingsWorkSource(mContext)); in recoverPrimary()
318 ROLE_CLIENT_PRIMARY, mFrameworkFacade.getSettingsWorkSource(mContext)); in onInternetValidated()
321 if (newPrimary.getPreviousRole() == ROLE_CLIENT_PRIMARY) { in onInternetValidated()
373 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in onInternetValidationFailed()
376 secondaryCcm.setRole(ROLE_CLIENT_PRIMARY, in onInternetValidationFailed()
455 ROLE_CLIENT_PRIMARY, mFrameworkFacade.getSettingsWorkSource(mContext)); in maybeContinueMakeBeforeBreak()
DActiveModeWarden.java30 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
1019 return getClientModeManagerInRole(ROLE_CLIENT_PRIMARY) != null; in hasPrimaryClientModeManager()
1027 return getClientModeManagerInRole(ROLE_CLIENT_PRIMARY) != null in hasPrimaryOrScanOnlyModeManager()
1029 || getClientModeManagerTransitioningIntoRole(ROLE_CLIENT_PRIMARY) != null in hasPrimaryOrScanOnlyModeManager()
1041 return getClientModeManagerInRole(ROLE_CLIENT_PRIMARY); in getPrimaryClientModeManagerNullable()
1292 new ClientListener(), requestorWs, ROLE_CLIENT_PRIMARY, mVerboseLoggingEnabled); in startPrimaryClientModeManager()
1303 if (role == ROLE_CLIENT_PRIMARY) { in startPrimaryOrScanOnlyClientModeManager()
1316 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in getClientModeManagersPrimaryLast()
1349 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY) { in switchAllPrimaryClientModeManagersToScanOnlyMode()
1369 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY in switchAllPrimaryOrScanOnlyClientModeManagers()
[all …]
DMultiInternetManager.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
239 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in onInternetValidated()
286 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in onConnectionEnd()
422 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY in notifyBssidAssociatedEvent()
500 && (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY in updateNetworkConnectionStates()
DClientModeManagerBroadcastQueue.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
80 if (manager.getRole() == ROLE_CLIENT_PRIMARY in queueOrSendBroadcast()
DConnectedScore.java135 return mCurrentRole != null && mCurrentRole == ActiveModeManager.ROLE_CLIENT_PRIMARY; in isPrimary()
DActiveModeManager.java123 ClientInternetConnectivityRole ROLE_CLIENT_PRIMARY = field
DSupplicantStateTracker.java19 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
249 if (mClientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in sendSupplicantStateChangedBroadcast()
DWifiNetworkFactory.java24 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
501 return cmm.getRole() == ROLE_CLIENT_PRIMARY in isLocalOnlyOrPrimary()
1133 if (mClientModeManagerRole == ROLE_CLIENT_PRIMARY) { in connectToNetwork()
1457 if (mClientModeManagerRole == ROLE_CLIENT_PRIMARY) { in setupForConnectedRequest()
1487 if (mClientModeManagerRole == ROLE_CLIENT_PRIMARY) { in teardownForConnectedNetwork()
1546 if (mClientModeManagerRole == ROLE_CLIENT_PRIMARY) { in handleClientModeManagerRetrieval()
DWifiConnectivityManager.java22 import static com.android.server.wifi.ActiveModeManager.ROLE_CLIENT_PRIMARY;
623 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in handleScanResults()
775 if (cm.getRole() == ROLE_CLIENT_PRIMARY) { in handleCandidatesFromScanResultsUsingSecondaryCmmIfAvailable()
1291 if (activeModeManager.getPreviousRole() == ROLE_CLIENT_PRIMARY in onActiveModeManagerRoleChanged()
1786 if (hasMultiInternetConnection() && clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in connectToNetworkUsingCmm()
3090 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY) { in handleConnectionStateChanged()
3111 if (role == ROLE_CLIENT_PRIMARY || role == ROLE_CLIENT_SCAN_ONLY) { in handleConnectionStateChanged()
3159 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY in handleConnectionAttemptEnded()
DConcreteClientModeManager.java478 if (mRole != ROLE_CLIENT_PRIMARY && !isSecondaryInternet()) { in getWifiOffDeferringTimeMs()
688 if (role != ROLE_CLIENT_PRIMARY || !mWifiStateChangeBroadcastEnabled) { in updateConnectModeState()
714 if (mRole == null && role == ROLE_CLIENT_PRIMARY) { in updateConnectModeState()
1239 new RoleChangeInfo(ROLE_CLIENT_PRIMARY); in enterImpl()
DWifiScoreReport.java595 return mCurrentRole != null && mCurrentRole == ActiveModeManager.ROLE_CLIENT_PRIMARY; in isPrimary()
1155 .setTransportPrimary(mCurrentRole == ActiveModeManager.ROLE_CLIENT_PRIMARY) in getScoreBuilder()
DWifiCountryCode.java138 if (activeModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in onActiveModeManagerRoleChanged()
DWifiDataStall.java144 if (clientModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in onConnectionEnd()

12