/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/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | ContactsAsyncHelperTest.java | 113 Looper.getMainLooper()); in testEmptyUri() 128 Looper.getMainLooper()); in testNullReturnFromOpenInputStream() 139 Looper.getMainLooper()); in testImageScaling() 160 Looper.getMainLooper()); in testNoScaling()
|
D | TelecomSystemTest.java | 374 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in setUp() 386 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in tearDown() 423 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in makeConferenceCall() 692 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in triggerEmergencyRedial() 760 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallWaitForBroadcaster() 767 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallWaitForBroadcaster() 786 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallPendingCreateConnection() 836 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in redialingCallCreateConnectionComplete() 860 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in outgoingCallCreateConnectionComplete() 865 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in outgoingCallCreateConnectionComplete() [all …]
|
D | CallRecordingTonePlayerTest.java | 222 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testIsRecordingLater() 247 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testNotRecordingApp()
|
/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/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/apps/Launcher3/src/com/android/launcher3/util/ |
D | Preconditions.java | 43 if (FeatureFlags.IS_DOGFOOD_BUILD && !isSameLooper(Looper.getMainLooper())) { in assertUIThread() 49 if (FeatureFlags.IS_DOGFOOD_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/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/UniversalMediaPlayer/java/com/android/pump/app/ |
D | PumpApplication.java | 61 if (getMainLooper().getThread() != t) { in uncaughtException() 63 new Handler(getMainLooper()).post(() -> in uncaughtException()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | AirplaneModeEnabler.java | 55 private Handler mHandler = new Handler(Looper.getMainLooper()) { 67 new Handler(Looper.getMainLooper())) {
|
/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/services/Car/service/src/com/android/car/ |
D | CarServiceUtils.java | 72 runOnLooper(Looper.getMainLooper(), action); in runOnMain() 92 runOnLooperSync(Looper.getMainLooper(), action); in runOnMainSync()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateBaseBridge.java | 47 : Looper.getMainLooper()); in AppStateBaseBridge() 48 mMainHandler = new MainHandler(Looper.getMainLooper()); in AppStateBaseBridge()
|
/packages/services/Car/tests/carservice_test/src/android/media/tests/ |
D | AudioPolicyTest.java | 58 mHandler = new Handler(Looper.getMainLooper()); in setUp() 76 .setLooper(Looper.getMainLooper()) in testAudioPorts()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSlice.java | 116 new Handler(Looper.getMainLooper()).postDelayed(() -> { in onNotifyChange() 155 new ContentObserver(new Handler(Looper.getMainLooper())) {
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | VideoCallingPreferenceController.java | 59 mDataContentObserver = new DataContentObserver(new Handler(Looper.getMainLooper())); in VideoCallingPreferenceController() 60 mPhoneStateListener = new PhoneCallStateListener(Looper.getMainLooper()); in VideoCallingPreferenceController()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | VideoCallingPreferenceController.java | 59 mDataContentObserver = new DataContentObserver(new Handler(Looper.getMainLooper())); in VideoCallingPreferenceController() 60 mPhoneStateListener = new PhoneCallStateListener(Looper.getMainLooper()); in VideoCallingPreferenceController()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RemoteVolumePreferenceController.java | 88 mMediaSessions = new MediaSessions(context, Looper.getMainLooper(), mCallbacks); in RemoteVolumePreferenceController() 249 mMediaSessions = new MediaSessions(context, Looper.getMainLooper(), this); in RemoteVolumeSliceWorker()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | RemoteVolumePreferenceController.java | 90 mMediaSessions = new MediaSessions(context, Looper.getMainLooper(), mCallbacks); in RemoteVolumePreferenceController() 231 mMediaSessions = new MediaSessions(context, Looper.getMainLooper(), this); in RemoteVolumeSliceWorker()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/ |
D | CarTest.java | 99 assertThat(Looper.getMainLooper()).isEqualTo(Looper.myLooper()); in onLifecycleChanged() 259 if (Looper.getMainLooper() == Looper.myLooper()) { in runOnMainSyncSafe()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | QsbApplication.java | 103 if (Looper.myLooper() != Looper.getMainLooper()) { in checkThread() 123 mUiThreadHandler = new Handler(Looper.getMainLooper()); in getMainThreadHandler()
|