Home
last modified time | relevance | path

Searched refs:currentTime (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/
DConsumerIrTest.java89 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/
DLongPressBackTest.java67 long currentTime = System.currentTimeMillis(); in testAppIsNotDismissed() local
68 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, in testAppIsNotDismissed()
82 currentTime = System.currentTimeMillis(); in testAppIsNotDismissed()
84 automation.injectInputEvent(new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_UP, in testAppIsNotDismissed()
DViewGroupTest.java1393 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument
1394 super.getTransformation(currentTime, outTransformation); in getTransformation()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DPlanetsRenderer.java155 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/apps/CtsVerifier/src/com/android/cts/verifier/
DTimerProgressBar.java71 long currentTime = SystemClock.elapsedRealtime();
72 int progress = (int) ((currentTime - mStartTime) / mStepSize);
76 if (mStartTime + mDuration > currentTime) {
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java109 long currentTime = System.currentTimeMillis(); in getKey() local
110 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, in getKey()
/cts/tests/tests/location/src/android/location/cts/suplClient/
DSuplRrlpMessagesGenerator.java216 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDevicePolicyManagerParentSupportTest.java66 final long currentTime = System.currentTimeMillis(); in testGetPasswordExpiration_onParent() local
73 assertThat(actualPasswordExpiration).isAtLeast(passwordExpirationTimeout + currentTime); in testGetPasswordExpiration_onParent()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTest.java392 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in testRunAccelerateAlpha() local
393 animation.setStartTime(currentTime); in testRunAccelerateAlpha()
394 assertEquals(currentTime, animation.getStartTime()); in testRunAccelerateAlpha()
616 long currentTime = AnimationUtils.currentAnimationTimeMillis();
618 assertEquals(currentTime, animation.getStartTime(), 100);
748 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument
750 return super.getTransformation(currentTime, outTransformation); in getTransformation()
DAnimationSetTest.java329 final long currentTime, final boolean result) { in assertGetTransformation() argument
334 assertEquals(result, animationSet.getTransformation(currentTime, transformation)); in assertGetTransformation()
338 children.get(i).getTransformation(currentTime, tempTransformation); in assertGetTransformation()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadFlowTest.java169 long currentTime = System.currentTimeMillis(); in checkDownloadResultAck() local
170 while (System.currentTimeMillis() < currentTime + ASYNC_TIMEOUT) { in checkDownloadResultAck()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp433 int64_t currentTime = ((int64_t) t.tv_sec)*1000000000LL + t.tv_nsec; in SurfaceTransaction_setDesiredPresentTime() local
435 int64_t desiredPresentTime = currentTime + desiredPresentTimeOffset; in SurfaceTransaction_setDesiredPresentTime()