/aosp14/system/core/fs_mgr/libfiemap/ |
H A D | fiemap_writer.cpp | 62 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 D | split_fiemap_writer.cpp | 74 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 D | utility.cpp | 40 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 D | utility.h | 31 FiemapStatus DetermineMaximumFileSize(const std::string& file_path, uint64_t* result);
|
/aosp14/frameworks/base/tools/aapt2/tools/ |
H A D | fix_resources.py | 17 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 D | extract_unicode_properties.py | 93 for file_path in sys.argv[1:]: 94 with open(file_path) as f:
|
/aosp14/frameworks/base/core/jni/ |
H A D | fd_utils.cpp | 187 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 D | blockdev.cpp | 87 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 D | blockdev.h | 21 const std::string& file_path);
|
/aosp14/system/core/fs_mgr/libfiemap/include/libfiemap/ |
H A D | fiemap_writer.h | 49 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 D | split_fiemap_writer.h | 44 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 D | trusty_driver_test.py | 22 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 D | Obfuscator.cpp | 43 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 D | Obfuscator.h | 42 bool WriteObfuscationMap(const std::string& file_path) const;
|
/aosp14/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
H A D | cow_writer.cpp | 46 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 D | positional_arguments.py | 13 def matches(self, file_path): argument 14 dirname, basename = os.path.split(file_path)
|
H A D | duplicates.py | 9 def matches(self, file_path): argument 10 dirname, basename = os.path.split(file_path)
|
/aosp14/system/core/fs_mgr/libfs_avb/tests/ |
H A D | fs_avb_test_util.h | 62 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 D | cgroup_map_write.cpp | 98 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 D | processgroup.cpp | 349 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 D | block_device_writer.cpp | 62 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 D | test_vendor.cpp | 40 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 D | builder.cpp | 41 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 D | images.cpp | 209 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 D | generate_java.py | 509 file_path = final_java_dir / "{}.java".format(bench.fullname()) 510 with file_path.open("w") as f:
|