/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/ |
D | ConsumerIrTest.java | 89 long currentTime = SystemClock.elapsedRealtimeNanos(); in test_timing() local 93 totalXmitTimeNanos, newTime - currentTime); in test_timing() 94 assertTrue(msg, newTime - currentTime >= totalXmitTimeNanos * (1.0 - margin)); in test_timing() 95 assertTrue(msg, newTime - currentTime <= totalXmitTimeNanos * (1.0 + margin)); in test_timing() 98 currentTime = SystemClock.elapsedRealtimeNanos(); in test_timing() 102 totalXmitTimeNanos, newTime - currentTime); in test_timing() 103 assertTrue(msg, newTime - currentTime >= totalXmitTimeNanos * (1.0 - margin)); in test_timing() 104 assertTrue(msg, newTime - currentTime <= totalXmitTimeNanos * (1.0 + margin)); in test_timing()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | LongPressBackTest.java | 66 long currentTime = System.currentTimeMillis(); in testAppIsNotDismissed() local 67 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, in testAppIsNotDismissed() 81 currentTime = System.currentTimeMillis(); in testAppIsNotDismissed() 83 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_UP, in testAppIsNotDismissed()
|
D | ViewGroupTest.java | 1225 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument 1226 super.getTransformation(currentTime, outTransformation); in getTransformation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TimerProgressBar.java | 71 long currentTime = SystemClock.elapsedRealtime(); 72 int progress = (int) ((currentTime - mStartTime) / mStepSize); 76 if (mStartTime + mDuration > currentTime) {
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | PlanetsRenderer.java | 155 long currentTime = System.currentTimeMillis(); in onDrawFrame() local 157 mLastRenderingTime = currentTime; in onDrawFrame() 159 float angle = 0.090f * ((int) (currentTime % 4000L)); in onDrawFrame() 233 long currentTime = System.currentTimeMillis(); in onEglSwapBuffers() local 235 mRenderingStartTime = currentTime; in onEglSwapBuffers() 238 mFrameInterval[mFrameCount] = (int)(currentTime - mLastRenderingTime); in onEglSwapBuffers() 242 long timePassed = currentTime - mRenderingStartTime; in onEglSwapBuffers() 248 mRenderingStartTime + " finish time " + currentTime); in onEglSwapBuffers() 435 long currentTime = System.currentTimeMillis(); in measureTime() local 436 float timePassedInSecs = (float) (currentTime - mMeasurementStartTime) / 1000f; in measureTime()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | KeyListenerTestCase.java | 108 long currentTime = System.currentTimeMillis(); in getKey() local 109 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, in getKey()
|
/cts/tests/tests/location/src/android/location/cts/suplClient/ |
D | SuplRrlpMessagesGenerator.java | 216 Calendar currentTime = GregorianCalendar.getInstance(TimeZone.getTimeZone("UTC")); in generateSuplPositionInitLocalLocationMessage() local 217 utcTime.setYear(currentTime.get(Calendar.YEAR)); in generateSuplPositionInitLocalLocationMessage() 218 utcTime.setMonth(currentTime.get(Calendar.MONTH) + 1); // Calendar's MONTH starts from 0. in generateSuplPositionInitLocalLocationMessage() 219 utcTime.setDay(currentTime.get(Calendar.DAY_OF_MONTH)); in generateSuplPositionInitLocalLocationMessage() 220 utcTime.setHour(currentTime.get(Calendar.HOUR_OF_DAY)); in generateSuplPositionInitLocalLocationMessage() 221 utcTime.setMinute(currentTime.get(Calendar.MINUTE)); in generateSuplPositionInitLocalLocationMessage() 222 utcTime.setSecond(currentTime.get(Calendar.SECOND)); in generateSuplPositionInitLocalLocationMessage()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTest.java | 391 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in testRunAccelerateAlpha() local 392 animation.setStartTime(currentTime); in testRunAccelerateAlpha() 393 assertEquals(currentTime, animation.getStartTime()); in testRunAccelerateAlpha() 615 long currentTime = AnimationUtils.currentAnimationTimeMillis(); 617 assertEquals(currentTime, animation.getStartTime(), 100); 747 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument 749 return super.getTransformation(currentTime, outTransformation); in getTransformation()
|
D | AnimationSetTest.java | 328 final long currentTime, final boolean result) { in assertGetTransformation() argument 333 assertEquals(result, animationSet.getTransformation(currentTime, transformation)); in assertGetTransformation() 337 children.get(i).getTransformation(currentTime, tempTransformation); in assertGetTransformation()
|
/cts/tests/tests/telephony/src/android/telephony/embms/cts/ |
D | MbmsDownloadFlowTest.java | 158 long currentTime = System.currentTimeMillis(); in checkDownloadResultAck() local 159 while (System.currentTimeMillis() < currentTime + ASYNC_TIMEOUT) { in checkDownloadResultAck()
|