Home
last modified time | relevance | path

Searched refs:ioOveruseStats (Results 1 – 22 of 22) sorted by relevance

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/watchdog/
DCarWatchdogTestFragment.java308 IoOveruseStats ioOveruseStats = resourceOveruseStats.getIoOveruseStats(); in fetchInitialDiskIoStats() local
309 if (ioOveruseStats == null) { in fetchInitialDiskIoStats()
315 if (ioOveruseStats.getTotalBytesWritten() < TEN_MEGABYTES) { in fetchInitialDiskIoStats()
318 + ioOveruseStats.getTotalBytesWritten() + "' returned by get request."); in fetchInitialDiskIoStats()
323 ? ioOveruseStats.getRemainingWriteBytes().getForegroundModeBytes() in fetchInitialDiskIoStats()
324 : ioOveruseStats.getRemainingWriteBytes().getBackgroundModeBytes(); in fetchInitialDiskIoStats()
330 return new DiskIoStats(ioOveruseStats.getTotalBytesWritten(), remainingBytes, in fetchInitialDiskIoStats()
331 ioOveruseStats.getTotalOveruses()); in fetchInitialDiskIoStats()
488 IoOveruseStats ioOveruseStats = resourceOveruseStats.getIoOveruseStats(); in onOveruse() local
489 if (ioOveruseStats == null) { in onOveruse()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseMonitor.cpp333 stats.ioOveruseStats.startTime = startTime; in onPeriodicCollection()
334 stats.ioOveruseStats.durationInSeconds = durationInSeconds; in onPeriodicCollection()
335 stats.ioOveruseStats.writtenBytes = dailyIoUsage->writtenBytes; in onPeriodicCollection()
336 stats.ioOveruseStats.totalOveruses = dailyIoUsage->totalOveruses; in onPeriodicCollection()
337 stats.ioOveruseStats.remainingWriteBytes = diff(threshold, deltaWrittenBytes); in onPeriodicCollection()
338 stats.ioOveruseStats.killableOnOveruse = in onPeriodicCollection()
341 const auto& remainingWriteBytes = stats.ioOveruseStats.remainingWriteBytes; in onPeriodicCollection()
360 overusingNativeStats[stats.uid] = stats.ioOveruseStats; in onPeriodicCollection()
364 stats.ioOveruseStats.killableOnOveruse && !dailyIoUsage->isPackageWarned && in onPeriodicCollection()
518 for (const auto& [uid, ioOveruseStats] : statsByUid) { in notifyNativePackagesLocked()
[all …]
DWatchdogBinderMediator.cpp224 IoOveruseStats ioOveruseStats; in getResourceOveruseStats() local
225 if (const auto result = mIoOveruseMonitor->getIoOveruseStats(&ioOveruseStats); !result.ok()) { in getResourceOveruseStats()
231 stats.set<ResourceOveruseStats::ioOveruseStats>(std::move(ioOveruseStats)); in getResourceOveruseStats()
DIoOveruseMonitor.h105 aidl::android::automotive::watchdog::IoOveruseStats* ioOveruseStats) const = 0;
222 aidl::android::automotive::watchdog::IoOveruseStats* ioOveruseStats) const override;
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogBinderMediatorTest.cpp263 IoOveruseStats ioOveruseStats; in TEST_F() local
264 ioOveruseStats.killableOnOveruse = true; in TEST_F()
265 ioOveruseStats.startTime = 99898; in TEST_F()
266 ioOveruseStats.durationInSeconds = 12345; in TEST_F()
267 ioOveruseStats.totalOveruses = 3; in TEST_F()
270 stats.set<ResourceOveruseStats::ioOveruseStats>(ioOveruseStats); in TEST_F()
274 .WillOnce(DoAll(SetArgPointee<0>(ioOveruseStats), Return(Result<void>{}))); in TEST_F()
DIoOveruseMonitorTest.cpp112 ResourceOveruseStats constructResourceOveruseStats(IoOveruseStats ioOveruseStats) { in constructResourceOveruseStats() argument
114 stats.set<ResourceOveruseStats::ioOveruseStats>(ioOveruseStats); in constructResourceOveruseStats()
126 stats.ioOveruseStats = constructIoOveruseStats(isKillable, remaining, written, totalOveruses, in constructPackageIoOveruseStats()
172 std::string toString(const std::vector<PackageIoOveruseStats>& ioOveruseStats) { in toString() argument
173 if (ioOveruseStats.empty()) { in toString()
177 for (const auto& stats : ioOveruseStats) { in toString()
DWatchdogServiceHelperTest.cpp529 stats.ioOveruseStats.killableOnOveruse = true; in TEST_F()
530 stats.ioOveruseStats.startTime = 99898; in TEST_F()
531 stats.ioOveruseStats.durationInSeconds = 12345; in TEST_F()
532 stats.ioOveruseStats.totalOveruses = 10; in TEST_F()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogStorage.java480 android.automotive.watchdog.IoOveruseStats ioOveruseStats = in saveIoUsageStats() local
482 ZonedDateTime statsDate = Instant.ofEpochSecond(ioOveruseStats.startTime) in saveIoUsageStats()
936 android.automotive.watchdog.IoOveruseStats ioOveruseStats = in getContentValues() local
941 values.put(COLUMN_NUM_OVERUSES, ioOveruseStats.totalOveruses); in getContentValues()
945 COLUMN_WRITTEN_FOREGROUND_BYTES, ioOveruseStats.writtenBytes.foregroundBytes); in getContentValues()
947 COLUMN_WRITTEN_BACKGROUND_BYTES, ioOveruseStats.writtenBytes.backgroundBytes); in getContentValues()
949 COLUMN_WRITTEN_GARAGE_MODE_BYTES, ioOveruseStats.writtenBytes.garageModeBytes); in getContentValues()
951 ioOveruseStats.remainingWriteBytes.foregroundBytes); in getContentValues()
953 ioOveruseStats.remainingWriteBytes.backgroundBytes); in getContentValues()
955 ioOveruseStats.remainingWriteBytes.garageModeBytes); in getContentValues()
[all …]
DWatchdogPerfHandler.java595 IoOveruseStats ioOveruseStats = in getAllResourceOveruseStats() local
597 if (ioOveruseStats == null) { in getAllResourceOveruseStats()
600 allStats.add(statsBuilder.setIoOveruseStats(ioOveruseStats).build()); in getAllResourceOveruseStats()
949 stats.ioOveruseStats, stats.forgivenWriteBytes); in latestIoOveruseStatsInternal()
3096 public PackageIoUsage(android.automotive.watchdog.IoOveruseStats ioOveruseStats, in PackageIoUsage() argument
3099 mIoOveruseStats = ioOveruseStats; in PackageIoUsage()
/packages/services/Car/car-lib/src/android/car/watchdog/
DResourceOveruseStats.java73 @Nullable IoOveruseStats ioOveruseStats) { in ResourceOveruseStats() argument
80 this.mIoOveruseStats = ioOveruseStats; in ResourceOveruseStats()
156 …IoOveruseStats ioOveruseStats = (flg & 0x4) == 0 ? null : (IoOveruseStats) in.readTypedObject(IoOv… in ResourceOveruseStats() local
164 this.mIoOveruseStats = ioOveruseStats; in ResourceOveruseStats()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogPerfHandlerUnitTest.java540 packageIoOveruseStats.get(0).ioOveruseStats, in testWriteToDatabaseForSaveIoUsageStatsWithForgive()
545 packageIoOveruseStats.get(1).ioOveruseStats, in testWriteToDatabaseForSaveIoUsageStatsWithForgive()
593 packageIoOveruseStats.get(0).ioOveruseStats, in testWriteToDatabaseForSaveIoUsageStatsWithoutForgive()
598 packageIoOveruseStats.get(1).ioOveruseStats, in testWriteToDatabaseForSaveIoUsageStatsWithoutForgive()
643 packageIoOveruseStatsByUid.get(10103456).ioOveruseStats), in testDeleteUser()
645 packageIoOveruseStatsByUid.get(10001100).ioOveruseStats)); in testDeleteUser()
2106 packageIoOveruseStats.get(0).ioOveruseStats), in testGetAllResourceOveruseStatsWithNoMinimum()
2108 packageIoOveruseStats.get(1).ioOveruseStats)); in testGetAllResourceOveruseStatsWithNoMinimum()
2228 packageIoOveruseStats.get(0).ioOveruseStats), in testGetAllResourceOveruseStatsForSharedPackage()
2230 packageIoOveruseStats.get(1).ioOveruseStats), in testGetAllResourceOveruseStatsForSharedPackage()
[all …]
DIoOveruseStatsSubject.java48 public static Subject.Factory<IoOveruseStatsSubject, IoOveruseStats> ioOveruseStats() { in ioOveruseStats() method in IoOveruseStatsSubject
DCarWatchdogManagerUnitTest.java681 IoOveruseStats ioOveruseStats = in testIoOveruseStatsDescribeContent() local
683 int content = ioOveruseStats.describeContents(); in testIoOveruseStatsDescribeContent()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/
DResourceOveruseStats.aidl37 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/
DResourceOveruseStats.aidl37 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/
DResourceOveruseStats.aidl29 IoOveruseStats ioOveruseStats;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DPackageIoOveruseStats.aidl39 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DPackageIoOveruseStats.aidl39 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/
DPackageIoOveruseStats.aidl39 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DPackageIoOveruseStats.aidl39 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DPackageIoOveruseStats.aidl44 IoOveruseStats ioOveruseStats;
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java423 public void latestIoOveruseStats(List<PackageIoOveruseStats> ioOveruseStats) {} in latestIoOveruseStats() argument