Home
last modified time | relevance | path

Searched refs:procStat (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/cpp/watchdog/server/tests/
DProcStatTest.cpp87 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 …]
DWatchdogPerfServiceTest.cpp211 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/
DIoPerfCollection.cpp130 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 …]
DIoPerfCollection.h137 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,
DWatchdogPerfService.h84 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,
DIoOveruseMonitor.h127 const android::wp<ProcStat>& procStat,
133 const android::wp<UidIoStats>& uidIoStats, const android::wp<ProcStat>& procStat,
DIoOveruseMonitor.cpp174 [[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()