Home
last modified time | relevance | path

Searched refs:currentThread (Results 1 – 25 of 214) sorted by relevance

123456789

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DSingleThreadNamedTaskExecutor.kt60 val currentThread: Thread = Thread.currentThread() in loop() constant
61 val threadName: String = currentThread.getName() in loop()
69 currentThread.setName(threadName + " " + task.name) in loop()
/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()
56 uiThreadExceptionHandler.uncaughtException(Thread.currentThread(), t); in crashMainThread()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java188 Thread t = Thread.currentThread(); in enable()
194 sWatchdog.removeWatchEntry(Thread.currentThread()); in disable()
216 sWatchdog.hold(Thread.currentThread()); in hold()
220 sWatchdog.commit(Thread.currentThread()); in commit()
224 sWatchdog.drop(Thread.currentThread()); in drop()
/packages/services/Car/service/src/com/android/car/oem/
DCarOemProxyServiceHelper.java176 Thread.currentThread().interrupt(); // Restore the interrupted status in doBinderTimedCallWithDefaultValue()
217 Thread.currentThread().interrupt(); // Restore the interrupted status in doBinderTimedCallWithTimeout()
272 Thread.currentThread().interrupt(); // Restore the interrupted status in doBinderCallWithDefaultValueAndDelayedWaitAndCrash()
289 Thread.currentThread().interrupt(); // Restore the interrupted status in doBinderCallWithDefaultValueAndDelayedWaitAndCrash()
396 Thread.currentThread().interrupt(); // Restore the interrupted status in doBinderCallWithTimeoutCrash()
431 Thread.currentThread().interrupt(); // Restore the interrupted status in doBinderOneWayCall()
/packages/modules/Wifi/service/tests/mts/src/android/net/wifi/mts/
DStreamReader.java89 Thread.currentThread().interrupt(); in runProcessCommand()
95 Thread.currentThread().interrupt(); in runProcessCommand()
111 Thread.currentThread().interrupt(); in runProcessCommand()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DThreadUtils.java33 + Thread.currentThread()); in assertMainThread()
42 + " Current thread: " + Thread.currentThread()); in assertNonMainThread()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAbstractExtendedMockitoTestCase.java178 + Thread.currentThread() + "; sHighlanderSession=" + sHighlanderSession); in startSession()
226 + " on thread " + Thread.currentThread(), e); in createSessionLocation()
236 + Thread.currentThread() + "; sHighlanderSession=" + sHighlanderSession); in finishSession()
367 Thread currentThread = Thread.currentThread(); in completeAllHandlerThreadTasks() local
369 if (t != currentThread && t instanceof HandlerThread) { in completeAllHandlerThreadTasks()
699 Thread.currentThread().interrupt();
DJavaMockitoHelper.java87 Thread.currentThread().interrupt(); in silentAwait()
115 Thread.currentThread().interrupt(); in getResult()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/concurrency/
DAbstractSyncCallback.java139 logD("%s called on %s", methodName, Thread.currentThread().getName()); in internalSetCalled()
144 + Thread.currentThread().getName() in internalSetCalled()
167 logD("assertCalled() called on %s", Thread.currentThread().getName()); in internalAssertCalled()
/packages/services/Car/car-lib/src/android/car/admin/
DCarDevicePolicyManager.java165 Thread.currentThread().interrupt(); in removeUser()
216 Thread.currentThread().interrupt(); in createUser()
257 Thread.currentThread().interrupt(); in startUserInBackground()
298 Thread.currentThread().interrupt(); in stopUser()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DProcessLifeguardTestSuite.java111 + Thread.currentThread()); in doIt()
127 + Thread.currentThread()); in doIt()
174 Log.i(TAG, "Sleeping " + napTimeMs + "ms on thread " + Thread.currentThread()); in sleep()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/
DConcurrencyHelperTest.java54 executionInfo.thread = Thread.currentThread(); in testRunASync()
84 Thread t = mHelper.startNewThread(() -> holder.offer(Thread.currentThread())); in testStartNewThread()
DSyncCallbackTestCase.java24 import static java.lang.Thread.currentThread;
255 log.d("assertCalled() called on " + currentThread().getName()), in testAssertCalled()
281 log.d("assertCalled() called on " + currentThread().getName()), in testAssertCalled_neverCalled()
467 log.d("assertCalled() called on " + currentThread().getName()), in testAssertCalled_failsWhenCalledOnMainThread()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/encryptionkey/
DEncryptionKeyJobHandler.java57 if (Thread.currentThread().isInterrupted()) { in fetchAndUpdateEncryptionKeys()
86 if (Thread.currentThread().isInterrupted()) { in fetchAndUpdateEncryptionKeys()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DSyncAppSearchBase.java58 Thread.currentThread().interrupt(); in executeAppSearchResultOperation()
94 Thread.currentThread().interrupt(); in executeAppSearchBatchResultOperation()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DConcurrentUtils.java93 Thread.currentThread().interrupt();
119 Thread.currentThread().interrupt();
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DFileTsStreamer.java226 Thread.currentThread().interrupt(); in stopStream()
376 Thread.currentThread().interrupt(); in readAt()
456 Thread.currentThread().interrupt(); in run()
471 Thread.currentThread().interrupt(); in run()
DTunerTsStreamer.java264 Thread.currentThread().interrupt(); in stopStream()
374 Thread.currentThread().interrupt(); in run()
435 Thread.currentThread().interrupt(); in readAt()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkAgentInfo.java1141 if (mHandler.getLooper().getThread() != Thread.currentThread()) { in addRequest()
1144 + Thread.currentThread().getName()); in addRequest()
1164 if (mHandler.getLooper().getThread() != Thread.currentThread()) { in removeRequest()
1167 + Thread.currentThread().getName()); in removeRequest()
1190 if (mHandler.getLooper().getThread() != Thread.currentThread()) { in requestAt()
1193 + Thread.currentThread().getName()); in requestAt()
1225 if (mHandler.getLooper().getThread() != Thread.currentThread()) { in numNetworkRequests()
1228 + Thread.currentThread().getName()); in numNetworkRequests()
/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java152 && !Thread.currentThread().getName().contains(TEST_THREAD_SUBSTRING)) { in isMainThread()
159 && !Thread.currentThread().getName().contains(TEST_THREAD_SUBSTRING)) { in isNotMainThread()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java536 int previousPriority = Thread.currentThread().getPriority();
537 Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
606 Thread.currentThread().setPriority(previousPriority);
621 int previousPriority = Thread.currentThread().getPriority();
622 Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
625 Thread.currentThread().setPriority(previousPriority);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAppManifestConfigMetricsLoggerTest.java228 Thread currentThread = Thread.currentThread(); in testLogUsage_handlesToBgThread() local
234 executionThread.set(Thread.currentThread()); in testLogUsage_handlesToBgThread()
242 .isNotSameInstanceAs(currentThread); in testLogUsage_handlesToBgThread()
/packages/apps/Gallery/src/com/android/camera/
DBitmapManager.java140 Thread t = Thread.currentThread(); in getThumbnail()
183 Thread thread = Thread.currentThread(); in decodeFileDescriptor()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCredentialStorageActivity.java262 Thread.currentThread().interrupt(); in doInBackground()
316 Thread.currentThread().interrupt(); in doInBackground()
378 Thread.currentThread().interrupt(); in doInBackground()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestRttActivity.java99 if (Thread.currentThread().isInterrupted()) {
112 if (Thread.currentThread().isInterrupted()) {

123456789