/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer.cpp | 60 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 …]
|
D | split_fiemap_writer.cpp | 45 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/linkerconfig/ |
D | main.cc | 150 std::string file_path) { in WriteConfigurationToFile() argument 154 if (file_path != "") { in WriteConfigurationToFile() 155 file_out.open(file_path); in WriteConfigurationToFile() 157 return ErrnoError() << "Failed to open file " << file_path; in WriteConfigurationToFile() 167 return ErrnoError() << "Failed to write content to " << file_path; in WriteConfigurationToFile() 173 Result<void> UpdatePermission([[maybe_unused]] const std::string& file_path) { in UpdatePermission() argument 176 file_path.c_str(), in UpdatePermission() 179 return ErrnoError() << "Failed to update permission of " << file_path; in UpdatePermission() 217 std::string file_path = ""; in GenerateConfiguration() local 219 file_path = dir_path + "/ld.config.txt"; in GenerateConfiguration() [all …]
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
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
|
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);
|
/system/tools/aidl/tests/ |
D | fake_io_delegate.cpp | 60 const string& file_path) const { in GetLineReader() 62 const auto& it = file_contents_.find(CleanPath(file_path)); in GetLineReader() 74 const std::string& file_path) const { in GetCodeWriter() 75 if (broken_files_.count(file_path) > 0) { in GetCodeWriter() 78 removed_files_.erase(file_path); in GetCodeWriter() 79 written_file_contents_[file_path] = ""; in GetCodeWriter() 80 return CodeWriter::ForString(&written_file_contents_[file_path]); in GetCodeWriter() 83 void FakeIoDelegate::RemovePath(const std::string& file_path) const { in RemovePath() 84 removed_files_.insert(file_path); in RemovePath()
|
D | fake_io_delegate.h | 48 const std::string& file_path) const override; 51 const std::string& file_path) const override; 52 void RemovePath(const std::string& file_path) const override;
|
/system/ca-certificates/google/ |
D | extract_from_pem.py | 35 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/linkerconfig/modules/tests/ |
D | apex_testbase.h | 59 std::string file_path = root + file; in WriteFile() local 60 Mkdir(::android::base::Dirname(file_path)); in WriteFile() 61 ASSERT_TRUE(::android::base::WriteStringToFile(content, file_path)) in WriteFile() 62 << "Failed to write a file: " << file_path; in WriteFile()
|
/system/tools/aidl/ |
D | io_delegate.cpp | 108 const string& file_path) const { in GetLineReader() 109 return LineReader::ReadFromFile(file_path); in GetLineReader() 180 const string& file_path) const { in GetCodeWriter() 181 if (CreateDirForPath(file_path)) { in GetCodeWriter() 182 return CodeWriter::ForFile(file_path); in GetCodeWriter() 188 void IoDelegate::RemovePath(const std::string& file_path) const { in RemovePath() 190 _unlink(file_path.c_str()); in RemovePath() 192 unlink(file_path.c_str()); in RemovePath()
|
D | line_reader.cpp | 43 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()
|
D | io_delegate.h | 52 const std::string& file_path) const; 57 const std::string& file_path) const; 59 virtual void RemovePath(const std::string& file_path) const;
|
D | aidl_to_cpp_common.cpp | 57 std::string file_path = defined_type.GetPackage(); in HeaderFile() local 58 for (char& c : file_path) { in HeaderFile() 63 if (!file_path.empty()) { in HeaderFile() 64 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/'; in HeaderFile() 66 file_path += ClassName(defined_type, class_type); in HeaderFile() 67 file_path += ".h"; in HeaderFile() 69 return file_path; in HeaderFile()
|
/system/sepolicy/build/ |
D | file_utils.py | 23 def make_parent_dirs(file_path): argument 25 if os.path.exists(file_path): 28 parent_dir = os.path.dirname(file_path)
|
/system/linkerconfig/generator/ |
D | librarylistloader.cc | 37 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/extras/simpleperf/ |
D | JITDebugReader.h | 56 std::string file_path; member 65 const std::string& file_path, uint64_t file_offset) in JITDebugInfo() 71 file_path(file_path), in JITDebugInfo() 75 const std::string& file_path, in JITDebugInfo() 81 file_path(file_path), in JITDebugInfo()
|
D | read_dex_file.cpp | 79 bool ReadSymbolsFromDexFile(const std::string& file_path, in ReadSymbolsFromDexFile() argument 82 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(file_path.c_str(), O_RDONLY | O_CLOEXEC))); in ReadSymbolsFromDexFile() 90 art_api::dex::DexFile::OpenFromFd(fd, offset, file_path, &error_msg); in ReadSymbolsFromDexFile() 92 LOG(WARNING) << "Failed to read dex file symbols from '" << file_path in ReadSymbolsFromDexFile()
|
/system/extras/puncture_fs/ |
D | puncture_fs.cpp | 78 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/ |
D | test_ziparchive_large.py | 38 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/ |
D | file_fetcher.cc | 71 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/scripts/ |
D | binary_cache_builder.py | 141 def _get_file_stripped_level(self, file_path): argument 143 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) 206 file_path = os.path.join(self.binary_cache_dir, 'kallsyms') 207 if os.path.isfile(file_path): 208 os.remove(file_path) 211 self.adb.run(['pull', '/proc/kallsyms', file_path])
|
/system/apex/libs/libapexutil/ |
D | apexutil_test.cpp | 55 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()
|
/system/tools/sysprop/include/ |
D | Common.h | 31 const std::string& file_path); 33 const std::string& file_path);
|
/system/bt/gd/hal/ |
D | snoop_logger.cc | 74 std::ifstream btsnoop_istream(file_path); in SnoopLogger() 77 btsnoop_ostream_.open(file_path, std::ios::binary | std::ios::app | std::ios::out); in SnoopLogger() 87 file_path = filename; in SetFilePath() 134 std::string SnoopLogger::file_path = SnoopLogger::DefaultFilePath; member in bluetooth::hal::SnoopLogger
|
/system/extras/libjsonpb/verify/include/jsonpb/ |
D | json_schema_test.h | 45 virtual std::string file_path() const = 0; 63 std::string file_path() const override { return file_path_; } in file_path() function 82 file_path_ = config->file_path(); in SetUp()
|