/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | ProgramDataManagerTest.java | 19 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/ |
D | ThreadHelper.java | 33 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/ |
D | TelecomSystemTest.java | 375 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 …]
|
D | ContactsAsyncHelperTest.java | 113 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/ |
D | Assert.java | 37 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/ |
D | DataUtils.kt | 32 Handler(Looper.getMainLooper()).post { observeForever(observer) } in withLoadedValue() 36 Handler(Looper.getMainLooper()).post { removeObserver(observer) } in withLoadedValue()
|
/packages/services/Telephony/src/com/android/phone/ |
D | Assert.java | 40 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/ |
D | CheckLifecycleRegistry.kt | 29 if (Looper.myLooper() != Looper.getMainLooper()) { in addObserver() 38 if (Looper.myLooper() != Looper.getMainLooper()) { in removeObserver()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | Preconditions.java | 43 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/ |
D | MainThreadExecutor.java | 38 private final Handler mHandler = new Handler(Looper.getMainLooper()); 42 if (Looper.getMainLooper() == Looper.myLooper()) { in execute()
|
/packages/apps/Camera2/src/com/android/camera/async/ |
D | MainThread.java | 34 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/ |
D | CarMessengerApp.java | 49 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/ |
D | PumpApplication.java | 61 if (getMainLooper().getThread() != t) { in uncaughtException() 63 new Handler(getMainLooper()).post(() -> in uncaughtException()
|
/packages/apps/Messaging/src/com/android/messaging/ |
D | BugleApplication.java | 185 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/ |
D | SubscriptionsChangeListener.java | 53 super(new Handler(Looper.getMainLooper())); in SubscriptionsChangeListener() 57 mSubscriptionsChangedListener = new OnSubscriptionsChangedListener(Looper.getMainLooper()) { in SubscriptionsChangeListener()
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | Assert.java | 188 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/ |
D | Assert.java | 151 if (Looper.myLooper() != Looper.getMainLooper() in isMainThread() 158 if (Looper.myLooper() == Looper.getMainLooper() in isNotMainThread()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateBaseBridge.java | 47 : Looper.getMainLooper()); in AppStateBaseBridge() 48 mMainHandler = new MainHandler(Looper.getMainLooper()); in AppStateBaseBridge()
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareSession.java | 160 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/ |
D | AudioPolicyTest.java | 58 mHandler = new Handler(Looper.getMainLooper()); in setUp() 77 .setLooper(Looper.getMainLooper()) in testAudioPorts()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarServiceUtils.java | 85 runOnLooper(Looper.getMainLooper(), action); in runOnMain() 105 runOnLooperSync(Looper.getMainLooper(), action); in runOnMainSync()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSlice.java | 141 new Handler(Looper.getMainLooper()).postDelayed(() -> { in onNotifyChange() 189 new ContentObserver(new Handler(Looper.getMainLooper())) {
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallRecordingTonePlayer.java | 81 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/ |
D | WidgetsListTableViewHolderBinderTest.java | 18 import static android.os.Looper.getMainLooper; 139 shadowOf(getMainLooper()).idle(); in bindViewHolder_appWith3Widgets_shouldHave3Widgets()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | SplitSelectStateController.java | 108 new Handler(Looper.getMainLooper()), initialSplitRunnerWrapped, in setSecondTaskId() 111 new Handler(Looper.getMainLooper()), secondarySplitRunnerWrapped, in setSecondTaskId()
|