Searched refs:kPath (Results 1 – 7 of 7) sorted by relevance
/packages/services/Car/cpp/watchdog/server/src/ |
D | ProcStatCollector.cpp | 101 return Error() << "Cannot access " << kPath; in collect() 119 if (!ReadFileToString(kPath, &buffer)) { in getProcStatLocked() 120 return Error() << "ReadFileToString failed for " << kPath; in getProcStatLocked() 134 return Error() << "Duplicate `cpu .*` line in " << kPath; in getProcStatLocked() 137 return Error() << "Failed to parse `cpu .*` line in " << kPath; in getProcStatLocked() 141 return Error() << "Duplicate `ctxt .*` line in " << kPath; in getProcStatLocked() 144 return Error() << "Failed to parse `ctxt .*` line in " << kPath; in getProcStatLocked() 150 return Error() << "Duplicate `procs_running .*` line in " << kPath; in getProcStatLocked() 153 return Error() << "Failed to parse `procs_running .*` line in " << kPath; in getProcStatLocked() 159 return Error() << "Duplicate `procs_blocked .*` line in " << kPath; in getProcStatLocked() [all …]
|
D | ProcDiskStatsCollector.h | 102 explicit ProcDiskStatsCollector(const std::string& path = kProcDiskStatsPath) : kPath(path) {} in kPath() function 111 mEnabled = access(kPath.c_str(), R_OK) == 0; in init() 131 std::string filePath() const { return kPath; } in filePath() 135 const std::string kPath;
|
D | UidIoStatsCollector.h | 104 explicit UidIoStatsCollector(const std::string& path = kUidIoStatsPath) : kPath(path) {} in kPath() function 113 mEnabled = access(kPath.c_str(), R_OK) == 0; in init() 133 const std::string filePath() const override { return kPath; } in filePath() 140 const std::string kPath; variable
|
D | UidIoStatsCollector.cpp | 103 return Error() << "Can not access " << kPath; in collect() 131 if (!ReadFileToString(kPath, &buffer)) { in readUidIoStatsLocked() 132 return Error() << "ReadFileToString failed for " << kPath; in readUidIoStatsLocked() 146 return Error() << "Failed to parse the contents of " << kPath; in readUidIoStatsLocked()
|
D | ProcStatCollector.h | 124 kPath(path), mMillisPerClockTick(1000 / sysconf(_SC_CLK_TCK)), mLatestStats({}) {} in kPath() function 133 mEnabled = access(kPath.c_str(), R_OK) == 0; in init() 160 const std::string kPath; variable
|
D | ProcDiskStatsCollector.cpp | 207 return Error() << "Failed to access " << kPath; in collect() 211 if (auto latestPerPartitionDiskStats = readDiskStatsFile(kPath); in collect() 213 return Error() << "Failed to read per-partition disk stats from '" << kPath in collect()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | SyscallsTest.cpp | 57 const char kPath[] = "/test/path/please/ignore"; in TEST_F() local 62 EXPECT_CALL(mSyscalls, open(kPath, kFlags, kMode)).WillOnce(Return(ByMove(UniqueFd(kFd)))); in TEST_F() 64 auto result = sys.open(kPath, kFlags, kMode); in TEST_F()
|