Home
last modified time | relevance | path

Searched refs:mLooper (Results 1 – 25 of 132) sorted by relevance

123456

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java143 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 …]
DWifiServiceImplTest.java302 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 …]
DConcreteClientModeManagerTest.java95 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 …]
DClientModeImplTest.java469 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 …]
DLocalOnlyHotspotRequestInfoTest.java48 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 …]
DWifiMonitorTest.java72 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 …]
DSoftApManagerTest.java157 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 …]
DExternalScoreUpdateObserverProxyTest.java45 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()
DWifiScoreReportTest.java135 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/
DLooperWrapper.cpp28 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/
DEntitlementManagerTest.java125 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 …]
DTetheringTest.java286 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 …]
DUpstreamNetworkMonitorTest.java104 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/
DWifiScanningServiceTest.java156 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/
DLooperWrapper.cpp30 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()
DStatsCollector.cpp79 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/
DLooperWrapper.cpp28 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()
DStatsCollector.cpp80 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/
DRedirectListenerTest.java52 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/
DChildSessionStateMachineTest.java201 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 …]
DIkeSessionStateMachineTest.java407 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/
DPasspointProvisionerTest.java152 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/
DWifiP2pMonitorTest.java46 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/
DWifiScannerTest.java94 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/
DNetworkStackNotifierTest.kt100 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 …]

123456