/system/core/adb/ |
D | adb_io.h | 28 bool SendOkay(borrowed_fd fd); 31 bool SendFail(borrowed_fd fd, std::string_view reason); 34 bool SendProtocolString(borrowed_fd fd, std::string_view s); 37 bool ReadProtocolString(borrowed_fd fd, std::string* s, std::string* error); 45 bool ReadFdExactly(borrowed_fd fd, void* buf, size_t len); 63 bool ReadOrderlyShutdown(borrowed_fd fd); 70 bool WriteFdExactly(borrowed_fd fd, const void* buf, size_t len); 73 bool WriteFdExactly(borrowed_fd fd, const char* s); 74 bool WriteFdExactly(borrowed_fd fd, const std::string& s); 77 bool WriteFdFmt(borrowed_fd fd, const char* fmt, ...) __attribute__((__format__(__printf__, 2, 3)));
|
D | adb_io.cpp | 37 bool SendProtocolString(borrowed_fd fd, std::string_view s) { in SendProtocolString() 50 bool ReadProtocolString(borrowed_fd fd, std::string* s, std::string* error) { in ReadProtocolString() 68 bool SendOkay(borrowed_fd fd) { in SendOkay() 72 bool SendFail(borrowed_fd fd, std::string_view reason) { in SendFail() 76 bool ReadFdExactly(borrowed_fd fd, void* buf, size_t len) { in ReadFdExactly() 103 bool WriteFdExactly(borrowed_fd fd, const void* buf, size_t len) { in WriteFdExactly() 132 bool WriteFdExactly(borrowed_fd fd, const char* str) { in WriteFdExactly() 136 bool WriteFdExactly(borrowed_fd fd, const std::string& str) { in WriteFdExactly() 140 bool WriteFdFmt(borrowed_fd fd, const char* fmt, ...) { in WriteFdFmt() 151 bool ReadOrderlyShutdown(borrowed_fd fd) { in ReadOrderlyShutdown()
|
D | sysdeps.h | 85 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec() 102 extern int adb_read(borrowed_fd fd, void* buf, int len); 103 extern int adb_pread(borrowed_fd fd, void* buf, int len, off64_t offset); 104 extern int adb_write(borrowed_fd fd, const void* buf, int len); 105 extern int adb_pwrite(borrowed_fd fd, const void* buf, int len, off64_t offset); 106 extern int64_t adb_lseek(borrowed_fd fd, int64_t pos, int where); 107 extern int adb_shutdown(borrowed_fd fd, int direction = SHUT_RDWR); 110 extern HANDLE adb_get_os_handle(borrowed_fd fd); 123 extern int unix_read_interruptible(borrowed_fd fd, void* buf, size_t len); 126 static inline int unix_read(borrowed_fd fd, void* buf, size_t len) { in unix_read() [all …]
|
D | shell_protocol.h | 64 explicit ShellProtocol(borrowed_fd fd); 107 borrowed_fd fd_;
|
D | sysdeps_unix.cpp | 19 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec) { in set_tcp_keepalive() 60 static __inline__ void disable_close_on_exec(borrowed_fd fd) { in disable_close_on_exec()
|
D | adb_unique_fd.h | 35 using android::base::borrowed_fd;
|
D | shell_service_protocol.cpp | 25 ShellProtocol::ShellProtocol(borrowed_fd fd) : fd_(fd) { in ShellProtocol()
|
/system/libbase/ |
D | abi_compatibility.cpp | 35 return SendFileDescriptorVector(borrowed_fd(sockfd), data, len, fds); in SendFileDescriptorVector() 40 return ReceiveFileDescriptorVector(borrowed_fd(sockfd), data, len, max_fds, fds); in ReceiveFileDescriptorVector() 45 return ReadFdToString(borrowed_fd(fd), content); in ReadFdToString() 49 return WriteStringToFd(content, borrowed_fd(fd)); in WriteStringToFd() 53 return ReadFully(borrowed_fd(fd), data, byte_count); in ReadFully() 57 return ReadFullyAtOffset(borrowed_fd(fd), data, byte_count, offset); in ReadFullyAtOffset() 61 return WriteFully(borrowed_fd(fd), data, byte_count); in WriteFully()
|
D | file.cpp | 217 bool ReadFdToString(borrowed_fd fd, std::string* content) { in ReadFdToString() 247 bool WriteStringToFd(const std::string& content, borrowed_fd fd) { in WriteStringToFd() 310 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count) { in ReadFully() 325 static ssize_t pread(borrowed_fd fd, void* data, size_t byte_count, off64_t offset) { in pread() 341 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() 353 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count) { in WriteFully()
|
/system/core/adb/fastdeploy/deploypatchgenerator/ |
D | patch_utils.h | 43 static void WriteSignature(android::base::borrowed_fd output); 47 static void WriteLong(int64_t value, android::base::borrowed_fd output); 51 static void WriteString(const std::string& value, android::base::borrowed_fd output); 55 static void Pipe(android::base::borrowed_fd input, android::base::borrowed_fd output,
|
D | patch_utils.cpp | 81 void PatchUtils::WriteSignature(borrowed_fd output) { in WriteSignature() 85 void PatchUtils::WriteLong(int64_t value, borrowed_fd output) { in WriteLong() 90 void PatchUtils::WriteString(const std::string& value, android::base::borrowed_fd output) { in WriteString() 95 void PatchUtils::Pipe(borrowed_fd input, borrowed_fd output, size_t amount) { in Pipe()
|
D | deploy_patch_generator.h | 51 android::base::borrowed_fd output); 76 android::base::borrowed_fd output); 105 android::base::borrowed_fd output);
|
D | deploy_patch_generator.cpp | 103 static void WritePatchEntry(const PatchEntry& patchEntry, borrowed_fd input, borrowed_fd output, in WritePatchEntry() 125 const std::string& deviceApkPath, borrowed_fd output) { in GeneratePatch() 179 android::base::borrowed_fd output) { in CreatePatch() 185 borrowed_fd output) { in CreatePatch()
|
/system/libbase/include/android-base/ |
D | file.h | 81 bool ReadFdToString(borrowed_fd fd, std::string* content); 87 bool WriteStringToFd(const std::string& content, borrowed_fd fd); 95 bool ReadFully(borrowed_fd fd, void* data, size_t byte_count); 105 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset); 107 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count);
|
D | cmsg.h | 54 ssize_t SendFileDescriptorVector(borrowed_fd sock, const void* data, size_t len, 61 ssize_t ReceiveFileDescriptorVector(borrowed_fd sock, void* data, size_t len, size_t max_fds, 67 ssize_t SendFileDescriptors(borrowed_fd sock, const void* data, size_t len, Args&&... sent_fds) { in SendFileDescriptors() 82 ssize_t ReceiveFileDescriptors(borrowed_fd sock, void* data, size_t len, Args&&... received_fds) { in ReceiveFileDescriptors()
|
D | unique_fd.h | 263 struct borrowed_fd { struct 264 /* implicit */ borrowed_fd(int fd) : fd_(fd) {} // NOLINT in borrowed_fd() function 266 /* implicit */ borrowed_fd(const unique_fd_impl<T>& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd() function
|
/system/core/adb/client/ |
D | incremental_utils.h | 40 std::vector<int32_t> PriorityBlocksForFile(const std::string& filepath, borrowed_fd fd, 46 std::pair<std::vector<char>, int32_t> read_id_sig_headers(borrowed_fd fd); 47 std::pair<off64_t, ssize_t> skip_id_sig_headers(borrowed_fd fd);
|
D | incremental_utils.cpp | 66 static inline int32_t read_int32(borrowed_fd fd) { in read_int32() 71 static inline int32_t skip_int(borrowed_fd fd) { in skip_int() 75 static inline void append_int(borrowed_fd fd, std::vector<char>* bytes) { in append_int() 82 static inline void append_bytes_with_size(borrowed_fd fd, std::vector<char>* bytes) { in append_bytes_with_size() 94 static inline int32_t skip_bytes_with_size(borrowed_fd fd) { in skip_bytes_with_size() 103 std::pair<std::vector<char>, int32_t> read_id_sig_headers(borrowed_fd fd) { in read_id_sig_headers() 113 std::pair<off64_t, ssize_t> skip_id_sig_headers(borrowed_fd fd) { in skip_id_sig_headers() 123 static T valueAt(borrowed_fd fd, off64_t offset) { in valueAt() 151 static off64_t CentralDirOffset(borrowed_fd fd, Size fileSize) { in CentralDirOffset() 186 static off64_t SignerBlockOffset(borrowed_fd fd, Size fileSize) { in SignerBlockOffset() [all …]
|
/system/core/adb/daemon/ |
D | shell_service.h | 51 using Command = int(std::string_view args, borrowed_fd in, borrowed_fd out, borrowed_fd err);
|
D | abb.cpp | 33 explicit AdbFdTextOutput(borrowed_fd fd) : fd_(fd) {} in AdbFdTextOutput() 48 borrowed_fd fd_; 72 static int execCmd(std::string_view args, borrowed_fd in, borrowed_fd out, borrowed_fd err) { in execCmd()
|
/system/core/adb/sysdeps/ |
D | uio.h | 31 ssize_t adb_writev(borrowed_fd fd, const adb_iovec* iov, int iovcnt); 37 inline ssize_t adb_writev(borrowed_fd fd, const adb_iovec* iov, int iovcnt) { in adb_writev()
|
/system/extras/partition_tools/ |
D | lpadd.cc | 28 using android::base::borrowed_fd; 87 LocalSuperOpener(const std::string& path, borrowed_fd fd) in LocalSuperOpener() 99 borrowed_fd local_super_fd_; 114 bool WritePartition(borrowed_fd fd, uint64_t file_size, const std::string& partition_name); 115 bool WriteExtent(borrowed_fd fd, uint64_t file_size, const LpMetadataExtent& extent); 120 bool MaybeUnsparse(const std::string& file, borrowed_fd fd, 244 bool SuperHelper::MaybeUnsparse(const std::string& file, borrowed_fd fd, in MaybeUnsparse() 295 bool SuperHelper::WritePartition(borrowed_fd fd, uint64_t file_size, in WritePartition() 318 bool SuperHelper::WriteExtent(borrowed_fd fd, uint64_t file_size, const LpMetadataExtent& extent) { in WriteExtent() 357 static bool Truncate(borrowed_fd fd) { in Truncate()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | loop_control.h | 67 LoopDevice(android::base::borrowed_fd fd, const std::chrono::milliseconds& timeout_ms, 85 android::base::borrowed_fd fd_;
|
/system/core/adb/tls/ |
D | tls_connection.cpp | 27 using android::base::borrowed_fd; 39 borrowed_fd fd); 78 borrowed_fd fd_; 84 borrowed_fd fd) in TlsConnectionImpl() 363 std::string_view priv_key, borrowed_fd fd) { in Create()
|
/system/incremental_delivery/incfs/include/ |
D | MountRegistry.h | 74 static Mounts load(base::borrowed_fd fd, std::string_view filesystem); 75 bool loadFrom(base::borrowed_fd fd, std::string_view filesystem);
|