Home
last modified time | relevance | path

Searched refs:myLooper (Results 1 – 25 of 56) sorted by relevance

123

/cts/tests/tests/os/src/android/os/cts/
DLooperTest.java73 assertNull(Looper.myLooper()); in testMyLooper()
75 assertNotNull(Looper.myLooper()); in testMyLooper()
88 assertTrue(Looper.myLooper().isCurrentThread()); in testIsCurrentThread()
89 looper[0] = Looper.myLooper(); in testIsCurrentThread()
123 assertNotNull(Looper.myLooper().getQueue()); in testGetQueue()
124 assertEquals(Looper.myLooper().getQueue(), Looper.myQueue()); in testGetQueue()
169 mLooper = Looper.myLooper(); in testQuit()
201 Looper.myLooper().setMessageLogging(mp); in testSetMessageLogging()
236 Looper.myLooper().quit(); in run()
240 Looper.myLooper().quit(); in stop()
DTestedScreen.java66 Looper.myLooper(); in onResume()
70 Looper.myLooper(); in onResume()
DTokenWatcherTest.java53 mLooper = Looper.myLooper(); in setUp()
/cts/tests/tests/media/src/android/media/cts/
DEnumDevicesTest.java192 Looper myLooper = null; in prepareIfNeededLooper() local
193 if (Looper.myLooper() == null) { in prepareIfNeededLooper()
195 myLooper = Looper.myLooper(); in prepareIfNeededLooper()
196 assertNotNull(myLooper); in prepareIfNeededLooper()
198 return myLooper; in prepareIfNeededLooper()
219 Looper myLooper = prepareIfNeededLooper(); in test_deviceCallback() local
231 if (myLooper != null) { in test_deviceCallback()
232 myLooper.quit(); in test_deviceCallback()
DRoutingTest.java220 Looper myLooper = null; in prepareIfNeededLooper() local
221 if (Looper.myLooper() == null) { in prepareIfNeededLooper()
223 myLooper = Looper.myLooper(); in prepareIfNeededLooper()
224 assertNotNull(myLooper); in prepareIfNeededLooper()
226 return myLooper; in prepareIfNeededLooper()
285 Looper myLooper = prepareIfNeededLooper(); in test_audioTrack_RoutingListener() local
300 if (myLooper != null) { in test_audioTrack_RoutingListener()
301 myLooper.quit(); in test_audioTrack_RoutingListener()
380 Looper myLooper = prepareIfNeededLooper(); in test_audioRecord_RoutingListener() local
394 if (myLooper != null) { in test_audioRecord_RoutingListener()
[all …]
/cts/tests/location/common/src/android/location/cts/common/
DLocationPendingIntentCapture.java68 if (Looper.myLooper() == Looper.getMainLooper()) { in getNextLocation()
76 if (Looper.myLooper() == Looper.getMainLooper()) { in getNextFlush()
84 if (Looper.myLooper() == Looper.getMainLooper()) { in getNextProviderChange()
DOpActiveChangedCapture.java39 if (Looper.myLooper() == Looper.getMainLooper()) { in getNextActive()
DBroadcastCapture.java48 if (Looper.myLooper() == Looper.getMainLooper()) { in getNextIntent()
DProximityPendingIntentCapture.java43 if (Looper.myLooper() == Looper.getMainLooper()) { in getNextProximityChange()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebkitUtils.java96 if (Looper.myLooper() == Looper.getMainLooper()) { in onMainThreadSync()
113 if (Looper.myLooper() == Looper.getMainLooper()) { in onMainThreadSync()
DWebViewSyncLoader.java348 Looper.myLooper(), mWebView.getHandler().getLooper()); in pumpMessages()
377 return (Looper.myLooper() == Looper.getMainLooper()); in isUiThread()
/cts/tests/app/app/src/android/app/stubs/
DTestedScreen.java66 Looper.myLooper(); in onResume()
70 Looper.myLooper(); in onResume()
DTestedActivity.java40 Looper.myLooper(); in onResume()
/cts/tests/app/src/android/app/cts/
DBaseProcessInstrumentation.java69 new Handler(Looper.myLooper()).postDelayed(new Runnable() { in onCreate()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java263 assertNotNull(Looper.myLooper()); in createAndCheckWebViewLooper()
265 assertEquals(Looper.myLooper(), webview.getWebViewLooper()); in createAndCheckWebViewLooper()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183613671/src/android/security/cts/BUG_183613671/
DOverlayService.java92 new Handler(Looper.myLooper()).postDelayed(this::stopSelf, 60_000); in showFloatingWindow()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/
DOverlayService.java92 new Handler(Looper.myLooper()).postDelayed(this::stopSelf, 60_000); in showFloatingWindow()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java91 if (Looper.myLooper() == Looper.getMainLooper()) { in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/tests/camera/src/android/hardware/cts/
DCameraPerformanceTestHelper.java63 mLooper = Looper.myLooper(); in initializeMessageLooper()
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DMainActivity.java56 private final Handler mHandler = new Handler(Looper.myLooper());
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DDirectShellCommand.java137 Looper.myLooper().quitSafely(); in onReceiveResult()
/cts/tests/framework/base/windowmanager/app_base/src/android/server/wm/app/
DTestActivity.java80 Looper.myLooper().getQueue().addIdleHandler(() -> { in preventActivityIdle()
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DCollectionAppWidgetProvider.java125 final Handler handler = new Handler(Looper.myLooper()); in onUpdate()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java188 if (Looper.myLooper() != Looper.getMainLooper()) { in assertCrossProfileCall()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsKeyEventUtil.java296 if (Looper.myLooper() == Looper.getMainLooper()) { in validateNotAppThread()

123