/packages/services/Car/cpp/watchdog/server/src/ |
D | IoOveruseMonitor.cpp | 240 stats.ioOveruseStats.startTime = startTime; in onPeriodicCollection() 241 stats.ioOveruseStats.durationInSeconds = durationInSeconds; in onPeriodicCollection() 242 stats.ioOveruseStats.writtenBytes = dailyIoUsage->writtenBytes; in onPeriodicCollection() 243 stats.ioOveruseStats.totalOveruses = dailyIoUsage->totalOveruses; in onPeriodicCollection() 244 stats.ioOveruseStats.remainingWriteBytes = in onPeriodicCollection() 246 stats.ioOveruseStats.killableOnOveruse = in onPeriodicCollection() 249 const auto& remainingWriteBytes = stats.ioOveruseStats.remainingWriteBytes; in onPeriodicCollection() 262 stats.ioOveruseStats.totalOveruses = ++dailyIoUsage->totalOveruses; in onPeriodicCollection() 275 overusingNativeStats[uid] = stats.ioOveruseStats; in onPeriodicCollection() 279 stats.ioOveruseStats.killableOnOveruse && !dailyIoUsage->isPackageWarned && in onPeriodicCollection() [all …]
|
D | WatchdogBinderMediator.cpp | 276 IoOveruseStats ioOveruseStats; in getResourceOveruseStats() local 277 if (const auto result = mIoOveruseMonitor->getIoOveruseStats(&ioOveruseStats); !result.ok()) { in getResourceOveruseStats() 283 stats.set<ResourceOveruseStats::ioOveruseStats>(std::move(ioOveruseStats)); in getResourceOveruseStats()
|
D | IoOveruseMonitor.h | 97 virtual android::base::Result<void> getIoOveruseStats(IoOveruseStats* ioOveruseStats) = 0; 169 android::base::Result<void> getIoOveruseStats(IoOveruseStats* ioOveruseStats);
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogBinderMediatorTest.cpp | 292 IoOveruseStats ioOveruseStats; in TEST_F() local 293 ioOveruseStats.killableOnOveruse = true; in TEST_F() 294 ioOveruseStats.startTime = 99898; in TEST_F() 295 ioOveruseStats.durationInSeconds = 12345; in TEST_F() 296 ioOveruseStats.totalOveruses = 3; in TEST_F() 299 stats.set<ResourceOveruseStats::ioOveruseStats>(ioOveruseStats); in TEST_F() 303 .WillOnce(DoAll(SetArgPointee<0>(ioOveruseStats), Return(Result<void>{}))); in TEST_F()
|
D | IoOveruseMonitorTest.cpp | 109 ResourceOveruseStats constructResourceOveruseStats(IoOveruseStats ioOveruseStats) { in constructResourceOveruseStats() argument 111 stats.set<ResourceOveruseStats::ioOveruseStats>(ioOveruseStats); in constructResourceOveruseStats() 122 stats.ioOveruseStats = constructIoOveruseStats(isKillable, remaining, written, totalOveruses, in constructPackageIoOveruseStats() 154 std::string toString(const std::vector<PackageIoOveruseStats>& ioOveruseStats) { in toString() argument 155 if (ioOveruseStats.empty()) { in toString() 159 for (const auto& stats : ioOveruseStats) { in toString()
|
D | WatchdogServiceHelperTest.cpp | 382 stats.ioOveruseStats.killableOnOveruse = true; in TEST_F() 383 stats.ioOveruseStats.startTime = 99898; in TEST_F() 384 stats.ioOveruseStats.durationInSeconds = 12345; in TEST_F() 385 stats.ioOveruseStats.totalOveruses = 10; in TEST_F()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/watchdog/ |
D | CarWatchdogTestFragment.java | 179 IoOveruseStats ioOveruseStats = stats.getIoOveruseStats(); in fetchRemainingBytes() local 180 if (ioOveruseStats == null) { in fetchRemainingBytes() 187 if (ioOveruseStats.getTotalBytesWritten() < minWrittenBytes) { in fetchRemainingBytes() 192 + ioOveruseStats.getTotalBytesWritten() in fetchRemainingBytes() 200 return ioOveruseStats.getRemainingWriteBytes().getForegroundModeBytes(); in fetchRemainingBytes()
|
/packages/services/Car/car-lib/src/android/car/watchdog/ |
D | ResourceOveruseStats.java | 69 @Nullable IoOveruseStats ioOveruseStats) { in ResourceOveruseStats() argument 76 this.mIoOveruseStats = ioOveruseStats; in ResourceOveruseStats() 143 …IoOveruseStats ioOveruseStats = (flg & 0x4) == 0 ? null : (IoOveruseStats) in.readTypedObject(IoOv… in ResourceOveruseStats() local 151 this.mIoOveruseStats = ioOveruseStats; in ResourceOveruseStats()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | CarWatchdogServiceUnitTest.java | 245 packageIoOveruseStats.get(0).ioOveruseStats); in testGetResourceOveruseStats() 290 packageIoOveruseStats.get(0).ioOveruseStats), in testGetAllResourceOveruseStatsWithNoMinimum() 293 packageIoOveruseStats.get(1).ioOveruseStats)); in testGetAllResourceOveruseStatsWithNoMinimum() 350 packageIoOveruseStats.get(1).ioOveruseStats)); in testGetAllResourceOveruseStatsWithMinimum() 384 packageIoOveruseStats.get(1).ioOveruseStats); in testGetResourceOveruseStatsForUserPackage() 1047 packageIoOveruseStats.get(0).ioOveruseStats)); in testLatestIoOveruseStats() 1053 packageIoOveruseStats.get(1).ioOveruseStats)); in testLatestIoOveruseStats() 1057 packageIoOveruseStats.get(3).ioOveruseStats)); in testLatestIoOveruseStats() 1573 boolean shouldNotify, android.automotive.watchdog.IoOveruseStats ioOveruseStats) { in constructPackageIoOveruseStats() argument 1577 stats.ioOveruseStats = ioOveruseStats; in constructPackageIoOveruseStats() [all …]
|
D | IoOveruseStatsSubject.java | 42 public static Subject.Factory<IoOveruseStatsSubject, IoOveruseStats> ioOveruseStats() { in ioOveruseStats() method in IoOveruseStatsSubject
|
D | CarWatchdogManagerUnitTest.java | 511 IoOveruseStats ioOveruseStats = in testIoOveruseStatsDescribeContent() local 513 int content = ioOveruseStats.describeContents(); in testIoOveruseStatsDescribeContent()
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/ |
D | ResourceOveruseStats.aidl | 37 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/ |
D | ResourceOveruseStats.aidl | 37 android.automotive.watchdog.IoOveruseStats ioOveruseStats;
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/ |
D | ResourceOveruseStats.aidl | 29 IoOveruseStats ioOveruseStats;
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | PackageIoOveruseStats.aidl | 38 IoOveruseStats ioOveruseStats;
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogPerfHandler.java | 245 IoOveruseStats ioOveruseStats = getIoOveruseStats(usage.userId, usage.packageName, in getAllResourceOveruseStats() local 247 if (ioOveruseStats == null) { in getAllResourceOveruseStats() 250 allStats.add(statsBuilder.setIoOveruseStats(ioOveruseStats).build()); in getAllResourceOveruseStats() 526 stats.ioOveruseStats); in latestIoOveruseStats()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/ |
D | CarWatchdogDaemonHelperTest.java | 265 public void latestIoOveruseStats(List<PackageIoOveruseStats> ioOveruseStats) {} in latestIoOveruseStats() argument
|