Home
last modified time | relevance | path

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

12345678

/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java132 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooper()
154 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testNonMainLooperAnnotation()
160 assertEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAnnotation()
167 assertEquals("Should run on main looper", Looper.getMainLooper(), Looper.myLooper()); in testCorrectLooperExecution()
/frameworks/base/core/java/android/os/
DLooper.java125 sMainLooper = myLooper(); in prepareMainLooper()
152 final Looper me = myLooper(); in loop()
284 public static @Nullable Looper myLooper() { in myLooper() method in Looper
294 return myLooper().mQueue; in myQueue()
DHandlerThread.java62 mLooper = Looper.myLooper(); in run()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusedLocationProvider.java61 mHandler = new Handler(Looper.myLooper()); in FusedLocationProvider()
62 mEngine = new FusionEngine(context, Looper.myLooper(), this); in FusedLocationProvider()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLEnvironment.java85 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) { in activate()
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java254 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bindBestPackage()
331 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bind()
347 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in unbind()
435 if (Looper.myLooper() == mHandler.getLooper()) {
443 if (Looper.myLooper() == mHandler.getLooper()) {
/frameworks/base/tests/net/java/android/net/util/
DVersionedBroadcastListenerTest.java64 if (Looper.myLooper() == null) { in setUpBeforeClass()
73 mHandler = new Handler(Looper.myLooper()); in setUp()
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java139 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()
166 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/
DIkeSocketTest.java144 if (Looper.myLooper() == null) Looper.myLooper().prepare(); in testGetAndCloseIkeSocket()
162 if (Looper.myLooper() == null) Looper.myLooper().prepare(); in testSendIkePacket()
DIkeSessionStateMachineTest.java213 if (Looper.myLooper() == null) Looper.myLooper().prepare(); in testCreateIkeLocalIkeInit()
255 if (Looper.myLooper() == null) Looper.myLooper().prepare(); in mockIkeSetup()
/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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSFragmentTest.java92 assertEquals(Looper.myLooper(), Looper.getMainLooper()); in testListening()
97 mock(QSFactoryImpl.class), new Handler(), Looper.myLooper(), in testListening()
/frameworks/base/core/tests/coretests/src/android/os/
DHandlerTester.java58 mLooper = Looper.myLooper(); in run()
DTestHandlerThread.java78 mLooper = Looper.myLooper(); in run()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityManager.java535 Looper myLooper = Looper.myLooper(); in sendAccessibilityEvent() local
536 if (myLooper == Looper.getMainLooper()) { in sendAccessibilityEvent()
593 Looper myLooper = Looper.myLooper(); in interrupt() local
594 if (myLooper == Looper.getMainLooper()) { in interrupt()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsTestBase.java41 if (Looper.myLooper() == null) { in setUp()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DImsTestBase.java41 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()
150 if (Looper.myLooper() == null) { in testProvisioningPackageUnset()
/frameworks/base/telephony/java/com/android/ims/
DImsConfig.java734 if (Looper.myLooper() == null) { in getThreadExecutor()
737 return new HandlerExecutor(new Handler(Looper.myLooper())); in getThreadExecutor()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DValueTarget.java44 if (Looper.myLooper() == null) { in setListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java70 mListener = new NightDisplayListener(mContext, new Handler(Looper.myLooper())); in NightDisplayTile()
106 mListener = new NightDisplayListener(mContext, newUserId, new Handler(Looper.myLooper())); in handleUserSwitch()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
DAppTransitionAnimationSpecsFuture.java86 if (Looper.myLooper() != mHandler.getLooper()) { in composeSpecsSynchronous()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCameraTestThread.java54 mLooper = Looper.myLooper(); in start()

12345678