Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/os/src/android/os/cts/
DHandlerThreadTest.java66 assertNotNull(ht.getLooper()); in testGetThreadId()
67 Looper looper = ht.getLooper(); in testGetThreadId()
98 mLooper = getLooper(); in onLooperPrepared()
DMessageQueueTest.java154 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
159 Handler handler = new Handler(thread.getLooper()); in testIsIdle()
179 assertFalse(thread.getLooper().getQueue().isIdle()); in testIsIdle()
185 assertTrue(thread.getLooper().getQueue().isIdle()); in testIsIdle()
345 final MessageQueue queue = thread.getLooper().getQueue(); in testFileDescriptorCallbacks()
476 final MessageQueue queue = thread.getLooper().getQueue(); in testPathologicalFileDescriptorReuseCallbacks1()
477 final Handler handler = new Handler(thread.getLooper()); in testPathologicalFileDescriptorReuseCallbacks1()
557 final MessageQueue queue = thread.getLooper().getQueue(); in testPathologicalFileDescriptorReuseCallbacks2()
558 final Handler handler = new Handler(thread.getLooper()); in testPathologicalFileDescriptorReuseCallbacks2()
648 final MessageQueue queue = thread.getLooper().getQueue(); in testPathologicalFileDescriptorReuseCallbacks3()
[all …]
DMessengerTest.java239 public Looper getLooper() { in getLooper() method in MessengerTest.MessengerTestHelper
266 mLooper = getLooper(); in onLooperPrepared()
/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.java106 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellInfo()
130 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForCellLocation()
154 Executor executor = new Handler(handlerThread.getLooper())::post; in listenForServiceState()
182 Executor executor = new Handler(handlerThread.getLooper())::post; in requestCellInfoUpdate()
/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcUtils.java58 Handler handler = new Handler(handlerThread.getLooper()); in enableNfc()
101 Handler handler = new Handler(handlerThread.getLooper()); in disableNfc()
/cts/tests/framework/base/windowmanager/backgroundactivity/common/src/android/server/wm/backgroundactivity/common/
DEventReceiver.java62 if (Thread.currentThread() == mHandler.getLooper().getThread()) {
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioFocusTest.java282 final Handler h = new Handler(handlerThread.getLooper()); in testNullListenerHandlerNpe()
424 final Handler handler = new Handler(handlerThread.getLooper()); in testAudioFocusDelayedByCall()
474 handler.getLooper().quit(); in testAudioFocusDelayedByCall()
496 final Handler handler = new Handler(handlerThread.getLooper()); in testAudioFocusTransientDelayedByCall()
551 handler.getLooper().quit(); in testAudioFocusTransientDelayedByCall()
578 final Handler handler = new Handler(handlerThread.getLooper()); in testAudioFocusRequestMediaGainLossWithPlayer()
632 handler.getLooper().quit(); in testAudioFocusRequestMediaGainLossWithPlayer()
868 final Handler handler = new Handler(handlerThread.getLooper()); in runDuckedUidsTest()
978 handler.getLooper().quit(); in runDuckedUidsTest()
1075 final Handler handler = new Handler(handlerThread.getLooper()); in doTwoFocusOwnerOnePlayerFocusLoss()
[all …]
DUtilsTest.java59 private final Handler mHandler = Handler.createAsync(thread.getLooper()); in testListenerList()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21145/src/android/security/cts/CVE_2023_21145/
DPipActivity.java40 Handler handler = new Handler(handlerThread.getLooper()); in onResume()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/
DCtsMainVoiceInteractionService.java46 mHandler = Handler.createAsync(handlerThread.getLooper()); in CtsMainVoiceInteractionService()
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessService.java37 mHandler = new Handler(handlerThread.getLooper()); in TestProcessService()
DWebViewStartupTest.java200 Handler backgroundHandler = new Handler(backgroundThread.getLooper()); in run()
211 assertEquals(backgroundThread.getLooper(), webview.getWebViewLooper()); in run()
/cts/tests/camera/src/android/hardware/camera2/cts/
DIdleUidTest.java84 new Handler(sCallbackThread.getLooper())); in testCameraAccessForIdleUid()
95 new Handler(sCallbackThread.getLooper())); in testCameraAccessBecomingInactiveUid()
/cts/hostsidetests/resources/test-apps/RegisterSharedLibTestApp2/src/android/resources/registerresourcepaths2/
DRegisterResourcePathsTest.java81 mBackgroundHandler = new Handler(mBackgroundThread.getLooper()); in startBackgroundThread()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DWindowFocusHandleService.java74 mThreadHandler = new Handler(localThread.getLooper()); in onCreate()
112 == getHandler().getLooper().getThread().getId()) { in createPopupTextView()
/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/
DLoadingProgressTest.java143 mLauncherApps.registerCallback(mCallback, new Handler(mCallbackThread.getLooper())); in testOnPackageLoadingProgressChangedCalledWithPartialLoaded()
151 mLauncherApps.registerCallback(mCallback, new Handler(mCallbackThread.getLooper())); in testOnPackageLoadingProgressChangedCalledWithFullyLoaded()
/cts/tests/tests/attributionsource/src/android/attributionsource/cts/
DAttributionSourceActivity.kt42 val handler = Handler(mHandlerThread!!.getLooper()) in onCreate()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java251 }, new Handler(handlerThread.getLooper()), 0, NO_RESPONSE, null); in processUserData()
293 }, new Handler(handlerThread.getLooper()), noResponse, null, null); in getUserDataVersion()
320 }, new Handler(handlerThread.getLooper()), 0, null, null); in sendBroadcastAndWait()
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/
DUtils.java54 final Handler handler = new Handler(handlerThread.getLooper()); in assertMediaPlaybackStarted()
/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java68 Looper looper = ht.getLooper(); in testContentObserver()
114 Looper looper = ht.getLooper(); in testContentObserverWithUri()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaControllerTest.java495 assertThat(initialHandler.getLooper()).isEqualTo(mHandler.getLooper()); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
502 mController.registerCallback(callback, new Handler(handlerThread.getLooper())); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
507 assertThat(currentHandlerInController.getLooper()).isNotEqualTo(handlerThread.getLooper()); in testRegisteringSameCallbackWithDifferentHandlerHasNoEffect()
522 assertThat(mController.getHandlerForCallback(callback).getLooper()) in testUnregisterCallbackShouldRemoveCallback()
523 .isEqualTo(mHandler.getLooper()); in testUnregisterCallbackShouldRemoveCallback()
/cts/tests/app/src/android/app/cts/
DBadProviderTest.java61 Handler handler = new Handler(worker.getLooper()); in testExitOnCreate()
/cts/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOService.java106 mServiceLooper = thread.getLooper(); in onCreate()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdCtsForegroundService.java80 mServiceLooper = thread.getLooper(); in onCreate()

1234567