Home
last modified time | relevance | path

Searched refs:getMainLooper (Results 1 – 25 of 411) sorted by relevance

12345678910>>...17

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java19 import static android.os.Looper.getMainLooper;
93 getMainLooper(), in setUp()
110 shadowOf(getMainLooper()).idle(); in startAndWaitForComplete()
208 shadowOf(getMainLooper()).runToEndOfTasks(); in testCurrentProgramListener()
238 shadowOf(getMainLooper()).runToEndOfTasks(); in testContentProviderUpdate()
261 shadowOf(getMainLooper()).runToEndOfTasks(); in testSetPauseProgramUpdate()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DThreadHelper.java33 if (Looper.getMainLooper().getThread() == Thread.currentThread()) { in assertNotOnMainThread()
40 if (Looper.getMainLooper().getThread() != Thread.currentThread()) { in assertOnMainThread()
55 Looper.getMainLooper().getThread().getUncaughtExceptionHandler(); in crashMainThread()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomSystemTest.java375 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in setUp()
387 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in tearDown()
422 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in makeConferenceCall()
681 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in triggerEmergencyRedial()
749 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallWaitForBroadcaster()
756 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallWaitForBroadcaster()
775 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallPendingCreateConnection()
825 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in redialingCallCreateConnectionComplete()
849 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in outgoingCallCreateConnectionComplete()
854 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in outgoingCallCreateConnectionComplete()
[all …]
DContactsAsyncHelperTest.java113 Looper.getMainLooper()); in testEmptyUri()
128 Looper.getMainLooper()); in testNullReturnFromOpenInputStream()
139 Looper.getMainLooper()); in testImageScaling()
160 Looper.getMainLooper()); in testNoScaling()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DAssert.java37 isTrue(Looper.getMainLooper().equals(Looper.myLooper())); in isMainThread()
45 isTrue(!Looper.getMainLooper().equals(Looper.myLooper())); in isNotMainThread()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/data/
DDataUtils.kt32 Handler(Looper.getMainLooper()).post { observeForever(observer) } in withLoadedValue()
36 Handler(Looper.getMainLooper()).post { removeObserver(observer) } in withLoadedValue()
/packages/services/Telephony/src/com/android/phone/
DAssert.java40 isTrue(Looper.getMainLooper().equals(Looper.myLooper())); in isMainThread()
48 isTrue(!Looper.getMainLooper().equals(Looper.myLooper())); in isNotMainThread()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DCheckLifecycleRegistry.kt29 if (Looper.myLooper() != Looper.getMainLooper()) { in addObserver()
38 if (Looper.myLooper() != Looper.getMainLooper()) { in removeObserver()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPreconditions.java43 if (FeatureFlags.IS_STUDIO_BUILD && !isSameLooper(Looper.getMainLooper())) { in assertUIThread()
49 if (FeatureFlags.IS_STUDIO_BUILD && isSameLooper(Looper.getMainLooper())) { in assertNonUiThread()
/packages/apps/TV/src/com/android/tv/util/
DMainThreadExecutor.java38 private final Handler mHandler = new Handler(Looper.getMainLooper());
42 if (Looper.getMainLooper() == Looper.myLooper()) { in execute()
/packages/apps/Camera2/src/com/android/camera/async/
DMainThread.java34 return new MainThread(new Handler(Looper.getMainLooper())); in create()
43 return Looper.getMainLooper().getThread() == Thread.currentThread();
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/
DCarMessengerApp.java49 final boolean background = getMainLooper().getThread() != thread; in uncaughtException()
52 final Handler handler = new Handler(getMainLooper()); in uncaughtException()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/app/
DPumpApplication.java61 if (getMainLooper().getThread() != t) { in uncaughtException()
63 new Handler(getMainLooper()).post(() -> in uncaughtException()
/packages/apps/Messaging/src/com/android/messaging/
DBugleApplication.java185 final boolean background = getMainLooper().getThread() != thread; in uncaughtException()
189 final Handler handler = new Handler(getMainLooper()); in uncaughtException()
214 new Handler(Looper.getMainLooper()).postDelayed( in maybeStartProfiling()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionsChangeListener.java53 super(new Handler(Looper.getMainLooper())); in SubscriptionsChangeListener()
57 mSubscriptionsChangedListener = new OnSubscriptionsChangedListener(Looper.getMainLooper()) { in SubscriptionsChangeListener()
/packages/apps/Dialer/java/com/android/dialer/common/
DAssert.java188 checkState(Looper.getMainLooper().equals(Looper.myLooper()), messageTemplate, args); in isMainThread()
211 checkState(!Looper.getMainLooper().equals(Looper.myLooper()), messageTemplate, args); in isWorkerThread()
/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java151 if (Looper.myLooper() != Looper.getMainLooper() in isMainThread()
158 if (Looper.myLooper() == Looper.getMainLooper() in isNotMainThread()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateBaseBridge.java47 : Looper.getMainLooper()); in AppStateBaseBridge()
48 mMainHandler = new MainHandler(Looper.getMainLooper()); in AppStateBaseBridge()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareSession.java160 mgr.publish(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in publish()
208 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
/packages/services/Car/tests/carservice_test/src/android/media/tests/
DAudioPolicyTest.java58 mHandler = new Handler(Looper.getMainLooper()); in setUp()
77 .setLooper(Looper.getMainLooper()) in testAudioPorts()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java85 runOnLooper(Looper.getMainLooper(), action); in runOnMain()
105 runOnLooperSync(Looper.getMainLooper(), action); in runOnMainSync()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSlice.java141 new Handler(Looper.getMainLooper()).postDelayed(() -> { in onNotifyChange()
189 new ContentObserver(new Handler(Looper.getMainLooper())) {
/packages/services/Telecomm/src/com/android/server/telecom/
DCallRecordingTonePlayer.java81 super(Looper.getMainLooper()); in LoopingTonePlayer()
116 private final Handler mMainThreadHandler = new Handler(Looper.getMainLooper());
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsListTableViewHolderBinderTest.java18 import static android.os.Looper.getMainLooper;
139 shadowOf(getMainLooper()).idle(); in bindViewHolder_appWith3Widgets_shouldHave3Widgets()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSplitSelectStateController.java108 new Handler(Looper.getMainLooper()), initialSplitRunnerWrapped, in setSecondTaskId()
111 new Handler(Looper.getMainLooper()), secondarySplitRunnerWrapped, in setSecondTaskId()

12345678910>>...17