Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 25 of 41) sorted by relevance

12

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DActiveServicesTest.java111 final long elapsed = 10; in testRescheduleServiceRestartsOnChanges() local
112 final long now2 = now + elapsed; in testRescheduleServiceRestartsOnChanges()
114 verifyDelays(now2, new long[] {rd0 - elapsed, extra - elapsed, in testRescheduleServiceRestartsOnChanges()
115 btwn + extra * 2 - elapsed, btwn * 2 + extra * 3 - elapsed, rd4 - elapsed, in testRescheduleServiceRestartsOnChanges()
116 rd5 + extra - elapsed}); in testRescheduleServiceRestartsOnChanges()
119 verifyDelays(now2, new long[] {rd0 - elapsed, rd1 - elapsed, rd2 - elapsed, rd3 - elapsed, in testRescheduleServiceRestartsOnChanges()
120 rd4 - elapsed, rd5 - elapsed}); in testRescheduleServiceRestartsOnChanges()
126 final long elapsed3 = elapsed * 2; in testRescheduleServiceRestartsOnChanges()
137 final long elapsed4 = elapsed * 3; in testRescheduleServiceRestartsOnChanges()
148 final long elapsed5 = elapsed * 4; in testRescheduleServiceRestartsOnChanges()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
H A DCompletableFutureUtilTest.kt93 val elapsed = SystemClock.elapsedRealtimeNanos() - beginNanos regex
97 assertThat(elapsed).isGreaterThan(SHORT_PERIOD_NANO)
144 val elapsed = SystemClock.elapsedRealtimeNanos() - beginNanos regex
147 assertThat(elapsed).isLessThan(SHORT_PERIOD_NANO)
161 val elapsed = SystemClock.elapsedRealtimeNanos() - beginNanos regex
164 assertThat(elapsed).isLessThan(SHORT_PERIOD_NANO)
180 val elapsed = SystemClock.elapsedRealtimeNanos() - beginNanos regex
185 assertThat(elapsed).isLessThan(SHORT_PERIOD_NANO)
205 val elapsed = SystemClock.elapsedRealtimeNanos() - beginNanos regex
209 assertThat(elapsed).isLessThan(SHORT_PERIOD_NANO)
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DTraceTest.java63 long elapsed = end - start; in testNativeTracingFromJava() local
64 Log.i(TAG, "elapsed millis: " + elapsed); in testNativeTracingFromJava()
77 long elapsed = end - start; in disableTestNativeTracingFromC() local
78 Log.i(TAG, "elapsed millis: " + elapsed); in disableTestNativeTracingFromC()
93 long elapsed = end - start; in testMethodTracing() local
94 Log.i(TAG, "elapsed millis: " + elapsed); in testMethodTracing()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DTokenBucketTest.java167 void assertDuration(long expected, long elapsed) { in assertDuration() argument
169 "expected elapsed time at least %d ms, but was %d ms", expected, elapsed); in assertDuration()
170 elapsed += 1; // one millisecond extra guard in assertDuration()
171 assertTrue(msg, elapsed >= expected); in assertDuration()
/aosp14/frameworks/base/libs/hwui/utils/
H A DTiming.h30 long long elapsed = (stop.tv_sec * 1000000) - (mStart.tv_sec * 1000000) + in ~MethodTimer() local
32 ALOGD("%s took %.2fms", mMethodName, elapsed / 1000.0); in ~MethodTimer()
/aosp14/frameworks/base/core/proto/android/util/
H A Dquotatracker.proto34 // Current elapsed realtime.
40 // The time at which the alarm is set to go off, in the elapsed realtime timebase.
48 // The time at which the UPTC will be in quota, in the elapsed realtime timebase.
96 // The time the event occurred, in the elapsed realtime timebase.
104 // elapsed realtime timebase.
/aosp14/frameworks/base/startop/apps/test/src/
H A DSystemServerBenchmarks.java218 long elapsed = -System.nanoTime(); in runBenchmarkInBackground() local
220 elapsed += System.nanoTime(); in runBenchmarkInBackground()
223 double elapsedVariance = (double) elapsed - resultMean; in runBenchmarkInBackground()
225 resultStdev += elapsedVariance * ((double) elapsed - resultMean); in runBenchmarkInBackground()
/aosp14/frameworks/base/core/proto/android/server/alarm/
H A Dalarmmanagerservice.proto112 // In the 'elapsed' timebase.
115 // Time when the next while-idle is allowed, in the 'elapsed' timebase.
169 // How long until the alarm goes off, in the 'elapsed' timebase. Can be
185 // Start time in terms of elapsed realtime.
187 // End time in terms of elapsed realtime.
204 // in terms of elapsed realtime.
237 // The last time this filter when in flight, in terms of elapsed realtime.
244 // in terms of elapsed realtime.
260 // Time when this entry was created, in terms of elapsed realtime.
264 // triggered. Times are in the 'elapsed' timebase.
/aosp14/frameworks/base/core/proto/android/view/inputmethod/
H A Dinputmethodeditortrace.proto54 /* offset between real-time clock and elapsed time clock in nanoseconds.
61 /* required: elapsed realtime in nanos since boot of when this entry was logged */
104 /* offset between real-time clock and elapsed time clock in nanoseconds.
111 /* required: elapsed realtime in nanos since boot of when this entry was logged */
141 /* offset between real-time clock and elapsed time clock in nanoseconds.
148 /* required: elapsed realtime in nanos since boot of when this entry was logged */
/aosp14/frameworks/base/tools/preload/loadclass/
H A DLoadClass.java40 long elapsed = System.currentTimeMillis() - start; in main() local
41 Log.i("LoadClass", "Loaded " + args[0] + " in " + elapsed in main()
/aosp14/frameworks/base/sax/tests/saxtests/src/android/sax/
H A DSafeSaxTest.java176 long elapsed = System.currentTimeMillis() - start; in pureSaxTest() local
177 Log.i(TAG, "pure SAX: " + elapsed + "ms"); in pureSaxTest()
184 long elapsed = System.currentTimeMillis() - start; in saxyModelTest() local
185 Log.i(TAG, "Saxy Model: " + elapsed + "ms"); in saxyModelTest()
192 long elapsed = System.currentTimeMillis() - start; in saxyModelTest() local
193 Log.i(TAG, "Saxy Model (preloaded): " + elapsed + "ms"); in saxyModelTest()
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/
H A Dsnapuserd_client.cpp81 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start); in Connect() local
82 if (elapsed >= timeout_ms) { in Connect()
101 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start); in WaitForServiceToTerminate() local
102 if (elapsed >= timeout_ms) { in WaitForServiceToTerminate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
H A DGesturePointerEventListener.kt359 val elapsed = time - mDownTime[i] regex
374 elapsed
379 elapsed < SWIPE_TIMEOUT_MS
386 elapsed < SWIPE_TIMEOUT_MS
393 elapsed < SWIPE_TIMEOUT_MS
400 elapsed < SWIPE_TIMEOUT_MS
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DSystemGesturesPointerEventListener.java383 final long elapsed = time - mDownTime[i]; in detectSwipe() local
385 + " moved (" + fromX + "->" + x + "," + fromY + "->" + y + ") in " + elapsed); in detectSwipe()
388 && elapsed < SWIPE_TIMEOUT_MS) { in detectSwipe()
393 && elapsed < SWIPE_TIMEOUT_MS) { in detectSwipe()
398 && elapsed < SWIPE_TIMEOUT_MS) { in detectSwipe()
403 && elapsed < SWIPE_TIMEOUT_MS) { in detectSwipe()
H A DAnrController.java309 final long elapsed = SystemClock.uptimeMillis() - now; in preDumpIfLockTooSlow() local
310 if (elapsed > PRE_DUMP_MONITOR_TIMEOUT_MS) { in preDumpIfLockTooSlow()
311 Slog.i(TAG_WM, "Pre-dump acquired " + name + " in " + elapsed + "ms"); in preDumpIfLockTooSlow()
/aosp14/frameworks/base/tests/ActivityManagerPerfTests/
H A DREADME.txt39 * Each test should call runPerfFunction() returning the elapsed time for a single iteration
41 * If you are measuring the time elapsed of something that either starts or ends in the target
47 calculate the elapsed time
/aosp14/frameworks/base/core/proto/android/server/
H A Dwindowmanagertrace.proto42 /* offset between real-time clock and elapsed time clock in nanoseconds.
49 /* required: elapsed realtime in nanos since boot of when this entry was logged */
H A Daccessibilitytrace.proto43 /* offset between real-time clock and elapsed time clock in nanoseconds.
50 /* required: elapsed realtime in nanos since boot of when this entry was logged */
/aosp14/frameworks/base/core/proto/android/internal/
H A Dprotolog.proto31 /* log time, relative to the elapsed system time clock. */
62 /* offset between real-time clock and elapsed system time clock in miliseconds.
/aosp14/frameworks/base/tests/benchmarks/internal/src/com/android/internal/
H A DLambdaPerfTest.java229 final float elapsed = SystemClock.elapsedRealtime() - startTime; in evaluateResult() local
234 mTestResults.putFloat("[" + title + "-execution-time]", elapsed); in evaluateResult()
236 + elapsed + "ms (avg=" + String.format("%.5f", elapsed / TEST_ITERATIONS) + "ms)" in evaluateResult()
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DWindowMagnificationManager.java1189 final long elapsed = (SystemClock.uptimeMillis() - mTrackingTypingFocusStartTime); in pauseTrackingTypingFocusRecord() local
1191 SUM_TIME_UPDATER.addAndGet(this, elapsed); in pauseTrackingTypingFocusRecord()
1195 + mTrackingTypingFocusSumTime + ", elapsed = " + elapsed); in pauseTrackingTypingFocusRecord()
1202 final long elapsed = mTrackingTypingFocusStartTime != 0 in stopAndLogTrackingTypingFocusRecordIfNeeded() local
1204 final long duration = mTrackingTypingFocusSumTime + elapsed; in stopAndLogTrackingTypingFocusRecordIfNeeded()
1207 + ", elapsed = " + elapsed); in stopAndLogTrackingTypingFocusRecordIfNeeded()
/aosp14/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustArchive.java160 private static String formatElapsed(long elapsed) { in formatElapsed() argument
161 long delta = elapsed - SystemClock.elapsedRealtime(); in formatElapsed()
/aosp14/system/core/fs_mgr/
H A Dfile_wait.cpp213 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(remaining); in RemainingMs() local
214 return (relative_timeout_ - elapsed).count(); in RemainingMs()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardPatternView.java147 final long elapsed = SystemClock.elapsedRealtime() - mLastPokeTime; in onTouchEvent() local
148 if (result && (elapsed > (UNLOCK_PATTERN_WAKE_INTERVAL_MS - 100))) { in onTouchEvent()
/aosp14/frameworks/base/core/proto/android/service/
H A Dprocstats.proto127 // Millisecond elapsed realtime duration spent in this state
221 // Millisecond elapsed realtime duration spent in this state
267 // Millisecond elapsed realtime duration spent in this state

12