Home
last modified time | relevance | path

Searched refs:isMainThread (Results 1 – 25 of 78) sorted by relevance

1234

/packages/apps/Dialer/java/com/android/dialer/duo/stub/
DDuoStub.java61 Assert.isMainThread(); in isReachable()
72 Assert.isMainThread(); in supportsUpgrade()
80 Assert.isMainThread(); in updateReachability()
107 Assert.isMainThread(); in getCallIntent()
130 Assert.isMainThread(); in requestUpgrade()
137 Assert.isMainThread(); in registerListener()
144 Assert.isMainThread(); in unregisterListener()
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DTaskExecutor.java232 Assert.isMainThread();
249 Assert.isMainThread();
273 Assert.isMainThread();
282 Assert.isMainThread();
292 Assert.isMainThread();
298 Assert.isMainThread();
315 Assert.isMainThread();
423 Assert.isMainThread();
452 Assert.isMainThread();
DBaseTask.java74 Assert.isMainThread(); in setId()
80 Assert.isMainThread(); in hasStarted()
86 Assert.isMainThread(); in hasFailed()
102 Assert.isMainThread(); in addPolicy()
121 Assert.isMainThread(); in setExecutionTime()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java71 Assert.isMainThread(); in LocationHelper()
133 Assert.isMainThread(); in addLocationListener()
139 Assert.isMainThread(); in removeLocationListener()
145 Assert.isMainThread(); in close()
153 Assert.isMainThread(); in onLocationChanged()
174 Assert.isMainThread(); in LocationHelperInternal()
213 Assert.isMainThread(); in getLocation()
DCallLocationImpl.java39 Assert.isMainThread(); in canGetLocation()
47 Assert.isMainThread(); in getLocationFragment()
59 Assert.isMainThread(); in close()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionService.java70 Assert.isMainThread(); in scheduleNewVoicemailTranscriptionJob()
122 Assert.isMainThread(); in cancelTranscriptions()
130 Assert.isMainThread(); in TranscriptionService()
146 Assert.isMainThread(); in onStartJob()
166 Assert.isMainThread(); in onStopJob()
181 Assert.isMainThread(); in onDestroy()
199 Assert.isMainThread(); in checkForWork()
242 Assert.isMainThread(); in onWorkCompleted()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBinderTracker.java82 if (isMainThread()) { in beginSection()
90 if (!isMainThread()) { in beginAsyncSection()
106 if (isMainThread()) { in endSection()
113 if (!isMainThread()) { in allowIpcs()
130 if (!isMainThread() || (flags & FLAG_ONEWAY) == FLAG_ONEWAY) {
167 private static boolean isMainThread() {
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/stub/
DEnrichedCallManagerStub.java95 Assert.isMainThread(); in getAllSessionsForDisplay()
124 Assert.isMainThread(); in getAllHistoricalData()
130 Assert.isMainThread(); in hasStoredData()
138 Assert.isMainThread(); in requestAllHistoricalData()
191 Assert.isMainThread(); in getVideoShareSession()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DAssert.java32 public static void isMainThread() { in isMainThread() method in Assert
54 public static void setIsMainThreadForTesting(Boolean isMainThread) { in setIsMainThreadForTesting() argument
55 isMainThreadForTest = isMainThread; in setIsMainThreadForTesting()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DPeriodicJobService.java57 Assert.isMainThread(); in schedulePeriodicJob()
82 Assert.isMainThread(); in cancelJob()
91 Assert.isMainThread(); in onStartJob()
110 Assert.isMainThread(); in onStopJob()
/packages/services/Telephony/src/com/android/phone/
DAssert.java35 public static void isMainThread() { in isMainThread() method in Assert
63 public static void setIsMainThreadForTesting(Boolean isMainThread) { in setIsMainThreadForTesting() argument
64 sIsMainThreadForTest = isMainThread; in setIsMainThreadForTesting()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowThreadUtils.java47 protected static boolean isMainThread() { in isMainThread() method in ShadowThreadUtils
51 public static void setIsMainThread(boolean isMainThread) { in setIsMainThread() argument
52 sIsMainThread = isMainThread; in setIsMainThread()
/packages/apps/Camera2/src/com/android/camera/stats/profiler/
DProfileBase.java79 MainThread.isMainThread() ? "[ui]" : "", in format()
91 MainThread.isMainThread() ? "[ui]" : "", in format()
104 MainThread.isMainThread() ? "[ui]" : "", in format()
/packages/apps/Dialer/java/com/android/dialer/common/
DAssert.java173 public static void isMainThread() { in isMainThread() method in Assert
174 isMainThread(null); in isMainThread()
184 public static void isMainThread(@Nullable String messageTemplate, Object... args) { in isMainThread() method in Assert
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackFactory.java33 AndroidLogger.getInstance(), SyncCallbackFactory::isMainThread); in newSettingsBuilder()
36 private static boolean isMainThread() { in isMainThread() method in SyncCallbackFactory
/packages/apps/Messaging/src/com/android/messaging/util/
DTypefaces.java31 Assert.isMainThread(); in getRobotoBold()
39 Assert.isMainThread(); in getRobotoNormal()
DSafeAsyncTask.java76 Assert.isMainThread(); // AsyncTask has to be created on the main thread in SafeAsyncTask()
83 Assert.isMainThread(); // AsyncTask requires this in executeOnThreadPool()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/
DDeviceSideConcurrencyHelperTest.java47 boolean isMainThread = callback.assertResultReceived(); in testRunOnMainThread()
48 expect.withMessage("called on main thread").that(isMainThread).isTrue(); in testRunOnMainThread()
DSyncCallbackFactoryTest.java58 runOnMainThread(() -> holder.add(settings.isMainThread())); in testIsMainThread_mainThread()
72 .that(settings.isMainThread()) in testIsMainThread_notMainThread()
/packages/services/Telephony/src/com/android/phone/vvm/
DRemoteVvmTaskManager.java214 Assert.isMainThread(); in onCreate()
218 Assert.isMainThread(); in onCreate()
233 Assert.isMainThread(); in onStartCommand()
327 Assert.isMainThread(); in runQueue()
344 Assert.isMainThread(); in send()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DThreadUtils.java36 public static boolean isMainThread() { in isMainThread() method in ThreadUtils
58 if (!isMainThread()) { in ensureMainThread()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/examplestore/
DFederatedExampleIterator.java114 Preconditions.checkState(!isMainThread(), "hasNext() called on main thread"); in hasNext()
125 Preconditions.checkState(!isMainThread(), "next() called on main thread"); in next()
144 Preconditions.checkState(!isMainThread(), "close() called on main thread"); in close()
312 private static boolean isMainThread() { in isMainThread() method in FederatedExampleIterator
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DRealtimeRowProcessor.java124 Assert.isMainThread(); in clearCache()
131 Assert.isMainThread(); in queuePhoneLookupHistoryWrite()
139 Assert.isMainThread(); in writePhoneLookupHistory()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DRttChatBot.java66 Assert.isMainThread(); in start()
73 Assert.isMainThread(); in stop()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationProvider.java113 final boolean isMainThread = Looper.myLooper() == Looper.getMainLooper(); in rebuildWidget()
116 final ConversationListItemData convData = isMainThread ? in rebuildWidget()
146 if (isMainThread) { in rebuildWidget()

1234