Home
last modified time | relevance | path

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

12345678910>>...15

/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DContactsAsyncHelperTest.java113 Looper.getMainLooper()); in testEmptyUri()
128 Looper.getMainLooper()); in testNullReturnFromOpenInputStream()
139 Looper.getMainLooper()); in testImageScaling()
160 Looper.getMainLooper()); in testNoScaling()
DTelecomSystemTest.java374 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 …]
DCallRecordingTonePlayerTest.java222 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/
DAssert.java37 isTrue(Looper.getMainLooper().equals(Looper.myLooper())); in isMainThread()
45 isTrue(!Looper.getMainLooper().equals(Looper.myLooper())); in isNotMainThread()
/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/apps/Launcher3/src/com/android/launcher3/util/
DPreconditions.java43 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/
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/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/UniversalMediaPlayer/java/com/android/pump/app/
DPumpApplication.java61 if (getMainLooper().getThread() != t) { in uncaughtException()
63 new Handler(getMainLooper()).post(() -> in uncaughtException()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DAirplaneModeEnabler.java55 private Handler mHandler = new Handler(Looper.getMainLooper()) {
67 new Handler(Looper.getMainLooper())) {
/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/services/Car/service/src/com/android/car/
DCarServiceUtils.java72 runOnLooper(Looper.getMainLooper(), action); in runOnMain()
92 runOnLooperSync(Looper.getMainLooper(), action); in runOnMainSync()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateBaseBridge.java47 : Looper.getMainLooper()); in AppStateBaseBridge()
48 mMainHandler = new MainHandler(Looper.getMainLooper()); in AppStateBaseBridge()
/packages/services/Car/tests/carservice_test/src/android/media/tests/
DAudioPolicyTest.java58 mHandler = new Handler(Looper.getMainLooper()); in setUp()
76 .setLooper(Looper.getMainLooper()) in testAudioPorts()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSlice.java116 new Handler(Looper.getMainLooper()).postDelayed(() -> { in onNotifyChange()
155 new ContentObserver(new Handler(Looper.getMainLooper())) {
/packages/apps/Settings/src/com/android/settings/network/telephony/
DVideoCallingPreferenceController.java59 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/
DVideoCallingPreferenceController.java59 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/
DRemoteVolumePreferenceController.java88 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/
DRemoteVolumePreferenceController.java90 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/
DCarTest.java99 assertThat(Looper.getMainLooper()).isEqualTo(Looper.myLooper()); in onLifecycleChanged()
259 if (Looper.getMainLooper() == Looper.myLooper()) { in runOnMainSyncSafe()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQsbApplication.java103 if (Looper.myLooper() != Looper.getMainLooper()) { in checkThread()
123 mUiThreadHandler = new Handler(Looper.getMainLooper()); in getMainThreadHandler()

12345678910>>...15