Home
last modified time | relevance | path

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

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DAnimUtils.java79 float duration, float totalDuration) {
80 return clampToProgress(interpolator, startDelay / totalDuration,
81 (startDelay + duration) / totalDuration);
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DDurationMetricsTests.java231 long totalDuration = durationData.getData(0).getBucketInfoList().stream() in testDurationMetricWithCondition() local
235 assertThat(totalDuration).isIn(Range.open((long) 2e9, (long) 3e9)); in testDurationMetricWithCondition()
325 long totalDuration = durationData.getData(0).getBucketInfoList().stream() in testDurationMetricWithActivation() local
329 assertThat(totalDuration).isIn(Range.open((long) 2e9, (long) 3e9)); in testDurationMetricWithActivation()
515 long totalDuration = durationData.getData(0).getBucketInfoList().stream() in testDurationMetricWithConditionAndActivation() local
519 assertThat(totalDuration).isIn(Range.open((long) 4e9, (long) 5e9)); in testDurationMetricWithConditionAndActivation()
607 long totalDuration = 0; in testDurationMetricWithDimension() local
610 totalDuration += bucketInfo.getDurationNanos(); in testDurationMetricWithDimension()
613 assertThat(totalDuration).isIn(Range.open((long) 3e9, (long) 8e9)); in testDurationMetricWithDimension()
614 totalDuration = 0; in testDurationMetricWithDimension()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsCallStatusTracker.java594 long totalDuration = 0; in getUpLinkQualityLevelDuringCall() local
608 totalDuration += durationMillis; in getUpLinkQualityLevelDuringCall()
614 if (totalDuration <= 0) { in getUpLinkQualityLevelDuringCall()
617 long qualityLevel = sumUplinkQualityLevelVolume / totalDuration; in getUpLinkQualityLevelDuringCall()
620 + sumUplinkQualityLevelVolume + ", totalDuration: " + totalDuration in getUpLinkQualityLevelDuringCall()
628 long totalDuration = 0; in getDownLinkQualityLevelDuringCall() local
642 totalDuration += durationMillis; in getDownLinkQualityLevelDuringCall()
648 if (totalDuration <= 0) { in getDownLinkQualityLevelDuringCall()
651 long qualityLevel = sumDownLinkQualityLevelVolume / totalDuration; in getDownLinkQualityLevelDuringCall()
654 + sumDownLinkQualityLevelVolume + ", totalDuration: " + totalDuration in getDownLinkQualityLevelDuringCall()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioTrackMonitor.java110 long totalDuration = now - mStartMs; in maybeLog() local
116 .append(totalDuration - sampleDuration) in maybeLog()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java806 final float totalDuration = (float) Math.sqrt( in fitOnBounceCurve() local
808 mStartTime -= (int) (1000.0f * (totalDuration - durationToApex)); in fitOnBounceCurve()
810 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()