Home
last modified time | relevance | path

Searched refs:getLooper (Results 1 – 25 of 110) sorted by relevance

12345

/cts/tests/tests/os/src/android/os/cts/
DMessageQueueTest.java131 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
136 Handler handler = new Handler(thread.getLooper()); in testIsIdle()
156 assertFalse(thread.getLooper().getQueue().isIdle()); in testIsIdle()
162 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
277 final MessageQueue queue = thread.getLooper().getQueue(); in testFileDescriptorCallbacks()
406 final MessageQueue queue = thread.getLooper().getQueue(); in testPathologicalFileDescriptorReuseCallbacks1()
407 final Handler handler = new Handler(thread.getLooper()); in testPathologicalFileDescriptorReuseCallbacks1()
485 final MessageQueue queue = thread.getLooper().getQueue(); in testPathologicalFileDescriptorReuseCallbacks2()
486 final Handler handler = new Handler(thread.getLooper()); in testPathologicalFileDescriptorReuseCallbacks2()
574 final MessageQueue queue = thread.getLooper().getQueue(); in testPathologicalFileDescriptorReuseCallbacks3()
[all …]
DHandlerThreadTest.java47 assertNotNull(ht.getLooper()); in testGetThreadId()
48 Looper looper = ht.getLooper(); in testGetThreadId()
79 mLooper = getLooper(); in onLooperPrepared()
DMessengerTest.java237 public Looper getLooper() { in getLooper() method in MessengerTest.MessengerTestHelper
264 mLooper = getLooper(); in onLooperPrepared()
DMessageTest.java261 Handler handler = new Handler(mHandler.getLooper()) { in testRecycleThrowsIfMessageIsBeingDelivered()
281 Handler handler = new Handler(mHandler.getLooper()) { in testSendMessageThrowsIfMessageIsBeingDelivered()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestTaskQueue.java38 mHandler = new Handler(th.getLooper()); in TestTaskQueue()
52 mHandler.getLooper().quit(); in quit()
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java90 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellInfo()
114 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellLocation()
138 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForServiceState()
/cts/tests/tests/media/src/android/media/cts/
DAudioPlaybackConfigurationTest.java182 h = new Handler(handlerThread.getLooper()); in doTestCallbackMediaPlayer()
241 h.getLooper().quit(); in doTestCallbackMediaPlayer()
249 final Handler h = new Handler(handlerThread.getLooper()); in testCallbackMediaPlayerRelease()
293 h.getLooper().quit(); in testCallbackMediaPlayerRelease()
DAudioFocusTest.java133 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
273 h = new Handler(handlerThread.getLooper()); in doTestTwoPlayersGainLoss()
332 h.getLooper().quit(); in doTestTwoPlayersGainLoss()
DMediaSessionManagerTest.java411 return new Handler(handlerThread.getLooper()); in createHandler()
418 handler.getLooper().quitSafely(); in removeHandler()
436 assertEquals(mHandler.getLooper(), Looper.myLooper()); in onVolumeKeyLongPress()
457 assertEquals(mHandler.getLooper(), Looper.myLooper()); in onMediaKey()
DAudioRecordingConfigurationTest.java165 h = new Handler(handlerThread.getLooper()); in doCallbackTest()
220 h.getLooper().quit(); in doCallbackTest()
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java80 new Handler(sCallbackThread.getLooper())); in testCameraAccessForIdleUid()
93 new Handler(sCallbackThread.getLooper())); in testCameraAccessBecomingInactiveUid()
/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java50 Looper looper = ht.getLooper(); in testContentObserver()
94 Looper looper = ht.getLooper(); in testContentObserverWithUri()
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java385 handlerThread.getLooper()); in testLocationUpdatesWithLocationListenerAndLooper()
485 mManager.requestSingleUpdate(TEST_MOCK_PROVIDER_NAME, listener, handlerThread.getLooper()); in testSingleUpdateWithLocationListenerAndLooper()
668 mManager.requestLocationUpdates(0, 0, criteria, listener, handlerThread.getLooper()); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
726 mManager.requestSingleUpdate(criteria, listener, handlerThread.getLooper()); in testSingleUpdateWithCriteriaAndLocationListenerAndLooper()
849 mManager.addNmeaListener(gnssListener, new Handler(handlerThread.getLooper())); in testNmeaListener()
964 mManager.registerGnssStatusCallback(callback, new Handler(handlerThread.getLooper())); in testGnssStatusListener()
1087 handlerThread.getLooper()); in updateLocationAndWait()
/cts/tests/tests/webkit/src/android/webkit/cts/
DPostMessageTest.java294 final Handler messageHandler = new Handler(messageHandlerThread.getLooper()); in testWebMessageHandler()
302 messageHandlerThread.getLooper().isCurrentThread()); in testWebMessageHandler()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java260 new Handler(backgroundThread.getLooper()).post(new Runnable() { in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread()
267 assertEquals(backgroundThread.getLooper(), webviewHolder[0].getWebViewLooper()); in testGetWebViewLooperCreatedOnBackgroundThreadFromInstThread()
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java36 sHandler = new Handler(thread.getLooper());
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCameraPolicyTest.java112 mBackgroundHandler = new Handler(mBackgroundThread.getLooper()); in startBackgroundThread()
DPhoneAccountTest.java115 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in internalTestOutgoingCall()
196 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in internalTestIncomingCall()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java80 mServiceLooper = thread.getLooper(); in onCreate()
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOService.java106 mServiceLooper = thread.getLooper(); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DBaseTestCase.java104 mHandler = new Handler(mHandlerThread.getLooper()); in start()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java76 mServiceLooper = thread.getLooper(); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DBaseTestCase.java87 mHandler = new Handler(mHandlerThread.getLooper()); in start()
/cts/tests/tests/permission/src/android/permission/cts/
DCamera2PermissionTest.java71 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
/cts/hostsidetests/incident/src/com/android/server/cts/
DPowerIncidentTest.java91 final LooperProto looper = dump.getLooper(); in verifyPowerManagerServiceDumpProto()

12345