/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | DurationMetricsTests.java | 86 Thread.sleep(2000); in testDurationMetric() 90 Thread.sleep(2000); in testDurationMetric() 161 Thread.sleep(10); in testDurationMetricWithCondition() 163 Thread.sleep(2_000); in testDurationMetricWithCondition() 167 Thread.sleep(10); in testDurationMetricWithCondition() 171 Thread.sleep(10); in testDurationMetricWithCondition() 175 Thread.sleep(10); in testDurationMetricWithCondition() 177 Thread.sleep(2_000); in testDurationMetricWithCondition() 181 Thread.sleep(10); in testDurationMetricWithCondition() 185 Thread.sleep(10); in testDurationMetricWithCondition() [all …]
|
D | MetricActivationTests.java | 165 Thread.sleep(10L); in testCancellation() 169 Thread.sleep(10L); in testCancellation() 173 Thread.sleep(10L); in testCancellation() 177 Thread.sleep(10L); in testCancellation() 181 Thread.sleep(10L); in testCancellation() 185 Thread.sleep(10L); in testCancellation() 189 Thread.sleep(10L); in testCancellation() 193 Thread.sleep(10L); in testCancellation() 197 Thread.sleep(10L); in testCancellation() 201 Thread.sleep(10L); in testCancellation() [all …]
|
D | GaugeMetricsTests.java | 99 Thread.sleep(10); in testGaugeMetric() 101 Thread.sleep(10); in testGaugeMetric() 103 Thread.sleep(2000); in testGaugeMetric() 105 Thread.sleep(10); in testGaugeMetric() 107 Thread.sleep(10); in testGaugeMetric() 110 Thread.sleep(10); in testGaugeMetric() 112 Thread.sleep(2000); in testGaugeMetric() 114 Thread.sleep(10); in testGaugeMetric() 118 Thread.sleep(2000); in testGaugeMetric() 191 Thread.sleep(20_000); in testPulledGaugeMetricWithActivation() [all …]
|
D | ValueMetricsTests.java | 85 Thread.sleep(1000); in testValueMetric() 91 Thread.sleep(1000); in testValueMetric() 162 Thread.sleep(2*60_000 + 10_000); in testPullerAcrossBuckets() 166 Thread.sleep(1_000); in testPullerAcrossBuckets() 241 Thread.sleep(GAP_INTERVAL); in testMultipleEventsPerBucket() 243 Thread.sleep(GAP_INTERVAL); in testMultipleEventsPerBucket() 247 Thread.sleep(1_000); in testMultipleEventsPerBucket() 313 Thread.sleep(60_000 + 10_000); in testPullerAcrossBucketsWithActivation() 316 Thread.sleep(1_000); in testPullerAcrossBucketsWithActivation() 386 Thread.sleep(10); in testValueMetricWithConditionAndActivation() [all …]
|
D | CountMetricsTests.java | 58 Thread.sleep(100); in testSimpleEventCountMetric() 60 Thread.sleep(2000); // Wait for the metrics to propagate to statsd. in testSimpleEventCountMetric() 109 Thread.sleep(10); in testEventCountWithCondition() 111 Thread.sleep(10); in testEventCountWithCondition() 113 Thread.sleep(10); in testEventCountWithCondition() 115 Thread.sleep(10); in testEventCountWithCondition() 117 Thread.sleep(2000); // Wait for the metrics to propagate to statsd. in testEventCountWithCondition() 185 Thread.sleep(10); in testEventCountWithConditionAndActivation() 189 Thread.sleep(10); in testEventCountWithConditionAndActivation() 193 Thread.sleep(10); in testEventCountWithConditionAndActivation() [all …]
|
/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | thread.cc | 35 Thread::Thread(const std::string& name, const Priority priority) in Thread() function in bluetooth::os::Thread 36 : name_(name), reactor_(), running_thread_(&Thread::run, this, priority) {} in Thread() 38 void Thread::run(Priority priority) { in run() 51 Thread::~Thread() { in ~Thread() 55 bool Thread::Stop() { in Stop() 67 bool Thread::IsSameThread() const { in IsSameThread() 71 Reactor* Thread::GetReactor() const { in GetReactor() 75 std::string Thread::GetThreadName() const { in GetThreadName() 79 std::string Thread::ToString() const { in ToString()
|
D | thread_unittest.cc | 33 …explicit SampleReactable(Thread* thread) : thread_(thread), fd_(eventfd(0, 0)), is_same_thread_che… in SampleReactable() 52 Thread* thread_; 60 thread = new Thread("test", Thread::Priority::NORMAL); in SetUp() 66 Thread* thread = nullptr;
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | Profile.java | 42 Thread thread; 77 public synchronized void addWatchEntry(Thread thread, int cycleTime) { in addWatchEntry() 87 public synchronized void removeWatchEntry(Thread thread) { in removeWatchEntry() 112 Thread thread = entry.thread; in processList() 126 Thread thread = entry.thread; in sampleStack() 139 private WatchEntry findEntry(Thread thread) { in findEntry() 155 public synchronized void hold(Thread t) { in hold() 166 public synchronized void commit(Thread t) { in commit() 177 public synchronized void drop(Thread t) { in drop() 188 Thread t = Thread.currentThread(); in enable() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/alert/ |
D | AnomalyDetectionTests.java | 87 Thread.sleep(WAIT_TIME_SHORT); in tearDown() 113 Thread.sleep(500); in testCountAnomalyDetection() 119 Thread.sleep(500); in testCountAnomalyDetection() 125 Thread.sleep(1000); in testCountAnomalyDetection() 130 Thread.sleep(WAIT_AFTER_BREADCRUMB_MS); in testCountAnomalyDetection() 164 Thread.sleep(6_000); // Recorded duration at end: 6s in testDurationAnomalyDetection() 168 Thread.sleep(4_000); // Recorded duration at end: 6s in testDurationAnomalyDetection() 173 Thread.sleep(9_000); // Recorded duration at end: 13s in testDurationAnomalyDetection() 183 Thread.sleep(3_000); // Recorded duration at end: 13s in testDurationAnomalyDetection() 189 Thread.sleep(8_000); // Recorded duration at end: 9s in testDurationAnomalyDetection() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | RaceConditionReproducerTest.java | 55 Thread tb = new Thread(() -> { in run3_3_TestAction() 100 Thread tb = new Thread(() -> { in test3_3_enter_exit() 149 Thread tb = new Thread(() -> { in test2_1_2() 155 Thread tc = new Thread(() -> { in test2_1_2() 180 Thread tb = new Thread(() -> { in test2_1_2_enter_exit() 188 Thread tc = new Thread(() -> { in test2_1_2_enter_exit()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | BitmapManager.java | 60 private final WeakHashMap<Thread, ThreadStatus> mThreadStatus = 61 new WeakHashMap<Thread, ThreadStatus>(); 71 private synchronized ThreadStatus getOrCreateThreadStatus(Thread t) { in getOrCreateThreadStatus() 84 private synchronized void setDecodingOptions(Thread t, in setDecodingOptions() 89 synchronized void removeDecodingOptions(Thread t) { in removeDecodingOptions() 98 public synchronized boolean canThreadDecoding(Thread t) { in canThreadDecoding() 109 public synchronized void allowThreadDecoding(Thread t) { in allowThreadDecoding() 113 public synchronized void cancelThreadDecoding(Thread t, ContentResolver cr) { in cancelThreadDecoding() 140 Thread t = Thread.currentThread(); in getThumbnail() 183 Thread thread = Thread.currentThread(); in decodeFileDescriptor()
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | hfp.py | 104 threading.Thread(target=enable_slc).start() 128 threading.Thread(target=connect).start() 158 threading.Thread(target=disable_slc).start() 195 threading.Thread(target=enable_call).start() 220 threading.Thread(target=disable_call_external).start() 250 threading.Thread(target=disable_audio).start() 278 threading.Thread(target=enable_audio).start() 296 threading.Thread(target=disable_slc).start() 326 threading.Thread(target=enable_second_call).start() 418 threading.Thread(target=disable_slc).start() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
D | ProcStatsValidationTests.java | 107 Thread.sleep(half); in toggleScreenAndSleep() 109 Thread.sleep(half); in toggleScreenAndSleep() 116 Thread.sleep(WAIT_TIME_SHORT); in testProcessStateByPulling() 120 Thread.sleep(SLEEP_OF_FOREGROUND_SERVICE + EXTRA_WAIT_TIME_MS); in testProcessStateByPulling() 123 Thread.sleep(SLEEP_OF_ACTION_BACKGROUND_SLEEP + EXTRA_WAIT_TIME_MS); in testProcessStateByPulling() 126 Thread.sleep(SLEEP_OF_ACTION_SLEEP_WHILE_TOP + EXTRA_WAIT_TIME_MS); in testProcessStateByPulling() 130 Thread.sleep(cacheTime); in testProcessStateByPulling() 134 Thread.sleep(EXTRA_WAIT_TIME_MS + 5_000); in testProcessStateByPulling() 136 Thread.sleep(60_000); in testProcessStateByPulling() 140 Thread.sleep(WAIT_TIME_SHORT); in testProcessStateByPulling() [all …]
|
/packages/modules/Bluetooth/system/gd/os/ |
D | thread.h | 32 class Thread { 44 Thread(const std::string& name, Priority priority); 46 Thread(const Thread&) = delete; 47 Thread& operator=(const Thread&) = delete; 50 ~Thread();
|
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/ |
D | DialerExecutorModule.java | 61 public Thread newThread(Runnable runnable) { in provideNonUiThreadPool() 63 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority"); in provideNonUiThreadPool() 78 public Thread newThread(Runnable runnable) { 80 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority-Serial"); 101 public Thread newThread(Runnable runnable) { 103 Thread thread = new Thread(runnable, "DialerExecutors-HighPriority-Serial");
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/power/ |
D | ImageAndVideoCapture.java | 67 Thread.sleep(WAIT_FOR_STABLE_STATE); in testLaunchCamera() 80 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in testCapture5Image() 83 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in testCapture5Image() 85 Thread.sleep(WAIT_FOR_STABLE_STATE); in testCapture5Image() 103 Thread.sleep(WAIT_FOR_PREVIEW); in testCapture5Videos() 106 Thread.sleep(WAIT_FOR_VIDEO_CAPTURE_TO_BE_TAKEN); in testCapture5Videos() 108 Thread.sleep(WAIT_FOR_PREVIEW); in testCapture5Videos() 110 Thread.sleep(WAIT_FOR_STABLE_STATE); in testCapture5Videos()
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | LocationSettingsTests.java | 78 Thread.sleep(TIMEOUT); in testLoadingLocationSettings() 100 Thread.sleep(TIMEOUT); in testLocationDeviceOnlyMode() 108 Thread.sleep(TIMEOUT); in testLocationBatterySavingMode() 116 Thread.sleep(TIMEOUT); in testLocationHighAccuracyMode() 126 Thread.sleep(TIMEOUT); in testLocationSettingsElements() 163 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode() 168 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode() 171 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode() 203 Thread.sleep(TIMEOUT); in verifyLocationSettingsOnOrOff() 231 Thread.sleep(TIMEOUT); in dismissAlertDialogs() [all …]
|
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/ |
D | RebootReadinessUnitTest.java | 234 Thread.sleep(STATE_CHANGE_DELAY); in testCorrectIntentsSent() 240 Thread.sleep(DEVICE_CONFIG_DELAY); in testCorrectIntentsSent() 242 Thread.sleep(STATE_CHANGE_DELAY); in testCorrectIntentsSent() 273 Thread.sleep(STATE_CHANGE_DELAY); in testSecondClientReceivesBroadcastImmediately() 293 Thread.sleep(STATE_CHANGE_DELAY); in testWritingAfterRebootReadyBroadcast() 302 Thread.sleep(DEVICE_CONFIG_DELAY); in testWritingAfterRebootReadyBroadcast() 304 Thread.sleep(STATE_CHANGE_DELAY); in testWritingAfterRebootReadyBroadcast() 307 Thread.sleep(STATE_CHANGE_DELAY); in testWritingAfterRebootReadyBroadcast() 325 Thread.sleep(1000); in testInteractivityChecks() 363 Thread.sleep(DEVICE_CONFIG_DELAY); in testAlarmClockBlocksReboot() [all …]
|
/packages/modules/Bluetooth/system/gd/common/ |
D | bidi_queue_unittest.cc | 27 using ::bluetooth::os::Thread; 36 up_thread_ = new Thread("up_thread", Thread::Priority::NORMAL); in SetUp() 38 down_thread_ = new Thread("down_thread", Thread::Priority::NORMAL); in SetUp() 49 Thread* up_thread_; 51 Thread* down_thread_;
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsTaskSchedulerTest.java | 70 Thread.sleep(10 * 1000); in testAutoShutdown() 76 Thread.sleep(1 * 1000); in testAutoShutdown() 79 Thread.sleep(1 * 1000); in testAutoShutdown() 82 Thread.sleep(1 * 1000); in testAutoShutdown() 85 Thread.sleep(1 * 1000); in testAutoShutdown() 90 Thread.sleep(10 * 1000); in testAutoShutdown()
|
/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/ |
D | LibStatsPullTests.java | 107 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackRegistration() 110 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackRegistration() 140 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackFailure() 143 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackFailure() 165 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackTimeout() 168 Thread.sleep(sPullLatencyMillis * 2); in testPullAtomCallbackTimeout() 189 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackCache() 193 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackCache() 227 Thread.sleep(SHORT_SLEEP_MILLIS); in testPullAtomCallbackStress() 230 Thread.sleep(LONG_SLEEP_MILLIS); in testPullAtomCallbackStress()
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | ConcurrentUtils.java | 67 public Thread newThread(final Runnable r) { in newFixedThreadPool() 68 return new Thread(poolName + mThreadNum.incrementAndGet()) { in newFixedThreadPool() 95 Thread.currentThread().interrupt(); 121 Thread.currentThread().interrupt(); 131 if (Thread.holdsLock(lock)) { 141 if (!Thread.holdsLock(lock)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ExecutorUtils.java | 23 import java.lang.Thread.UncaughtExceptionHandler; 54 public Thread newThread(final Runnable runnable) { in newThread() 55 Thread thread = new Thread(runnable, TAG); in newThread() 58 public void uncaughtException(Thread thread, Throwable ex) { in newThread() 145 if (Thread.interrupted()) { in run()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/app/ |
D | PumpApplication.java | 29 public class PumpApplication extends GlobalsApplication implements Thread.UncaughtExceptionHandler { 32 private final Thread.UncaughtExceptionHandler mSystemUncaughtExceptionHandler = 33 Thread.getDefaultUncaughtExceptionHandler(); 36 Thread.setDefaultUncaughtExceptionHandler(this); in PumpApplication() 60 public void uncaughtException(@NonNull Thread t, @NonNull Throwable e) { in uncaughtException()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
D | JavaMockitoHelperTest.java | 69 new Thread(() -> latch.countDown(), "testAwait_CountDownLatch").start(); in testAwait_CountDownLatch() 87 new Thread(() -> latch.countDown(), "testSilentAwait_called").start(); in testSilentAwait_called() 139 Thread thread = getCurrentThreadIninterrupted(); in testGetResult_interruptedException() 200 Thread thread = getCurrentThreadIninterrupted(); in testGetResult_withCustomTimeout_interruptedException() 210 private Thread getCurrentThreadIninterrupted() { in getCurrentThreadIninterrupted() 211 Thread thread = Thread.currentThread(); in getCurrentThreadIninterrupted() 212 if (Thread.interrupted()) { in getCurrentThreadIninterrupted()
|