/system/core/libprocessgroup/cgrouprc_format/ |
D | cgroup_controller.cpp | 25 memset(path_, 0, sizeof(path_)); in CgroupController() 38 strncpy(path_, path.c_str(), sizeof(path_) - 1); in CgroupController() 39 path_[sizeof(path_) - 1] = '\0'; in CgroupController() 55 return path_; in path()
|
/system/bt/gd/storage/ |
D | legacy_config_file.cc | 31 LegacyConfigFile::LegacyConfigFile(std::string path) : path_(std::move(path)) { in LegacyConfigFile() 32 ASSERT(!path_.empty()); in LegacyConfigFile() 36 ASSERT(!path_.empty()); in Read() 37 std::ifstream config_file(path_); in Read() 39 LOG_ERROR("unable to open file '%s', error: %s", path_.c_str(), strerror(errno)); in Read() 74 return os::WriteToFile(path_, cache.SerializeToLegacyFormat()); in Write() 78 if (remove(path_.c_str()) != 0) { in Delete() 79 LOG_WARN("unable to remove file '%s', error: %s", path_.c_str(), strerror(errno)); in Delete()
|
D | legacy_config_file.h | 38 std::string path_;
|
/system/core/fs_mgr/libdm/ |
D | test_util.h | 41 valid_ = dm_.CreateDevice(name, table, &path_, std::chrono::seconds(5)); in TempDevice() 44 : dm_(other.dm_), name_(other.name_), path_(other.path_), valid_(other.valid_) { in TempDevice() 59 std::string path() const { return path_; } in path() 76 std::string path_; variable
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_stats.cpp | 28 CHECK(g_instance.path_ == parent.GetMergeStateFilePath()); in GetInstance() 32 SnapshotMergeStats::SnapshotMergeStats(const std::string& path) : path_(path), running_(false) {} in SnapshotMergeStats() 36 if (!android::base::ReadFileToString(path_, &contents)) { in ReadState() 53 if (!WriteStringToFileAtomic(contents, path_)) { in WriteState() 62 if (!android::base::RemoveFileIfExists(path_, &error)) { in DeleteState() 63 LOG(ERROR) << "Failed to remove merge statistics file " << path_ << ": " << error; in DeleteState()
|
/system/core/adb/fastdeploy/deploypatchgenerator/ |
D | apk_archive.cpp | 69 ApkArchive::ApkArchive(const std::string& path) : path_(path), size_(0) { in ApkArchive() 70 fd_.reset(adb_open(path_.c_str(), O_RDONLY)); in ApkArchive() 72 fprintf(stderr, "Unable to open file '%s'\n", path_.c_str()); in ApkArchive() 77 if (stat(path_.c_str(), &st) == -1) { in ApkArchive() 78 fprintf(stderr, "Unable to stat file '%s'\n", path_.c_str()); in ApkArchive() 98 dump.set_absolute_path(path_); in ExtractMetadata() 160 path_.c_str()); in GetCDLocation() 169 path_.c_str()); in GetCDLocation() 183 fprintf(stderr, "Unable to find signature in file '%s'\n", path_.c_str()); in GetSignatureLocation() 331 CHECK(ready()) << path_; in CalculateLocalFileEntrySize() [all …]
|
D | apk_archive.h | 77 std::string path_; variable
|
/system/teeui/libteeui/src/ |
D | evdev.cpp | 177 EventDev::EventDev() : fd_(-1), path_("") {} in EventDev() 178 EventDev::EventDev(const std::string& path) : fd_(-1), path_(path) {} in EventDev() 179 EventDev::EventDev(EventDev&& other) : fd_(other.fd_), path_(std::move(other.path_)) { in EventDev() 185 path_ = std::move(other.path_); in operator =() 193 fd_ = TEMP_FAILURE_RETRY(open(path_.c_str(), O_RDWR | O_NONBLOCK)); in grab() 195 LOG(ERROR) << "failed to open event device \"" << path_ << "\""; in grab() 200 LOG(ERROR) << "failed to grab event device " << path_ << " exclusively EVIOCGRAB returned " in grab() 215 LOG(ERROR) << "failed to ungrab \"" << path_ << "\" EVIOCGRAB returned " << error; in ungrab()
|
/system/core/fastboot/device/ |
D | utility.h | 33 explicit PartitionHandle(const std::string& path) : path_(path) {} in PartitionHandle() 35 : path_(path), closer_(std::move(closer)) {} in PartitionHandle() 45 const std::string& path() const { return path_; } in path() 50 std::string path_;
|
/system/core/fs_mgr/ |
D | file_wait.cpp | 86 std::string path_; member in android::fs_mgr::OneShotInotify 95 : path_(path), in OneShotInotify() 135 return PollForFile(path_, timeout); in Wait() 137 return PollForFileDeleted(path_, timeout); in Wait() 168 LOG(ERROR) << "error reading inotify for " << path_; in WaitImpl() 182 finished_ = !access(path_.c_str(), F_OK) || errno != ENOENT; in CheckCompleted() 184 finished_ = access(path_.c_str(), F_OK) && errno == ENOENT; in CheckCompleted()
|
/system/iorap/tests/src/inode2filename/ |
D | search_directories_test.cc | 413 constexpr PurePath() : path_(".") { in PurePath() 423 constexpr PurePath(std::string_view path) : path_(path) { in PurePath() 436 PurePath(std::string&& path) : owner_(std::move(path)), path_(owner_.value()) { in PurePath() 470 VisitSplitStringView(path_, in VisitParts() 515 std::string_view component = StringSplit::EmptySubstringAtEnd(path_); in Name() 604 DCHECK_GE(prev_last_view.data(), path_.data()); in Parent() 605 DCHECK_LE(prev_last_view.data() + prev_last_view.size(), path_.data() + path_.size()); in Parent() 609 size_t length = prev_last_view.data() + prev_last_view.size() - path_.data(); in Parent() 610 std::string_view parent = std::string_view{path_.data(), length} ; in Parent() 613 LOG(DEBUG) << "PurePath::Parent of \"" << path_ << "\" returns \"" << parent << "\""; in Parent() [all …]
|
/system/update_engine/common/ |
D | test_utils.h | 146 EXPECT_TRUE(utils::MakeTempFile(pattern, &path_, nullptr)); in ScopedTempFile() 147 unlinker_.reset(new ScopedPathUnlinker(path_)); in ScopedTempFile() 150 const std::string& path() const { return path_; } in path() 153 std::string path_;
|
D | utils.h | 348 : path_(path), should_remove_(true) {} in ScopedPathUnlinker() 350 if (should_remove_ && unlink(path_.c_str()) < 0) { in ~ScopedPathUnlinker() 351 PLOG(ERROR) << "Unable to unlink path " << path_; in ~ScopedPathUnlinker() 357 const std::string path_;
|
/system/extras/boottime_tools/bootio/ |
D | bootio_collector.h | 34 std::string path_; variable
|
/system/extras/simpleperf/ |
D | dso.cpp | 295 return FindExpectedBuildIdForPath(path_); in GetExpectedBuildId() 300 path_(path), in Dso() 377 if (path_.find(':') != std::string::npos) { in IsForJavaMethod() 488 if (size_t colon_pos = path_.find(':'); colon_pos != std::string::npos) { in GetReportPath() 491 return path_; in GetReportPath() 544 dex_file_dso_.reset(new DexFileDso(path_, path_)); in AddDexFileOffset() 570 ReportReadElfSymbolResult(status, path_, debug_file_path_, in LoadSymbols() 608 ReportReadElfSymbolResult(status, path_, vmlinux_); in LoadSymbols() 679 ReportReadElfSymbolResult(status, path_, debug_file_path_, in LoadSymbols()
|
D | dso.h | 149 const std::string& Path() const { return path_; } in Path() 210 const std::string path_; variable
|
D | JITDebugReader.cpp | 230 PLOG(ERROR) << "failed to write to " << path_; in WriteEntry() 239 PLOG(ERROR) << "failed to flush " << path_; in Flush() 245 const std::string& GetPath() const { return path_; } in GetPath() 250 : path_(std::move(path)), fp_(fp, fclose) {} in TempSymFile() 252 const std::string path_; member in simpleperf::TempSymFile
|
/system/core/libprocessgroup/cgrouprc_format/include/processgroup/format/ |
D | cgroup_controller.h | 47 char path_[CGROUP_PATH_BUF_SZ]; member
|
/system/core/libprocessgroup/ |
D | task_profiles.cpp | 145 : controller_(c), path_(p) { in SetCgroupAction() 147 if (IsAppDependentPath(path_)) { in SetCgroupAction() 163 std::string tasks_path = controller_.GetTasksFilePath(path_); in EnableResourceCaching() 209 std::string procs_path = controller()->GetProcsFilePath(path_, uid, pid); in ExecuteForProcess() 246 std::string tasks_path = controller()->GetTasksFilePath(path_); in ExecuteForTask()
|
D | task_profiles.h | 122 std::string path() const { return path_; } in path() 132 std::string path_; variable
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapshot_stats.h | 65 std::string path_; variable
|
/system/core/adb/client/ |
D | fastdeploy.cpp | 74 FileDeleter(const char* path) : path_(path) {} in FileDeleter() 75 ~FileDeleter() { adb_unlink(path_); } in ~FileDeleter() 78 const char* const path_; member
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
D | image_manager.h | 200 const std::string& path() const { return path_; } in path() 207 std::string path_; variable
|
/system/update_engine/ |
D | dynamic_partition_control_android.cc | 512 explicit AvbFooterEraser(const std::string& path) : path_(path) {} in AvbFooterEraser() 516 ignore_result(utils::SetBlockDeviceReadOnly(path_, false /* readonly */)); in Erase() 520 TEST_AND_RETURN_FALSE(fd_->Open(path_.c_str(), flags)); in Erase() 527 LOG(INFO) << "Zeroing " << path_ << " @ [" << offset << ", " in Erase() 536 LOG(WARNING) << "Failed to close fd for " << path_; in ~AvbFooterEraser() 541 std::string path_; member in chromeos_update_engine::__anon8bf282ec0111::AvbFooterEraser
|
/system/update_engine/payload_consumer/ |
D | download_action_unittest.cc | 76 ASSERT_TRUE(utils::ReadFile(path_, &found_data)); in ProcessingDone() 98 string path_; member in chromeos_update_engine::__anon9840d8860111::DownloadActionTestProcessorDelegate 188 delegate.path_ = output_temp_file.path(); in TestWithData() 579 delegate_.path_ = output_temp_file.path(); in StartDownload()
|