Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 71) 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()
/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/media/src/android/media/cts/
DAudioEffectTest.java382 int time = 500; in test3_1SetParameterIntInt() local
383 if (value[0] == time) { in test3_1SetParameterIntInt()
384 time = 1000; in test3_1SetParameterIntInt()
386 status = mEffect.setParameter(param, time); in test3_1SetParameterIntInt()
391 ((float)value[0] > (float)(time / DELAY_TOLERANCE)) && in test3_1SetParameterIntInt()
392 ((float)value[0] < (float)(time * DELAY_TOLERANCE))); in test3_1SetParameterIntInt()
448 int time = 500; in test3_3SetParameterIntByteArray() local
449 if (mEffect.byteArrayToInt(value) == time) { in test3_3SetParameterIntByteArray()
450 time = 1000; in test3_3SetParameterIntByteArray()
452 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/view/src/android/view/cts/
DContentPaneFocusTest.java116 long time = SystemClock.uptimeMillis(); in sendControlChar() local
118 KeyEvent controlKey = new KeyEvent(time, time, event.getAction(), event.getKeyCode(), in sendControlChar()
127 long time = SystemClock.uptimeMillis(); in sendControlKey() local
128 KeyEvent keyEvent = new KeyEvent(time, time, action, KeyEvent.KEYCODE_CTRL_LEFT, 0, in sendControlKey()
/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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java338 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/tests/tests/rscpp/librscpptest/
Dprimitives.rs42 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/
DDummyProvider.java143 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/apps/CameraITS/tools/
Drun_all_tests.py19 import time
149 t0 = time.time()
152 t1 = time.time()
/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/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/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/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/tests/tests/media/libndkaudio/
DWaveTableOscillator.cpp47 int WaveTableOscillator::getData(long time, float* outBuff, int numFrames, in getData() argument
49 prevFillTime_ = time; in getData()
/cts/hostsidetests/theme/
Drun_theme_capture_device.py21 import time
132 time.sleep(1)
138 time.sleep(10)
/cts/tests/openglperf2/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()
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/
Dshadertoy_renderer.cpp37 double time = 1000.0 * timeval.tv_sec + (double) timeval.tv_nsec / 1e6; in NowInMs() local
38 return time; in NowInMs()

123