Home
last modified time | relevance | path

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

123

/cts/tests/tests/os/src/android/os/cts/
DHandlerThreadTest.java47 assertNotNull(ht.getLooper()); in testGetThreadId()
48 Looper looper = ht.getLooper(); in testGetThreadId()
79 mLooper = getLooper(); in onLooperPrepared()
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 …]
DMessengerTest.java282 public Looper getLooper() { in getLooper() method in MessengerTest.MessengerTestHelper
309 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/media/src/android/media/cts/
DMediaSessionManagerTest.java115 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnVolumeKeyLongPressListener()
147 Handler handler = new Handler(handlerThread.getLooper()); in testSetOnMediaKeyListener()
219 assertEquals(mHandler.getLooper(), Looper.myLooper()); in onVolumeKeyLongPress()
240 assertEquals(mHandler.getLooper(), Looper.myLooper()); in onMediaKey()
DAudioFocusTest.java125 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
211 h = new Handler(handlerThread.getLooper()); in doTestTwoPlayersGainLoss()
260 h.getLooper().quit(); in doTestTwoPlayersGainLoss()
DAudioRecordingConfigurationTest.java157 h = new Handler(handlerThread.getLooper()); in doCallbackTest()
205 h.getLooper().quit(); in doCallbackTest()
DAudioPlaybackConfigurationTest.java174 h = new Handler(handlerThread.getLooper()); in doTestCallbackMediaPlayer()
233 h.getLooper().quit(); in doTestCallbackMediaPlayer()
DUtils.java177 final Handler handler = new Handler(handlerThread.getLooper()); in assertMediaPlaybackStarted()
/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java50 Looper looper = ht.getLooper(); in testContentObserver()
94 Looper looper = ht.getLooper(); in testContentObserverWithUri()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java65 mServiceLooper = thread.getLooper(); in onCreate()
/cts/hostsidetests/incident/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOService.java71 mServiceLooper = thread.getLooper(); in onCreate()
/cts/hostsidetests/incident/src/com/android/server/cts/
DPowerIncidentTest.java67 final LooperProto looper = dump.getLooper(); in testPowerServiceDump()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java36 sHandler = new Handler(thread.getLooper());
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java447 handlerThread.getLooper()); in testLocationUpdatesWithLocationListenerAndLooper()
547 mManager.requestSingleUpdate(TEST_MOCK_PROVIDER_NAME, listener, handlerThread.getLooper()); in testSingleUpdateWithLocationListenerAndLooper()
730 mManager.requestLocationUpdates(0, 0, criteria, listener, handlerThread.getLooper()); in testLocationUpdatesWithCriteriaAndLocationListenerAndLooper()
788 mManager.requestSingleUpdate(criteria, listener, handlerThread.getLooper()); in testSingleUpdateWithCriteriaAndLocationListenerAndLooper()
919 mManager.addNmeaListener(gnssListener, new Handler(handlerThread.getLooper())); in testNmeaListener()
1045 mManager.registerGnssStatusCallback(callback, new Handler(handlerThread.getLooper())); in testGnssStatusListener()
1069 handlerThread.getLooper()); in testSetTestProviderStatus()
1196 handlerThread.getLooper()); in updateLocationAndWait()
/cts/tests/tests/permission/src/android/permission/cts/
DCamera2PermissionTest.java67 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DBaseTestCase.java87 mHandler = new Handler(mHandlerThread.getLooper()); in start()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java110 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in internalTestOutgoingCall()
162 new CalllogContentObserver(new Handler(handlerThread.getLooper()), in testIncomingCall()
DCameraPolicyTest.java144 mBackgroundHandler = new Handler(mBackgroundThread.getLooper()); in startBackgroundThread()
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator.java111 mWorkerHandler = new Handler(mWorkerThread.getLooper()); in SurfacePixelValidator()
/cts/tests/camera/api25test/src/android/camera/cts/api25test/
DEnableZslTest.java73 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java125 UriObserver uriObserver = new UriObserver(new Handler(handlerThread.getLooper())); in onCreate()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.java73 }, new Handler(handlerThread.getLooper())); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DCameraStreamManager.java234 mBackgroundHandler = new Handler(mBackgroundThread.getLooper()); in startBackgroundThread()

123