Home
last modified time | relevance | path

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

12345678

/aosp12/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()
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()
590 << file_path; in ReadFiemap()
706 cleanup(file_path, create); in Open()
722 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()
148 if (!GetSplitFileList(file_path, &files)) { in Open()
153 out->list_file_ = file_path; in Open()
171 PLOG(ERROR) << "Error reading file: " << file_path; in GetSplitFileList()
176 std::string dir = android::base::Dirname(file_path); in GetSplitFileList()
187 if (access(file_path.c_str(), F_OK) && errno == ENOENT) { in RemoveSplitFiles()
193 if (GetSplitFileList(file_path, &files)) { in RemoveSplitFiles()
[all …]
/aosp12/system/iorap/src/serialize/
H A Dprotobuf_io.cc41 PLOG(DEBUG) << "ProtobufIO: open failed: " << file_path; in Open()
45 return Open(fd.get(), file_path.c_str()); in Open()
52 file_path); in Open()
88 << file_path; in Open()
97 std::string_view file_path) { in WriteFully() argument
99 std::string str{file_path}; in WriteFully()
106 PLOG(ERROR) << "ProtobufIO: open failed: " << file_path; in WriteFully()
110 return WriteFully(message, fd.get(), file_path); in WriteFully()
116 std::string_view file_path) { in WriteFully() argument
142 PLOG(ERROR) << "ProtobufIO: mmap failed: " << file_path; in WriteFully()
[all …]
H A Dprotobuf_io.h39 static ArenaPtr<proto::TraceFile> Open(std::string file_path);
41 static ArenaPtr<proto::TraceFile> Open(int fd, const char* file_path = "<unknown>");
48 std::string_view file_path);
55 std::string_view file_path = "<unknown>");
/aosp12/system/apex/apexd/
H A Dapex_file_test.cpp161 const std::string file_path = in TEST() local
170 const std::string file_path = in TEST() local
182 const std::string file_path = in TEST() local
191 const std::string file_path = in TEST() local
200 const std::string file_path = in TEST() local
215 const std::string file_path = in TEST() local
217 auto apex = ApexFile::Open(file_path); in TEST()
227 const std::string file_path = in TEST() local
257 const std::string file_path = in TEST() local
271 const std::string file_path = in TEST() local
[all …]
H A Dapexd_test.cpp770 UnmountOnTearDown(file_path); in TEST_F()
791 UnmountOnTearDown(file_path); in TEST_F()
816 UnmountOnTearDown(file_path); in TEST_F()
832 UnmountOnTearDown(file_path); in TEST_F()
844 UnmountOnTearDown(file_path); in TEST_F()
857 UnmountOnTearDown(file_path); in TEST_F()
870 UnmountOnTearDown(file_path); in TEST_F()
883 UnmountOnTearDown(file_path); in TEST_F()
895 UnmountOnTearDown(file_path); in TEST_F()
912 UnmountOnTearDown(file_path); in TEST_F()
[all …]
/aosp12/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 …]
/aosp12/art/odrefresh/
H A Dodr_metrics_record_test.cc44 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
47 std::ofstream ofs(file_path); in TEST_F()
55 std::ifstream ifs(file_path); in TEST_F()
74 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
76 std::ifstream ifs(file_path); in TEST_F()
86 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
88 std::ifstream ifs(file_path); in TEST_F()
100 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
102 std::ofstream ofs(file_path); in TEST_F()
H A Dodr_fs_utils_test.cc39 static bool CreateFile(const char* file_path, size_t bytes) { in CreateFile() argument
40 std::unique_ptr<File> fp(OS::CreateEmptyFile(file_path)); in CreateFile()
82 for (const auto& file_path : file_paths) { in TEST_F() local
83 ASSERT_TRUE(CreateFile(file_path.c_str(), 4096)); in TEST_F()
94 for (const auto& file_path : file_paths) { in TEST_F() local
95 ASSERT_FALSE(OS::FileExists(file_path.c_str(), true)); in TEST_F()
/aosp12/system/linkerconfig/
H A Dmain.cc151 std::string file_path) { in WriteConfigurationToFile() argument
155 if (file_path != "") { in WriteConfigurationToFile()
156 file_out.open(file_path); in WriteConfigurationToFile()
158 return ErrnoError() << "Failed to open file " << file_path; in WriteConfigurationToFile()
177 file_path.c_str(),
235 std::string file_path = ""; in GenerateConfiguration() local
237 file_path = dir_path + "/ld.config.txt"; in GenerateConfiguration()
243 } else if (update_permission && file_path != "") { in GenerateConfiguration()
244 return UpdatePermission(file_path); in GenerateConfiguration()
293 std::ofstream out(file_path); in GenerateApexLibrariesConfig()
[all …]
/aosp12/frameworks/base/core/jni/
H A Dfd_utils.cpp179 const std::string file_path; member in FileDescriptorInfo
258 std::string file_path; in CreateFromFd() local
260 if (!android::base::Readlink(fd_path, &file_path)) { in CreateFromFd()
266 if (!allowlist->IsAllowed(file_path)) { in CreateFromFd()
277 file_path.c_str(), in CreateFromFd()
297 file_path.c_str(), in CreateFromFd()
329 if (IsArtMemfd(file_path)) { in ReopenOrDetach()
340 file_path.c_str(), in ReopenOrDetach()
350 file_path.c_str(), in ReopenOrDetach()
400 file_path(file_path), in FileDescriptorInfo()
[all …]
/aosp12/bionic/tools/versioner/src/
H A DVFS.cpp51 const char* file_path = ent->fts_accpath; in addDirectoryToVFS() local
52 unique_fd fd(open(file_path, O_RDONLY | O_CLOEXEC)); in addDirectoryToVFS()
54 err(1, "failed to open header '%s'", file_path); in addDirectoryToVFS()
57 auto buffer_opt = llvm::MemoryBuffer::getOpenFile(fd, file_path, -1, false, false); in addDirectoryToVFS()
59 errx(1, "failed to map header '%s'", file_path); in addDirectoryToVFS()
62 if (!vfs->addFile(file_path, ent->fts_statp->st_mtime, std::move(buffer_opt.get()))) { in addDirectoryToVFS()
63 errx(1, "failed to add file '%s'", file_path); in addDirectoryToVFS()
H A DSymbolFileParser.cpp54 : file_path(path), in SymbolFileParser()
121 file_path.c_str(), curr_line_num); in parseVersion()
138 file_path.c_str(), curr_line_num); in parseVersion()
173 file_path.c_str(), curr_line_num, visibility.c_str()); in parseVersion()
182 file_path.c_str(), curr_line_num); in parseVersion()
191 file_path.c_str(), curr_line_num); in parseVersion()
200 file_path.c_str(), curr_line_num, start_line_num); in parseVersion()
284 file_path.c_str(), curr_line_num, tag.c_str()); in parseApiLevelValue()
290 const std::string& file_path; member in __anon240560050110::SymbolFileParser
304 std::optional<SymbolMap> parseSymbolFile(const std::string& file_path, in parseSymbolFile() argument
[all …]
/aosp12/system/iorap/src/db/
H A Dclean_up.cc40 std::string file_path = raw_trace.file_path; in CleanUpFilesForActivity() local
41 LOG(DEBUG) << "Remove file: " << file_path; in CleanUpFilesForActivity()
42 std::filesystem::remove(file_path.c_str()); in CleanUpFilesForActivity()
51 std::string file_path = prefetch_file->file_path; in CleanUpFilesForActivity() local
52 LOG(DEBUG) << "Remove file: " << file_path; in CleanUpFilesForActivity()
53 std::filesystem::remove(file_path.c_str()); in CleanUpFilesForActivity()
/aosp12/system/tools/aidl/tests/
H A Dfake_io_delegate.cpp61 const string& file_path) const { in GetLineReader()
63 const auto& it = file_contents_.find(CleanPath(file_path)); in GetLineReader()
75 const std::string& file_path) const { in GetCodeWriter()
76 if (broken_files_.count(file_path) > 0) { in GetCodeWriter()
79 removed_files_.erase(file_path); in GetCodeWriter()
80 written_file_contents_[file_path] = ""; in GetCodeWriter()
81 return CodeWriter::ForString(&written_file_contents_[file_path]); in GetCodeWriter()
84 void FakeIoDelegate::RemovePath(const std::string& file_path) const { in RemovePath()
85 removed_files_.insert(file_path); in RemovePath()
/aosp12/system/core/fs_mgr/
H A Dblockdev.cpp88 static Result<uint32_t> BlockDeviceQueueDepth(const std::string& file_path) { in BlockDeviceQueueDepth() argument
90 int res = stat(file_path.c_str(), &statbuf); in BlockDeviceQueueDepth()
92 return ErrnoError() << "stat(" << file_path << ")"; in BlockDeviceQueueDepth()
95 LOG(DEBUG) << __func__ << ": " << file_path << " -> " << blockdev; in BlockDeviceQueueDepth()
99 minor(statbuf.st_dev), file_path.c_str()); in BlockDeviceQueueDepth()
125 LOG(DEBUG) << __func__ << ": " << file_path << " is backed by /dev/" << blockdev in BlockDeviceQueueDepth()
133 const std::string& file_path) { in ConfigureQueueDepth() argument
140 const Result<uint32_t> qd = BlockDeviceQueueDepth(file_path); in ConfigureQueueDepth()
/aosp12/hardware/google/pixel/thermal/utils/
H A Dthermal_files.cpp46 std::string file_path = getThermalFilePath(std::string_view(thermal_name)); in readThermalFile() local
48 if (file_path.empty()) { in readThermalFile()
53 if (!::android::base::ReadFileToString(file_path, &sensor_reading)) { in readThermalFile()
64 std::string file_path = in writeCdevFile() local
67 if (!android::base::WriteStringToFile(data.data(), file_path)) { in writeCdevFile()
/aosp12/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);
/aosp12/hardware/knowles/athletico/sound_trigger_hal/tests/
H A Dsetparamblk_test.c127 char file_path[MAX_FILE_PATH_SIZE]; in main() local
135 file_path[0] = '\0'; in main()
163 strcpy(file_path, optarg); in main()
197 if (file_path[0] == '\0') { in main()
249 file_path); in main()
254 file_path); in main()
261 response_data_size_in_words, file_path); in main()
/aosp12/system/tools/aidl/
H A Dio_delegate.cpp111 const string& file_path) const { in GetLineReader()
112 return LineReader::ReadFromFile(file_path); in GetLineReader()
182 const string& file_path) const { in GetCodeWriter()
183 if (CreateDirForPath(file_path)) { in GetCodeWriter()
184 return CodeWriter::ForFile(file_path); in GetCodeWriter()
190 void IoDelegate::RemovePath(const std::string& file_path) const { in RemovePath()
192 _unlink(file_path.c_str()); in RemovePath()
194 unlink(file_path.c_str()); in RemovePath()
/aosp12/system/ca-certificates/google/
H A Dextract_from_pem.py35 file_path = os.path.join(output_dir, '%s.%d' % (base_name, i))
36 while os.path.exists(file_path):
37 with open(file_path) as existing_file:
42 file_path = os.path.join(output_dir, '%s.%d' % (base_name, i))
43 with open(file_path, 'w') as new_file:
/aosp12/system/iorap/src/prefetcher/
H A Dprefetcher_daemon.cc151 if (command.file_path) { in operator <<()
152 os << *(command.file_path); in operator <<()
177 if (command.file_path) { in operator <<()
788 if (!file_path) { in Write()
811 if (!file_path) { in Write()
856 DCHECK(file_path.has_value()); in Write()
858 memcpy(&buf[buf_offset], file_path->c_str(), file_path->size()); in Write()
859 buf_offset += file_path->size(); in Write()
890 DCHECK(file_path.has_value()); in Write()
892 memcpy(&buf[buf_offset], file_path->c_str(), file_path->size()); in Write()
[all …]
/aosp12/system/extras/puncture_fs/
H A Dpuncture_fs.cpp78 char file_path[FILENAME_MAX]; in create_unique_file() local
83 sprintf(file_path, "%s/file_%lu", dir_path, id); in create_unique_file()
84 fd = open(file_path, O_WRONLY | O_CREAT | O_SYNC, 0777); in create_unique_file()
90 fprintf(stderr, "\nerrno: %d. Failed to create %s\n", errno, file_path); in create_unique_file()
98 errno, base_length, file_path); in create_unique_file()
108 errno, size - length, file_path); in create_unique_file()
115 fprintf(stderr, "\nFailed to close %s\n", file_path); in create_unique_file()
/aosp12/system/libziparchive/
H A Dtest_ziparchive_large.py38 file_path = tempfile.NamedTemporaryFile()
39 Zip64Test._WriteFile(file_path.name, size)
40 output_zip.write(file_path.name, arcname = name)
101 file_path = tempfile.NamedTemporaryFile(suffix='.txt')
102 self._WriteFile(file_path.name, 5000 * 1024)
108 cmd = ['zip', '-fd', zip_path.name, file_path.name]
112 self.assertEquals([file_path.name[1:]], read_names)

12345678