Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/java/android/os/
DLooper.java112 sMainLooper = myLooper(); in prepareMainLooper()
130 final Looper me = myLooper(); in loop()
203 public static @Nullable Looper myLooper() { in myLooper() method in Looper
213 return myLooper().mQueue; in myQueue()
DHandlerThread.java60 mLooper = Looper.myLooper(); in run()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
DBaseDataBinderTest.java51 return Looper.myLooper() == Looper.getMainLooper(); in isMainThread()
64 if (Looper.myLooper() == Looper.getMainLooper()) { in runTestOnUiThread()
76 if (Looper.myLooper() != Looper.getMainLooper()) { in initBinder()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java131 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooper()
153 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testNonMainLooperAnnotation()
159 assertEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAnnotation()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLEnvironment.java82 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) { in activate()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DThreadUtilTest.java176 assertThat(Looper.myLooper(), notNullValue()); in assertMainThread()
177 assertThat(Looper.myLooper(), sameInstance(Looper.getMainLooper())); in assertMainThread()
181 assertThat(Looper.myLooper(), not(Looper.getMainLooper())); in assertBackgroundThread()
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java134 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()
161 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DSimChangeListenerTest.java69 if (Looper.myLooper() == null) { in setUpBeforeClass()
78 mHandler = new Handler(Looper.myLooper()); in setUp()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityManager.java410 Looper myLooper = Looper.myLooper(); in sendAccessibilityEvent() local
411 if (myLooper == Looper.getMainLooper()) { in sendAccessibilityEvent()
463 Looper myLooper = Looper.myLooper(); in interrupt() local
464 if (myLooper == Looper.getMainLooper()) { in interrupt()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DTestedScreen.java73 Looper.myLooper().myQueue().addIdleHandler(new Idler()); in onResume()
76 Looper.myLooper().myQueue().addIdleHandler(new Idler()); in onResume()
DTestedActivity.java45 Looper.myLooper().myQueue().addIdleHandler(new Idler()); in onResume()
/frameworks/base/media/java/android/media/
DMediaSync.java259 if ((looper = Looper.myLooper()) == null) { in setCallback()
292 if ((looper = Looper.myLooper()) == null) { in setOnErrorListener()
620 mAudioLooper = Looper.myLooper(); in createAudioThread()
DSubtitleController.java484 … assert Looper.myLooper() == mHandler.getLooper() : "Must be called from the anchor's looper"; in checkAnchorLooper()
489 if (Looper.myLooper() == mHandler.getLooper()) { in processOnAnchor()
/frameworks/base/core/tests/coretests/src/android/os/
DHandlerTester.java62 mLooper = Looper.myLooper(); in run()
DTestHandlerThread.java83 mLooper = Looper.myLooper(); in run()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsTestBase.java40 if (Looper.myLooper() == null) { in setUp()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DImsTestBase.java40 if (Looper.myLooper() == null) { in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccStateChangedLauncherTest.java89 if (Looper.myLooper() == null) { in testProvisioningPackageSet()
153 if (Looper.myLooper() == null) { in testProvisioningPackageUnset()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DValueTarget.java44 if (Looper.myLooper() == null) { in setListener()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCameraTestThread.java54 mLooper = Looper.myLooper(); in start()
/frameworks/support/design/tests/src/android/support/design/testutils/
DActivityUtils.java52 if (Looper.getMainLooper() == Looper.myLooper()) { in runOnUiThreadRethrow()
/frameworks/base/telephony/java/android/telephony/
DPhoneStateListener.java271 this(null, Looper.myLooper()); in PhoneStateListener()
290 this(subId, Looper.myLooper()); in PhoneStateListener()
/frameworks/layoutlib/bridge/src/android/os/
DHandlerThread_Delegate.java72 theThread.mLooper = Looper.myLooper(); in run()
/frameworks/base/core/java/android/animation/
DValueAnimator.java1010 if (Looper.myLooper() == null) { in start()
1070 if (Looper.myLooper() == null) { in cancel()
1100 if (Looper.myLooper() == null) { in end()
1116 if (Looper.myLooper() == null) { in resume()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityGestureDetectorTest.java71 if (Looper.myLooper() == null) { in oneTimeInitialization()
85 when(contextMock.getMainLooper()).thenReturn(Looper.myLooper()); in setUp()

1234567