/cts/tests/tests/text/src/android/text/format/cts/ |
D | TimeTest.java | 68 Time time = new Time(); in testConstructor() local 70 time.set(System.currentTimeMillis()); in testConstructor() 71 Time anotherTime = new Time(time); in testConstructor() 72 verifyTime(time, anotherTime); in testConstructor() 79 Time time = new Time(); in testNormalize() local 81 time.year = 2008; in testNormalize() 82 time.month = 2; in testNormalize() 83 time.monthDay = 32; in testNormalize() 84 long timeMilliseconds = time.normalize(false); in testNormalize() 90 assertEquals(expectedMonth, time.month); in testNormalize() [all …]
|
/cts/apps/CameraITS/tools/ |
D | wake_up_screen.py | 18 import time 44 time.sleep(DISPLAY_CMD_WAIT) 48 time.sleep(DISPLAY_CMD_WAIT) 54 time.sleep(DISPLAY_CMD_WAIT) 61 time.sleep(DISPLAY_CMD_WAIT) 67 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 | turn_off_screen.py | 18 import time 44 time.sleep(TURN_OFF_DELAY)
|
D | run_sensor_fusion_box.py | 21 import time 130 t0 = time.time() 134 t1 = time.time()
|
D | run_parallel_tests.py | 20 import time 66 print ">>> Start the 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')
|
D | load_scene.py | 19 import time 61 time.sleep(1) # wait-for-device doesn't always seem to work...
|
/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 | 149 long time = SystemClock.uptimeMillis(); in sendMetaHotkey() local 150 KeyEvent metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_DOWN, keyCode, in sendMetaHotkey() 153 time = SystemClock.uptimeMillis(); in sendMetaHotkey() 154 metaHotkey = new KeyEvent(time, time, KeyEvent.ACTION_UP, keyCode, in sendMetaHotkey() 162 long time = SystemClock.uptimeMillis(); in sendMetaKey() local 163 KeyEvent keyEvent = new KeyEvent(time, time, action, KeyEvent.KEYCODE_META_LEFT, 0, in sendMetaKey()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ |
D | DeviceEvent.java | 144 public static Predicate<DeviceEvent> isNewerThan(final long time) { in isNewerThan() argument 145 return e -> e.time >= time; in isNewerThan() 163 public final long time; field in DeviceEvent 165 private DeviceEvent(final String sender, final DeviceEventType type, final long time) { in DeviceEvent() argument 168 this.time = time; in DeviceEvent() 173 return "Event{ time:" + time + " type:" + type + " sender:" + sender + " }"; in toString() 203 TIME.putLong(values, event.time); in buildContentValues()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | InterpolatorTest.java | 77 long time = SystemClock.uptimeMillis(); in testTimeToValues1() local 80 interpolator.setKeyFrame(0, (int)(time - 10000), new float[] {1.0f}); in testTimeToValues1() 81 interpolator.setKeyFrame(1, (int)(time + 10000), new float[] {2.0f}); in testTimeToValues1() 86 time = SystemClock.uptimeMillis(); in testTimeToValues1() 87 interpolator.setKeyFrame(0, (int)(time + 1000), new float[] {2.0f}); in testTimeToValues1() 88 interpolator.setKeyFrame(1, (int)(time + 2000), new float[] {3.0f}); in testTimeToValues1() 93 time = SystemClock.uptimeMillis(); in testTimeToValues1() 94 interpolator.setKeyFrame(0, (int)(time - 2000), new float[] {2.0f}); in testTimeToValues1() 95 interpolator.setKeyFrame(1, (int)(time - 1000), new float[] {3.0f}); in testTimeToValues1() 276 private void verifyValue(int time, float expected, Result expectedResult, in verifyValue() argument [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | utils.rs | 17 float time = end(); 20 rsDebug("test_color_pack_unpack FAILED", time); 23 rsDebug("test_color_pack_unpack PASSED", time);
|
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);
|
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 338 public double time; field in RVCVXCheckAnalyzer.AttitudeRec 345 time = atime; in AttitudeRec() 353 time = atime; in AttitudeRec() 361 time = rec.time; in assign() 362 roll = rec.time; in assign() 369 time = atime; in assign() 370 roll = rec.time; in assign() 377 time = atime; in set() 513 double time; in loadAttitudeRecs() local 527 time = Double.parseDouble(items[0]); in loadAttitudeRecs() [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_sensor_events.py | 17 import time 33 time.sleep(1)
|
D | test_unified_timestamps.py | 18 import time 42 time.sleep(2.0)
|
/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/tests/tests/media/libndkaudio/ |
D | WaveTableOscillator.cpp | 47 int WaveTableOscillator::getData(long time, float* outBuff, int numFrames, in getData() argument 49 prevFillTime_ = time; in getData()
|