Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 25 of 37) sorted by relevance

12

/aosp14/system/core/fs_mgr/libfiemap/
H A Dfiemap_writer.cpp62 unlink(file_path.c_str()); in cleanup()
173 if (stat(file_path.c_str(), &sb)) { in GetBlockDeviceForFile()
228 if (stat(file_path.c_str(), &sb)) { in GetFileSize()
238 if (statfs64(file_path.c_str(), &sfs)) { in PerformFileChecks()
359 if (IsFilePinned(file_fd, file_path, fs_type)) { in PinFile()
489 PLOG(ERROR) << "open: " << file_path; in HasPinnedExtents()
495 PLOG(ERROR) << "fstatfs64: " << file_path; in HasPinnedExtents()
498 return IsFilePinned(fd, file_path, sfs.f_type); in HasPinnedExtents()
672 cleanup(file_path, create); in Open()
688 cleanup(file_path, create); in Open()
[all …]
H A Dsplit_fiemap_writer.cpp74 RemoveSplitFiles(file_path); in Create()
92 out->list_file_ = file_path; in Create()
126 PLOG(ERROR) << "Failed to open " << file_path; in Create()
134 PLOG(ERROR) << "Write failed " << file_path; in Create()
149 if (!GetSplitFileList(file_path, &files)) { in Open()
154 out->list_file_ = file_path; in Open()
172 PLOG(ERROR) << "Error reading file: " << file_path; in GetSplitFileList()
177 std::string dir = android::base::Dirname(file_path); in GetSplitFileList()
188 if (access(file_path.c_str(), F_OK) && errno == ENOENT) { in RemoveSplitFiles()
194 if (GetSplitFileList(file_path, &files)) { in RemoveSplitFiles()
[all …]
H A Dutility.cpp40 FiemapStatus DetermineMaximumFileSize(const std::string& file_path, uint64_t* result) { in DetermineMaximumFileSize() argument
43 auto status = FiemapWriter::Open(file_path, 1, &writer); in DetermineMaximumFileSize()
72 unlink(file_path.c_str()); in DetermineMaximumFileSize()
H A Dutility.h31 FiemapStatus DetermineMaximumFileSize(const std::string& file_path, uint64_t* result);
/aosp14/frameworks/base/tools/aapt2/tools/
H A Dfix_resources.py17 for file_path in enumerate_files(res_path):
18 eligible_consumers = filter(lambda c: c.matches(file_path), consumers)
20 print "checking {0} ...".format(file_path)
22 original_contents = read_contents(file_path)
25 contents = c.consume(file_path, contents)
27 write_contents(file_path, contents)
40 def read_contents(file_path): argument
42 with open(file_path) as fin:
45 def write_contents(file_path, contents): argument
49 dirname, basename = os.path.split(file_path)
[all …]
H A Dextract_unicode_properties.py93 for file_path in sys.argv[1:]:
94 with open(file_path) as f:
/aosp14/frameworks/base/core/jni/
H A Dfd_utils.cpp187 const std::string file_path; member in FileDescriptorInfo
266 std::string file_path; in CreateFromFd() local
268 if (!android::base::Readlink(fd_path, &file_path)) { in CreateFromFd()
274 if (!allowlist->IsAllowed(file_path)) { in CreateFromFd()
285 file_path.c_str(), in CreateFromFd()
305 file_path.c_str(), in CreateFromFd()
337 if (IsArtMemfd(file_path)) { in ReopenOrDetach()
348 file_path.c_str(), in ReopenOrDetach()
358 file_path.c_str(), in ReopenOrDetach()
408 file_path(file_path), in FileDescriptorInfo()
[all …]
/aosp14/system/core/fs_mgr/
H A Dblockdev.cpp87 static Result<uint32_t> BlockDeviceQueueDepth(const std::string& file_path) { in BlockDeviceQueueDepth() argument
89 int res = stat(file_path.c_str(), &statbuf); in BlockDeviceQueueDepth()
91 return ErrnoError() << "stat(" << file_path << ")"; in BlockDeviceQueueDepth()
94 LOG(DEBUG) << __func__ << ": " << file_path << " -> " << blockdev; in BlockDeviceQueueDepth()
97 minor(statbuf.st_dev), file_path.c_str()); in BlockDeviceQueueDepth()
122 LOG(DEBUG) << __func__ << ": " << file_path << " is backed by /dev/" << blockdev in BlockDeviceQueueDepth()
130 const std::string& file_path) { in ConfigureQueueDepth() argument
137 const auto qd = BlockDeviceQueueDepth(file_path); in ConfigureQueueDepth()
H A Dblockdev.h21 const std::string& file_path);
/aosp14/system/core/fs_mgr/libfiemap/include/libfiemap/
H A Dfiemap_writer.h49 static FiemapUniquePtr Open(const std::string& file_path, uint64_t file_size,
52 static FiemapStatus Open(const std::string& file_path, uint64_t file_size, FiemapUniquePtr* out,
66 static bool HasPinnedExtents(const std::string& file_path);
79 static bool GetBlockDeviceForFile(const std::string& file_path, std::string* bdev_path,
84 const std::string& file_path() const { return file_path_; }; in file_path() function
H A Dsplit_fiemap_writer.h44 static std::unique_ptr<SplitFiemap> Create(const std::string& file_path, uint64_t file_size,
47 static FiemapStatus Create(const std::string& file_path, uint64_t file_size,
52 static std::unique_ptr<SplitFiemap> Open(const std::string& file_path);
57 static bool GetSplitFileList(const std::string& file_path, std::vector<std::string>* list);
61 static bool RemoveSplitFiles(const std::string& file_path, std::string* message = nullptr);
/aosp14/system/core/trusty/test/driver/
H A Dtrusty_driver_test.py22 def ReadFile(file_path): argument
23 with open(file_path, 'r') as f:
27 def WriteFile(file_path, s): argument
28 with open(file_path, 'w') as f:
/aosp14/frameworks/base/tools/aapt2/optimize/
H A DObfuscator.cpp43 std::string ShortenFileName(android::StringPiece file_path, int output_length) { in ShortenFileName() argument
44 std::size_t hash_num = std::hash<android::StringPiece>{}(file_path); in ShortenFileName()
202 bool Obfuscator::WriteObfuscationMap(const std::string& file_path) const { in WriteObfuscationMap()
217 std::ofstream fout(file_path, std::ios::out | std::ios::trunc | std::ios::binary); in WriteObfuscationMap()
H A DObfuscator.h42 bool WriteObfuscationMap(const std::string& file_path) const;
/aosp14/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
H A Dcow_writer.cpp46 std::string file_path(512, '\0'); in GetFdPath() local
47 const auto err = readlink(fd_path.c_str(), file_path.data(), file_path.size()); in GetFdPath()
50 file_path.clear(); in GetFdPath()
52 file_path.resize(err); in GetFdPath()
54 return file_path; in GetFdPath()
233 const auto file_path = GetFdPath(fd.get()); in SetFd() local
242 LOG(INFO) << "COW image " << file_path << " has size " << size_in_bytes; in SetFd()
244 LOG(INFO) << "COW image " << file_path in SetFd()
/aosp14/frameworks/base/tools/aapt2/tools/consumers/
H A Dpositional_arguments.py13 def matches(self, file_path): argument
14 dirname, basename = os.path.split(file_path)
H A Dduplicates.py9 def matches(self, file_path): argument
10 dirname, basename = os.path.split(file_path)
/aosp14/system/core/fs_mgr/libfs_avb/tests/
H A Dfs_avb_test_util.h62 inline android::base::unique_fd OpenUniqueReadFd(const base::FilePath& file_path) { in OpenUniqueReadFd() argument
63 return android::base::unique_fd(open(file_path.value().c_str(), O_RDONLY | O_CLOEXEC)); in OpenUniqueReadFd()
/aosp14/system/core/libprocessgroup/setup/
H A Dcgroup_map_write.cpp98 std::string file_path = path + "/" + dir_entry->d_name; in ChangeDirModeAndOwner() local
100 if (pw_uid != -1 && lchown(file_path.c_str(), pw_uid, gr_gid) < 0) { in ChangeDirModeAndOwner()
101 PLOG(ERROR) << "lchown() failed for " << file_path; in ChangeDirModeAndOwner()
105 if (fchmodat(AT_FDCWD, file_path.c_str(), mode, AT_SYMLINK_NOFOLLOW) != 0 && in ChangeDirModeAndOwner()
/aosp14/system/core/libprocessgroup/
H A Dprocessgroup.cpp349 std::string file_path = path + "/" + dir_entry->d_name; in MkdirAndChown() local
351 if (lchown(file_path.c_str(), uid, gid) < 0) { in MkdirAndChown()
352 PLOG(ERROR) << "lchown failed for " << file_path; in MkdirAndChown()
356 if (fchmodat(AT_FDCWD, file_path.c_str(), mode, AT_SYMLINK_NOFOLLOW) != 0) { in MkdirAndChown()
357 PLOG(ERROR) << "fchmodat failed for " << file_path; in MkdirAndChown()
/aosp14/frameworks/base/tests/ApkVerityTest/block_device_writer/
H A Dblock_device_writer.cpp62 explicit ScopedF2fsFilePinning(const char* file_path) { in ScopedF2fsFilePinning() argument
63 fd_.reset(TEMP_FAILURE_RETRY(open(file_path, O_WRONLY | O_CLOEXEC, 0))); in ScopedF2fsFilePinning()
/aosp14/system/core/libprocessgroup/profiles/
H A Dtest_vendor.cpp40 std::string file_path() const override { return file_path_; } in file_path() function in android::profiles::TestConfig
/aosp14/system/core/fs_mgr/libvbmeta/
H A Dbuilder.cpp41 for (const auto& [vbmeta_name, file_path] : images_path_) { in Build()
42 Result<std::string> content = ReadVBMetaImageFromFile(file_path); in Build()
/aosp14/system/core/fs_mgr/liblp/
H A Dimages.cpp209 std::string file_path = output_dir + "/" + file_name; in ExportFiles() local
212 unique_fd fd(open(file_path.c_str(), kOpenFlags, 0644)); in ExportFiles()
214 PERROR << "open failed: " << file_path; in ExportFiles()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/varhandles/
H A Dgenerate_java.py509 file_path = final_java_dir / "{}.java".format(bench.fullname())
510 with file_path.open("w") as f:

12