Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 40) sorted by relevance

12

/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DUnresponsiveActivity.java36 final int delay = getIntent().getIntExtra(EXTRA_ON_CREATE_DELAY_MS, 0); in onCreate() local
37 SystemClock.sleep(delay); in onCreate()
43 final int delay = getIntent().getIntExtra(EXTRA_DELAY_UI_THREAD_MS, 0); in onResume() local
46 SystemClock.sleep(delay); in onResume()
53 final int delay = getIntent().getIntExtra(EXTRA_ON_KEYDOWN_DELAY_MS, 0); in onKeyDown() local
54 SystemClock.sleep(delay); in onKeyDown()
60 final int delay = getIntent().getIntExtra(EXTRA_ON_MOTIONEVENT_DELAY_MS, 0); in onTouchEvent() local
61 SystemClock.sleep(delay); in onTouchEvent()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DTransitionDrawableTest.java189 private void verifyTransition(int colorFrom, int colorTo, long delay) { in verifyTransition() argument
191 verifyTransitionInProgress(colorFrom, colorTo, delay / 2); in verifyTransition()
192 verifyTransitionEnd(colorTo, delay); in verifyTransition()
201 private void verifyTransitionInProgress(int colorFrom, int colorTo, long delay) { in verifyTransitionInProgress() argument
202 drawAfterDelaySync(delay); in verifyTransitionInProgress()
207 private void verifyTransitionEnd(int colorTo, long delay) { in verifyTransitionEnd() argument
208 drawAfterDelaySync(delay); in verifyTransitionEnd()
228 private void makeReverseTransitionInProgress(int duration, int delay) { in makeReverseTransitionInProgress() argument
234 verifyTransitionInProgress(COLOR1, COLOR0, delay); in makeReverseTransitionInProgress()
237 private void makeTransitionInProgress(int duration, int delay) { in makeTransitionInProgress() argument
[all …]
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DFakeSensorOperation.java40 public FakeSensorOperation(long delay, TimeUnit timeUnit) { in FakeSensorOperation() argument
41 this(false, delay, timeUnit); in FakeSensorOperation()
47 public FakeSensorOperation(boolean fail, long delay, TimeUnit timeUnit) { in FakeSensorOperation() argument
52 mDelay = delay; in FakeSensorOperation()
DDelaySensorOperation.java40 public DelaySensorOperation(SensorOperation operation, long delay, TimeUnit timeUnit) { in DelaySensorOperation() argument
43 mDelay = delay; in DelaySensorOperation()
/cts/suite/audio_quality/test_description/processing/
Drecording_thd.py62 delay = calc_delay.calc_delay(hostRecording, deviceRecording)
64 print "delay ", delay, "deviceRecording samples ", N
65 thdHost = calc_thd(hostRecording[delay:delay+N], signalFrequency, samplingRate, 0.02) * 100
Dcheck_spectrum.py118 delay = 0
123 delay = calc_delay.calc_delay(hostData, dutData)
125 hostData_ = hostData[delay:delay+N]
127 delay = calc_delay.calc_delay(dutData, hostData)
129 dutData_ = dutData[delay:delay+N]
131 print "delay ", delay, "deviceRecording samples ", N
Dcalc_delay.py74 delay = calc_delay(data0, data1) variable
75 print "calc_delay returned", delay, " while expecting ", DELAY
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/
DInteractiveVerifierActivity.java279 delay(mCurrentTest.delayTime); in run()
281 delay(); in run()
297 delay(mCurrentTest.delayTime); in run()
299 delay(); in run()
307 delay(); in run()
316 delay(); in run()
347 protected void delay() { in delay() method in InteractiveVerifierActivity
348 delay(3000); in delay()
362 protected void delay(long waitTime) { in delay() method in InteractiveVerifierActivity
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp226 auto delay = std::chrono::duration_cast<std::chrono::milliseconds>(DELAY_PERIOD).count(); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback() local
227 AChoreographer_postFrameCallbackDelayed64(choreographer, frameCallback64, &cb1, delay); in android_view_cts_ChoreographerNativeTest_testPostCallback64WithDelayEventuallyRunsCallback()
242 const auto delay = NOMINAL_VSYNC_PERIOD * 3; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback() local
245 const auto delayToTest = sizeof(long) == sizeof(int64_t) ? delay : ZERO; in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
249 std::this_thread::sleep_for(delay); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
265 std::this_thread::sleep_for(delay); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithoutDelayEventuallyRunsCallback()
282 auto delay = std::chrono::duration_cast<std::chrono::milliseconds>(DELAY_PERIOD).count(); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback() local
283 AChoreographer_postFrameCallbackDelayed(choreographer, frameCallback, &cb1, delay); in android_view_cts_ChoreographerNativeTest_testPostCallbackWithDelayEventuallyRunsCallback()
331 auto delay = std::chrono::duration_cast<std::chrono::milliseconds>(DELAY_PERIOD).count(); in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithDelayEventuallyRunsCallback() local
332 AChoreographer_postFrameCallbackDelayed(choreographer, frameCallback, &cb1, delay); in android_view_cts_ChoreographerNativeTest_testPostCallbackMixedWithDelayEventuallyRunsCallback()
[all …]
/cts/tests/tests/permission4/AppThatAccessesCameraAndMic/src/android/permission4/cts/appthataccessescameraandmic/
DAccessCameraOrMicActivity.kt39 import kotlinx.coroutines.delay
137 delay(USE_DURATION_MS) in onOpened()
168 delay(USE_DURATION_MS) in startBackupCamera()
197 delay(USE_DURATION_MS) in useMic()
209 delay(USE_DURATION_MS) in useHotword()
/cts/apps/CameraITS/tests/scene_change/
Dtest_scene_change.py85 def toggle_screen(tablet, delay=1): argument
93 if delay >= 0:
94 time.sleep(delay)
103 def capture_frames(cam, delay, burst, log_path): argument
127 time.sleep(delay)
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java290 delay(mCurrentTest.delayTime); in run()
292 delay(); in run()
308 delay(mCurrentTest.delayTime); in run()
310 delay(); in run()
318 delay(); in run()
327 delay(); in run()
359 protected void delay() { in delay() method in InteractiveVerifierActivity
360 delay(3000); in delay()
374 protected void delay(long waitTime) { in delay() method in InteractiveVerifierActivity
529 delay(); in tearDown()
[all …]
DConditionProviderVerifierActivity.java124 delay(); in tearDown()
318 delay(); in setUp()
370 delay(); in setUp()
451 delay(); in setUp()
505 delay(); in setUp()
564 delay(); in setUp()
627 delay(); in tearDown()
925 delay(); in tearDown()
947 delay(); in setUp()
/cts/tests/tests/media/src/android/media/cts/
DTestUtils.java170 long delay = deadline - System.currentTimeMillis(); in waitForCountedSignals() local
171 if (delay <= 0) { in waitForCountedSignals()
174 wait(delay); in waitForCountedSignals()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestTaskQueue.java73 public synchronized void addTask(final Runnable r, long delay) { in addTask() argument
83 mHandler.postDelayed(task, delay); in addTask()
DBleConnectionPriorityClientBaseActivity.java140 private void executeNextTest(long delay) { in executeNextTest() argument
146 }, delay); in executeNextTest()
/cts/tests/framework/base/windowmanager/backgroundactivity/AppA/src/android/server/wm/backgroundactivity/appa/
DForegroundActivity.java68 final int delay = intent.getIntExtra(START_ACTIVITY_FROM_FG_ACTIVITY_DELAY_MS_EXTRA, 0); in onCreate() local
76 if (delay == 0) { in onCreate()
80 SystemClock.sleep(delay); in onCreate()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DVideoPlayerActivity.java62 delay(); in onCreate()
72 private void delay() { in delay() method in VideoPlayerActivity
/cts/tests/tests/os/src/android/os/cts/
DActivityTestsBase.java171 final long delay = endTime - System.currentTimeMillis(); in waitForResult() local
172 if (delay < 0) { in waitForResult()
178 wait(delay); in waitForResult()
/cts/tests/app/app/src/android/app/stubs/
DActivityTestsBase.java185 final long delay = endTime - System.currentTimeMillis(); in waitForResult() local
186 if (delay < 0) { in waitForResult()
192 wait(delay); in waitForResult()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java194 long delay = 100l; in testStartDelay() local
196 mLayoutTransition.setStartDelay(transitionType, delay); in testStartDelay()
197 assertEquals(delay, mLayoutTransition.getStartDelay(transitionType)); in testStartDelay()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java100 float delay = 1.5f; in testAccessDelay() local
102 mController.setRowDelay(delay); in testAccessDelay()
103 assertEquals(delay, mController.getRowDelay(), 0.0f); in testAccessDelay()
112 mController.setColumnDelay(delay); in testAccessDelay()
113 assertEquals(delay, mController.getColumnDelay(), 0.0f); in testAccessDelay()
DLayoutAnimationControllerTest.java173 float delay = 1.5f; in testAccessDelay() local
174 mController.setDelay(delay); in testAccessDelay()
175 assertEquals(delay, mController.getDelay(), 0.0f); in testAccessDelay()
176 long maxDuration = (long) (delay * INDEX_OF_CHILD3 * DURATION + DURATION); in testAccessDelay()
/cts/tests/DropBoxManager/src/android/dropboxmanager/cts/
DDropBoxTests.java146 final long delay = nextTime - SystemClock.elapsedRealtime(); in sendExcessiveDropBoxEntries() local
147 if (delay > 0) Thread.sleep(delay); in sendExcessiveDropBoxEntries()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java1024 delay(2000); in run()
1041 delay(1000); in run()
1046 private void delay(int milli) { in delay() method in RVCVRecordActivity.RecordProcedureController
1078 delay(1000); in recordAxis()

12