Home
last modified time | relevance | path

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

12345678

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenrecord/
H A DRecordingControllerTest.java100 if (Looper.myLooper() == null) { in testCancelCountdown()
120 if (Looper.myLooper() == null) { in testStartRecording()
134 if (Looper.myLooper() == null) { in testStopRecording()
165 if (Looper.myLooper() == null) { in testUpdateStateBroadcast()
194 if (Looper.myLooper() == null) { in testUserChange()
214 if (Looper.myLooper() == null) { in testPoliciesFlagDisabled_screenCapturingNotAllowed_returnsNullDevicePolicyDialog()
230 if (Looper.myLooper() == null) { in testPartialScreenSharingDisabled_returnsLegacyDialog()
245 if (Looper.myLooper() == null) { in testPoliciesFlagEnabled_screenCapturingNotAllowed_returnsDevicePolicyDialog()
261 if (Looper.myLooper() == null) { in testPoliciesFlagEnabled_screenCapturingAllowed_returnsNullDevicePolicyDialog()
/aosp14/frameworks/base/services/core/java/com/android/server/servicewatcher/
H A 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()
/aosp14/frameworks/base/core/java/android/os/
H A DLooper.java133 sMainLooper = myLooper(); in prepareMainLooper()
267 final Looper me = myLooper(); in loop()
317 public static @Nullable Looper myLooper() { in myLooper() method in Looper
327 return myLooper().mQueue; in myQueue()
H A DHandlerThread.java62 mLooper = Looper.myLooper(); in run()
H A DHandler.java224 mLooper = Looper.myLooper(); in Handler()
608 if (Looper.myLooper() == mLooper) { in runWithScissors()
771 if (mLooper == Looper.myLooper()) { in executeOrSendMessage()
/aosp14/frameworks/base/tests/testables/tests/src/android/testing/
H A DTestableLooperTest.java135 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooper()
157 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testNonMainLooperAnnotation()
163 assertEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAnnotation()
170 assertEquals("Should run on main looper", Looper.getMainLooper(), Looper.myLooper()); in testCorrectLooperExecution()
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLEnvironment.java84 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) { in activate()
/aosp14/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
H A DAttachedChoreographerTest.java133 Looper testLooper = Looper.myLooper(); in testCreateChoreographer()
147 assertEquals(choreographer1, sc1.getChoreographer(Looper.myLooper())); in testCreateChoreographer()
153 Choreographer choreographer2 = sc2.getChoreographer(Looper.myLooper()); in testCreateChoreographer()
156 assertEquals(choreographer2, sc2.getChoreographer(Looper.myLooper())); in testCreateChoreographer()
167 assertEquals(choreographer3, sc3.getChoreographer(Looper.myLooper())); in testCreateChoreographer()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DSurfaceTexture.java142 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()
169 mCreatorLooper = Looper.myLooper(); in SurfaceTexture()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DTestedScreen.java73 Looper.myLooper().myQueue().addIdleHandler(new Idler()); in onResume()
76 Looper.myLooper().myQueue().addIdleHandler(new Idler()); in onResume()
H A DTestedActivity.java45 Looper.myLooper().myQueue().addIdleHandler(new Idler()); in onResume()
/aosp14/frameworks/base/media/java/android/media/
H A DMediaSync.java259 if ((looper = Looper.myLooper()) == null) { in setCallback()
292 if ((looper = Looper.myLooper()) == null) { in setOnErrorListener()
620 mAudioLooper = Looper.myLooper(); in createAudioThread()
H A DSubtitleController.java491 … assert Looper.myLooper() == mHandler.getLooper() : "Must be called from the anchor's looper"; in checkAnchorLooper()
496 if (Looper.myLooper() == mHandler.getLooper()) { in processOnAnchor()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubblesNavBarInputEventReceiver.java35 super(inputChannel, Looper.myLooper(), choreographer); in BubblesNavBarInputEventReceiver()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DHandlerTester.java58 mLooper = Looper.myLooper(); in run()
H A DTestHandlerThread.java78 mLooper = Looper.myLooper(); in run()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DScreenshotNotificationSmartActionsTest.java173 if (Looper.myLooper() == null) { in testShareActionExtras()
201 if (Looper.myLooper() == null) { in testEditActionExtras()
229 if (Looper.myLooper() == null) { in testDeleteActionExtras()
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/
H A DUnresponsiveGestureMonitorActivity.kt51 mInputMonitor.getInputChannel(), Looper.myLooper())
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DValueTarget.java44 if (Looper.myLooper() == null) { in setListener()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DCountryDetectorServiceTest.java101 @Spy private Handler mHandler = new Handler(Looper.myLooper());
108 if (Looper.myLooper() == null) { in oneTimeInitialization()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/fragments/
H A DFragmentServiceTest.kt21 if (Looper.myLooper() == null) {
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCameraTestThread.java54 mLooper = Looper.myLooper(); in start()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
H A DAppTransitionAnimationSpecsFuture.java86 if (Looper.myLooper() != mHandler.getLooper()) { in composeSpecsSynchronous()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DHdmiCecPowerStatusControllerTest.java65 Looper myLooper = mTestLooper.getLooper(); in setUp() local
94 mHdmiControlService.setIoLooper(myLooper); in setUp()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/scrim/
H A DScrimView.java92 mExecutorLooper = Looper.myLooper(); in ScrimView()
326 if (mExecutor == null || Looper.myLooper() == mExecutorLooper) { in executeOnExecutor()

12345678