Home
last modified time | relevance | path

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

12

/frameworks/base/libs/hwui/
DJankTracker.cpp104 int64_t totalDuration = frame.duration(sFrameStart, FrameInfoIndex::SwapBuffersCompleted); in calculateLegacyJank() local
114 if (forgiveAmount >= totalDuration) { in calculateLegacyJank()
117 forgiveAmount, totalDuration); in calculateLegacyJank()
120 totalDuration -= forgiveAmount; in calculateLegacyJank()
124 if (totalDuration <= 0) { in calculateLegacyJank()
126 totalDuration, frame[FrameInfoIndex::IntendedVsync], in calculateLegacyJank()
136 if (totalDuration > mFrameIntervalLegacy) { in calculateLegacyJank()
152 || totalDuration < mFrameIntervalLegacy) { in calculateLegacyJank()
177 int64_t totalDuration = frame.duration(FrameInfoIndex::IntendedVsync, in finishFrame() local
180 if (totalDuration <= 0) { in finishFrame()
[all …]
DFrameInfoVisualizer.cpp158 if (mFrameSource[fi].totalDuration() <= mFrameInterval) { in initializeRects()
191 if (mFrameSource[fi].totalDuration() <= mFrameInterval) { in nextBarSegment()
DFrameInfo.h170 inline int64_t totalDuration() const { in totalDuration() function
/frameworks/base/services/core/java/com/android/server/wm/
DNavBarFadeAnimationController.java101 void fadeOutAndInSequentially(long totalDuration, SurfaceControl fadeOutParent, in fadeOutAndInSequentially() argument
104 if (totalDuration > 0) { in fadeOutAndInSequentially()
107 final long fadeInDuration = totalDuration * 2L / 3L; in fadeOutAndInSequentially()
108 mFadeOutAnimation.setDuration(totalDuration - fadeInDuration); in fadeOutAndInSequentially()
/frameworks/base/core/java/android/os/
DVibrationEffect.java678 long totalDuration = 0; in getDuration() local
684 totalDuration += segmentDuration; in getDuration()
686 return totalDuration; in getDuration()
692 long totalDuration = getDuration(); in isHapticFeedbackCandidate() local
693 if (totalDuration > MAX_HAPTIC_FEEDBACK_DURATION) { in isHapticFeedbackCandidate()
704 totalDuration = 0; in isHapticFeedbackCandidate()
712 totalDuration += segmentDuration; in isHapticFeedbackCandidate()
716 return totalDuration <= MAX_HAPTIC_FEEDBACK_DURATION; in isHapticFeedbackCandidate()
/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/packages/SystemUI/tests/utils/src/com/android/systemui/animation/
DFakeLaunchAnimator.kt30 totalDuration = 0L,
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DLaunchAnimator.kt54 (linearProgress * timings.totalDuration - delay) / duration, in <lambda>()
164 val totalDuration: Long, in <lambda>() constant in com.android.systemui.animation.LaunchAnimator.Timings
269 animator.duration = timings.totalDuration in <lambda>()
DActivityLaunchAnimator.kt67 totalDuration = 500L,
98 TIMINGS.totalDuration - ANIMATION_DURATION_NAV_FADE_IN
190 TIMINGS.totalDuration, in startIntentWithAnimation()
191 TIMINGS.totalDuration - 150 /* statusBarTransitionDelay */ in startIntentWithAnimation()
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerInfo.cpp122 const auto totalDuration = mFrameTimes.back().queueTime - mFrameTimes.front().queueTime; in hasEnoughDataForHeuristic() local
123 if (mFrameTimes.size() < HISTORY_SIZE && totalDuration < HISTORY_DURATION.count()) { in hasEnoughDataForHeuristic()
125 totalDuration / 1e9f); in hasEnoughDataForHeuristic()
/frameworks/base/core/java/com/android/internal/app/procstats/
DAssociationState.java843 long totalDuration = mTotalActiveDuration; in dumpStats() local
845 totalDuration += now - mTotalActiveStartUptime; in dumpStats()
847 if (totalDuration > 0 || mTotalActiveCount != 0) { in dumpStats()
853 TimeUtils.formatDuration(totalDuration, pw); in dumpStats()
858 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats()
869 totalDuration = mTotalDuration; in dumpStats()
871 totalDuration += now - mTotalStartUptime; in dumpStats()
873 if (totalDuration > 0 || mTotalCount != 0) { in dumpStats()
879 TimeUtils.formatDuration(totalDuration, pw); in dumpStats()
884 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DFingerprint21UdfpsMock.java476 final int totalDuration = captureDuration + matchingDuration; in onPointerDown() local
477 setDebugMessage("Duration: " + totalDuration in onPointerDown()
481 mHandler.postDelayed(mFakeAcceptRunnable, totalDuration); in onPointerDown()
486 mHandler.postDelayed(mFakeRejectRunnable, totalDuration); in onPointerDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarLaunchAnimatorController.kt35 ActivityLaunchAnimator.TIMINGS.totalDuration.toInt()) in <lambda>()
/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/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/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp457 nsecs_t totalDuration = mFrameDelayDuration + in estimateWorkDuration() local
465 nsecs_t combinedDuration = combineTimingEstimates(totalDuration, flingerDuration); in estimateWorkDuration()
470 nsecs_t PowerAdvisor::combineTimingEstimates(nsecs_t totalDuration, nsecs_t flingerDuration) { in combineTimingEstimates() argument
480 nsecs_t normalizedTotalDuration = (targetDuration * totalDuration) / *mTotalFrameTargetDuration; in combineTimingEstimates()
DPowerAdvisor.h249 nsecs_t combineTimingEstimates(nsecs_t totalDuration, nsecs_t flingerDuration);
/frameworks/base/core/java/android/widget/
DOverScroller.java798 final float totalDuration = (float) Math.sqrt( in fitOnBounceCurve() local
800 mStartTime -= (int) (1000.0f * (totalDuration - durationToApex)); in fitOnBounceCurve()
802 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
/frameworks/base/services/core/java/com/android/server/
DGestureLauncherService.java817 long totalDuration = now - mCameraGestureOnTimeMs; in trackCameraLaunchEvent() local
825 long sensor1OnTime = (long) (totalDuration * (double) values[0]); in trackCameraLaunchEvent()
826 long sensor2OnTime = (long) (totalDuration * (double) values[1]); in trackCameraLaunchEvent()
/frameworks/base/services/core/java/com/android/server/am/
DAppFGSTracker.java410 final long totalDuration = getTotalDurations(pkg, now); in checkLongRunningFgs() local
411 if (totalDuration >= threshold) { in checkLongRunningFgs()
412 pkgWithLongFgs.put(pkg, totalDuration); in checkLongRunningFgs()
418 + TimeUtils.formatDuration(totalDuration) in checkLongRunningFgs()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp315 std::chrono::milliseconds totalDuration(0); in vibratorPerformPwleEffect() local
324 totalDuration += std::chrono::milliseconds(activePwle.duration); in vibratorPerformPwleEffect()
336 return result.isOk() ? totalDuration.count() : (result.isUnsupported() ? 0 : -1); in vibratorPerformPwleEffect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DSystemStatusAnimationSchedulerLegacyImpl.kt180 if (animSet.totalDuration > 500) { in <lambda>()
DSystemStatusAnimationSchedulerImpl.kt285 if (animSet.totalDuration > 500) { in <lambda>()

12