Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/
DTestUiOffloadThread.java37 Looper myLooper = Looper.myLooper(); in execute() local
38 if (myLooper != null && myLooper.isCurrentThread()) { in execute()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DServiceWatcherImpl.java199 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bind()
228 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in unbind()
249 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in runOnBinder()
268 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceConnected()
288 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceDisconnected()
304 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onBindingDied()
/frameworks/base/packages/SystemUI/tests/utils/src/android/animation/
DAnimatorTestRule.java148 if (Looper.myLooper() == Looper.getMainLooper()) {
174 mLooperWithLockedAnimationClock = Looper.myLooper();
194 if (mLooperWithLockedAnimationClock != Looper.myLooper()) {
195 throw new AssertionError("Animation clock being locked on " + Looper.myLooper()
295 if (Looper.myLooper() == null) {
/frameworks/base/core/java/android/os/
DLooper.java136 sMainLooper = myLooper(); in prepareMainLooper()
294 final Looper me = myLooper(); in loop()
352 public static @Nullable Looper myLooper() { in myLooper() method in Looper
362 return myLooper().mQueue; in myQueue()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLEnvironment.java84 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) { in activate()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java102 mHandler = new Handler(Looper.myLooper()); in setUp()
140 Handler handler = new Handler(Looper.myLooper()) { in testPassEidInConstructor()
164 Handler handler = new Handler(Looper.myLooper()) { in testLoadEidAndNotifyRegistrants()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java136 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooper()
158 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testNonMainLooperAnnotation()
164 assertEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAnnotation()
171 assertEquals("Should run on main looper", Looper.getMainLooper(), Looper.myLooper()); in testCorrectLooperExecution()
/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/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/
DUnfoldFrameCallbackScheduler.kt39 Looper.myLooper() ?: error("This should be created in a thread with a looper.")
/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/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubblesNavBarInputEventReceiver.java35 super(inputChannel, Looper.myLooper(), choreographer); in BubblesNavBarInputEventReceiver()
/frameworks/base/core/tests/coretests/src/android/os/
DHandlerTester.java58 mLooper = Looper.myLooper(); in run()
DTestHandlerThread.java78 mLooper = Looper.myLooper(); in run()
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/
DViewCaptureFactory.kt36 if (Looper.myLooper() != Looper.getMainLooper()) { in getInstance()
DLooperExecutor.java41 if (mHandler.getLooper() == Looper.myLooper()) { in execute()
/frameworks/base/tests/Input/src/com/android/test/input/
DUnresponsiveGestureMonitorActivity.kt51 mInputMonitor.getInputChannel(), Looper.myLooper()!!) in onCreate()
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerTest.java146 Looper testLooper = Looper.myLooper(); in testCreateChoreographer()
160 assertEquals(choreographer1, sc1.getChoreographer(Looper.myLooper())); in testCreateChoreographer()
166 Choreographer choreographer2 = sc2.getChoreographer(Looper.myLooper()); in testCreateChoreographer()
169 assertEquals(choreographer2, sc2.getChoreographer(Looper.myLooper())); in testCreateChoreographer()
180 assertEquals(choreographer3, sc3.getChoreographer(Looper.myLooper())); in testCreateChoreographer()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DValueTarget.java44 if (Looper.myLooper() == null) { in setListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/fragments/
DFragmentServiceTest.kt21 if (Looper.myLooper() == null) { in setUp()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DImsTestBase.java51 if (Looper.myLooper() == null) { in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccStateChangedLauncherTest.java87 if (Looper.myLooper() == null) { in testProvisioningPackageSet()
149 if (Looper.myLooper() == null) { in testProvisioningPackageUnset()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCameraTestThread.java54 mLooper = Looper.myLooper(); in start()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
DAppTransitionAnimationSpecsFuture.java86 if (Looper.myLooper() != mHandler.getLooper()) { in composeSpecsSynchronous()
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java166 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()
193 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()

1234567891011