Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 57) sorted by relevance

123

/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTimeUtil.java35 StringBuilder time = new StringBuilder(); in formatElapsedTime() local
37 time.append(hours); in formatElapsedTime()
38 time.append("h "); in formatElapsedTime()
41 time.append(minutes); in formatElapsedTime()
42 time.append("m "); in formatElapsedTime()
44 time.append(seconds); in formatElapsedTime()
45 time.append("s"); in formatElapsedTime()
47 return time.toString(); in formatElapsedTime()
66 static String getTimestamp(long time) { in getTimestamp() argument
68 return dateFormat.format(new Date(time)); in getTimestamp()
/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java57 Time time = new Time(); in testConstructor() local
59 time.set(System.currentTimeMillis()); in testConstructor()
60 Time anotherTime = new Time(time); in testConstructor()
61 assertTime(time, anotherTime); in testConstructor()
67 Time time = new Time(); in testNormalize() local
69 time.year = 2008; in testNormalize()
70 time.month = 2; in testNormalize()
71 time.monthDay = 32; in testNormalize()
72 long timeMilliseconds = time.normalize(false); in testNormalize()
78 assertEquals(expectedMonth, time.month); in testNormalize()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DConditionVariableTest.java45 long time = System.currentTimeMillis(); in testConditionVariable() local
47 assertTrue(System.currentTimeMillis() - time < TOLERANCE_MS); in testConditionVariable()
51 time = System.currentTimeMillis(); in testConditionVariable()
53 assertTrue(System.currentTimeMillis() - time >= BLOCK_TIME); in testConditionVariable()
56 time = System.currentTimeMillis(); in testConditionVariable()
71 long timeDelta = System.currentTimeMillis() - time; in testConditionVariable()
75 time = System.currentTimeMillis(); in testConditionVariable()
DTokenWatcherTest.java163 long time = System.currentTimeMillis(); in waitUntilAcquired() local
164 while (System.currentTimeMillis() - time < OVERTIME) { in waitUntilAcquired()
174 long time = System.currentTimeMillis(); in waitUntilReleased() local
175 while (System.currentTimeMillis() - time < OVERTIME) { in waitUntilReleased()
DCountDownTimerTest.java79 private void waitForAction(long time) {
81 Thread.sleep(time);
/cts/tests/tests/graphics/src/android/graphics/cts/
DInterpolatorTest.java63 long time = SystemClock.uptimeMillis(); in testTimeToValues1() local
66 interpolator.setKeyFrame(0, (int)(time - 10000), new float[] {1.0f}); in testTimeToValues1()
67 interpolator.setKeyFrame(1, (int)(time + 10000), new float[] {2.0f}); in testTimeToValues1()
72 time = SystemClock.uptimeMillis(); in testTimeToValues1()
73 interpolator.setKeyFrame(0, (int)(time + 1000), new float[] {2.0f}); in testTimeToValues1()
74 interpolator.setKeyFrame(1, (int)(time + 2000), new float[] {3.0f}); in testTimeToValues1()
79 time = SystemClock.uptimeMillis(); in testTimeToValues1()
80 interpolator.setKeyFrame(0, (int)(time - 2000), new float[] {2.0f}); in testTimeToValues1()
81 interpolator.setKeyFrame(1, (int)(time - 1000), new float[] {3.0f}); in testTimeToValues1()
259 private void assertValue(int time, float expected, Result expectedResult, in assertValue() argument
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dutils.rs17 float time = end();
20 rsDebug("test_color_pack_unpack FAILED", time);
23 rsDebug("test_color_pack_unpack PASSED", time);
Dprimitives.rs58 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/media/src/android/media/cts/
DAudioEffectTest.java375 int time = 500; in test3_1SetParameterIntInt() local
376 if (value[0] == time) { in test3_1SetParameterIntInt()
377 time = 1000; in test3_1SetParameterIntInt()
379 status = mEffect.setParameter(param, time); in test3_1SetParameterIntInt()
384 ((float)value[0] > (float)(time / DELAY_TOLERANCE)) && in test3_1SetParameterIntInt()
385 ((float)value[0] < (float)(time * DELAY_TOLERANCE))); in test3_1SetParameterIntInt()
441 int time = 500; in test3_3SetParameterIntByteArray() local
442 if (mEffect.byteArrayToInt(value) == time) { in test3_3SetParameterIntByteArray()
443 time = 1000; in test3_3SetParameterIntByteArray()
445 value = mEffect.intToByteArray(time); in test3_3SetParameterIntByteArray()
[all …]
DEnvReverbTest.java117 int time = mReverb.getDecayTime(); in test1_1Decay() local
118 time = (time == 500) ? 1000 : 500; in test1_1Decay()
119 mReverb.setDecayTime(time); in test1_1Decay()
122 ((float)time2 > (float)(time / DELAY_TOLERANCE)) && in test1_1Decay()
123 ((float)time2 < (float)(time * DELAY_TOLERANCE))); in test1_1Decay()
/cts/tests/tests/rscpp/librscpptest/
Dprimitives.rs42 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/
DRVCVXCheckAnalyzer.java331 public double time; field in RVCVXCheckAnalyzer.AttitudeRec
338 time = atime; in AttitudeRec()
346 time = atime; in AttitudeRec()
354 time = rec.time; in assign()
355 roll = rec.time; in assign()
362 time = atime; in assign()
363 roll = rec.time; in assign()
370 time = atime; in set()
506 double time; in loadAttitudeRecs() local
520 time = Double.parseDouble(items[0]); in loadAttitudeRecs()
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_sensor_events.py17 import time
32 time.sleep(1)
Dtest_unified_timestamps.py18 import time
38 time.sleep(0.5)
Dtest_gyro_bias.py20 import time
46 time.sleep(5)
/cts/suite/audio_quality/lib/src/task/
DTaskSound.cpp81 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/apps/CameraITS/tools/
Drun_all_tests.py19 import time
128 t0 = time.time()
131 t1 = time.time()
/cts/tests/tests/content/src/android/content/cts/
DDummyProvider.java146 long time = System.currentTimeMillis(); in doMockOperation() local
147 long target = time + MOCK_OPERATION_SLEEP_TIME; in doMockOperation()
148 while (time < target) { in doMockOperation()
150 Thread.sleep(target - time); in doMockOperation()
155 time = System.currentTimeMillis(); in doMockOperation()
/cts/tools/utils/
Dmonsoon.py45 import time
120 time.sleep(1)
177 time.sleep(.1)
366 last_flush = time.time()
381 if FLAGS.timestamp: print int(time.time()),
395 now = time.time()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DGeeTestResultParser.java405 Matcher time = timePattern.matcher(identifier); in parseTestIdentifier() local
408 if (time.find()) { in parseTestIdentifier()
409 String timeString = time.group(2); // the "XX" in "(XX ms)" in parseTestIdentifier()
410 String discardPortion = time.group(1); // everything after the test class/name in parseTestIdentifier()
461 Matcher time = timePattern.matcher(identifier); in processRunCompletedTag() local
464 if (time.find()) { in processRunCompletedTag()
466 mTotalRunTime = Long.parseLong(time.group(1)); in processRunCompletedTag()
470 time.group(1)); in processRunCompletedTag()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dbase.js50 function BenchmarkResult(benchmark, time) { argument
52 this.time = time;
59 return this.time;
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py21 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()
/cts/hostsidetests/theme/
Drun_theme_capture_device.py21 import time
130 time.sleep(1)
136 time.sleep(10)
Dandroid_device.py23 import time
53 time.sleep(wait_period)
/cts/suite/cts/deviceTests/opengl/jni/reference/scene/flocking/
DWaterMeshNode.cpp19 WaterMeshNode::WaterMeshNode(const Mesh* mesh, int time, GLuint textureId1, GLuint textureId2) : in WaterMeshNode() argument
20 MeshNode(mesh), mTime(time), mTextureId1(textureId1), mTextureId2(textureId2) { in WaterMeshNode()

123