Home
last modified time | relevance | path

Searched refs:elapsedTime (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java145 final long elapsedTime = ZERO; in testMaybeUpdateUsageStats_ProcStatePersistentUI() local
147 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStatePersistentUI()
149 assertProcessRecordState(ZERO, true, elapsedTime); in testMaybeUpdateUsageStats_ProcStatePersistentUI()
154 final long elapsedTime = ZERO; in testMaybeUpdateUsageStats_ProcStateTop() local
156 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop()
158 assertProcessRecordState(ZERO, true, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop()
163 final long elapsedTime = ZERO; in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction() local
166 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction()
173 final long elapsedTime = 3 * USAGE_STATS_INTERACTION; in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval() local
176 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DAppTimeTracker.java57 long elapsedTime = now - mStartedTime; in start() local
58 mStartedPackageTime.value += elapsedTime; in start()
59 mTotalTime += elapsedTime; in start()
72 long elapsedTime = SystemClock.elapsedRealtime() - mStartedTime; in stop() local
73 mTotalTime += elapsedTime; in stop()
75 mStartedPackageTime.value += elapsedTime; in stop()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLockTest.java130 long elapsedTime = endTime - startTime; in testLockLatency() local
131 if (maxTime < elapsedTime) { in testLockLatency()
132 maxTime = elapsedTime; in testLockLatency()
134 sumTime += elapsedTime; in testLockLatency()
/frameworks/base/test-runner/src/junit/runner/
DTestRunListener.java15 public void testRunEnded(long elapsedTime); in testRunEnded() argument
16 public void testRunStopped(long elapsedTime); in testRunStopped() argument
/frameworks/base/core/java/com/android/internal/os/
DCachedDeviceState.java115 return mTotalTimeMillis + elapsedTime(); in getMillis()
138 mTotalTimeMillis += elapsedTime(); in stop()
144 private long elapsedTime() { in elapsedTime() method in CachedDeviceState.TimeInStateStopwatch
/frameworks/base/media/java/android/media/tv/
DAdResponse.java63 public AdResponse(int id, @ResponseType int responseType, long elapsedTime) { in AdResponse() argument
66 mElapsedTime = elapsedTime; in AdResponse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/models/player/
DSeekBarViewModel.kt169 _data = _data.copy(elapsedTime = position.toInt()) in onSeekProgress()
254 elapsedTime = position, in updateStaticProgress()
290 if (currentPosition != null && _data.elapsedTime != currentPosition) { in checkPlaybackPosition()
291 _data = _data.copy(elapsedTime = currentPosition) in checkPlaybackPosition()
517 val elapsedTime: Int?, constant in com.android.systemui.media.controls.models.player.SeekBarViewModel.Progress
DSeekBarObserver.kt122 data.elapsedTime?.let { in onChanged()
/frameworks/base/core/java/android/content/
DAutofillOptions.java107 final long elapsedTime = SystemClock.elapsedRealtime(); in isAutofillDisabledLocked() local
110 if (appDisabledExpiration >= elapsedTime) return true; in isAutofillDisabledLocked()
116 if (expiration >= elapsedTime) return true; in isAutofillDisabledLocked()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetricsCollector.java212 long elapsedTime = SystemClock.uptimeMillis() - mStartTime;
213 if (elapsedTime >= mTimeoutMillis) {
214 Log.i(mTag, "Timeout reached " + TimeUtils.formatDuration(elapsedTime));
/frameworks/native/libs/input/
DPropertyMap.cpp128 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime; in load() local
131 elapsedTime / 1000000.0); in load()
DKeyLayoutMap.cpp155 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime; in load() local
158 elapsedTime / 1000000.0); in load()
/frameworks/base/core/java/android/widget/
DOverScroller.java297 final long elapsedTime = time - mScrollerX.mStartTime; in computeScrollOffset() local
300 if (elapsedTime < duration) { in computeScrollOffset()
301 final float q = mInterpolator.getInterpolation(elapsedTime / (float) duration); in computeScrollOffset()
701 final int elapsedTime = (int) (time - mStartTime); in extendDuration() local
702 mDuration = mSplineDuration = elapsedTime + extend; in extendDuration()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java2489 final long elapsedTime = item.elapsedTime; in dumpRecentHistory() local
2490 totalElapsedTime += elapsedTime; in dumpRecentHistory()
2497 authoritySyncStats.elapsedTime += elapsedTime; in dumpRecentHistory()
2505 accountSyncStats.elapsedTime += elapsedTime; in dumpRecentHistory()
2524 compare = Long.compare(rhs.elapsedTime, lhs.elapsedTime); in dumpRecentHistory()
2544 long elapsedTime; in dumpRecentHistory() local
2549 elapsedTime = authoritySyncStats.elapsedTime; in dumpRecentHistory()
2552 elapsedTime / 1000, in dumpRecentHistory()
2553 elapsedTime * 100 / totalElapsedTime); in dumpRecentHistory()
2568 compare = Long.compare(rhs.elapsedTime, lhs.elapsedTime); in dumpRecentHistory()
[all …]
DSyncStorageEngine.java353 long elapsedTime; field in SyncStorageEngine.SyncHistoryItem
1219 public void stopSyncEvent(long historyId, long elapsedTime, String resultMessage, in stopSyncEvent() argument
1242 item.elapsedTime = elapsedTime; in stopSyncEvent()
1254 status.totalStats.totalElapsedTime += elapsedTime; in stopSyncEvent()
1255 status.todayStats.totalElapsedTime += elapsedTime; in stopSyncEvent()
1295 final long lastSyncTime = (item.eventTime + elapsedTime); in stopSyncEvent()
1304 ds.successTime += elapsedTime; in stopSyncEvent()
1315 ds.failureTime += elapsedTime; in stopSyncEvent()
1325 SyncManager.formatDurationHMS(event, elapsedTime); in stopSyncEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java222 final long elapsedTime = System.currentTimeMillis() - startTime; in runWithLatch() local
223 Log.d(TAG, tag + " takes " + elapsedTime + " ms"); in runWithLatch()
/frameworks/base/telecomm/java/android/telecom/Logging/
DEventManager.java224 long elapsedTime = event.time - pendingResponse.requestEventTimeMillis; in extractEventTimings() local
225 if (elapsedTime < pendingResponse.timeoutMillis) { in extractEventTimings()
226 result.add(new EventTiming(pendingResponse.name, elapsedTime)); in extractEventTimings()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataUtils.java343 public static @NonNull String elapsedTimeToString(@ElapsedRealtimeLong long elapsedTime) { in elapsedTimeToString() argument
344 return (elapsedTime != 0) ? systemTimeToString(System.currentTimeMillis() in elapsedTimeToString()
345 - SystemClock.elapsedRealtime() + elapsedTime) : "never"; in elapsedTimeToString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/models/player/
DSeekBarViewModelTest.kt255 assertThat(viewModel.progress.value!!.elapsedTime).isEqualTo(200.toInt()) in updateElapsedTime()
327 assertThat(viewModel.progress.value!!.elapsedTime).isEqualTo(pos) in onSeekProgress()
337 assertThat(viewModel.progress.value!!.elapsedTime).isNull() in onSeekProgressWithSeekStarting()
390 assertThat(viewModel.progress.value!!.elapsedTime).isEqualTo(pos) in onProgressChangedFromUser()
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DCompletableFutureUtilTest.kt125 val elapsedTime = endNanosRef.get() - beginNanosRef.get() in testCharSequenceTimedOutWithInterruption() constant
126 assertThat(elapsedTime).isGreaterThan(SHORT_PERIOD_NANO) in testCharSequenceTimedOutWithInterruption()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderCallsStatsTest.java386 bcs.elapsedTime += 5; in testMaxLatency()
390 bcs.elapsedTime += 1; in testMaxLatency()
565 bcs.elapsedTime += 20; in testGetExportedStatsWhenDetailedTrackingEnabled()
966 bcs.elapsedTime += 20; in testLatencyCollectionEnabled()
982 bcs.elapsedTime += 20; in testLatencyCollectionActiveEvenWithoutDeviceState()
1045 public long elapsedTime = 0; field in BinderCallsStatsTest.TestBinderCallsStats
1090 return elapsedTime; in getElapsedRealtimeMicro()
/frameworks/av/media/libmediatranscoding/
DTranscodingSessionController.cpp481 std::chrono::microseconds elapsedTime = in setState() local
485 pausedTime = pausedTime + elapsedTime; in setState()
488 runningTime = runningTime + elapsedTime; in setState()
491 waitingTime = waitingTime + elapsedTime; in setState()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java1088 long elapsedTime = 0; in isAutofillDisabledLocked() local
1090 elapsedTime = SystemClock.elapsedRealtime(); in isAutofillDisabledLocked()
1093 if (expiration >= elapsedTime) return true; in isAutofillDisabledLocked()
1110 if (elapsedTime == 0) { in isAutofillDisabledLocked()
1111 elapsedTime = SystemClock.elapsedRealtime(); in isAutofillDisabledLocked()
1114 if (expiration >= elapsedTime) return true; in isAutofillDisabledLocked()
/frameworks/av/services/mediatranscoding/tests/
DMediaTranscodingServiceTestHelper.h191 std::chrono::microseconds elapsedTime = std::chrono::system_clock::now() - startTime; member
192 remainingUs = timeoutUs - elapsedTime.count();
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java419 final long elapsedTime = now - down; in sendSwipe() local
420 final float alpha = (float) elapsedTime / duration; in sendSwipe()

12