Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java139 final long elapsedTime = ZERO; in testMaybeUpdateUsageStats_ProcStatePersistentUI() local
141 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStatePersistentUI()
143 assertProcessRecordState(ZERO, true, elapsedTime); in testMaybeUpdateUsageStats_ProcStatePersistentUI()
148 final long elapsedTime = ZERO; in testMaybeUpdateUsageStats_ProcStateTop() local
150 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop()
152 assertProcessRecordState(ZERO, true, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop()
157 final long elapsedTime = ZERO; in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction() local
160 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction()
167 final long elapsedTime = 3 * USAGE_STATS_INTERACTION; in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval() local
170 sService.mOomAdjuster.maybeUpdateUsageStats(mProcessRecord, elapsedTime); in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval()
[all …]
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/time/
DTimeController.kt34 var elapsedTime = 0f variable
57 elapsedTime += deltaTimeMillis * MILLIS_TO_SECONDS in resetDeltaTime()
65 if (elapsedTime > MIN_THRESHOLD_OVERFLOW) { in resetElapsedTimeIfNeeded()
66 elapsedTime = 0f in resetElapsedTimeIfNeeded()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceSerializationPerfTest.java69 long elapsedTime = 0; in testSerializeFontMap() local
70 while (state.keepRunning(elapsedTime)) { in testSerializeFontMap()
73 elapsedTime = System.nanoTime() - startTime; in testSerializeFontMap()
77 + " elapsedTime=" + elapsedTime); in testSerializeFontMap()
106 long elapsedTime = 0; in testDeserializeFontMap() local
107 while (state.keepRunning(elapsedTime)) { in testDeserializeFontMap()
111 elapsedTime = System.nanoTime() - startTime; in testDeserializeFontMap()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/
DFogEffect.kt38 private var elapsedTime: Float = 0f variable
55 elapsedTime += variation * deltaTime in resize()
57 val scaledElapsedTime = elapsedTime * 0.248f in resize()
61 val timeFgd0 = 0.4f * elapsedTime * 5f + variationFgd0 in resize()
62 val timeFgd1 = 0.03f * elapsedTime * 5f + variationFgd1 in resize()
67 val timeBgd0 = 0.8f * elapsedTime * 5f + variationBgd0 in resize()
68 val timeBgd1 = 0.2f * elapsedTime * 5f + variationBgd1 in resize()
80 elapsedTime = Random.nextFloat() * 90f in reset()
/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-junit/src/junit/runner/
DTestRunListener.java15 public void testRunEnded(long elapsedTime); in testRunEnded() argument
16 public void testRunStopped(long elapsedTime); in testRunStopped() argument
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/
DRainEffect.kt52 private var elapsedTime: Float = 0f in <lambda>() variable
64 elapsedTime += deltaMillis * MILLIS_TO_SECONDS in <lambda>()
66 rainConfig.rainShowerShader.setFloatUniform("time", elapsedTime) in <lambda>()
67 rainConfig.glassRainShader.setFloatUniform("time", elapsedTime * 0.7f) in <lambda>()
78 elapsedTime = Random.nextFloat() * 90f in <lambda>()
/frameworks/base/core/java/com/android/internal/os/
DCachedDeviceState.java116 return mTotalTimeMillis + elapsedTime(); in getMillis()
139 mTotalTimeMillis += elapsedTime(); in stop()
145 private long elapsedTime() { in elapsedTime() method in CachedDeviceState.TimeInStateStopwatch
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/snow/
DSnowEffect.kt45 private var elapsedTime: Float = 0f in <lambda>() variable
64 elapsedTime += snowSpeed * deltaMillis * MILLIS_TO_SECONDS in <lambda>()
66 snowConfig.shader.setFloatUniform("time", elapsedTime) in <lambda>()
75 elapsedTime = Random.nextFloat() * 90f in <lambda>()
/frameworks/base/media/java/android/media/tv/
DAdResponse.java65 public AdResponse(int id, @ResponseType int responseType, long elapsedTime) { in AdResponse() argument
68 mElapsedTime = elapsedTime; in AdResponse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModel.kt93 elapsedTime = null,
184 _data = _data.copy(elapsedTime = position.toInt()) in onSeekProgress()
269 elapsedTime = position, in updateStaticProgress()
306 if (currentPosition != null && _data.elapsedTime != currentPosition) { in checkPlaybackPosition()
307 _data = _data.copy(elapsedTime = currentPosition) in checkPlaybackPosition()
565 val elapsedTime: Int?, constant in com.android.systemui.media.controls.ui.viewmodel.SeekBarViewModel.Progress
/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/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()
303 mInterpolator.getInterpolation((elapsedTime - 1) / (float) duration); in computeScrollOffset()
710 final int elapsedTime = (int) (time - mStartTime); in extendDuration() local
711 mDuration = mSplineDuration = elapsedTime + extend; in extendDuration()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBroadcastWaiter.java117 final long elapsedTime = SystemClock.elapsedRealtime() - startTime; in waitActionForUser() local
119 + " in " + elapsedTime + " ms"); in waitActionForUser()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DCameraPrivacyLightControllerTest.java322 long elapsedTime = 0; in testAlsThresholds() local
331 notifySensorEvent(cplc, elapsedTime, alsLuxValue); in testAlsThresholds()
332 elapsedTime += mDefaultAlsAveragingIntervalMillis + 1; in testAlsThresholds()
333 notifySensorEvent(cplc, elapsedTime, alsLuxValue); in testAlsThresholds()
/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/base/services/core/java/com/android/server/pm/
DUserJourneyLogger.java284 final long elapsedTime = System.currentTimeMillis() - session.mStartTimeInMills; in logUserLifecycleJourneyReported() local
287 errorCode, elapsedTime); in logUserLifecycleJourneyReported()
296 int targetUserId, int userType, int userFlags, int errorCode, long elapsedTime) { in writeUserLifecycleJourneyReported() argument
299 errorCode, elapsedTime); in writeUserLifecycleJourneyReported()
/frameworks/native/libs/input/
DPropertyMap.cpp145 nsecs_t elapsedTime = systemTime(SYSTEM_TIME_MONOTONIC) - startTime; in load() local
147 tokenizer->getLineNumber(), elapsedTime / 1000000.0); in load()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java2656 final long elapsedTime = item.elapsedTime; in dumpRecentHistory() local
2657 totalElapsedTime += elapsedTime; in dumpRecentHistory()
2664 authoritySyncStats.elapsedTime += elapsedTime; in dumpRecentHistory()
2672 accountSyncStats.elapsedTime += elapsedTime; in dumpRecentHistory()
2691 compare = Long.compare(rhs.elapsedTime, lhs.elapsedTime); in dumpRecentHistory()
2711 long elapsedTime; in dumpRecentHistory() local
2716 elapsedTime = authoritySyncStats.elapsedTime; in dumpRecentHistory()
2719 elapsedTime / 1000, in dumpRecentHistory()
2720 elapsedTime * 100 / totalElapsedTime); in dumpRecentHistory()
2735 compare = Long.compare(rhs.elapsedTime, lhs.elapsedTime); in dumpRecentHistory()
[all …]
/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.java357 public static String elapsedTimeToString(@ElapsedRealtimeLong long elapsedTime) {
358 return (elapsedTime != 0) ? systemTimeToString(System.currentTimeMillis()
359 - SystemClock.elapsedRealtime() + elapsedTime) : "never";
/frameworks/base/core/tests/InputMethodCoreTests/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/services/tests/servicestests/src/com/android/server/pm/
DUserLifecycleStressTest.java325 final long elapsedTime = System.currentTimeMillis() - startTime; in runWithLatch() local
326 Log.d(TAG, tag + " takes " + elapsedTime + " ms"); in runWithLatch()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModelTest.kt256 assertThat(viewModel.progress.value!!.elapsedTime).isEqualTo(200.toInt()) in updateElapsedTime()
328 assertThat(viewModel.progress.value!!.elapsedTime).isEqualTo(pos) in onSeekProgress()
338 assertThat(viewModel.progress.value!!.elapsedTime).isNull() in onSeekProgressWithSeekStarting()
391 assertThat(viewModel.progress.value!!.elapsedTime).isEqualTo(pos) in onProgressChangedFromUser()

12