/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SelfRecoveryTest.java | 51 @Mock ActiveModeWarden mActiveModeWarden; field in SelfRecoveryTest 65 mSelfRecovery = new SelfRecovery(mContext, mActiveModeWarden, mClock, mWifiNative); in setUp() 80 verify(mActiveModeWarden).recoveryRestartWifi(SelfRecovery.REASON_LAST_RESORT_WATCHDOG, in testValidTriggerReasonsSendMessageToWifiController() 82 reset(mActiveModeWarden); in testValidTriggerReasonsSendMessageToWifiController() 87 verify(mActiveModeWarden).recoveryRestartWifi(SelfRecovery.REASON_WIFINATIVE_FAILURE, in testValidTriggerReasonsSendMessageToWifiController() 89 reset(mActiveModeWarden); in testValidTriggerReasonsSendMessageToWifiController() 99 verifyNoMoreInteractions(mActiveModeWarden); in testInvalidTriggerReasonsDoesNotSendMessageToWifiController() 102 verifyNoMoreInteractions(mActiveModeWarden); in testInvalidTriggerReasonsDoesNotSendMessageToWifiController() 111 verify(mActiveModeWarden).recoveryDisableWifi(); in testStaIfaceDownDisablesWifi() 126 verify(mActiveModeWarden).recoveryRestartWifi(SelfRecovery.REASON_WIFINATIVE_FAILURE, in testTimeWindowLimiting_typicalUse() [all …]
|
D | ActiveModeWardenTest.java | 177 ActiveModeWarden mActiveModeWarden; field in ActiveModeWardenTest 242 mActiveModeWarden = createActiveModeWarden(); in setUp() 243 mActiveModeWarden.start(); in setUp() 252 mActiveModeWarden.registerSoftApCallback(mSoftApStateMachineCallback); in setUp() 253 mActiveModeWarden.registerLohsCallback(mLohsStateMachineCallback); in setUp() 254 mActiveModeWarden.registerModeChangeCallback(mModeChangeCallback); in setUp() 255 mActiveModeWarden.registerPrimaryClientModeManagerChangedCallback(mPrimaryChangedCallback); in setUp() 257 mActiveModeWarden.registerSubsystemRestartCallback(mSubsystemRestartCallback); in setUp() 303 mActiveModeWarden = null; in cleanUp() 328 String fromState = mActiveModeWarden.getCurrentMode(); in enterClientModeActiveState() [all …]
|
D | MakeBeforeBreakManagerTest.java | 45 @Mock private ActiveModeWarden mActiveModeWarden; field in MakeBeforeBreakManagerTest 65 when(mActiveModeWarden.isStaStaConcurrencySupportedForMbb()).thenReturn(true); in setUp() 71 when(mActiveModeWarden.getPrimaryClientModeManagerNullable()).thenReturn(mOldPrimaryCmm); in setUp() 72 when(mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_SECONDARY_TRANSIENT)) in setUp() 75 mMbbManager = new MakeBeforeBreakManager(mActiveModeWarden, mFrameworkFacade, mContext, in setUp() 78 verify(mActiveModeWarden).registerModeChangeCallback(mModeChangeCallbackCaptor.capture()); in setUp() 84 when(mActiveModeWarden.isStaStaConcurrencySupportedForMbb()).thenReturn(false); in makeBeforeBreakDisabled_noOp() 112 when(mActiveModeWarden.getPrimaryClientModeManagerNullable()).thenReturn(null); in onL3Validated_noPrimary_immediatelyMakeValidatedNetworkPrimary() 127 when(mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_SECONDARY_TRANSIENT)) in makeBeforeBreakSuccess() 142 when(mActiveModeWarden.getPrimaryClientModeManagerNullable()).thenReturn(mNewPrimaryCmm); in makeBeforeBreakEnded_mMakeBeforeBreakInfoCleared() [all …]
|
D | MultiInternetManagerTest.java | 59 @Mock private ActiveModeWarden mActiveModeWarden; field in MultiInternetManagerTest 159 when(mActiveModeWarden.isStaStaConcurrencySupportedForMultiInternet()).thenReturn(true); in setUp() 167 when(mActiveModeWarden.getPrimaryClientModeManagerNullable()).thenReturn(mPrimaryCmm); in setUp() 168 when(mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_SECONDARY_LONG_LIVED)) in setUp() 170 when(mActiveModeWarden.getInternetConnectivityClientModeManagers()).thenReturn( in setUp() 172 when(mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_PRIMARY)) in setUp() 174 when(mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_SECONDARY_LONG_LIVED)) in setUp() 176 when(mActiveModeWarden.getClientModeManagerInRole(ROLE_CLIENT_SECONDARY_LONG_LIVED)) in setUp() 182 mMultiInternetManager = new MultiInternetManager(mActiveModeWarden, mFrameworkFacade, in setUp() 185 verify(mActiveModeWarden).registerModeChangeCallback(mModeChangeCallbackCaptor.capture()); in setUp() [all …]
|
D | WifiServiceImplTest.java | 333 @Mock ActiveModeWarden mActiveModeWarden; field in WifiServiceImplTest 456 when(mWifiInjector.getActiveModeWarden()).thenReturn(mActiveModeWarden); in setUp() 507 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 546 when(mActiveModeWarden.getClientModeManagersInRoles( in setUp() 562 when(mActiveModeWarden.getClientModeManagers()).thenReturn(mClientModeManagers); in setUp() 657 verify(mActiveModeWarden, atLeastOnce()).registerSoftApCallback( in makeWifiServiceImpl() 663 verify(mActiveModeWarden, atLeastOnce()).registerLohsCallback( in makeWifiServiceImpl() 826 verify(mActiveModeWarden).wifiToggled( in testSetWifiEnabledSuccessWithNetworkSettingsPermission() 841 verify(mActiveModeWarden).wifiToggled( in testSetWifiEnabledSuccessWithNetworkManagedProvisioningPermission() 861 verify(mActiveModeWarden).wifiToggled( in testSetWifiEnabledSuccessForDOAppsTargetingQSdk() [all …]
|
D | MboOceControllerTest.java | 47 @Mock ActiveModeWarden mActiveModeWarden; field in MboOceControllerTest 57 when(mActiveModeWarden.getPrimaryClientModeManager()) in setUp() 59 when(mActiveModeWarden.getPrimaryClientModeManagerNullable()) in setUp() 62 mMboOceController = new MboOceController(mTelephonyManager, mActiveModeWarden); in setUp()
|
D | ClientModeManagerBroadcastQueueTest.java | 50 @Mock private ActiveModeWarden mActiveModeWarden; field in ClientModeManagerBroadcastQueueTest 67 mBroadcastQueue = new ClientModeManagerBroadcastQueue(mActiveModeWarden, mContext); in setUp() 69 verify(mActiveModeWarden).registerModeChangeCallback(mModeChangeCallbackCaptor.capture()); in setUp() 70 verify(mActiveModeWarden) in setUp() 113 when(mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_SECONDARY_TRANSIENT)) in secondaryManagerSendBroadcast_queuedAndSentOnPrimaryChangeInOrderAndCleared()
|
D | WifiScanAlwaysAvailableSettingsCompatibilityTest.java | 57 private ActiveModeWarden mActiveModeWarden; field in WifiScanAlwaysAvailableSettingsCompatibilityTest 75 mWifiSettingsStore, mActiveModeWarden, mFrameworkFacade); in setUp() 104 verify(mActiveModeWarden).scanAlwaysModeChanged(); in reactToContentObserverChanges() 115 verify(mActiveModeWarden, times(2)).scanAlwaysModeChanged(); in reactToContentObserverChanges()
|
D | WifiShellCommandTest.java | 84 @Mock ActiveModeWarden mActiveModeWarden; field in WifiShellCommandTest 109 when(mWifiInjector.getActiveModeWarden()).thenReturn(mActiveModeWarden); in setUp() 110 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 111 when(mActiveModeWarden.getClientModeManagers()) in setUp() 738 verify(mActiveModeWarden, never()).getClientModeManagers(); in testStatus() 744 when(mActiveModeWarden.getClientModeManagers()).thenReturn( in testStatus() 755 verify(mActiveModeWarden).getClientModeManagers(); in testStatus() 767 verify(mActiveModeWarden, never()).emergencyCallbackModeChanged(anyBoolean()); in testEnableEmergencyCallbackMode() 774 verify(mActiveModeWarden).emergencyCallbackModeChanged(true); in testEnableEmergencyCallbackMode() 782 verify(mActiveModeWarden, never()).emergencyCallbackModeChanged(anyBoolean()); in testDisableEmergencyCallbackMode() [all …]
|
D | WifiConnectivityManagerTest.java | 180 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mPrimaryClientModeManager); in setUp() 186 }).when(mActiveModeWarden).requestSecondaryTransientClientModeManager( in setUp() 193 }).when(mActiveModeWarden).requestSecondaryLongLivedClientModeManager( in setUp() 214 when(wifiInjector.getActiveModeWarden()).thenReturn(mActiveModeWarden); in setUp() 304 @Mock private ActiveModeWarden mActiveModeWarden; field in WifiConnectivityManagerTest 586 mPasspointManager, mMultiInternetManager, mDeviceConfigFacade, mActiveModeWarden, in createConnectivityManager() 589 verify(mActiveModeWarden, atLeastOnce()).registerModeChangeCallback( in createConnectivityManager() 629 when(mActiveModeWarden.getInternetConnectivityClientModeManagers()).thenReturn( in testPrimaryToSecondaryTransientDoesNotDisableWifi() 643 when(mActiveModeWarden.getInternetConnectivityClientModeManagers()).thenReturn( in testPrimaryToScanOnlyWillDisableWifi() 668 verify(mActiveModeWarden, never()).requestSecondaryTransientClientModeManager( in alreadyConnectedOnPrimaryCmm_dontConnectAgain() [all …]
|
D | WifiCountryCodeTest.java | 67 @Mock ActiveModeWarden mActiveModeWarden; field in WifiCountryCodeTest 97 when(mActiveModeWarden.getInternetConnectivityClientModeManagers()) in setUp() 141 mActiveModeWarden, in createWifiCountryCode() 145 verify(mActiveModeWarden, atLeastOnce()).registerModeChangeCallback( in createWifiCountryCode() 620 verify(mActiveModeWarden, never()).stopSoftAp(anyInt()); in testCountryCodeChangedWhenSoftApManagerActiveAndForceSoftApRestartButCCisWorld() 621 verify(mActiveModeWarden, never()).startSoftAp(any(), any()); in testCountryCodeChangedWhenSoftApManagerActiveAndForceSoftApRestartButCCisWorld() 637 verify(mActiveModeWarden).stopSoftAp(anyInt()); in testCountryCodeChangedWhenSoftApManagerActiveAndForceSoftApRestart() 638 verify(mActiveModeWarden).startSoftAp(eq(mSoftApModeConfiguration), any()); in testCountryCodeChangedWhenSoftApManagerActiveAndForceSoftApRestart()
|
D | WifiMulticastLockManagerTest.java | 60 @Mock ActiveModeWarden mActiveModeWarden; field in WifiMulticastLockManagerTest 80 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager); in setUp() 81 mManager = new WifiMulticastLockManager(mActiveModeWarden, mBatteryStats, in setUp() 84 verify(mActiveModeWarden).registerPrimaryClientModeManagerChangedCallback( in setUp() 166 when(mActiveModeWarden.getPrimaryClientModeManager()).thenReturn(mClientModeManager2); in oneLock_changePrimaryClientModeManager()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | MakeBeforeBreakManager.java | 38 private final ActiveModeWarden mActiveModeWarden; field in MakeBeforeBreakManager 80 mActiveModeWarden = activeModeWarden; in MakeBeforeBreakManager() 87 mActiveModeWarden.registerModeChangeCallback(new ModeChangeCallback()); in MakeBeforeBreakManager() 109 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMbb()) { in onActiveModeManagerAdded() 121 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMbb()) { in onActiveModeManagerRemoved() 148 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMbb()) { in onActiveModeManagerRoleChanged() 169 if (mActiveModeWarden.getPrimaryClientModeManagerNullable() != null) { in recoverPrimary() 173 mActiveModeWarden.getClientModeManagersInRoles(ROLE_CLIENT_SECONDARY_TRANSIENT); in recoverPrimary() 201 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMbb()) { in onInternetValidated() 209 mActiveModeWarden.getPrimaryClientModeManagerNullable(); in onInternetValidated() [all …]
|
D | MultiInternetManager.java | 48 private final ActiveModeWarden mActiveModeWarden; field in MultiInternetManager 147 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMultiInternet() in onActiveModeManagerAdded() 167 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMultiInternet() in onActiveModeManagerRemoved() 192 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMultiInternet() in onActiveModeManagerRoleChanged() 212 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMultiInternet() in onInternetValidated() 248 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMultiInternet() in onL3Connected() 275 if (!mActiveModeWarden.isStaStaConcurrencySupportedForMultiInternet() in onConnectionEnd() 286 for (ConcreteClientModeManager cmm : mActiveModeWarden.getClientModeManagersInRoles( in onConnectionEnd() 312 mActiveModeWarden = activeModeWarden; in MultiInternetManager() 319 mActiveModeWarden.registerModeChangeCallback(new ModeChangeCallback()); in MultiInternetManager() [all …]
|
D | WifiInjector.java | 163 private final ActiveModeWarden mActiveModeWarden; field in WifiInjector 439 mActiveModeWarden = new ActiveModeWarden(this, wifiLooper, in WifiInjector() 443 mWifiMetrics.setActiveModeWarden(mActiveModeWarden); in WifiInjector() 446 mActiveModeWarden); in WifiInjector() 449 mThroughputPredictor, mActiveModeWarden, mCmiMonitor); in WifiInjector() 452 mWifiP2pConnection = new WifiP2pConnection(mContext, wifiLooper, mActiveModeWarden); in WifiInjector() 453 mConnectHelper = new ConnectHelper(mActiveModeWarden, mWifiConfigManager); in WifiInjector() 454 mBroadcastQueue = new ClientModeManagerBroadcastQueue(mActiveModeWarden, mContext); in WifiInjector() 455 mMakeBeforeBreakManager = new MakeBeforeBreakManager(mActiveModeWarden, mFrameworkFacade, in WifiInjector() 462 mMultiInternetManager = new MultiInternetManager(mActiveModeWarden, mFrameworkFacade, in WifiInjector() [all …]
|
D | SelfRecovery.java | 76 private final ActiveModeWarden mActiveModeWarden; field in SelfRecovery 136 mActiveModeWarden.recoveryRestartWifi(reason, in onSubsystemRestart() 156 mActiveModeWarden = activeModeWarden; in SelfRecovery() 185 mActiveModeWarden.recoveryDisableWifi(); in trigger() 196 mActiveModeWarden.recoveryDisableWifi(); in trigger() 204 mActiveModeWarden.recoveryDisableWifi(); in trigger()
|
D | WifiMulticastLockManager.java | 47 private final ActiveModeWarden mActiveModeWarden; field in WifiMulticastLockManager 63 mActiveModeWarden = activeModeWarden; in WifiMulticastLockManager() 66 mActiveModeWarden.registerPrimaryClientModeManagerChangedCallback( in WifiMulticastLockManager() 135 mActiveModeWarden.getPrimaryClientModeManager() in initializeFiltering() 155 mActiveModeWarden.getPrimaryClientModeManager() in acquireLock() 192 mActiveModeWarden.getPrimaryClientModeManager() in removeMulticasterLocked()
|
D | WifiCountryCode.java | 59 private final ActiveModeWarden mActiveModeWarden; field in WifiCountryCode 192 mActiveModeWarden = activeModeWarden; in WifiCountryCode() 196 mActiveModeWarden.registerModeChangeCallback(new ModeChangeCallbackInternal()); in WifiCountryCode() 391 mActiveModeWarden.getInternetConnectivityClientModeManagers()) { in disconnectWifiToForceUpdateIfNeeded() 417 mActiveModeWarden.getInternetConnectivityClientModeManagers()) { in shouldDisconnectWifiToForceUpdate() 574 mActiveModeWarden.stopSoftAp(modeConfig.getTargetMode()); in setCountryCodeNative() 575 mActiveModeWarden.startSoftAp(modeConfig, sm.getRequestorWs()); in setCountryCodeNative() 628 mActiveModeWarden.updateClientScanModeAfterCountryCodeUpdate(country); in notifyListener()
|
D | ClientModeManagerBroadcastQueue.java | 43 private final ActiveModeWarden mActiveModeWarden; field in ClientModeManagerBroadcastQueue 59 mActiveModeWarden = activeModeWarden; in ClientModeManagerBroadcastQueue() 62 mActiveModeWarden.registerModeChangeCallback(new ModeChangeCallback()); in ClientModeManagerBroadcastQueue() 63 mActiveModeWarden.registerPrimaryClientModeManagerChangedCallback( in ClientModeManagerBroadcastQueue()
|
D | WifiP2pConnection.java | 41 private final ActiveModeWarden mActiveModeWarden; field in WifiP2pConnection 51 mActiveModeWarden = activeModeWarden; in WifiP2pConnection() 55 for (ClientModeManager clientModeManager : mActiveModeWarden.getClientModeManagers()) { in sendMessageToAllClientModeImpls() 98 if (mActiveModeWarden.getClientModeManagers().isEmpty()) { in handleMessage()
|
D | MboOceController.java | 41 private final ActiveModeWarden mActiveModeWarden; field in MboOceController 48 mActiveModeWarden = activeModeWarden; in MboOceController() 56 mActiveModeWarden.getPrimaryClientModeManagerNullable(); in enable() 106 mActiveModeWarden.getPrimaryClientModeManagerNullable();
|
D | WifiServiceImpl.java | 221 private final ActiveModeWarden mActiveModeWarden; field in WifiServiceImpl 308 mActiveModeWarden.updateSoftApCapability( in onActiveDataSubscriptionIdChanged() 463 mActiveModeWarden = mWifiInjector.getActiveModeWarden(); in WifiServiceImpl() 477 mActiveModeWarden.registerSoftApCallback(mTetheredSoftApTracker); in WifiServiceImpl() 479 mActiveModeWarden.registerLohsCallback(mLohsSoftApTracker); in WifiServiceImpl() 657 mActiveModeWarden.start(); in checkAndStartWifi() 702 for (ClientModeManager cmm : mActiveModeWarden.getClientModeManagers()) { in resetCarrierNetworks() 756 mActiveModeWarden.getClientModeManagers()) { in handleBootCompleted() 765 mActiveModeWarden.getClientModeManagers()) { in handleBootCompleted() 933 mActiveModeWarden.notifyShuttingDown(); in handleShutDown() [all …]
|
D | ConnectHelper.java | 32 private final ActiveModeWarden mActiveModeWarden; field in ConnectHelper 38 mActiveModeWarden = activeModeWarden; in ConnectHelper() 51 mActiveModeWarden.getPrimaryClientModeManager(), result, wrapper, callingUid, in connectToNetwork()
|
D | WifiScanAlwaysAvailableSettingsCompatibility.java | 49 private final ActiveModeWarden mActiveModeWarden; field in WifiScanAlwaysAvailableSettingsCompatibility 58 mActiveModeWarden = activeModeWarden; in WifiScanAlwaysAvailableSettingsCompatibility() 85 mActiveModeWarden.scanAlwaysModeChanged(); in initialize()
|
D | WifiDataStall.java | 70 private final ActiveModeWarden mActiveModeWarden; field in WifiDataStall 118 if (mActiveModeWarden.getPrimaryClientModeManagerNullable() != null) { in update() 161 mActiveModeWarden = activeModeWarden; in WifiDataStall() 172 mActiveModeWarden.getPrimaryClientModeManager() in WifiDataStall() 178 mActiveModeWarden.registerPrimaryClientModeManagerChangedCallback( in WifiDataStall() 180 mActiveModeWarden.registerModeChangeCallback(new ModeChangeCallback()); in WifiDataStall() 226 mActiveModeWarden.getPrimaryClientModeManager() in resetPhoneStateListener()
|