Home
last modified time | relevance | path

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

/aosp12/frameworks/av/media/libnblog/
H A DPerformanceAnalysis.cpp171 const msInterval diffMs = static_cast<msInterval>( in logTsEntry() local
179 mBufferPeriod.mMean = (mBufferPeriod.mMean < 0) ? diffMs : in logTsEntry()
180 exponentialWeight * mBufferPeriod.mMean + (1.0 - exponentialWeight) * diffMs; in logTsEntry()
192 const bool isOutlier = detectAndStoreOutlier(diffMs); in logTsEntry()
301 bool PerformanceAnalysis::detectAndStoreOutlier(const msInterval diffMs) { in detectAndStoreOutlier() argument
303 if (diffMs >= mBufferPeriod.mOutlier) { in detectAndStoreOutlier()
316 mOutlierDistribution.mElapsed += diffMs; in detectAndStoreOutlier()
/aosp12/packages/apps/TV/src/com/android/tv/recommendation/
H A DRoutineWatchEvaluator.java102 long diffMs = in calculateRoutineWatchScore() local
105 (diffMs < MAX_DIFF_MS_FOR_OLD_PROGRAM) in calculateRoutineWatchScore()
107 - (double) Math.max(diffMs - DIFF_MS_TOLERANCE_FOR_OLD_PROGRAM, 0) in calculateRoutineWatchScore()
/aosp12/frameworks/av/media/libnblog/include/media/nblog/
H A DPerformanceAnalysis.h225 bool detectAndStoreOutlier(const msInterval diffMs);
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobSchedulerService.java1824 final long diffMs = Math.abs(elapsedNow - latestRunTimeElapsed);
1831 long numSkippedWindows = (diffMs / period) + 1; // +1 to include original window
1832 if (period != flex && diffMs > Math.min(PERIODIC_JOB_WINDOW_BUFFER,
1844 if (diffMs < PERIODIC_JOB_WINDOW_BUFFER && diffMs < period / 6) {
1847 rescheduleBuffer = Math.min(PERIODIC_JOB_WINDOW_BUFFER, period / 6 - diffMs);
/aosp12/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
H A DAtomTestCase.java1082 long diffMs = (d1.getElapsedTimestampNanos() - d0.getElapsedTimestampNanos()) / 1_000_000; in assertTimeDiffBetween() local
1084 .that(diffMs).isIn(Range.closed((long) minDiffMs, (long) maxDiffMs)); in assertTimeDiffBetween()