Searched refs:getRole (Results 1 – 25 of 44) sorted by relevance
12
69 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()70 when(mNewPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in setUp()106 when(mNewPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in onL3ValidatedNonSecondaryTransient_noOp()128 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in makeBeforeBreakSuccess()145 when(mNewPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared()146 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared()163 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in modeChanged_anotherCmm_noOp()175 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in modeChanged_noMakeBeforeBreak_noOp()192 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in modeChanged_oldPrimaryDidntBecomeSecondaryTransient_abortMbb()202 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in modeChanged_oldPrimaryDidntBecomeSecondaryTransient_abortMbb()[all …]
64 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()65 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in setUp()84 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_SCAN_ONLY); in scanOnlyModeManagerSendBroadcast_sentImmediately()112 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()113 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()129 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()130 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()134 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()135 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()160 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_clientModeManagerRemoved_queueCleared()[all …]
74 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()78 when(mClientModeManager2.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in setUp()162 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in oneLock_changePrimaryClientModeManager()165 when(mClientModeManager2.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in oneLock_changePrimaryClientModeManager()
227 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()230 when(mSoftApManager.getRole()).thenReturn(ROLE_SOFTAP_TETHERED); in setUp()386 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in enterClientModeActiveState()431 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SCAN_ONLY); in enterScanOnlyModeActiveState()481 when(mSoftApManager.getRole()).thenReturn(softApRole); in enterSoftApActiveMode()688 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SCAN_ONLY); in testScanOnlyModeScanHiddenNetworks()809 assertTrue(currentCMMs.stream().anyMatch(cmm -> cmm.getRole() == ROLE_CLIENT_PRIMARY)); in testSwitchFromConnectModeToScanOnlyModeRemovesAdditionalCMMs()811 cmm -> cmm.getRole() == ROLE_CLIENT_SECONDARY_TRANSIENT)); in testSwitchFromConnectModeToScanOnlyModeRemovesAdditionalCMMs()849 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_LOCAL_ONLY); in testToggleWifiWithOnlySecondaryCmmsCreatesPrimaryOrScanOnlyCmm()856 assertTrue(currentCMMs.get(0).getRole() == ROLE_CLIENT_LOCAL_ONLY); in testToggleWifiWithOnlySecondaryCmmsCreatesPrimaryOrScanOnlyCmm()[all …]
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()402 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in telephonyCountryCodeChangeAfterL2ConnectedOnTwoClientModeManager()615 when(mSoftApManager.getRole()).thenReturn(ActiveModeManager.ROLE_SOFTAP_TETHERED); in testClientModeManagerAndSoftApManagerDoesntImpactEachOther()
281 when(mPrimaryClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp()290 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp()2002 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testNetworkSpecifierHandleConnectionSuccessOnSecondaryCmm()2033 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testNetworkSpecifierHandleConnectionSuccessOnSecondaryCmmAndDisconnectFromAp()2235 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testHandleNetworkReleaseWithSpecifierAfterConnectionSuccessOnSecondaryCmm()2277 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testMetricsUpdateForConcurrentConnections()2305 when(primaryCmm.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testMetricsUpdateForConcurrentConnections()2579 verify(mClientModeManager, times(3)).getRole(); in testHandleNewNetworkRequestWithSpecifierAfterConnect()2630 verify(mClientModeManager, times(3)).getRole(); in testHandleNewNetworkRequestWithSpecifierAfterConnectionSuccess()2638 verify(mClientModeManager, times(3)).getRole(); in testHandleNewNetworkRequestWithSpecifierAfterConnectionSuccess()[all …]
617 assertNull(mClientModeManager.getRole()); in clientModeStopBeforeStartCleansUpState()632 ActiveModeManager.ClientRole lastRole = mClientModeManager.getRole(); in clientModeStopCleansUpState()643 assertNull(mClientModeManager.getRole()); in clientModeStopCleansUpState()757 assertNull(mClientModeManager.getRole()); in scanModeExitStopsWakeupController()1498 assertEquals(ActiveModeManager.ROLE_CLIENT_PRIMARY, mClientModeManager.getRole()); in clientInConnectModeChangeRoles()1545 assertEquals(ROLE_CLIENT_SCAN_ONLY, clientModeManager.getRole()); in setRoleBeforeInvokingListener()1551 ActiveModeManager.ClientRole lastRole = mClientModeManager.getRole(); in setRoleBeforeInvokingListener()1566 assertEquals(ActiveModeManager.ROLE_CLIENT_PRIMARY, clientModeManager.getRole()); in setRoleBeforeInvokingListener()
163 when(mPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()165 when(mSecondaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in setUp()
765 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp()815 if (mClientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in validateConnectionInfo()2351 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testPerSsidRoamingModeSecondary()2598 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SCAN_ONLY); in testNetworkDisconnectAfterInterfaceSwitchedToScan()3158 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryRoleCmmDisconnected_stopsClientModeManager()3184 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in primaryCmmDisconnected_doesntStopsClientModeManager()3857 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testExplicitlySelected_secondaryTransient_expectNotExplicitlySelected()3947 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testRssiMonitoringOnSecondaryIsNotEnabled()4310 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in testConnectedMacRandomizationRandomizationSecondaryDbs()5044 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in testAssociationRejectionForRole()[all …]
161 if (ccm.getRole() != ROLE_CLIENT_SECONDARY_LONG_LIVED || !ccm.isSecondaryInternet()) { in onActiveModeManagerAdded()210 + ccm.getRole()); in onActiveModeManagerRoleChanged()231 Log.v(TAG, "ClientModeManager role " + clientModeManager.getRole() in onInternetValidated()239 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in onInternetValidated()246 } else if (clientModeManager.getRole() == ROLE_CLIENT_SECONDARY_LONG_LIVED in onInternetValidated()260 if (clientModeManager.getRole() != ROLE_CLIENT_SECONDARY_LONG_LIVED in onL3Connected()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()501 || clientModeManager.getRole() == ROLE_CLIENT_SECONDARY_LONG_LIVED)) { in updateNetworkConnectionStates()[all …]
175 if (activeModeManager.getRole() == ROLE_CLIENT_SECONDARY_TRANSIENT) { in onActiveModeManagerAdded()179 + activeModeManager.getRole()); in onActiveModeManagerAdded()308 if (newPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in onInternetValidated()373 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in onInternetValidationFailed()384 + "), removeClientModeManager role: " + clientModeManager.getRole()); in onInternetValidationFailed()395 if (newPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in onCaptivePortalDetected()429 if (mMakeBeforeBreakInfo.oldPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in maybeContinueMakeBeforeBreak()436 if (mMakeBeforeBreakInfo.newPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in maybeContinueMakeBeforeBreak()
80 if (manager.getRole() == ROLE_CLIENT_PRIMARY in queueOrSendBroadcast()81 || manager.getRole() == ROLE_CLIENT_SCAN_ONLY) { in queueOrSendBroadcast()88 } else if (manager.getRole() == ROLE_CLIENT_SECONDARY_TRANSIENT) { in queueOrSendBroadcast()
1068 if (manager.getRole() instanceof ClientInternetConnectivityRole) { in getInternetConnectivityClientModeManagers()1079 if (manager.getRole() == role) { in stopAllClientModeManagersInRole()1128 if (manager.getRole() instanceof ClientConnectivityRole) return true; in hasAnyClientModeManagerInConnectivityRole()1145 if (manager.getRole() != ROLE_CLIENT_SCAN_ONLY) return false; in areAllClientModeManagersInScanOnlyRole()1154 if (manager.getRole() == role) return manager; in getClientModeManagerInRole()1174 ClientRole role = manager.getRole(); in getClientModeManagersInRoles()1185 if (manager.getRole() == role) return manager; in getSoftApManagerInRole()1234 || getRoleForSoftApIpMode(ipMode) == softApManager.getRole()) { in stopSoftApModeManagers()1316 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in getClientModeManagersPrimaryLast()1349 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY) { in switchAllPrimaryClientModeManagersToScanOnlyMode()[all …]
40 @Nullable public ClientRole getRole() { in getRole() method in DefaultClientModeManager79 + " role=" + getRole() in toString()
25 ClientRole getRole(); in getRole() method
147 @Nullable Role getRole(); in getRole() method
513 if (cm.getRole() != ROLE_CLIENT_SECONDARY_LONG_LIVED) { in handleConnectToMultiInternetConnectionInternal()515 + cm.getRole().toString() in handleConnectToMultiInternetConnectionInternal()611 if (clientModeManager.getRole() == ROLE_CLIENT_SECONDARY_LONG_LIVED) { in handleScanResults()623 if (clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in handleScanResults()775 if (cm.getRole() == ROLE_CLIENT_PRIMARY) { in handleCandidatesFromScanResultsUsingSecondaryCmmIfAvailable()1292 && activeModeManager.getRole() == ROLE_CLIENT_SECONDARY_TRANSIENT) { in onActiveModeManagerRoleChanged()1786 if (hasMultiInternetConnection() && clientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in connectToNetworkUsingCmm()1908 if (clientModeManager.getRole() == ROLE_CLIENT_SECONDARY_TRANSIENT) { in triggerConnectToNetworkUsingMbbIfAvailable()3090 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY) { in handleConnectionStateChanged()3110 ActiveModeManager.ClientRole role = clientModeManager.getRole(); in handleConnectionStateChanged()[all …]
109 if (activeModeManager.getRole() instanceof ActiveModeManager.ClientRole) { in onActiveModeManagerAdded()138 if (activeModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in onActiveModeManagerRoleChanged()
165 if (device.getRole() == AudioDeviceAttributes.ROLE_OUTPUT in isVoiceCallOnEarpiece()
584 @Nullable public SoftApRole getRole() { in getRole() method in SoftApManager699 + " role=" + getRole() in toString()2296 getRole(), in writeSoftApStartedEvent()2322 getRole(), in writeSoftApStoppedEvent()
63 String roleName = roleItem.getRole().getName(); in onRoleListChanged()66 mergedRoleItem = new RoleItem(roleItem.getRole(), new ArrayList<>( in onRoleListChanged()
104 Role role = roleItem.getRole(); in onRoleListChanged()
87 public int getRole() { in getRole() method in BluetoothHealthAppConfiguration
50 public Role getRole() { in getRole() method in RoleItem
43 roleItem.getRole().getShortLabelResource()), collator); in RoleListSortFunction()