Home
last modified time | relevance | path

Searched refs:totalDuration (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/libs/hwui/
DJankTracker.cpp111 int64_t totalDuration = frame.duration(sFrameStart, FrameInfoIndex::FrameCompleted); in finishFrame() local
120 LOG_ALWAYS_FATAL_IF(forgiveAmount >= totalDuration, in finishFrame()
123 forgiveAmount, totalDuration); in finishFrame()
124 totalDuration -= forgiveAmount; in finishFrame()
128 LOG_ALWAYS_FATAL_IF(totalDuration <= 0, "Impossible totalDuration %" PRId64, totalDuration); in finishFrame()
129 mData->reportFrame(totalDuration); in finishFrame()
130 (*mGlobalData)->reportFrame(totalDuration); in finishFrame()
137 if (totalDuration > mFrameInterval) { in finishFrame()
148 if (frame[FrameInfoIndex::FrameCompleted] < mSwapDeadline || totalDuration < mFrameInterval) { in finishFrame()
173 if (totalDuration >= 700_ms) { in finishFrame()
[all …]
DFrameInfoVisualizer.cpp158 if (mFrameSource[fi].totalDuration() <= mFrameInterval) { in initializeRects()
191 if (mFrameSource[fi].totalDuration() <= mFrameInterval) { in nextBarSegment()
DFrameInfo.h142 inline int64_t totalDuration() const { in totalDuration() function
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DUiBenchmarkResult.java130 double totalDuration = getMetricAtIndex(i, FrameMetrics.TOTAL_DURATION); in getScore() local
131 if (totalDuration >= 12) { in getScore()
132 badFramesStats.addValue(totalDuration); in getScore()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DRenderingJitter.java230 long totalDuration = frameMetrics.getMetric(FrameMetrics.TOTAL_DURATION);
231 long jitter = Math.abs(totalDuration - mPreviousFrameTotal);
236 mTotalFrametimeMma = totalDuration;
243 mTotalFrametimeMma = add(mTotalFrametimeMma, totalDuration);
246 mPreviousFrameTotal = totalDuration;
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedStateListDrawable.java700 int totalDuration = 0; in updateFrames() local
704 totalDuration += duration; in updateFrames()
707 mTotalDuration = totalDuration; in updateFrames()
708 return totalDuration; in updateFrames()
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetActivityTest.java148 long totalDuration = 0; in testTotalDuration() local
152 totalDuration += list.get(i).getDuration(); in testTotalDuration()
154 assertEquals(totalDuration, s1.getTotalDuration()); in testTotalDuration()
158 assertEquals(totalDuration + 200, s1.getTotalDuration()); in testTotalDuration()
161 assertEquals(totalDuration + 200 + 100, s1.getTotalDuration()); in testTotalDuration()
DValueAnimatorTests.java361 final long totalDuration = a1.getTotalDuration(); in testResume() local
377 Thread.sleep(totalDuration / 2); in testResume()
389 Thread.sleep(totalDuration); in testResume()
412 long entireSpan = totalDuration * 2; in testResume()
/frameworks/base/services/core/java/com/android/server/
DGestureLauncherService.java490 long totalDuration = now - mCameraGestureOnTimeMs; in trackCameraLaunchEvent() local
498 long sensor1OnTime = (long) (totalDuration * (double) values[0]); in trackCameraLaunchEvent()
499 long sensor2OnTime = (long) (totalDuration * (double) values[1]); in trackCameraLaunchEvent()
/frameworks/base/core/java/android/widget/
DOverScroller.java814 final float totalDuration = (float) Math.sqrt( in fitOnBounceCurve() local
816 mStartTime -= (int) (1000.0f * (totalDuration - durationToApex)); in fitOnBounceCurve()
818 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
/frameworks/base/core/java/android/os/
DBatteryStats.java3337 long totalDuration = 0; in printWakeLockCheckin() local
3343 totalDuration = timer.getTotalDurationMsLocked(elapsedRealtimeUs/1000); in printWakeLockCheckin()
3359 sb.append(totalDuration); in printWakeLockCheckin()