/cts/tests/tests/text/src/android/text/format/cts/ |
D | TimeTest.java | 38 import java.time.Duration; 39 import java.time.Instant; 40 import java.time.LocalDateTime; 41 import java.time.Month; 42 import java.time.ZoneId; 43 import java.time.temporal.ChronoUnit; 44 import java.time.zone.ZoneOffsetTransition; 45 import java.time.zone.ZoneRules; 79 Time time = new Time(); in testConstructor() local 81 time.set(System.currentTimeMillis()); in testConstructor() [all …]
|
/cts/apps/CameraITS/tools/ |
D | wake_up_screen.py | 18 import time 50 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)
|
D | rotation_rig.py | 16 import time 53 time.sleep(RELAY_COM_SLEEP) # This is critcal for relay. 119 time.sleep(SLEEP_TIME) 121 time.sleep(SLEEP_TIME)
|
D | run_sensor_fusion_box.py | 21 import time 130 t0 = time.time() 134 t1 = time.time()
|
D | turn_off_screen.py | 18 import time 44 time.sleep(TURN_OFF_DELAY)
|
D | run_parallel_tests.py | 20 import time 66 print ">>> Start the test at %s" % time.strftime('%Y/%m/%d %H:%M:%S') 86 print ">>> End the test at %s" % time.strftime('%Y/%m/%d %H:%M:%S')
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ConditionVariableTest.java | 47 long time = System.currentTimeMillis(); in testConditionVariable() local 49 assertTrue(System.currentTimeMillis() - time < TOLERANCE_MS); in testConditionVariable() 53 time = System.currentTimeMillis(); in testConditionVariable() 55 assertTrue(System.currentTimeMillis() - time >= BLOCK_TIME); in testConditionVariable() 58 time = System.currentTimeMillis(); in testConditionVariable() 73 long timeDelta = System.currentTimeMillis() - time; in testConditionVariable() 77 time = System.currentTimeMillis(); in testConditionVariable()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AsyncUtils.java | 39 public static <T> T await(Future<T> f, long time, TimeUnit timeUnit) { in await() argument 41 return f.get(time, timeUnit); in await() 51 public static Throwable awaitFailure(Future<?> f, long time, TimeUnit timeUnit) { in awaitFailure() argument 52 return assertThrows(() -> await(f, time, timeUnit)); in awaitFailure() 60 Future<T> f, long time, TimeUnit timeUnit) { in awaitCancellation() argument 61 Throwable ex = awaitFailure(f, time, timeUnit); in awaitCancellation()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContentPaneFocusTest.java | 150 long time = SystemClock.uptimeMillis(); in sendMetaHotkey() local 151 KeyEvent metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_DOWN, keyCode, in sendMetaHotkey() 154 time = SystemClock.uptimeMillis(); in sendMetaHotkey() 155 metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_UP, keyCode, in sendMetaHotkey() 163 long time = SystemClock.uptimeMillis(); in sendMetaKey() local 164 KeyEvent keyEvent = new KeyEvent(time, time, action, KeyEvent.KEYCODE_META_LEFT, 0, in sendMetaKey()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | InterpolatorTest.java | 78 long time = SystemClock.uptimeMillis(); in testTimeToValues1() local 81 interpolator.setKeyFrame(0, (int)(time - 10000), new float[] {1.0f}); in testTimeToValues1() 82 interpolator.setKeyFrame(1, (int)(time + 10000), new float[] {2.0f}); in testTimeToValues1() 87 time = SystemClock.uptimeMillis(); in testTimeToValues1() 88 interpolator.setKeyFrame(0, (int)(time + 1000), new float[] {2.0f}); in testTimeToValues1() 89 interpolator.setKeyFrame(1, (int)(time + 2000), new float[] {3.0f}); in testTimeToValues1() 94 time = SystemClock.uptimeMillis(); in testTimeToValues1() 95 interpolator.setKeyFrame(0, (int)(time - 2000), new float[] {2.0f}); in testTimeToValues1() 96 interpolator.setKeyFrame(1, (int)(time - 1000), new float[] {3.0f}); in testTimeToValues1() 277 private void verifyValue(int time, float expected, Result expectedResult, in verifyValue() argument [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ |
D | DeviceEvent.java | 145 public static Predicate<DeviceEvent> isNewerThan(long time) { in isNewerThan() argument 146 return e -> e.time >= time; in isNewerThan() 164 public final long time; field in DeviceEvent 166 private DeviceEvent(String sender, DeviceEventType type, long time) { in DeviceEvent() argument 169 this.time = time; in DeviceEvent() 174 return "Event{ time:" + time + " type:" + type + " sender:" + sender + " }"; in toString() 204 mTime.putLong(values, event.time); in buildContentValues()
|
/cts/tests/tests/location/src/android/location/cts/psedorange/ |
D | GpsTime.java | 24 import java.time.ZoneId; 25 import java.time.ZonedDateTime; 26 import java.time.Instant; 169 public static int getLeapSecond(ZonedDateTime time) { 170 if (LEAP_SECOND_DATE_2017.compareTo(time) <= 0) { 172 } else if (LEAP_SECOND_DATE_2015.compareTo(time) <= 0) { 174 } else if (LEAP_SECOND_DATE_2012.compareTo(time) <= 0) { 176 } else if (LEAP_SECOND_DATE_1981.compareTo(time) <= 0) { 307 GpsTime time = (GpsTime) other; 308 return getNanosSinceGpsEpoch() == time.getNanosSinceGpsEpoch();
|
D | SatelliteClockCorrectionCalculator.java | 149 private static double fixWeekRollover(double time) { in fixWeekRollover() argument 150 double correctedTime = time; in fixWeekRollover() 151 if (time > SECONDS_IN_WEEK / 2.0) { in fixWeekRollover() 152 correctedTime = time - SECONDS_IN_WEEK; in fixWeekRollover() 154 if (time < -SECONDS_IN_WEEK / 2.0) { in fixWeekRollover() 155 correctedTime = time + SECONDS_IN_WEEK; in fixWeekRollover()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioEffectTest.java | 384 int time = 500; in test3_1SetParameterIntInt() local 385 if (value[0] == time) { in test3_1SetParameterIntInt() 386 time = 1000; in test3_1SetParameterIntInt() 388 status = mEffect.setParameter(param, time); in test3_1SetParameterIntInt() 393 ((float)value[0] > (float)(time / DELAY_TOLERANCE)) && in test3_1SetParameterIntInt() 394 ((float)value[0] < (float)(time * DELAY_TOLERANCE))); in test3_1SetParameterIntInt() 450 int time = 500; in test3_3SetParameterIntByteArray() local 451 if (mEffect.byteArrayToInt(value) == time) { in test3_3SetParameterIntByteArray() 452 time = 1000; in test3_3SetParameterIntByteArray() 454 value = mEffect.intToByteArray(time); in test3_3SetParameterIntByteArray() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 339 public double time; field in RVCVXCheckAnalyzer.AttitudeRec 346 time = atime; in AttitudeRec() 354 time = atime; in AttitudeRec() 362 time = rec.time; in assign() 363 roll = rec.time; in assign() 370 time = atime; in assign() 371 roll = rec.time; in assign() 378 time = atime; in set() 514 double time; in loadAttitudeRecs() local 528 time = Double.parseDouble(items[0]); in loadAttitudeRecs() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | primitives.rs | 58 float time = end(); 61 rsDebug("test_primitive_types FAILED", time); 64 rsDebug("test_primitive_types PASSED", time); 113 float time = end(); 116 rsDebug("test_vector_types FAILED", time); 119 rsDebug("test_vector_types PASSED", time);
|
D | utils.rs | 17 float time = end(); 20 rsDebug("test_color_pack_unpack FAILED", time); 23 rsDebug("test_color_pack_unpack PASSED", time);
|
/cts/tests/tests/rscpp/librscpptest/ |
D | primitives.rs | 42 float time = end(); 45 rsDebug("test_primitive_types FAILED", time); 49 rsDebug("test_primitive_types PASSED", time);
|
/cts/tests/tests/content/src/android/content/cts/ |
D | DummyProvider.java | 143 long time = System.currentTimeMillis(); in doMockOperation() local 144 long target = time + MOCK_OPERATION_SLEEP_TIME; in doMockOperation() 145 while (time < target) { in doMockOperation() 147 Thread.sleep(target - time); in doMockOperation() 152 time = System.currentTimeMillis(); in doMockOperation()
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskSound.cpp | 81 int time = atoi(tokens->at(3).string()); in run() local 82 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run() 91 int time = atoi(tokens->at(2).string()); in run() local 92 int samples = time * AudioHardware::ESampleRate_44100 / 1000; in run()
|
/cts/tools/utils/ |
D | monsoon.py | 54 import time 129 time.sleep(1) 186 time.sleep(.1) 386 last_flush = time.time() 402 if FLAGS.timestamp: print int(time.time()), 425 now = time.time()
|
/cts/hostsidetests/securitybulletin/securityPatch/includes/ |
D | common.h | 40 return time(NULL); in start_timer() 44 return time(NULL) < (timer_started + MAX_TEST_DURATION); in timer_active()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_sensor_events.py | 17 import time 34 time.sleep(1)
|
/cts/tests/tests/location/protos/ |
D | ephemeris.proto | 12 // Time used for generating this data (typically, the queried time). 45 // Transmission time of the message. 76 // Mean anomaly at reference time. 96 // Time used for generating this data (typically, the queried time).
|
/cts/apps/CtsVerifier/assets/scripts/ |
D | execute_power_tests.py | 21 import time 158 testid = time.strftime("%d_%m_%Y__%H__%M_%S") 305 time.sleep(2.0) 449 time.sleep(DELAY_SCREEN_OFF) 499 time.sleep(DELAY_SCREEN_OFF) 546 time.sleep(1.0) 867 last_flush = time.time() 882 if FLAGS.timestamp: print int(time.time()), 896 now = time.time()
|