/packages/services/Car/cpp/watchdog/server/tests/ |
D | ProcStatTest.cpp | 87 ProcStat procStat(tf.path); in TEST() local 88 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST() 89 ASSERT_RESULT_OK(procStat.collect()); in TEST() 91 const auto& actualFirstDelta = procStat.deltaStats(); in TEST() 127 ASSERT_RESULT_OK(procStat.collect()); in TEST() 129 const auto& actualSecondDelta = procStat.deltaStats(); in TEST() 155 ProcStat procStat(tf.path); in TEST() local 156 ASSERT_TRUE(procStat.enabled()) << "Temporary file is inaccessible"; in TEST() 157 EXPECT_FALSE(procStat.collect().ok()) << "No error returned for corrupted file"; in TEST() 178 ProcStat procStat(tf.path); in TEST() local [all …]
|
D | WatchdogPerfServiceTest.cpp | 211 wp<ProcStat> procStat(servicePeer.mockProcStat); in TEST() local 219 onBoottimeCollection(_, uidIoStats, procStat, procPidStat)) in TEST() 235 onBoottimeCollection(_, uidIoStats, procStat, procPidStat)) in TEST() 252 onBoottimeCollection(_, uidIoStats, procStat, procPidStat)) in TEST() 293 onPeriodicCollection(_, SystemState::NORMAL_MODE, uidIoStats, procStat, in TEST() 319 onCustomCollection(_, SystemState::NORMAL_MODE, _, uidIoStats, procStat, in TEST() 336 onCustomCollection(_, SystemState::NORMAL_MODE, _, uidIoStats, procStat, in TEST() 369 onPeriodicCollection(_, SystemState::NORMAL_MODE, uidIoStats, procStat, in TEST() 534 wp<ProcStat> procStat(servicePeer.mockProcStat); in TEST() local 556 onPeriodicCollection(_, SystemState::NORMAL_MODE, uidIoStats, procStat, in TEST()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | IoPerfCollection.cpp | 130 Result<void> checkDataCollectors(const wp<UidIoStats>& uidIoStats, const wp<ProcStat>& procStat, in checkDataCollectors() argument 132 if (uidIoStats != nullptr && procStat != nullptr && procPidStat != nullptr) { in checkDataCollectors() 139 if (procStat == nullptr) { in checkDataCollectors() 354 const wp<ProcStat>& procStat, in onBoottimeCollection() argument 356 auto result = checkDataCollectors(uidIoStats, procStat, procPidStat); in onBoottimeCollection() 361 return processLocked(time, std::unordered_set<std::string>(), uidIoStats, procStat, procPidStat, in onBoottimeCollection() 368 const wp<ProcStat>& procStat, in onPeriodicCollection() argument 370 auto result = checkDataCollectors(uidIoStats, procStat, procPidStat); in onPeriodicCollection() 375 return processLocked(time, std::unordered_set<std::string>(), uidIoStats, procStat, procPidStat, in onPeriodicCollection() 382 const wp<ProcStat>& procStat, const wp<ProcPidStat>& procPidStat) { in onCustomCollection() argument [all …]
|
D | IoPerfCollection.h | 137 const android::wp<ProcStat>& procStat, 142 const android::wp<ProcStat>& procStat, 148 const android::wp<UidIoStats>& uidIoStats, const android::wp<ProcStat>& procStat, 174 const android::wp<ProcStat>& procStat, 184 void processSystemIoPerfData(const android::wp<ProcStat>& procStat,
|
D | WatchdogPerfService.h | 84 const android::wp<ProcStat>& procStat, const android::wp<ProcPidStat>& procPidStat) = 0; 88 const android::wp<ProcStat>& procStat, const android::wp<ProcPidStat>& procPidStat) = 0; 96 const android::wp<UidIoStats>& uidIoStats, const android::wp<ProcStat>& procStat,
|
D | IoOveruseMonitor.h | 127 const android::wp<ProcStat>& procStat, 133 const android::wp<UidIoStats>& uidIoStats, const android::wp<ProcStat>& procStat,
|
D | IoOveruseMonitor.cpp | 174 [[maybe_unused]] const android::wp<ProcStat>& procStat, in onPeriodicCollection() argument 323 const android::wp<UidIoStats>& uidIoStats, const android::wp<ProcStat>& procStat, in onCustomCollection() argument 326 return onPeriodicCollection(time, systemState, uidIoStats, procStat, procPidStat); in onCustomCollection()
|