/aosp12/system/update_engine/cros/ |
H A D | requisition_util_unittest.cc | 65 path_ = in WriteJsonToFile() 67 ASSERT_TRUE(base::CreateDirectory(path_.DirName())); in WriteJsonToFile() 68 ASSERT_TRUE(WriteFileString(path_.value(), json)); in WriteJsonToFile() 72 base::FilePath path_; member in chromeos_update_engine::RequisitionUtilTest 77 EXPECT_EQ("", ReadDeviceRequisition(path_)); in TEST_F() 81 EXPECT_EQ("", ReadDeviceRequisition(path_)); in TEST_F() 86 EXPECT_EQ("remora", ReadDeviceRequisition(path_)); in TEST_F() 91 EXPECT_EQ("", ReadDeviceRequisition(path_)); in TEST_F()
|
/aosp12/system/bt/gd/storage/ |
H A 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 (!os::FileExists(path_)) { in Delete() 79 LOG_WARN("Config file at \"%s\" does not exist", path_.c_str()); in Delete() 82 return os::RemoveFile(path_); in Delete()
|
/aosp12/system/core/libprocessgroup/cgrouprc_format/ |
H A 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()
|
/aosp12/frameworks/native/vulkan/libvulkan/ |
H A D | layers_extensions.cpp | 72 : path_(path), in LayerLibrary() 79 : path_(std::move(other.path_)), in LayerLibrary() 114 const std::string path_; member in vulkan::api::__anon1d942db80110::LayerLibrary 184 path_.c_str()); in EnumerateLayers() 205 path_.c_str(), result); in EnumerateLayers() 215 path_.c_str(), result); in EnumerateLayers() 225 path_.c_str(), result); in EnumerateLayers() 234 path_.c_str(), result); in EnumerateLayers() 257 props.layerName, path_.c_str(), result); in EnumerateLayers() 268 props.layerName, path_.c_str(), result); in EnumerateLayers() [all …]
|
/aosp12/packages/modules/adb/fastdeploy/deploypatchgenerator/ |
H A 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() 331 CHECK(ready()) << path_; in CalculateLocalFileEntrySize() 337 path_.c_str(), static_cast<long long>(localFileHeaderOffset), in CalculateLocalFileEntrySize() [all …]
|
/aosp12/system/apex/apexd/ |
H A D | apexd_session_test.cpp | 81 path_ = "/data/apex/sessions/" + std::to_string(id); in TEST() 82 if (auto status = CreateDirIfNeeded(path_, 0700); !status.ok()) { in TEST() 83 ADD_FAILURE() << "Failed to create " << path_ << " : " in TEST() 90 path_ + "/state", std::ios::out | std::ios::trunc | std::ios::binary); in TEST() 92 ADD_FAILURE() << "Failed to write to " << path_; in TEST() 96 ~TestApexSession() { fs::remove_all(path_); } in TEST() 99 std::string path_; in TEST() member in android::apex::__anon9a55e7220110::TEST::TestApexSession
|
/aosp12/frameworks/native/cmds/installd/ |
H A D | unique_file.cpp | 33 : value_(value), path_(path), cleanup_(cleanup), do_cleanup_(true), auto_close_(true) {} in UniqueFile() 45 path_ = other.path_; in operator =() 64 cleanup_(path_); in reset() 68 path_ = path; in reset() 74 path_ = ""; in release()
|
H A D | unique_file.h | 74 return path_; in path() 92 std::string path_; variable
|
/aosp12/system/core/fs_mgr/libsnapshot/ |
H A D | estimate_cow_from_nonab_ota.cpp | 69 std::string path_; member in android::snapshot::TargetFilesPackage 75 : path_(path), zip_(nullptr, &CloseArchive) {} in TargetFilesPackage() 78 fd_.reset(open(path_.c_str(), O_RDONLY)); in Open() 80 PLOG(ERROR) << "open failed: " << path_; in Open() 86 PLOG(ERROR) << "fstat failed: " << path_; in Open() 95 if (OpenArchiveFd(fd_.get(), path_.c_str(), &handle, false)) { in Open() 109 auto full_path = path_ + "/" + path; in HasFile() 115 auto full_path = path_ + "/" + path; in OpenFile() 126 LOG(ERROR) << path << " not found in archive: " << path_; in OpenFile() 136 LOG(INFO) << "Extracting " << path << " from " << path_ << " ..."; in OpenFile() [all …]
|
H A 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()
|
/aosp12/bootable/recovery/install/ |
H A D | package.cpp | 54 return path_; in GetPath() 74 std::string path_; member in MemoryPackage 102 return path_; in GetPath() 115 std::string path_; // The physical path to the package. member in FilePackage 155 : map_(std::move(map)), path_(path), zip_handle_(nullptr) { in MemoryPackage() 205 if (auto err = OpenArchiveFromMemory(const_cast<uint8_t*>(addr_), package_size_, path_.c_str(), in GetZipArchiveHandle() 208 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle() 217 : fd_(std::move(fd)), package_size_(file_size), path_(path), zip_handle_(nullptr) { in FilePackage() 272 if (auto err = OpenArchiveFd(fd_.get(), path_.c_str(), &zip_handle_, false); err != 0) { in GetZipArchiveHandle() 273 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle()
|
/aosp12/system/teeui/libteeui/src/ |
H A 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()
|
/aosp12/system/core/fs_mgr/libdm/ |
H A 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
|
/aosp12/system/core/fs_mgr/ |
H A 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()
|
/aosp12/bootable/recovery/otautil/include/otautil/ |
H A D | sysutil.h | 44 return !path_.empty(); 48 return path_; in path() 65 : path_(path), in BlockMapData() 70 std::string path_; variable
|
/aosp12/system/update_engine/common/ |
H A D | utils.h | 382 : path_(path), should_remove_(true) {} in ScopedPathUnlinker() 384 if (should_remove_ && unlink(path_.c_str()) < 0) { in ~ScopedPathUnlinker() 385 PLOG(ERROR) << "Unable to unlink path " << path_; in ~ScopedPathUnlinker() 391 const std::string path_; 406 CHECK(utils::MakeTempFile(pattern, &path_, open_fd ? &fd_ : nullptr)); 407 unlinker_.reset(new ScopedPathUnlinker(path_)); 413 CHECK_EQ(0, truncate(path_.c_str(), truncate_size)); 418 const std::string& path() const { return path_; } in path() 429 std::string path_;
|
/aosp12/system/core/fastboot/device/ |
H A 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_;
|
/aosp12/frameworks/native/services/vr/performanced/ |
H A D | cpu_set.cpp | 195 path_ = name_; in CpuSet() 197 path_ = parent_->name() + name_; in CpuSet() 199 path_ = parent_->path() + "/" + name_; in CpuSet() 223 path_.c_str(), name.c_str(), strerror(errno)); in OpenFilePointer() 230 path_.c_str(), name.c_str(), strerror(errno)); in OpenFilePointer() 249 ALOGE("CpuSet::AttachTask: Failed to open %s/tasks: %s", path_.c_str(), in AttachTask()
|
H A D | cpu_set.h | 28 std::string path() const { return path_; } in path() 53 std::string path_; variable
|
/aosp12/system/extras/simpleperf/ |
H A D | dso.cpp | 313 return FindExpectedBuildIdForPath(path_); in GetExpectedBuildId() 318 path_(path), in Dso() 395 if (JITDebugReader::IsPathInJITSymFile(path_)) { in IsForJavaMethod() 399 size_t pos = path_.rfind('/'); in IsForJavaMethod() 401 return StartsWith(std::string_view(&path_[pos], path_.size() - pos), "TemporaryFile"); in IsForJavaMethod() 508 if (JITDebugReader::IsPathInJITSymFile(path_)) { in GetReportPath() 509 if (path_.find(kJITAppCacheFile) != path_.npos) { in GetReportPath() 514 return path_; in GetReportPath() 567 dex_file_dso_.reset(new DexFileDso(path_, path_)); in AddDexFileOffset() 593 ReportReadElfSymbolResult(status, path_, debug_file_path_, in LoadSymbolsImpl() [all …]
|
/aosp12/system/core/libprocessgroup/ |
H A D | task_profiles.cpp | 196 : controller_(c), path_(p) { in SetCgroupAction() 197 InitFd(controller_.GetTasksFilePath(path_)); in SetCgroupAction() 236 std::string procs_path = controller()->GetProcsFilePath(path_, uid, pid); in ExecuteForProcess() 273 std::string tasks_path = controller()->GetTasksFilePath(path_); in ExecuteForTask() 289 : path_(path), value_(value), logfailures_(logfailures) { in WriteFileAction() 290 InitFd(path_); in WriteFileAction() 315 std::string path(path_); in ExecuteForProcess() 336 if (logfailures_) PLOG(ERROR) << "Failed to write '" << value << "' to " << path_; in ExecuteForTask() 353 return WriteValueToFile(value, path_, logfailures_); in ExecuteForTask()
|
H A D | task_profiles.h | 146 const std::string GetPath() const override { return controller_.GetTasksFilePath(path_); } in GetPath() 150 std::string path_; variable 164 const std::string GetPath() const override { return path_; } in GetPath() 167 std::string path_, value_;
|
/aosp12/bootable/recovery/updater/ |
H A D | target_files.cpp | 109 std::string entry_path = path_ + "/" + std::string(name); in EntryExists() 124 std::string entry_path = path_ + "/" + std::string(name); in ReadEntryToString() 161 std::string entry_path = path_ + "/" + std::string(name); in ExtractEntryToTempFile() 182 if (auto ret = OpenArchive(path_.c_str(), &handle_); ret != 0) { in Open() 183 LOG(ERROR) << "failed to open source target file " << path_ << ": " << ErrorCodeString(ret); in Open()
|
/aosp12/frameworks/base/libs/androidfw/ |
H A D | AssetsProvider.cpp | 355 path_ = (primary_->GetDebugName() != kEmptyDebugString) ? primary_->GetPath() in MultiAssetsProvider() 382 return path_; in GetPath() 394 path_(std::move(path)) {} in EmptyAssetsProvider() 420 if (path_.has_value()) { in GetPath() 421 return *path_; in GetPath() 427 if (path_.has_value()) { in GetDebugName() 428 return *path_; in GetDebugName()
|
/aosp12/bootable/recovery/updater/include/updater/ |
H A D | target_files.h | 45 : path_(std::move(path)), extracted_input_(extracted_input) {} in TargetFile() 65 std::string path_; // Path to the zipped target-file or an extracted directory. variable
|