/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MakeBeforeBreakManagerTest.java | 68 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 69 when(mNewPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in setUp() 96 when(mNewPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in onL3ValidatedNonSecondaryTransient_noOp() 118 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in makeBeforeBreakSuccess() 135 when(mNewPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared() 136 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared() 153 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in modeChanged_anotherCmm_noOp() 165 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in modeChanged_noMakeBeforeBreak_noOp() 182 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in modeChanged_oldPrimaryDidntBecomeSecondaryTransient_abortMbb() 192 when(mOldPrimaryCmm.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in modeChanged_oldPrimaryDidntBecomeSecondaryTransient_abortMbb() [all …]
|
D | ClientModeManagerBroadcastQueueTest.java | 64 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 65 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in setUp() 83 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_SCAN_ONLY); in scanOnlyModeManagerSendBroadcast_sentImmediately() 111 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared() 112 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared() 128 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared() 129 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared() 133 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared() 134 when(mPrimaryManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared() 159 when(mSecondaryManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in secondaryManagerSendBroadcast_clientModeManagerRemoved_queueCleared() [all …]
|
D | WifiMulticastLockManagerTest.java | 71 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 75 when(mClientModeManager2.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in setUp() 158 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in oneLock_changePrimaryClientModeManager() 161 when(mClientModeManager2.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in oneLock_changePrimaryClientModeManager()
|
D | WifiCountryCodeTest.java | 83 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 181 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in telephonyCountryCodeChangeAfterSupplicantStarts() 206 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in telephonyCountryCodeChangeAfterSupplicantStop() 270 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_LONG_LIVED); in telephonyCountryCodeChangeAfterL2ConnectedOnTwoClientModeManager()
|
D | ActiveModeWardenTest.java | 188 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 191 when(mSoftApManager.getRole()).thenReturn(ROLE_SOFTAP_TETHERED); in setUp() 320 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in enterClientModeActiveState() 355 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SCAN_ONLY); in enterScanOnlyModeActiveState() 401 when(mSoftApManager.getRole()).thenReturn(softApRole); in enterSoftApActiveMode() 608 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SCAN_ONLY); in testScanOnlyModeScanHiddenNetworks() 1107 when(mSoftApManager.getRole()).thenReturn(ROLE_SOFTAP_TETHERED); in testStopTetheringButNotLOHS() 1119 when(lohsSoftapManager.getRole()).thenReturn(ROLE_SOFTAP_LOCAL_ONLY); in testStopTetheringButNotLOHS() 2319 verify(mClientModeManager, atLeastOnce()).getRole(); in testRestartWifiStackDoesNotExitECMMode() 2627 when(additionalClientModeManager.getRole()).thenReturn(additionaClientModeManagerRole); in requestAdditionalClientModeManager() [all …]
|
D | ConcreteClientModeManagerTest.java | 529 assertNull(mClientModeManager.getRole()); in clientModeStopBeforeStartCleansUpState() 544 ActiveModeManager.ClientRole lastRole = mClientModeManager.getRole(); in clientModeStopCleansUpState() 555 assertNull(mClientModeManager.getRole()); in clientModeStopCleansUpState() 666 assertNull(mClientModeManager.getRole()); in scanModeExitStopsWakeupController() 1372 assertEquals(ActiveModeManager.ROLE_CLIENT_PRIMARY, mClientModeManager.getRole()); in clientInConnectModeChangeRoles() 1419 assertEquals(ROLE_CLIENT_SCAN_ONLY, clientModeManager.getRole()); in setRoleBeforeInvokingListener() 1425 ActiveModeManager.ClientRole lastRole = mClientModeManager.getRole(); in setRoleBeforeInvokingListener() 1440 assertEquals(ActiveModeManager.ROLE_CLIENT_PRIMARY, clientModeManager.getRole()); in setRoleBeforeInvokingListener()
|
D | WifiNetworkFactoryTest.java | 252 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in setUp() 1907 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testNetworkSpecifierHandleConnectionSuccessOnSecondaryCmm() 2135 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testHandleNetworkReleaseWithSpecifierAfterConnectionSuccessOnSecondaryCmm() 2177 when(mClientModeManager.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_LOCAL_ONLY); in testMetricsUpdateForConcurrentConnections() 2205 when(primaryCmm.getRole()).thenReturn(ActiveModeManager.ROLE_CLIENT_PRIMARY); in testMetricsUpdateForConcurrentConnections() 2469 verify(mClientModeManager, times(3)).getRole(); in testHandleNewNetworkRequestWithSpecifierAfterConnect() 2519 verify(mClientModeManager, times(3)).getRole(); in testHandleNewNetworkRequestWithSpecifierAfterConnectionSuccess() 2527 verify(mClientModeManager, times(3)).getRole(); in testHandleNewNetworkRequestWithSpecifierAfterConnectionSuccess() 2592 verify(mClientModeManager, times(6)).getRole(); in testHandleNewNetworkRequestWithSpecifierWhichUserSelectedAfterConnectionSuccess() 2606 verify(mClientModeManager, times(6)).getRole(); in testHandleNewNetworkRequestWithSpecifierWhichUserSelectedAfterConnectionSuccess() [all …]
|
D | WifiLockManagerTest.java | 109 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 112 when(mClientModeManager2.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in setUp() 1302 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testSwitchPrimaryClientModeManagerWhileConnected() 1309 when(mClientModeManager2.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in testSwitchPrimaryClientModeManagerWhileConnected()
|
D | ClientModeImplTest.java | 594 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in setUp() 2222 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in secondaryRoleCmmDisconnected_stopsClientModeManager() 2248 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in primaryCmmDisconnected_doesntStopsClientModeManager() 2869 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testExplicitlySelected_secondaryTransient_expectNotExplicitlySelected() 4064 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in mbb_internetValidationError_expectDisconnect() 6315 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testPacketFilterOnRoleChangeOnSecondaryCmm() 6336 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in testPacketFilterOnRoleChangeOnSecondaryCmm() 6347 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testPacketFilterOnRoleChangeOnSecondaryCmmWithSupportForNonPrimaryApf() 6366 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_PRIMARY); in testPacketFilterOnRoleChangeOnSecondaryCmmWithSupportForNonPrimaryApf() 6374 when(mClientModeManager.getRole()).thenReturn(ROLE_CLIENT_SECONDARY_TRANSIENT); in testWifiInfoUpdateOnRoleChange() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ActiveModeWarden.java | 783 if (manager.getRole() instanceof ClientInternetConnectivityRole) { in getInternetConnectivityClientModeManagers() 794 if (manager.getRole() == role) { in stopAllClientModeManagersInRole() 843 if (manager.getRole() instanceof ClientConnectivityRole) return true; in hasAnyClientModeManagerInConnectivityRole() 860 if (manager.getRole() != ROLE_CLIENT_SCAN_ONLY) return false; in areAllClientModeManagersInScanOnlyRole() 869 if (manager.getRole() == role) return manager; in getClientModeManagerInRole() 880 ClientRole role = manager.getRole(); in getClientModeManagersInRoles() 891 if (manager.getRole() == role) return manager; in getSoftApManagerInRole() 940 || getRoleForSoftApIpMode(ipMode) == softApManager.getRole()) { in stopSoftApModeManagers() 1012 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY) { in switchAllPrimaryClientModeManagersToScanOnlyMode() 1026 if (clientModeManager.getRole() != ROLE_CLIENT_PRIMARY in switchAllPrimaryOrScanOnlyClientModeManagers() [all …]
|
D | MakeBeforeBreakManager.java | 204 if (newPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in onInternetValidated() 240 if (newPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in onCaptivePortalDetected() 271 if (mMakeBeforeBreakInfo.oldPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in maybeContinueMakeBeforeBreak() 278 if (mMakeBeforeBreakInfo.newPrimary.getRole() != ROLE_CLIENT_SECONDARY_TRANSIENT) { in maybeContinueMakeBeforeBreak()
|
D | ClientModeManagerBroadcastQueue.java | 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()
|
D | DefaultClientModeManager.java | 41 @Nullable public ClientRole getRole() { in getRole() method in DefaultClientModeManager 85 + " role=" + getRole() in toString()
|
D | WifiCountryCode.java | 86 if (activeModeManager.getRole() instanceof ActiveModeManager.ClientRole in onActiveModeManagerAdded() 106 if (activeModeManager.getRole() == ActiveModeManager.ROLE_CLIENT_PRIMARY) { in onActiveModeManagerRoleChanged()
|
D | ClientModeManager.java | 26 ClientRole getRole(); in getRole() method
|
D | ActiveModeManager.java | 147 @Nullable Role getRole(); in getRole() method
|
D | WifiNetworkFactory.java | 362 mClientModeManagerRole = modeManager.getRole(); in onAnswer() 445 return cmm.getRole() == ROLE_CLIENT_PRIMARY in isLocalOnlyOrPrimary() 446 || cmm.getRole() == ROLE_CLIENT_LOCAL_ONLY; in isLocalOnlyOrPrimary()
|
D | SarManager.java | 160 if (device.getRole() == AudioDeviceAttributes.ROLE_OUTPUT in isVoiceCallOnEarpiece()
|
D | SupplicantStateTracker.java | 249 if (mClientModeManager.getRole() == ROLE_CLIENT_PRIMARY) { in sendSupplicantStateChangedBroadcast()
|
D | ConcreteClientModeManager.java | 447 @Nullable public ClientRole getRole() { in getRole() method in ConcreteClientModeManager 1418 + " role=" + getRole() in toString()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/ |
D | MergeRoleListLiveData.java | 63 String roleName = roleItem.getRole().getName(); in onRoleListChanged() 66 mergedRoleItem = new RoleItem(roleItem.getRole(), new ArrayList<>( in onRoleListChanged()
|
D | SpecialAppAccessListChildFragment.java | 103 Role role = roleItem.getRole(); in onRoleListChanged()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
D | RoleItem.java | 50 public Role getRole() { in getRole() method in RoleItem
|
D | RoleListSortFunction.java | 42 roleItem.getRole().getShortLabelResource()), collator); in RoleListSortFunction()
|
D | DefaultAppListChildFragment.java | 165 Role role = roleItem.getRole(); in addPreferences()
|