Home
last modified time | relevance | path

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

12

/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/
DConsumerIrTest.java92 long currentTime = SystemClock.elapsedRealtimeNanos(); in test_timing() local
96 totalXmitTimeNanos, newTime - currentTime); in test_timing()
97 assertTrue(msg, newTime - currentTime >= totalXmitTimeNanos * (1.0 - margin)); in test_timing()
98 assertTrue(msg, newTime - currentTime <= totalXmitTimeNanos * (1.0 + margin)); in test_timing()
101 currentTime = SystemClock.elapsedRealtimeNanos(); in test_timing()
105 totalXmitTimeNanos, newTime - currentTime); in test_timing()
106 assertTrue(msg, newTime - currentTime >= totalXmitTimeNanos * (1.0 - margin)); in test_timing()
107 assertTrue(msg, newTime - currentTime <= totalXmitTimeNanos * (1.0 + margin)); in test_timing()
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DAssociationInfoBuilderTest.kt51 var currentTime = System.currentTimeMillis() in <lambda>() variable
57 .setLastTimeConnected(currentTime) in <lambda>()
58 .setTimeApproved(currentTime) in <lambda>()
64 assertEquals(actual = newAssociationInfo.lastTimeConnectedMs, expected = currentTime) in <lambda>()
65 assertEquals(actual = newAssociationInfo.timeApprovedMs, expected = currentTime) in <lambda>()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0837/
Dpoc.cpp39 time_t currentTime = start_timer(); in acquireSoundTriggerSessionThread() local
40 while (timer_active(currentTime)) { in acquireSoundTriggerSessionThread()
59 time_t currentTime = start_timer(); in releaseSoundTriggerSessionThread() local
60 while (timer_active(currentTime)) { in releaseSoundTriggerSessionThread()
/cts/tests/tests/car/src/android/car/cts/
DCarInputManagerSystemTest.java101 long currentTime = SystemClock.uptimeMillis(); in injectKey() local
102 KeyEvent keyDown = new KeyEvent(/* downTime= */ currentTime, /* eventTime= */ currentTime, in injectKey()
106 KeyEvent keyUp = new KeyEvent(/* downTime= */ currentTime, /* eventTime= */ currentTime, in injectKey()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/
Dpoc.cpp31 time_t currentTime = start_timer(); in thread_getParameter() local
32 while (timer_active(currentTime)) { in thread_getParameter()
78 time_t currentTime = start_timer(); in main() local
79 while (timer_active(currentTime)) { in main()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/input/
DCarInputManagerPermissionTest.java72 long currentTime = SystemClock.uptimeMillis(); in testInjectKeyEventPermission() local
73 KeyEvent anyKeyEvent = new KeyEvent(/* downTime= */ currentTime, in testInjectKeyEventPermission()
74 /* eventTime= */ currentTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_HOME, in testInjectKeyEventPermission()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-9347/
Dpoc.cpp93 time_t currentTime = time(NULL); in main() local
95 time_t endTime = currentTime + waitTimeInSeconds; in main()
96 while (currentTime < endTime) { in main()
101 currentTime = time(NULL); in main()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2017-0840/
Dpoc.cpp97 time_t currentTime = time(NULL); in main() local
99 time_t endTime = currentTime + waitTimeInSeconds; in main()
100 while (currentTime < endTime) { in main()
105 currentTime = time(NULL); in main()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2021-0330/
Dpoc.cpp59 time_t currentTime = start_timer(); in main() local
60 while (timer_active(currentTime)) { in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13241/
Dpoc.cpp110 time_t currentTime = time(NULL); in main() local
112 time_t endTime = currentTime + waitTimeInSeconds; in main()
113 while (currentTime < endTime) { in main()
118 currentTime = time(NULL); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2485/
Dpoc.cpp152 time_t currentTime = time(NULL); in main() local
153 time_t endTime = currentTime + EMPTY_BUFFER_DONE_CALLBACK_TIMEOUT_IN_SEC; in main()
154 while (currentTime < endTime) { in main()
159 currentTime = time(NULL); in main()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/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/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java121 long currentTime = System.currentTimeMillis(); in getKey() local
122 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, in getKey()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0817/
Dpoc.cpp132 time_t currentTime = start_timer(); in main() local
133 while(timer_active(currentTime)) { in main()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDevicePolicyManagerParentSupportTest.java89 final long currentTime = System.currentTimeMillis(); in testGetPasswordExpiration_onParent() local
96 assertThat(actualPasswordExpiration).isAtLeast(passwordExpirationTimeout + currentTime); in testGetPasswordExpiration_onParent()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTest.java402 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in testRunAccelerateAlpha() local
403 animation.setStartTime(currentTime); in testRunAccelerateAlpha()
404 assertEquals(currentTime, animation.getStartTime()); in testRunAccelerateAlpha()
626 long currentTime = AnimationUtils.currentAnimationTimeMillis();
628 assertEquals(currentTime, animation.getStartTime(), 100);
758 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument
760 return super.getTransformation(currentTime, outTransformation); in getTransformation()
DAnimationSetTest.java340 final long currentTime, final boolean result) { in assertGetTransformation() argument
345 assertEquals(result, animationSet.getTransformation(currentTime, transformation)); in assertGetTransformation()
349 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/bluetooth/src/android/bluetooth/cts/
DSystemBluetoothTest.java163 long currentTime = System.currentTimeMillis(); in discoveryEndMillis() local
164 assertThat(discoveryEndTime > currentTime).isTrue(); in discoveryEndMillis()
165 assertThat(discoveryEndTime - currentTime < DEFAULT_DISCOVERY_TIMEOUT_MS).isTrue(); in discoveryEndMillis()
/cts/apps/CtsVerifier/jni/midi/
DMidiTestManager.cpp403 auto currentTime = std::chrono::system_clock::now(); in ProcessInput() local
404 std::chrono::duration<double> elapsedSeconds = currentTime - startTime; in ProcessInput()
/cts/tests/surfacecontrol/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp504 int64_t currentTime = ((int64_t) t.tv_sec)*1000000000LL + t.tv_nsec; in SurfaceTransaction_setDesiredPresentTime() local
506 int64_t desiredPresentTime = currentTime + desiredPresentTimeOffset; in SurfaceTransaction_setDesiredPresentTime()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DTimeTest.java383 long currentTime = System.currentTimeMillis(); in setTime_timeIsSet() local
384 long differenceSeconds = (currentTime - MILLIS_SINCE_EPOCH) / 1000; in setTime_timeIsSet()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCallDetailsTest.java1182 long currentTime = mConnection.getConnectTimeMillis(); in testResetConnectionTime() local
1186 assertCallConnectTimeChanged(mCall, currentTime); in testResetConnectionTime()

12