Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 25 of 698) sorted by relevance

12345678910>>...28

/frameworks/base/core/java/android/widget/
DRemoteViewsService.java144 Thread t = Thread.currentThread(); in onDataSetChanged()
145 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in onDataSetChanged()
156 Thread t = Thread.currentThread(); in getCount()
157 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getCount()
169 Thread t = Thread.currentThread(); in getViewAt()
170 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getViewAt()
179 Thread t = Thread.currentThread(); in getLoadingView()
180 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getLoadingView()
189 Thread t = Thread.currentThread(); in getViewTypeCount()
190 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getViewTypeCount()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DTonesAutoTest.java44 Thread.sleep(200); in tonesDtmfTest()
46 Thread.sleep(100); in tonesDtmfTest()
69 Thread.sleep(2000); in tonesSupervisoryTest()
71 Thread.sleep(200); in tonesSupervisoryTest()
81 Thread.sleep(5000); in tonesSupervisoryTest()
83 Thread.sleep(200); in tonesSupervisoryTest()
105 Thread.sleep(1000); in tonesProprietaryTest()
107 Thread.sleep(100); in tonesProprietaryTest()
130 Thread.sleep(100); in tonesSimultaneousTest()
132 Thread.sleep(500); in tonesSimultaneousTest()
[all …]
DCodecTest.java115 Thread.sleep(10000); in getCurrentPosition()
117 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in getCurrentPosition()
147 Thread.sleep(MediaNames.WAIT_TIME); in seekTo()
176 Thread.sleep(5000); in setLooping()
179 Thread.sleep(20000); in setLooping()
212 Thread.sleep(5000); in pause()
214 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in pause()
341 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in videoSeekTo()
344 Thread.sleep(1000); in videoSeekTo()
352 Thread.sleep(5000); in videoSeekTo()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/system/
DUncaughtExceptionPreHandlerTest.kt6 import java.lang.Thread.UncaughtExceptionHandler
29 Thread.setUncaughtExceptionPreHandler(null) in setUp()
37 preHandlerManager.handleUncaughtException(Thread.currentThread(), Exception()) in registerHandler_registersOnceOnly()
43 Thread.setUncaughtExceptionPreHandler(null) in registerHandler_setsUncaughtExceptionPreHandler()
45 assertThat(Thread.getUncaughtExceptionPreHandler()).isNotNull() in registerHandler_setsUncaughtExceptionPreHandler()
50 Thread.setUncaughtExceptionPreHandler(mockHandler) in registerHandler_preservesOriginalHandler()
52 preHandlerManager.handleUncaughtException(Thread.currentThread(), Exception()) in registerHandler_preservesOriginalHandler()
62 preHandlerManager.handleUncaughtException(Thread.currentThread(), Exception()) in registerHandler_toleratesHandlersThatThrow()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DWatchdogDiagnosticsTest.java35 private static class TestThread1 extends Thread {
65 private static class TestThread2 extends Thread {
113 Thread.yield(); in printAnnotatedStack()
119 Thread.yield(); in printAnnotatedStack()
123 while (thread1.getState() == Thread.State.RUNNABLE) { in printAnnotatedStack()
124 Thread.yield(); in printAnnotatedStack()
126 while (thread2.getState() == Thread.State.RUNNABLE) { in printAnnotatedStack()
127 Thread.yield(); in printAnnotatedStack()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerInternalTest.java155 static class CustomThread extends Thread {
183 Thread.interrupted(); in run()
187 mNotified = !Thread.interrupted(); in run()
197 final Thread.State stateToReach = timedWaiting in startAndWait()
198 ? Thread.State.TIMED_WAITING : Thread.State.WAITING; in startAndWait()
201 Thread.sleep(WAIT_INTERVAL_MS); in startAndWait()
211 assertEquals(errMsg, Thread.State.WAITING, getState()); in assertWaiting()
215 assertEquals(errMsg, Thread.State.TIMED_WAITING, getState()); in assertTimedWaiting()
220 while (getState() != Thread.State.TERMINATED in assertTerminated()
222 Thread.sleep(WAIT_INTERVAL_MS); in assertTerminated()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLockTest.java83 Thread.currentThread().sleep(SLEEP_TIME); in testLockFairness()
95 Thread thread = new DatabaseFairnessThread(); in startDatabaseFairnessThread()
99 private class DatabaseFairnessThread extends Thread {
106 Thread.sleep(SLEEP_TIME); in run()
136 Thread.sleep(SLEEP_TIME); in testLockLatency()
152 Thread thread = new DatabaseLatencyThread(); in startDatabaseLatencyThread()
156 private class DatabaseLatencyThread extends Thread {
163 Thread.sleep(SLEEP_TIME); in run()
/frameworks/base/libs/hwui/thread/
DThreadBase.h30 class ThreadBase : public Thread {
35 : Thread(false) in ThreadBase()
42 Thread::requestExit(); in requestExit()
46 void start(const char* name = "ThreadBase") { Thread::run(name); }
48 void join() { Thread::join(); } in join()
50 bool isRunning() const { return Thread::isRunning(); } in isRunning()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/util/
DAssert.java28 private static Thread sTestThread = null;
36 public static void setTestThread(Thread thread) { in setTestThread()
42 && (sTestThread == null || sTestThread != Thread.currentThread())) { in isMainThread()
45 + " Thread.currentThread()=" + Thread.currentThread().getName()); in isMainThread()
51 && (sTestThread == null || sTestThread == Thread.currentThread())) { in isNotMainThread()
/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java103 Thread.sleep(a.getTotalDuration()); in testStartDelay()
112 Thread.sleep(a.getTotalDuration()); in testStartDelay()
145 Thread.sleep(POLL_INTERVAL); in testListenerCallbacks()
167 Thread.sleep(POLL_INTERVAL); in testListenerCallbacks()
172 Thread.sleep(delay); in testListenerCallbacks()
212 Thread.sleep(POLL_INTERVAL); in testIsStarted()
224 Thread.sleep(startDelay); in testIsStarted()
234 Thread.sleep(delay); in testIsStarted()
264 Thread.sleep(POLL_INTERVAL); in testPause()
277 Thread.sleep(a2.getTotalDuration()); in testPause()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DUncaughtExceptionPreHandlerManager.kt4 import java.lang.Thread.UncaughtExceptionHandler
31 val currentHandler = Thread.getUncaughtExceptionPreHandler() in checkGlobalHandlerSetup()
37 Thread.setUncaughtExceptionPreHandler(globalUncaughtExceptionPreHandler) in checkGlobalHandlerSetup()
53 fun handleUncaughtException(thread: Thread?, throwable: Throwable?) { in handleUncaughtException()
67 override fun uncaughtException(thread: Thread?, throwable: Throwable?) { in uncaughtException()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DStaticLayoutMultithreadPerfTest.java53 private Thread[] startBackgroundThread(int numOfThreads) { in startBackgroundThread()
57 Thread[] threads = new Thread[numOfThreads]; in startBackgroundThread()
60 threads[i] = new Thread(new Runnable() { in startBackgroundThread()
89 private void finishThreads(Thread[] threads) { in finishThreads()
91 for (Thread thread : threads) { in finishThreads()
105 Thread[] threads = startBackgroundThread(numOfTotalThreads - 1); in runRandomTest()
/frameworks/base/core/java/com/android/internal/util/
DConcurrentUtils.java60 public Thread newThread(final Runnable r) { in newFixedThreadPool()
61 return new Thread(poolName + threadNum.incrementAndGet()) { in newFixedThreadPool()
88 Thread.currentThread().interrupt();
114 Thread.currentThread().interrupt();
123 if (Thread.holdsLock(lock)) {
132 if (!Thread.holdsLock(lock)) {
/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/
DUptimeTimerTest.java38 Thread.sleep(50); in testBasic()
40 Thread.sleep(100); in testBasic()
51 Thread.sleep(50); in testCancel()
54 Thread.sleep(100); in testCancel()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DMutexFileProvider.java44 private Thread mOwnerThread;
63 if (mOwnerThread == Thread.currentThread()) { in acquireFile()
82 mOwnerThread = Thread.currentThread(); in acquireFile()
95 if (mOwnerThread != Thread.currentThread()) { in releaseFile()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DThreadUtilsTest.java33 Thread background = new Thread(() -> assertThat(ThreadUtils.isMainThread()).isFalse()); in testMainThread()
41 Thread background = new Thread(() -> { in testEnsureMainThread()
/frameworks/base/core/java/com/android/internal/view/
DWindowManagerPolicyThread.java27 static Thread mThread;
30 public static void set(Thread thread, Looper looper) { in set()
35 public static Thread getThread() { in getThread()
/frameworks/base/services/core/java/com/android/server/
DLockGuard.java112 if (lock == null || Thread.holdsLock(lock)) return lock; in guard()
121 if (Thread.holdsLock(child)) { in guard()
122 doLog(lock, "Calling thread " + Thread.currentThread().getName() in guard()
136 if (Thread.holdsLock(test)) { in guard()
152 if (lock != null && Thread.holdsLock(lock)) { in guard()
157 doLog(targetMayBeNull, "Calling thread " + Thread.currentThread().getName() in guard()
171 new Thread(() -> Slog.wtf(TAG, stackTrace)).start(); in doLog()
/frameworks/rs/script_api/
Drs_atomic.spec39 summary: Thread-safe addition
58 summary: Thread-safe bitwise and
79 summary: Thread-safe compare and set
102 summary: Thread-safe decrement
119 summary: Thread-safe increment
137 summary: Thread-safe maximum
157 summary: Thread-safe minimum
177 summary: Thread-safe bitwise or
197 summary: Thread-safe subtraction
216 summary: Thread-safe bitwise exclusive or
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java140 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
147 assertEquals(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
152 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
158 Thread thread = null;
161 public Thread newThread(Runnable r) { in newThread()
162 thread = new Thread(r); in newThread()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/
DServicesTests.java141 Thread startServices = in testRecoverFromZipCorruptionStressTest()
142 new Thread() { in testRecoverFromZipCorruptionStressTest()
153 Thread.sleep(1000); in testRecoverFromZipCorruptionStressTest()
169 Thread startServices = in testRecoverFromDexCorruptionStressTest()
170 new Thread() { in testRecoverFromDexCorruptionStressTest()
181 Thread.sleep(1000); in testRecoverFromDexCorruptionStressTest()
212 Thread.sleep((i - 1) * (1 << (i / 5))); in startServices()
244 Thread.sleep(5000); in waitServicesCompletion()
260 Thread.sleep(5000); in waitServicesCompletion()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/
DLocationBasedCountryDetectorTest.java150 public Thread getQueryThread() { in getQueryThread()
209 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryCommon()
232 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryCancelled()
311 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryFailed()
334 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryWithLastKnownLocation()
350 Thread.sleep(interval); in waitForTimerReset()
358 private void waitForThreadEnding(Thread thread) { in waitForThreadEnding()
366 private Thread waitForQueryThreadLaunched(TestCountryDetector detector) { in waitForQueryThreadLaunched()
371 Thread.sleep(interval); in waitForQueryThreadLaunched()
375 Thread thread = detector.getQueryThread(); in waitForQueryThreadLaunched()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVisualizerInstanceMT.java39 Thread t = new Thread() { in VisualizerInstanceMT()
67 Thread t = new Thread() { in runOperationMt()
/frameworks/base/tests/testables/src/android/testing/
DDexmakerShareClassLoaderRule.java45 private static Thread sOwningThread = null;
101 sOwningThread = Thread.currentThread(); in wrapInMutex()
102 } else if (sOwningThread != Thread.currentThread()) { in wrapInMutex()
104 "Tried to set dexmaker.share_classloader from " + Thread.currentThread() in wrapInMutex()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/transport/
DBackupTransportClientTest.java85 Thread thread = new Thread(() -> { in testTransportDirName_completesLater_returnsName()
111 Thread thread = new Thread(() -> { in testTransportDirName_canceledBeforeCompletion_throwsException()
167 Thread thread = new Thread(() -> { in testFinishBackup_completesLater_returnsStatus()
193 Thread thread = new Thread(() -> { in testFinishBackup_canceledBeforeCompletion_returnsError()

12345678910>>...28