Lines Matching defs:path
106 bool GraphicsStatsService::parseFromFile(const std::string& path,
108 FileDescriptor fd{open(path.c_str(), O_RDONLY)};
114 ALOGW("Failed to open '%s', errno=%d (%s)", path.c_str(), err, strerror(err));
124 ALOGW("Failed to fstat '%s', errno=%d (%s) (st_size %d)", path.c_str(), err,
135 ALOGW("Failed to mmap '%s', errno=%d (%s)", path.c_str(), err, strerror(err));
150 ALOGW("Parse failed on '%s' error='%s'", path.c_str(),
259 void GraphicsStatsService::saveBuffer(const std::string& path, const std::string& package,
263 if (!parseFromFile(path, &statsProto)) {
280 int outFd = open(path.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0660);
283 ALOGW("Failed to open '%s', error=%d (%s)", path.c_str(), err, strerror(err));
289 ALOGW("Failed to write header to '%s', returned=%d errno=%d (%s)", path.c_str(), wrote, err,
298 ALOGW("Error writing to fd=%d, path='%s' err=%d (%s)", outFd, path.c_str(),
302 ALOGW("Serialize failed on '%s' unknown error", path.c_str());
325 void GraphicsStatsService::addToDump(Dump* dump, const std::string& path,
329 if (!path.empty() && !parseFromFile(path, &statsProto)) {
337 ALOGW("Failed to load profile data from path '%s' and data %p",
338 path.empty() ? "<empty>" : path.c_str(), data);
349 void GraphicsStatsService::addToDump(Dump* dump, const std::string& path) {
351 if (!parseFromFile(path, &statsProto)) {