Home
last modified time | relevance | path

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

1234

/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp60 static inline void cleanup(const std::string& file_path, bool created) { in cleanup() argument
62 unlink(file_path.c_str()); in cleanup()
170 bool FiemapWriter::GetBlockDeviceForFile(const std::string& file_path, std::string* bdev_path, in GetBlockDeviceForFile() argument
173 if (stat(file_path.c_str(), &sb)) { in GetBlockDeviceForFile()
174 PLOG(ERROR) << "Failed to get stat for: " << file_path; in GetBlockDeviceForFile()
226 static uint64_t GetFileSize(const std::string& file_path) { in GetFileSize() argument
228 if (stat(file_path.c_str(), &sb)) { in GetFileSize()
229 PLOG(ERROR) << "Failed to get size for file: " << file_path; in GetFileSize()
236 static bool PerformFileChecks(const std::string& file_path, uint64_t* blocksz, uint32_t* fs_type) { in PerformFileChecks() argument
238 if (statfs64(file_path.c_str(), &sfs)) { in PerformFileChecks()
[all …]
Dsplit_fiemap_writer.cpp45 std::unique_ptr<SplitFiemap> SplitFiemap::Create(const std::string& file_path, uint64_t file_size, in Create() argument
49 if (!Create(file_path, file_size, max_piece_size, &ret, progress).is_ok()) { in Create()
55 FiemapStatus SplitFiemap::Create(const std::string& file_path, uint64_t file_size, in Create() argument
61 LOG(ERROR) << "Cannot create a fiemap for a 0-length file: " << file_path; in Create()
66 auto status = DetermineMaximumFileSize(file_path, &max_piece_size); in Create()
68 LOG(ERROR) << "Could not determine maximum file size for " << file_path; in Create()
74 RemoveSplitFiles(file_path); in Create()
92 out->list_file_ = file_path; in Create()
103 android::base::StringPrintf("%s.%04d", file_path.c_str(), (int)out->files_.size()); in Create()
126 PLOG(ERROR) << "Failed to open " << file_path; in Create()
[all …]
/system/iorap/src/serialize/
Dprotobuf_io.cc36 ArenaPtr<proto::TraceFile> ProtobufIO::Open(std::string file_path) { in Open() argument
39 android::base::unique_fd fd(TEMP_FAILURE_RETRY(::open(file_path.c_str(), O_RDONLY))); in Open()
41 PLOG(DEBUG) << "ProtobufIO: open failed: " << file_path; in Open()
45 return Open(fd.get(), file_path.c_str()); in Open()
48 ArenaPtr<proto::TraceFile> ProtobufIO::Open(int fd, const char* file_path) { in Open() argument
52 file_path); in Open()
57 PLOG(ERROR) << "ProtobufIO: open error, fstat failed: " << file_path; in Open()
69 PLOG(ERROR) << "ProtobufIO: open error, mmap failed: " << file_path; in Open()
75 LOG(ERROR) << "ProtobufIO: open error, failed to create arena: " << file_path; in Open()
82 LOG(ERROR) << "ProtobufIO: open error, protobuf parsing failed: " << file_path; in Open()
[all …]
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>");
/system/apex/apexd/
Dapex_file_test.cpp54 const std::string file_path = kTestDataDir + GetParam().prefix + ".apex"; in TEST_P() local
55 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
62 int32_t rc = OpenArchive(file_path.c_str(), &handle); in TEST_P()
82 const std::string file_path = kTestDataDir + "missing.apex"; in TEST() local
83 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST()
90 const std::string file_path = kTestDataDir + GetParam().prefix + ".apex"; in TEST_P() local
91 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
98 const std::string file_path = kTestDataDir + GetParam().prefix + ".apex"; in TEST_P() local
99 Result<ApexFile> apex_file = ApexFile::Open(file_path); in TEST_P()
123 const std::string file_path = kTestDataDir + GetParam().prefix + ".apex"; in TEST_P() local
[all …]
Dapexd_test.cpp764 std::string file_path = AddPreInstalledApex("apex.apexd_test.apex"); in TEST_F() local
767 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
768 UnmountOnTearDown(file_path); in TEST_F()
785 std::string file_path = AddPreInstalledApex("test.rebootless_apex_v1.apex"); in TEST_F() local
788 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
789 UnmountOnTearDown(file_path); in TEST_F()
799 std::string file_path = AddPreInstalledApex("test.rebootless_apex_v1.apex"); in TEST_F() local
810 std::string file_path = AddPreInstalledApex("test.rebootless_apex_v1.apex"); in TEST_F() local
813 ASSERT_TRUE(IsOk(ActivatePackage(file_path))); in TEST_F()
814 UnmountOnTearDown(file_path); in TEST_F()
[all …]
/system/linkerconfig/
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()
168 return ErrnoError() << "Failed to write content to " << file_path; in WriteConfigurationToFile()
174 Result<void> UpdatePermission([[maybe_unused]] const std::string& file_path) { in UpdatePermission() argument
177 file_path.c_str(), in UpdatePermission()
180 return ErrnoError() << "Failed to update permission of " << file_path; in UpdatePermission()
235 std::string file_path = ""; in GenerateConfiguration() local
237 file_path = dir_path + "/ld.config.txt"; in GenerateConfiguration()
[all …]
/system/iorap/src/db/
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()
/system/core/fs_mgr/libfiemap/include/libfiemap/
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
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);
/system/tools/aidl/tests/
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()
/system/ca-certificates/google/
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:
/system/sepolicy/build/
Dfile_utils.py23 def make_parent_dirs(file_path): argument
25 if os.path.exists(file_path):
28 parent_dir = os.path.dirname(file_path)
/system/tools/aidl/
Dline_reader.cpp43 bool Init(const std::string& file_path) { in Init() argument
44 input_stream_.open(file_path, ifstream::in | ifstream::binary); in Init()
85 unique_ptr<LineReader> LineReader::ReadFromFile(const string& file_path) { in ReadFromFile() argument
88 if (file_reader->Init(file_path)) { in ReadFromFile()
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()
Dio_delegate.h54 const std::string& file_path) const;
59 const std::string& file_path) const;
61 virtual void RemovePath(const std::string& file_path) const;
/system/linkerconfig/generator/
Dlibrarylistloader.cc37 Result<LibraryList> GetLibrariesFromFile(std::string file_path) { in GetLibrariesFromFile() argument
38 auto cached_data = library_file_cache.find(file_path); in GetLibrariesFromFile()
45 std::ifstream library_file(file_path.c_str(), std::ifstream::in); in GetLibrariesFromFile()
48 return ErrnoErrorf("Failed to open file {}", file_path); in GetLibrariesFromFile()
58 library_file_cache.insert({file_path, library_list}); in GetLibrariesFromFile()
/system/linkerconfig/modules/tests/
Dapex_testbase.h61 std::string file_path = root + file; in WriteFile() local
62 Mkdir(::android::base::Dirname(file_path)); in WriteFile()
63 ASSERT_TRUE(::android::base::WriteStringToFile(content, file_path)) in WriteFile()
64 << "Failed to write a file: " << file_path; in WriteFile()
/system/extras/puncture_fs/
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()
/system/libziparchive/
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)
/system/update_engine/common/
Dfile_fetcher.cc71 string file_path; in BeginTransfer() local
75 file_path = url; in BeginTransfer()
78 file_path = url.substr(strlen("file://")); in BeginTransfer()
80 brillo::FileStream::Open(base::FilePath(file_path), in BeginTransfer()
87 LOG(ERROR) << "Couldn't open " << file_path; in BeginTransfer()
/system/extras/simpleperf/
DJITDebugReader.h59 std::string file_path; member
68 const std::string& file_path, uint64_t file_offset) in JITDebugInfo()
74 file_path(file_path), in JITDebugInfo()
78 const std::string& file_path, in JITDebugInfo()
84 file_path(file_path), in JITDebugInfo()
/system/iorap/src/prefetcher/
Dprefetcher_daemon.cc151 if (command.file_path) { in operator <<()
152 os << *(command.file_path); in operator <<()
177 if (command.file_path) { in operator <<()
178 os << "'" << *(command.file_path) << "'"; in operator <<()
661 cmd.file_path = parsed_file_path.value; in Read()
739 cmd.file_path = parsed_description.value; in Read()
788 if (!file_path) { in Write()
793 space_requirement += file_path->size(); // string contents in Write()
811 if (!file_path) { in Write()
816 space_requirement += file_path->size(); // string contents in Write()
[all …]
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py144 def _get_file_stripped_level(self, file_path): argument
146 sections = self.readelf.get_sections(file_path)
186 def _read_build_id(self, file_path): argument
188 return self.readelf.get_build_id(file_path)
204 file_path = os.path.join(self.binary_cache_dir, 'kallsyms')
205 if os.path.isfile(file_path):
206 os.remove(file_path)
209 self.adb.run(['pull', '/proc/kallsyms', file_path])
/system/apex/libs/libapexutil/
Dapexutil_test.cpp55 void WriteFile(std::string file_path, std::string content) { in WriteFile() argument
56 ASSERT_TRUE(WriteStringToFile(content, file_path)) in WriteFile()
57 << "Failed to write a file: " << file_path; in WriteFile()

1234