Home
last modified time | relevance | path

Searched refs:durationInSeconds (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/cpp/watchdog/server/tests/
DIoOveruseMonitorTest.cpp75 IoOveruseAlertThreshold toIoOveruseAlertThreshold(const int64_t durationInSeconds, in toIoOveruseAlertThreshold() argument
78 threshold.durationInSeconds = durationInSeconds; in toIoOveruseAlertThreshold()
100 const int64_t startTime, const int64_t durationInSeconds) { in constructIoOveruseStats() argument
105 stats.durationInSeconds = durationInSeconds; in constructIoOveruseStats()
121 const int totalOveruses, const int64_t startTime, const int64_t durationInSeconds) { in constructPackageIoOveruseStats() argument
127 startTime, durationInSeconds); in constructPackageIoOveruseStats()
369 const auto [startTime, durationInSeconds] = calculateStartAndDuration(currentTime); in TEST_F()
381 /*totalOveruses=*/0, startTime, durationInSeconds), in TEST_F()
387 /*totalOveruses=*/0, startTime, durationInSeconds), in TEST_F()
395 /*totalOveruses=*/1, startTime, durationInSeconds)}; in TEST_F()
[all …]
DOveruseConfigurationTestUtils.cpp150 IoOveruseAlertThreshold toIoOveruseAlertThreshold(const int64_t durationInSeconds, in toIoOveruseAlertThreshold() argument
153 threshold.durationInSeconds = durationInSeconds; in toIoOveruseAlertThreshold()
DOveruseConfigurationTestUtils.h86 const int64_t durationInSeconds, const int64_t writtenBytesPerSecond);
DWatchdogBinderMediatorTest.cpp266 ioOveruseStats.durationInSeconds = 12345; in TEST_F()
DWatchdogServiceHelperTest.cpp531 stats.ioOveruseStats.durationInSeconds = 12345; in TEST_F()
/packages/services/Car/car-lib/src/android/car/watchdog/
DIoOveruseAlertThreshold.java66 @SuppressLint({ "MethodNameUnits" }) long durationInSeconds, in IoOveruseAlertThreshold()
68 this.mDurationInSeconds = durationInSeconds;
111 long durationInSeconds = in.readLong(); in IoOveruseAlertThreshold() local
114 this.mDurationInSeconds = durationInSeconds; in IoOveruseAlertThreshold()
DIoOveruseStats.java95 long durationInSeconds, in IoOveruseStats() argument
102 this.mDurationInSeconds = durationInSeconds; in IoOveruseStats()
227 long durationInSeconds = in.readLong(); in IoOveruseStats() local
234 this.mDurationInSeconds = durationInSeconds; in IoOveruseStats()
288 long durationInSeconds) { in Builder() argument
290 mDurationInSeconds = durationInSeconds; in Builder()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DIoUsageStatsEntrySubject.java98 && actual.durationInSeconds == expected.durationInSeconds in isEqualsIoOveruseStats()
145 .append(", Duration: ").append(stats.durationInSeconds).append(" seconds") in toStringBuilder()
DInternalIoOveruseConfigurationSubject.java115 builder.append("{durationInSeconds: ").append(threshold.durationInSeconds) in toString()
151 return thresholds.stream().map(x -> String.format("%d:%d", x.durationInSeconds, in toAlertThresholdStrings()
DWatchdogStorageUnitTest.java1050 stats.durationInSeconds = duration; in constructInternalIoOveruseStats()
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseMonitor.cpp280 const auto [startTime, durationInSeconds] = calculateStartAndDuration(curGmt); in onPeriodicCollection()
334 stats.ioOveruseStats.durationInSeconds = durationInSeconds; in onPeriodicCollection()
441 if (accountedDurationInSecs >= threshold.durationInSeconds) { in onPeriodicMonitor()
448 threshold.durationInSeconds > accountedDurationInSecs) { in onPeriodicMonitor()
689 const auto [startTime, durationInSeconds] = in getIoOveruseStats()
692 ioOveruseStats->durationInSeconds = durationInSeconds; in getIoOveruseStats()
DIoOveruseConfigs.cpp108 if (threshold.durationInSeconds <= 0) { in containsValidThreshold()
347 return std::hash<std::string>{}(std::to_string(threshold.durationInSeconds)); in operator ()()
352 return l.durationInSeconds == r.durationInSeconds; in operator ()()
399 alertThreshold.durationInSeconds, it->writtenBytesPerSecond); in updateAlertThresholds()
DOveruseConfigurationXmlHelper.cpp367 alertThreshold.durationInSeconds = value; in readIoOveruseAlertThreshold()
620 writeParamElement(kParamIdDurationSeconds, alertThresholds.durationInSeconds); in writeAlertThresholds()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DWifiDownloadReceiver.java95 int durationInSeconds = (int) (durationInMilliSeconds / 1000); in getDownloadRate() local
96 return (mBytesCount / durationInSeconds); in getDownloadRate()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DIoOveruseAlertThreshold.aidl36 long durationInSeconds;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/
DIoOveruseAlertThreshold.aidl36 long durationInSeconds;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DIoOveruseAlertThreshold.aidl36 long durationInSeconds;
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DIoOveruseAlertThreshold.aidl27 long durationInSeconds;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DIoOveruseAlertThreshold.aidl36 long durationInSeconds;
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/
DIoOveruseStats.aidl44 long durationInSeconds;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/
DIoOveruseStats.aidl40 long durationInSeconds;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/
DIoOveruseStats.aidl40 long durationInSeconds;
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java432 final float durationInSeconds = Math.abs(deltaPosition / velocity); in calculateTranslationDuration() local
433 return Math.min((int) (durationInSeconds * UNIT_SECONDS), mMaxTranslationAnimationDuration); in calculateTranslationDuration()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogStorage.java995 ioOveruseStats.durationInSeconds = in queryStats()
1055 long durationInSeconds = excludingEndEpochSeconds - earliestEpochSecond; in queryIoOveruseStatsForUserPackageId() local
1057 earliestEpochSecond, durationInSeconds); in queryIoOveruseStatsForUserPackageId()
DWatchdogPerfHandler.java2471 packageIoUsage.mIoOveruseStats.durationInSeconds); in dumpUsageByUserPackageLocked()
2543 return new IoOveruseStats.Builder(internalStats.startTime, internalStats.durationInSeconds) in toIoOveruseStatsBuilder()
2701 internalThreshold.durationInSeconds = thresholds.get(i).getDurationInSeconds(); in toInternalIoOveruseAlertThresholds()
2780 thresholds.add(new IoOveruseAlertThreshold(internalThresholds.get(i).durationInSeconds, in toIoOveruseAlertThresholds()

12