/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ActiveModeWardenTest.java | 143 TestLooper mLooper; field in ActiveModeWardenTest 194 mLooper = new TestLooper(); in setUp() 244 mLooper.dispatchAll(); in setUp() 280 mLooper.getLooper(), in createActiveModeWarden() 304 mLooper.dispatchAll(); in cleanUp() 331 mLooper.dispatchAll(); in enterClientModeActiveState() 335 mLooper.dispatchAll(); in enterClientModeActiveState() 370 mLooper.dispatchAll(); in enterScanOnlyModeActiveState() 375 mLooper.dispatchAll(); in enterScanOnlyModeActiveState() 381 mLooper.dispatchAll(); in enterScanOnlyModeActiveState() [all …]
|
D | WifiServiceImplTest.java | 302 private TestLooper mLooper; field in WifiServiceImplTest 434 mLooper = new TestLooper(); in setUp() 463 when(mHandlerThread.getThreadHandler()).thenReturn(new Handler(mLooper.getLooper())); in setUp() 464 when(mHandlerThread.getLooper()).thenReturn(mLooper.getLooper()); in setUp() 512 mWifiThreadRunner = new WifiThreadRunner(new Handler(mLooper.getLooper())); in setUp() 666 mLooper.dispatchAll(); in makeWifiServiceImpl() 696 mLooper.startAutoDispatch(); in testRemoveNetworkFailureAppBelowQSdk() 698 mLooper.stopAutoDispatchAndIgnoreExceptions(); in testRemoveNetworkFailureAppBelowQSdk() 709 mLooper.dispatchAll(); in testWifiMetricsDump() 712 mLooper.dispatchAll(); in testWifiMetricsDump() [all …]
|
D | ConcreteClientModeManagerTest.java | 95 TestLooper mLooper; field in ConcreteClientModeManagerTest 159 mLooper.moveTimeForward(timeMillis); in moveTimeForward() 250 mLooper = new TestLooper(); in setUp() 259 return new ConcreteClientModeManager(mContext, mLooper.getLooper(), mClock, mWifiNative, in createClientModeManager() 269 mLooper.dispatchAll(); in startClientInScanOnlyModeAndVerifyEnabled() 277 mLooper.dispatchAll(); in startClientInScanOnlyModeAndVerifyEnabled() 294 mLooper.dispatchAll(); in startClientInConnectModeAndVerifyEnabled() 305 mLooper.dispatchAll(); in startClientInConnectModeAndVerifyEnabled() 392 mLooper.dispatchAll(); in switchFromScanOnlyModeToConnectMode() 430 mLooper.dispatchAll(); in testDisableWifiStateChangedBroadcasts() [all …]
|
D | ClientModeImplTest.java | 469 TestLooper mLooper; field in ClientModeImplTest 592 mLooper = new TestLooper(); in setUp() 662 when(mWifiHandlerThread.getLooper()).thenReturn(mLooper.getLooper()); in setUp() 719 Handler handler = new Handler(mLooper.getLooper()) { in registerAsyncChannel() 746 mLooper.dispatchAll(); in registerAsyncChannel() 757 new ScoringParams(), new WifiThreadRunner(new Handler(mLooper.getLooper())), in initializeCmi() 764 mWifiLockManager, mFrameworkFacade, mLooper.getLooper(), in initializeCmi() 786 mLooper.dispatchAll(); in initializeCmi() 820 mLooper.dispatchAll(); in checkIsWifiEnabledForModeChanges() 857 mLooper.dispatchAll(); in canSaveNetworkConfig() [all …]
|
D | LocalOnlyHotspotRequestInfoTest.java | 48 private TestLooper mLooper; field in LocalOnlyHotspotRequestInfoTest 61 mLooper = new TestLooper(); in setUp() 72 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyBinderLinkToDeathIsCalled() 82 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyNullCallbackChecked() 91 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyNullDeathCallbackChecked() 100 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyUnlinkDeathRecipientUnlinksFromBinder() 111 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyBinderDeathTriggersCallback() 114 mLooper.dispatchAll(); in verifyBinderDeathTriggersCallback() 125 mLOHSRequestInfo = new LocalOnlyHotspotRequestInfo(mLooper.getLooper(), in verifyRemoteExceptionTriggersCallback() 127 mLooper.dispatchAll(); in verifyRemoteExceptionTriggersCallback() [all …]
|
D | WifiMonitorTest.java | 72 private TestLooper mLooper; field in WifiMonitorTest 79 mLooper = new TestLooper(); in setUp() 80 mHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 81 mSecondHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 95 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() 116 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToErrorWepProhibhited() 135 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigAuthError() 152 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigPbcOverlapError() 170 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigError() 188 mLooper.dispatchAll(); in testBroadcastWpsEventSuccess() [all …]
|
D | SoftApManagerTest.java | 157 private TestLooper mLooper; field in SoftApManagerTest 246 mLooper.dispatchAll(); in mockSoftApInfoUpdateAndVerifyAfterSapStarted() 253 mLooper.dispatchAll(); in mockSoftApInfoUpdateAndVerifyAfterSapStarted() 284 mLooper = new TestLooper(); in setUp() 381 mLooper.getLooper(), in createSoftApManager() 401 mLooper.dispatchAll(); in createSoftApManager() 815 mLooper.dispatchAll(); in stopWhenStarted() 853 mLooper.dispatchAll(); in cleanStopOnInterfaceDestroyed() 882 mLooper.dispatchAll(); in noCallbackOnInterfaceDestroyedWhenAlreadyStopped() 892 mLooper.dispatchAll(); in noCallbackOnInterfaceDestroyedWhenAlreadyStopped() [all …]
|
D | ExternalScoreUpdateObserverProxyTest.java | 45 TestLooper mLooper = new TestLooper(); field in ExternalScoreUpdateObserverProxyTest 56 new WifiThreadRunner(new Handler(mLooper.getLooper()))); in setUp() 64 mLooper.dispatchAll(); in testCallback() 68 mLooper.dispatchAll(); in testCallback() 76 mLooper.dispatchAll(); in testCallback() 87 mLooper.dispatchAll(); in testCallbackForApiInS() 91 mLooper.dispatchAll(); in testCallbackForApiInS() 95 mLooper.dispatchAll(); in testCallbackForApiInS() 104 mLooper.dispatchAll(); in testCallbackForApiInS()
|
D | WifiScoreReportTest.java | 135 private TestLooper mLooper; field in WifiScoreReportTest 223 mLooper = new TestLooper(); in setUp() 239 mWifiThreadRunner = new WifiThreadRunner(new Handler(mLooper.getLooper())); in setUp() 465 mLooper.dispatchAll(); in testExternalScorerWhileLingering_sendLingeringScore() 1083 mLooper.dispatchAll(); in testFrameworkGetsUpdatesScore() 1096 mLooper.dispatchAll(); in testFrameworkGetsUpdatesScore() 1123 mLooper.dispatchAll(); in testFrameworkTriggersUpdateOfWifiUsabilityStats() 1146 mLooper.dispatchAll(); in askForNudCheckWhenExternalScoreBreaches() 1154 mLooper.dispatchAll(); in askForNudCheckWhenExternalScoreBreaches() 1160 mLooper.dispatchAll(); in askForNudCheckWhenExternalScoreBreaches() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | LooperWrapper.cpp | 28 if (mLooper == nullptr) { in wake() 32 return mLooper->wake(); in wake() 36 if (mLooper == nullptr) { in pollAll() 40 return mLooper->pollAll(timeoutMillis); in pollAll() 44 if (mLooper == nullptr) { in sendMessage() 48 return mLooper->sendMessage(handler, message); in sendMessage() 53 if (mLooper == nullptr) { in sendMessageAtTime() 57 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime() 61 if (mLooper == nullptr) { in removeMessages() 65 return mLooper->removeMessages(handler); in removeMessages() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | EntitlementManagerTest.java | 125 private final TestLooper mLooper = new TestLooper(); field in EntitlementManagerTest 258 mEnMgr = new WrappedEntitlementManager(mMockContext, new Handler(mLooper.getLooper()), mLog, in setUp() 330 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 343 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 355 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 368 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 380 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 392 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 403 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() 415 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue() [all …]
|
D | TetheringTest.java | 286 private final TestLooper mLooper = new TestLooper(); field in TetheringTest 477 return mLooper.getLooper(); in getTetheringLooper() 730 mLooper.dispatchAll(); in sendWifiApStateChanged() 739 mLooper.dispatchAll(); in sendWifiApStateChanged() 766 mLooper.dispatchAll(); in sendWifiP2pConnectionChanged() 791 mLooper.dispatchAll(); in sendUsbBroadcast() 797 mLooper.dispatchAll(); in sendConfigurationChanged() 860 mLooper.dispatchAll(); in prepareNcmTethering() 868 mLooper.dispatchAll(); in prepareUsbTethering() 942 mLooper.dispatchAll(); in workingLocalOnlyHotspotEnrichedApBroadcast() [all …]
|
D | UpstreamNetworkMonitorTest.java | 104 private final TestLooper mLooper = new TestLooper(); field in UpstreamNetworkMonitorTest 116 mSM = new TestStateMachine(mLooper.getLooper()); in setUp() 315 mLooper.dispatchAll(); in testSelectPreferredUpstreamType() 319 mLooper.dispatchAll(); in testSelectPreferredUpstreamType() 325 mLooper.dispatchAll(); in testSelectPreferredUpstreamType() 348 mLooper.dispatchAll(); in testSelectPreferredUpstreamType() 360 mLooper.dispatchAll(); in testSelectPreferredUpstreamType() 367 mLooper.dispatchAll(); in testSelectPreferredUpstreamType() 390 mLooper.dispatchAll(); in testGetCurrentPreferredUpstream() 403 mLooper.dispatchAll(); in testGetCurrentPreferredUpstream() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 156 TestLooper mLooper; field in WifiScanningServiceTest 183 mLooper = new TestLooper(); in setUp() 206 mWifiScanningServiceImpl = new WifiScanningServiceImpl(mContext, mLooper.getLooper(), in setUp() 228 controlChannel.connect(mLooper.getLooper(), mWifiScanningServiceImpl.getMessenger(), in connectChannel() 230 mLooper.dispatchAll(); in connectChannel() 452 mLooper.dispatchAll(); in startServiceAndLoadDriver() 470 mLooper.dispatchAll(); in setupAndLoadDriver() 516 mLooper.dispatchAll(); in startServiceAndTriggerSingleScanWithoutDriverLoaded() 524 mLooper.dispatchAll(); in startServiceAndTriggerSingleScanWithoutDriverLoaded() 531 mLooper.dispatchAll(); in disconnectClientBeforeWifiEnabled() [all …]
|
/packages/services/Car/cpp/evs/manager/1.1/stats/ |
D | LooperWrapper.cpp | 30 if (mLooper == nullptr) { in wake() 35 return mLooper->wake(); in wake() 39 if (mLooper == nullptr) { in pollAll() 44 return mLooper->pollAll(timeoutMillis); in pollAll() 49 if (mLooper == nullptr) { in sendMessage() 54 return mLooper->sendMessage(handler, message); in sendMessage() 60 if (mLooper == nullptr) { in sendMessageAtTime() 65 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime() 69 if (mLooper == nullptr) { in removeMessages() 74 return mLooper->removeMessages(handler); in removeMessages()
|
D | StatsCollector.cpp | 79 mLooper->removeMessages(this); in handleMessage() 81 mPeriodicCollectionInfo.lastCollectionTime = mLooper->now(); in handleMessage() 82 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in handleMessage() 97 mLooper->removeMessages(this); in handleMessage() 98 mLooper->wake(); in handleMessage() 140 mLooper->sendMessageAtTime(info->lastCollectionTime, this, event); in handleCollectionEvent() 155 snapshot.timestamp = mLooper->now(); in collectLocked() 208 mLooper->setLooper(Looper::prepare(/*opts=*/0)); in startCollection() 211 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in startCollection() 216 mLooper->pollAll(/*timeoutMillis=*/-1); in startCollection() [all …]
|
/packages/services/Car/cpp/evs/manager/aidl/stats/src/ |
D | LooperWrapper.cpp | 28 if (mLooper == nullptr) { in wake() 33 return mLooper->wake(); in wake() 37 if (mLooper == nullptr) { in pollAll() 42 return mLooper->pollAll(timeoutMillis); in pollAll() 46 if (mLooper == nullptr) { in sendMessage() 51 return mLooper->sendMessage(handler, message); in sendMessage() 56 if (mLooper == nullptr) { in sendMessageAtTime() 61 return mLooper->sendMessageAtTime(uptime, handler, message); in sendMessageAtTime() 65 if (mLooper == nullptr) { in removeMessages() 70 return mLooper->removeMessages(handler); in removeMessages()
|
D | StatsCollector.cpp | 80 mLooper->removeMessages(this); in handleMessage() 82 mPeriodicCollectionInfo.lastCollectionTime = mLooper->now(); in handleMessage() 83 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in handleMessage() 97 mLooper->removeMessages(this); in handleMessage() 98 mLooper->wake(); in handleMessage() 137 mLooper->sendMessageAtTime(info->lastCollectionTime, this, event); in handleCollectionEvent() 151 snapshot.timestamp = mLooper->now(); in collectLocked() 203 mLooper->setLooper(Looper::prepare(/*opts=*/0)); in startCollection() 206 mLooper->sendMessage(this, CollectionEvent::PERIODIC); in startCollection() 211 mLooper->pollAll(/*timeoutMillis=*/-1); in startCollection() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/ |
D | RedirectListenerTest.java | 52 private TestLooper mLooper = new TestLooper(); field in RedirectListenerTest 53 private Handler mHandler = new Handler(mLooper.getLooper()); 87 mRedirectListener = new RedirectListenerSpy(mLooper.getLooper(), TEST_PORT); in setUp() 93 mLooper.dispatchAll(); in verifyStartServer() 100 mLooper.dispatchAll(); in verifyStopServer() 105 assertFalse(mLooper.isIdle()); in verifyStopServer() 121 mLooper.moveTimeForward(RedirectListener.USER_TIMEOUT_MILLIS); in timeOutForKnownGetRequest() 122 mLooper.dispatchAll(); in timeOutForKnownGetRequest() 143 mLooper.moveTimeForward(RedirectListener.USER_TIMEOUT_MILLIS); in receiveUnknownGetRequest() 144 mLooper.dispatchAll(); in receiveUnknownGetRequest() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachineTest.java | 201 private TestLooper mLooper; field in ChildSessionStateMachineTest 278 mLooper = new TestLooper(); in setup() 405 mLooper.dispatchAll(); in quitAndVerify() 544 mLooper.dispatchAll(); in disableTestCreateFirstChild() 611 mLooper.dispatchAll(); in checkCreateChildAndGetRequest() 630 mLooper.dispatchAll(); in checkCreateChildAndGetRequest() 647 mLooper.dispatchAll(); in testCreateChildExecuteCbAfterKillSession() 655 mLooper.dispatchAll(); in testCreateChildExecuteCbAfterKillSession() 677 mLooper.dispatchAll(); in createChildSessionAndReceiveErrorNotification() 684 mLooper.dispatchAll(); in createChildSessionAndReceiveErrorNotification() [all …]
|
D | IkeSessionStateMachineTest.java | 407 private TestLooper mLooper; field in IkeSessionStateMachineTest 826 mLooper = new TestLooper(); in setUp() 851 mLooper.dispatchAll(); in tearDown() 937 mLooper.getLooper(), mSpyContext, ikeParams.getConfiguredNetwork()); in makeAndStartIkeSession() 988 mLooper.getLooper(), in makeAndStartIkeSession() 1002 mLooper.dispatchAll(); in makeAndStartIkeSession() 1492 mLooper.dispatchAll(); in testQuit() 1703 mLooper.dispatchAll(); in testCreateIkeLocalIkeInitNegotiatesDhGroup() 1715 mLooper.dispatchAll(); in testCreateIkeLocalIkeInitNegotiatesDhGroup() 1733 mLooper.dispatchAll(); in testCreateIkeLocalIkeInitReceivesCookie() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisionerTest.java | 152 private TestLooper mLooper = new TestLooper(); field in PasspointProvisionerTest 204 when(RedirectListener.createInstance(mLooper.getLooper())).thenReturn(mRedirectListener); in setUp() 293 mPasspointProvisioner.init(mLooper.getLooper()); in initAndStartProvisioning() 297 assertEquals(mHandler.getLooper(), mLooper.getLooper()); in initAndStartProvisioning() 299 mLooper.dispatchAll(); in initAndStartProvisioning() 305 mLooper.dispatchAll(); in initAndStartProvisioning() 335 mLooper.dispatchAll(); in stopAfterStep() 343 mLooper.dispatchAll(); in stopAfterStep() 353 mLooper.dispatchAll(); in stopAfterStep() 369 mLooper.dispatchAll(); in stopAfterStep() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pMonitorTest.java | 46 private TestLooper mLooper; field in WifiP2pMonitorTest 53 mLooper = new TestLooper(); in setUp() 54 mHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 55 mSecondHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp() 67 mLooper.dispatchAll(); in testBroadcastSupplicantDisconnectionEvent() 83 mLooper.dispatchAll(); in testBroadcastEventToTwoHandlers() 99 mLooper.dispatchAll(); in testBroadcastEventWhenIfaceIsNull() 113 mLooper.dispatchAll(); in testBroadcastEventWhenIfaceHandlerIsNull() 127 mLooper.dispatchAll(); in testBroadcastP2pFrequencyChanged() 144 mLooper.dispatchAll(); in testBroadcastP2pProvisionDiscoveryFailure() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiScannerTest.java | 94 private TestLooper mLooper; field in WifiScannerTest 104 mLooper = new TestLooper(); in setUp() 105 mHandler = spy(new Handler(mLooper.getLooper())); in setUp() 107 mContext, mLooper.getLooper(), mHandler); in setUp() 109 mWifiScanner = new WifiScanner(mContext, mService, mLooper.getLooper()); in setUp() 110 mLooper.dispatchAll(); in setUp() 285 mLooper.dispatchAll(); in testStartScan() 315 mLooper.dispatchAll(); in testStopScan() 318 mLooper.dispatchAll(); in testStopScan() 344 mLooper.dispatchAll(); in testStartScanListenerOnSuccess() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ |
D | NetworkStackNotifierTest.kt | 100 private lateinit var mLooper: TestableLooper variable in com.android.networkstack.NetworkStackNotifierTest 151 mLooper = TestableLooper.get(this) in setUp() 176 mNotifier = NetworkStackNotifier(mContext, mLooper.looper, mDependencies) in setUp() 200 mLooper.processAllMessages() in testNoNotification() 217 mLooper.processAllMessages() in verifyCanceledNotificationAfterNetworkLost() 223 mLooper.processAllMessages() in verifyCanceledNotificationAfterDefaultNetworkLost() 232 mLooper.processAllMessages() in testConnectedNotification_NoSsid() 246 mLooper.processAllMessages() in testConnectedNotification_WithSsid() 264 mLooper.processAllMessages() in testConnectedVenueInfoNotification() 283 mLooper.processAllMessages() in testConnectedVenueInfoNotification_VenueInfoDisabled() [all …]
|