Home
last modified time | relevance | path

Searched refs:sleep (Results 1 – 25 of 613) sorted by relevance

12345678910>>...25

/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DHostAtomTests.java66 Thread.sleep(WAIT_TIME_SHORT); in testScreenStateChangedAtom()
68 Thread.sleep(WAIT_TIME_SHORT); in testScreenStateChangedAtom()
86 Thread.sleep(WAIT_TIME_SHORT); in testScreenStateChangedAtom()
90 Thread.sleep(WAIT_TIME_LONG); in testScreenStateChangedAtom()
92 Thread.sleep(WAIT_TIME_LONG); in testScreenStateChangedAtom()
112 Thread.sleep(WAIT_TIME_SHORT); in testChargingStateChangedAtom()
132 Thread.sleep(WAIT_TIME_SHORT); in testChargingStateChangedAtom()
136 Thread.sleep(WAIT_TIME_SHORT); in testChargingStateChangedAtom()
138 Thread.sleep(WAIT_TIME_SHORT); in testChargingStateChangedAtom()
140 Thread.sleep(WAIT_TIME_SHORT); in testChargingStateChangedAtom()
[all …]
DProcStateAtomTests.java106 Thread.sleep(WAIT_TIME_FOR_CONFIG_UPDATE_MS); in testForegroundService()
110 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testForegroundService()
128 Thread.sleep(WAIT_TIME_FOR_CONFIG_AND_SCREEN_MS); in testForeground()
132 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testForeground()
148 Thread.sleep(WAIT_TIME_FOR_CONFIG_UPDATE_MS); in testBackground()
152 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testBackground()
170 Thread.sleep(WAIT_TIME_FOR_CONFIG_AND_SCREEN_MS); in testTop()
174 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testTop()
194 Thread.sleep(WAIT_TIME_FOR_CONFIG_AND_SCREEN_MS); in testTopSleeping()
200 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testTopSleeping()
[all …]
DUidAtomTests.java97 Thread.sleep(WAIT_TIME_SHORT); in testLmkKillOccurred()
100 Thread.sleep(15_000); in testLmkKillOccurred()
119 Thread.sleep(WAIT_TIME_SHORT); in testAppCrashOccurred()
123 Thread.sleep(WAIT_TIME_SHORT); in testAppCrashOccurred()
142 Thread.sleep(WAIT_TIME_SHORT); in testAppStartOccurred()
176 Thread.sleep(WAIT_TIME_SHORT); in testAudioState()
180 Thread.sleep(WAIT_TIME_SHORT); in testAudioState()
349 Thread.sleep(WAIT_TIME_SHORT); in testCpuTimePerUid()
351 Thread.sleep(WAIT_TIME_LONG); in testCpuTimePerUid()
380 Thread.sleep(WAIT_TIME_LONG); in testDeviceCalculatedPowerUse()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/
DMetricActivationTests.java165 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 …]
DDurationMetricsTests.java90 Thread.sleep(2000); in testDurationMetric()
94 Thread.sleep(2000); in testDurationMetric()
169 Thread.sleep(10); in testDurationMetricWithCondition()
171 Thread.sleep(2_000); in testDurationMetricWithCondition()
175 Thread.sleep(10); in testDurationMetricWithCondition()
179 Thread.sleep(10); in testDurationMetricWithCondition()
183 Thread.sleep(10); in testDurationMetricWithCondition()
185 Thread.sleep(2_000); in testDurationMetricWithCondition()
189 Thread.sleep(10); in testDurationMetricWithCondition()
193 Thread.sleep(10); in testDurationMetricWithCondition()
[all …]
DCountMetricsTests.java52 Thread.sleep(2000); // Wait for the metrics to propagate to statsd. in testSimpleEventCountMetric()
104 Thread.sleep(10); in testEventCountWithCondition()
106 Thread.sleep(10); in testEventCountWithCondition()
108 Thread.sleep(10); in testEventCountWithCondition()
110 Thread.sleep(10); in testEventCountWithCondition()
112 Thread.sleep(2000); // Wait for the metrics to propagate to statsd. in testEventCountWithCondition()
183 Thread.sleep(10); in testEventCountWithConditionAndActivation()
187 Thread.sleep(10); in testEventCountWithConditionAndActivation()
191 Thread.sleep(10); in testEventCountWithConditionAndActivation()
195 Thread.sleep(10); in testEventCountWithConditionAndActivation()
[all …]
DGaugeMetricsTests.java102 Thread.sleep(10); in testGaugeMetric()
104 Thread.sleep(10); in testGaugeMetric()
106 Thread.sleep(2000); in testGaugeMetric()
108 Thread.sleep(10); in testGaugeMetric()
110 Thread.sleep(10); in testGaugeMetric()
113 Thread.sleep(10); in testGaugeMetric()
115 Thread.sleep(2000); in testGaugeMetric()
117 Thread.sleep(10); in testGaugeMetric()
121 Thread.sleep(2000); in testGaugeMetric()
196 Thread.sleep(20_000); in testPulledGaugeMetricWithActivation()
[all …]
DValueMetricsTests.java87 Thread.sleep(1000); in testValueMetric()
93 Thread.sleep(1000); in testValueMetric()
167 Thread.sleep(2*60_000 + 10_000); in testPullerAcrossBuckets()
171 Thread.sleep(1_000); in testPullerAcrossBuckets()
249 Thread.sleep(GAP_INTERVAL); in testMultipleEventsPerBucket()
251 Thread.sleep(GAP_INTERVAL); in testMultipleEventsPerBucket()
255 Thread.sleep(1_000); in testMultipleEventsPerBucket()
325 Thread.sleep(60_000 + 10_000); in testPullerAcrossBucketsWithActivation()
328 Thread.sleep(1_000); in testPullerAcrossBucketsWithActivation()
402 Thread.sleep(10); in testValueMetricWithConditionAndActivation()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DProcStatsValidationTests.java64 Thread.sleep(WAIT_TIME_SHORT); in testProcessStateTopDuration()
68 Thread.sleep(SLEEP_OF_FOREGROUND_SERVICE + EXTRA_WAIT_TIME_MS); in testProcessStateTopDuration()
71 Thread.sleep(SLEEP_OF_ACTION_BACKGROUND_SLEEP + EXTRA_WAIT_TIME_MS); in testProcessStateTopDuration()
74 Thread.sleep(SLEEP_OF_ACTION_SLEEP_WHILE_TOP + EXTRA_WAIT_TIME_MS); in testProcessStateTopDuration()
78 Thread.sleep(cacheTime); in testProcessStateTopDuration()
82 Thread.sleep(EXTRA_WAIT_TIME_MS + 5_000); in testProcessStateTopDuration()
129 Thread.sleep(WAIT_TIME_SHORT);
133 Thread.sleep(SLEEP_OF_FOREGROUND_SERVICE + EXTRA_WAIT_TIME_MS);
136 Thread.sleep(SLEEP_OF_ACTION_BACKGROUND_SLEEP + EXTRA_WAIT_TIME_MS);
139 Thread.sleep(SLEEP_OF_ACTION_SLEEP_WHILE_TOP + EXTRA_WAIT_TIME_MS);
[all …]
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java76 sleep(DELAYED); in testPostAtTime1()
86 sleep(DELAYED); in testPostAtTime2()
95 sleep(DELAYED); in testSendMessageAtTime()
128 sleep(RUNTIME / 2); in testRemoveCallbacksAndMessages()
132 sleep(RUNTIME / 2); in testRemoveCallbacksAndMessages()
139 sleep(RUNTIME / 2); in testRemoveCallbacksAndMessages()
143 sleep(RUNTIME / 2); in testRemoveCallbacksAndMessages()
151 sleep(RUNTIME / 2); in testRemoveCallbacksAndMessages()
153 sleep(RUNTIME / 2); in testRemoveCallbacksAndMessages()
159 sleep(DELAYED / 2); in testRemoveCallbacksAndMessages()
[all …]
DVibratorTest.java52 sleep(500); in testVibratorCancel()
90 sleep(1500); in testVibrateMultiThread()
98 sleep(100); in testVibrateOneShot()
102 sleep(100); in testVibrateOneShot()
107 sleep(100); in testVibrateOneShot()
116 sleep(1500); in testVibrateWaveform()
120 sleep(2000); in testVibrateWaveform()
131 private static void sleep(long millis) { in sleep() method in VibratorTest
133 Thread.sleep(millis); in sleep()
DSystemClockTest.java27 Thread.sleep(100); in testCurrentThreadTimeMillis()
36 Thread.sleep(100); in testElapsedRealtime()
54 SystemClock.sleep(100); in testSleep()
59 SystemClock.sleep(100); in testSleep()
64 SystemClock.sleep(100); in testSleep()
73 Thread.sleep(100); in testUptimeMillis()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAppStandbyTests.java159 Thread.sleep(100); in setUpTests()
202 Thread.sleep(MIN_FUTURITY); in testBucketDelay()
209 Thread.sleep(MIN_FUTURITY); in testBucketDelay()
214 Thread.sleep(minTriggerTime - SystemClock.elapsedRealtime()); in testBucketDelay()
226 Thread.sleep(MIN_FUTURITY); in testActiveDelay()
256 Thread.sleep(MIN_FUTURITY); in testNeverDelay()
262 Thread.sleep(10_000); in testNeverDelay()
272 Thread.sleep(MIN_FUTURITY); in testBucketUpgradeToSmallerDelay()
280 Thread.sleep(workingSetExpectedTrigger - SystemClock.elapsedRealtime()); in testBucketUpgradeToSmallerDelay()
300 Thread.sleep(MIN_FUTURITY); in testBucketUpgradeToNoDelay()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DVolumeShaperTest.java601 Thread.sleep(WARMUP_TIME_MS); in testPlayerDuck()
626 Thread.sleep(WARMUP_TIME_MS); in testPlayerRamp()
660 Thread.sleep(100 /* millis */); in testPlayerCornerCase()
667 Thread.sleep(100 /* millis */); in testPlayerCornerCase()
709 Thread.sleep(100 /* millis */); in testPlayerCornerCase2()
743 Thread.sleep(WARMUP_TIME_MS); in testPlayerJoin()
757 Thread.sleep(incrementMs); in testPlayerJoin()
788 Thread.sleep(WARMUP_TIME_MS); in testPlayerCubicMonotonic()
806 Thread.sleep(incrementMs); in testPlayerCubicMonotonic()
808 Thread.sleep(WARMUP_TIME_MS); in testPlayerCubicMonotonic()
[all …]
DSoundPoolTest.java160 Thread.sleep(waitMsec); in testSoundPoolOp()
163 Thread.sleep(waitMsec); in testSoundPoolOp()
165 Thread.sleep(waitMsec); in testSoundPoolOp()
167 Thread.sleep(waitMsec); in testSoundPoolOp()
169 Thread.sleep(waitMsec); in testSoundPoolOp()
176 Thread.sleep(waitMsec); in testSoundPoolOp()
180 Thread.sleep(waitMsec); in testSoundPoolOp()
185 Thread.sleep(waitMsec * 10); in testSoundPoolOp()
196 Thread.sleep(waitMsec); in testMultiSound()
201 Thread.sleep(waitMsec * 4); in testMultiSound()
[all …]
/cts/hostsidetests/statsd/src/android/cts/statsd/alert/
DAnomalyDetectionTests.java84 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()
168 Thread.sleep(6_000); // Recorded duration at end: 6s in testDurationAnomalyDetection()
172 Thread.sleep(4_000); // Recorded duration at end: 6s in testDurationAnomalyDetection()
177 Thread.sleep(9_000); // Recorded duration at end: 13s in testDurationAnomalyDetection()
186 Thread.sleep(3_000); // Recorded duration at end: 13s in testDurationAnomalyDetection()
192 Thread.sleep(8_000); // Recorded duration at end: 9s in testDurationAnomalyDetection()
[all …]
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsSyncAdapter.java57 Thread.sleep(1000); in onPerformSync()
88 final long sleep = timeout - SystemClock.elapsedRealtime(); in waitUntilSyncCount() local
89 if (sleep <= 0) { in waitUntilSyncCount()
92 sLock.wait(sleep); in waitUntilSyncCount()
127 final long sleep = timeout - SystemClock.elapsedRealtime(); in cancelPendingSyncs() local
128 if (sleep <= 0) { in cancelPendingSyncs()
131 Thread.sleep(sleep); in cancelPendingSyncs()
/cts/apps/CameraITS/tools/
Dwake_up_screen.py50 time.sleep(DISPLAY_CMD_WAIT)
54 time.sleep(DISPLAY_CMD_WAIT)
60 time.sleep(DISPLAY_CMD_WAIT)
66 time.sleep(DISPLAY_CMD_WAIT)
71 time.sleep(DISPLAY_CMD_WAIT)
77 time.sleep(DISPLAY_CMD_WAIT)
/cts/tests/tests/util/src/android/util/cts/
DTimingLoggerTest.java44 sleep(); in testTimingLogger()
47 sleep(); in testTimingLogger()
50 sleep(); in testTimingLogger()
57 private void sleep() { in sleep() method in TimingLoggerTest
59 Thread.sleep(SLEEPING_MSEC); in sleep()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DTestUtils.java66 int sleep = 125; in waitUntil() local
72 Thread.sleep(sleep); in waitUntil()
73 sleep *= 5; in waitUntil()
74 sleep = Math.min(2000, sleep); in waitUntil()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DTestUtils.java66 int sleep = 125; in waitUntil() local
72 Thread.sleep(sleep); in waitUntil()
73 sleep *= 5; in waitUntil()
74 sleep = Math.min(2000, sleep); in waitUntil()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java79 sleep(2_000); in testAudioState()
117 sleep(8_000); in performBleScan()
148 sleep(2_000); in performBleScan()
173 sleep(2_000); in testCameraState()
210 sleep(500); in testFlashlight()
227 sleep(500); in testForegroundService()
262 sleep(1_000); in testGpsScan()
279 sleep(500); in testScreenBrightness()
282 sleep(500); in testScreenBrightness()
284 sleep(500); in testScreenBrightness()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java150 sleep(CHECK_WAIT_TIME_MS); in disable()
182 sleep(POLL_TIME_MS); in assertDisabledAfterTimeout()
196 sleep(POLL_TIME_MS); in assertComponentStateAfterTimeout()
211 sleep(CHECK_WAIT_TIME_MS); in enable()
243 sleep(POLL_TIME_MS); in assertEnabledAfterTimeout()
248 private static void sleep(long t) { in sleep() method in BluetoothRestrictionTest
250 Thread.sleep(t); in sleep()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothTest.java136 sleep(CHECK_WAIT_TIME_MS); in disable()
147 sleep(POLL_TIME_MS); in disable()
170 sleep(CHECK_WAIT_TIME_MS); in enable()
181 sleep(POLL_TIME_MS); in enable()
198 private void sleep(long t) { in sleep() method in BluetoothTest
200 Thread.sleep(t); in sleep()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollerTest.java137 SystemClock.sleep(1000); in testScrollMode()
150 SystemClock.sleep(1000); in testScrollMode()
163 SystemClock.sleep(3000); in testScrollMode()
196 SystemClock.sleep(defaultDuration);
227 SystemClock.sleep(duration / 3); in testFlingMode()
241 SystemClock.sleep(duration / 3); in testFlingMode()
261 SystemClock.sleep(duration); in testFlingMode()
312 SystemClock.sleep(1500);
324 SystemClock.sleep(1000);
338 SystemClock.sleep(1000);
[all …]

12345678910>>...25