/cts/tests/tests/view/src/android/view/cts/ |
D | PanicPressBackTest.java | 70 long currentTime = startTime + i; in testNonWatchBackPanicDoesNothing() local 71 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, in testNonWatchBackPanicDoesNothing() 73 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_UP, in testNonWatchBackPanicDoesNothing() 103 long currentTime = startTime + i; in testWatchBackPanicReceivesHomeRequest() local 104 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, in testWatchBackPanicReceivesHomeRequest() 106 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_UP, in testWatchBackPanicReceivesHomeRequest()
|
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/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/text/src/android/text/method/cts/ |
D | KeyListenerTestCase.java | 62 long currentTime = System.currentTimeMillis(); in getKey() local 63 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, in getKey()
|
/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 | 153 long currentTime = System.currentTimeMillis(); in onDrawFrame() local 155 mLastRenderingTime = currentTime; in onDrawFrame() 157 float angle = 0.090f * ((int) (currentTime % 4000L)); in onDrawFrame() 231 long currentTime = System.currentTimeMillis(); in onEglSwapBuffers() local 233 mRenderingStartTime = currentTime; in onEglSwapBuffers() 236 mFrameInterval[mFrameCount] = (int)(currentTime - mLastRenderingTime); in onEglSwapBuffers() 240 long timePassed = currentTime - mRenderingStartTime; in onEglSwapBuffers() 246 mRenderingStartTime + " finish time " + currentTime); in onEglSwapBuffers() 433 long currentTime = System.currentTimeMillis(); in measureTime() local 434 float timePassedInSecs = (float) (currentTime - mMeasurementStartTime) / 1000f; in measureTime()
|
/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()
|