Home
last modified time | relevance | path

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

12345678910>>...23

/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.java124 Thread.sleep(10000); in getCurrentPosition()
126 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in getCurrentPosition()
156 Thread.sleep(MediaNames.WAIT_TIME); in seekTo()
185 Thread.sleep(5000); in setLooping()
188 Thread.sleep(20000); in setLooping()
221 Thread.sleep(5000); in pause()
223 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in pause()
350 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in videoSeekTo()
353 Thread.sleep(1000); in videoSeekTo()
361 Thread.sleep(5000); in videoSeekTo()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerInternalTest.java133 static class CustomThread extends Thread {
161 Thread.interrupted(); in run()
165 mNotified = !Thread.interrupted(); in run()
175 final Thread.State stateToReach = timedWaiting in startAndWait()
176 ? Thread.State.TIMED_WAITING : Thread.State.WAITING; in startAndWait()
179 Thread.sleep(WAIT_INTERVAL_MS); in startAndWait()
189 assertEquals(errMsg, Thread.State.WAITING, getState()); in assertWaiting()
193 assertEquals(errMsg, Thread.State.TIMED_WAITING, getState()); in assertTimedWaiting()
198 while (getState() != Thread.State.TERMINATED in assertTerminated()
200 Thread.sleep(WAIT_INTERVAL_MS); in assertTerminated()
[all …]
/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/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/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/core/java/com/android/internal/util/
DConcurrentUtils.java57 public Thread newThread(final Runnable r) { in newFixedThreadPool()
58 return new Thread(poolName + threadNum.incrementAndGet()) { in newFixedThreadPool()
85 Thread.currentThread().interrupt();
111 Thread.currentThread().interrupt();
120 if (Thread.holdsLock(lock)) {
129 if (!Thread.holdsLock(lock)) {
/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/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/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/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/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/
DMainActivity.java67 new Thread(() -> { in startBatch() method
83 new Thread(mUseCpuRunnable).start(); in startCpuRunnables()
101 ArrayList<Thread> threads = new ArrayList<>(); in slamWm()
104 Thread t = new Thread(() -> { in slamWm()
119 for (Thread t : threads) { in slamWm()
/frameworks/base/services/core/java/com/android/server/
DLockGuard.java113 if (lock == null || Thread.holdsLock(lock)) return lock; in guard()
122 if (Thread.holdsLock(child)) { in guard()
123 doLog(lock, "Calling thread " + Thread.currentThread().getName() in guard()
137 if (Thread.holdsLock(test)) { in guard()
153 if (lock != null && Thread.holdsLock(lock)) { in guard()
158 doLog(targetMayBeNull, "Calling thread " + Thread.currentThread().getName() in guard()
172 new Thread(() -> Slog.wtf(TAG, stackTrace)).start(); in doLog()
/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/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/core/java/com/android/internal/os/
DRuntimeInit.java92 private static class LoggingHandler implements Thread.UncaughtExceptionHandler {
96 public void uncaughtException(Thread t, Throwable e) { in uncaughtException()
120 private static class KillApplicationHandler implements Thread.UncaughtExceptionHandler {
139 public void uncaughtException(Thread t, Throwable e) { in uncaughtException()
191 private void ensureLogging(Thread t, Throwable e) { in ensureLogging()
239 if (NICE_VALUES.length != (1 + Thread.MAX_PRIORITY - Thread.MIN_PRIORITY)) { in setPriority()
243 if (priority < Thread.MIN_PRIORITY || priority > Thread.MAX_PRIORITY) { in setPriority()
246 Process.setThreadPriority(nativeTid, NICE_VALUES[priority - Thread.MIN_PRIORITY]); in setPriority()
260 Thread.setDefaultUncaughtExceptionHandler(new KillApplicationHandler(loggingHandler)); in commonInit()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
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/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginManagerTest.java53 import java.lang.Thread.UncaughtExceptionHandler;
76 mRealExceptionHandler = Thread.getUncaughtExceptionPreHandler(); in setup()
177 mPluginExceptionHandler.uncaughtException(Thread.currentThread(), new Throwable()); in testExceptionHandler_foundPlugin()
183 ArgumentCaptor.forClass(Thread.class).capture(), in testExceptionHandler_foundPlugin()
192 mPluginExceptionHandler.uncaughtException(Thread.currentThread(), new Throwable()); in testExceptionHandler_noFoundPlugin()
198 ArgumentCaptor.forClass(Thread.class).capture(), in testExceptionHandler_noFoundPlugin()
220 mPluginExceptionHandler = Thread.getUncaughtExceptionPreHandler(); in resetExceptionHandler()
222 Thread.setUncaughtExceptionPreHandler(mRealExceptionHandler); in resetExceptionHandler()
/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/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java84 Thread.sleep(3 * delta / 2); in testFill()
96 Thread.sleep(2); in testRefill()
102 Thread.sleep(2); in testRefill()
117 Thread.sleep(5 * delta); in testAverage()
136 Thread.sleep(capacity * delta - 2); in testBurst()
/frameworks/base/tools/lock_agent/java/com/android/lock_checker/
DOnThreadLockChecker.java38 private final Thread mChecker;
61 mChecker = new Thread(() -> checker()); in OnThreadLockChecker()
63 mChecker.setPriority(Thread.MIN_PRIORITY); in OnThreadLockChecker()
132 handlePre(Thread.currentThread(), lock); in pre()
137 handlePost(Thread.currentThread(), lock); in post()
140 private void handlePre(Thread self, Object lock) { in handlePre()
208 private void handlePost(Thread self, Object lock) { in handlePost()
233 Violation(Thread self, Object alreadyHeld, Object lock, in Violation()
336 private void postViolation(Thread self, Object alreadyHeld, Object lock, in postViolation()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java193 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
200 assertEquals(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
205 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
211 Thread thread = null;
214 public Thread newThread(Runnable r) { in newThread()
215 thread = new Thread(r); in newThread()

12345678910>>...23