/packages/modules/adb/ |
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 | 96 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec() 127 static inline int unix_close(int fd) { in unix_close() 137 static inline int unix_read(borrowed_fd fd, void* buf, size_t len) { in unix_read() 148 static inline int unix_write(borrowed_fd fd, const void* buf, size_t len) { in unix_write() 158 static inline int unix_lseek(borrowed_fd fd, int pos, int where) { in unix_lseek() 243 int fd; member 383 inline HANDLE cast_int_to_handle(const int fd) { in cast_int_to_handle() 438 static inline int get_fd_flags(borrowed_fd fd) { in get_fd_flags() 442 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec() 486 int fd = TEMP_FAILURE_RETRY(open(pathname, options)); in adb_open() local [all …]
|
D | services.cpp | 47 unique_fd fd) { in service_bootstrap_func() 137 static void connect_service(unique_fd fd, std::string host) { in connect_service() 149 static void pair_service(unique_fd fd, std::string host, std::string password) { in pair_service() 159 static void wait_service(unique_fd fd, std::string serial, TransportId transport_id, in wait_service() 262 unique_fd fd = in host_service_to_socket() local 268 unique_fd fd = create_service_thread( in host_service_to_socket() local 278 unique_fd fd = create_service_thread( in host_service_to_socket() local
|
D | sysdeps_unix.cpp | 24 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec) { in set_tcp_keepalive() 65 static __inline__ void disable_close_on_exec(borrowed_fd fd) { in disable_close_on_exec() 93 for (auto fd : fds_to_inherit) { in adb_launch_process() local 112 std::optional<ssize_t> network_peek(borrowed_fd fd) { in network_peek()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/ |
D | OsAccess.java | 32 public abstract void close(ParcelFileDescriptor fd); in close() 35 public abstract String getFileDebugName(ParcelFileDescriptor fd); in getFileDebugName() 38 public abstract FileDescriptor getInnerFileDescriptor(ParcelFileDescriptor fd); in getInnerFileDescriptor() 47 public abstract int read(FileDescriptor fd, byte[] buffer, int pos, int len) in read() 56 public abstract int write(FileDescriptor fd, byte[] buffer, int pos, int len) in write() 60 public abstract void setNonBlocking(FileDescriptor fd) throws IOException; in setNonBlocking()
|
/packages/modules/adb/daemon/ |
D | restart_service.cpp | 31 void restart_root_service(unique_fd fd) { in restart_root_service() 46 void restart_unroot_service(unique_fd fd) { in restart_unroot_service() 57 void restart_tcp_service(unique_fd fd, int port) { in restart_tcp_service() 68 void restart_usb_service(unique_fd fd) { in restart_usb_service()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 128 public static TcpKeepalivePacketData getTcpKeepalivePacket(@NonNull FileDescriptor fd) in getTcpKeepalivePacket() 219 private static TcpKeepalivePacketDataParcelable switchToRepairMode(FileDescriptor fd) in switchToRepairMode() 321 private static void switchOutOfRepairMode(@NonNull final FileDescriptor fd) { in switchOutOfRepairMode() 338 public void startSocketMonitor( in startSocketMonitor() 376 final FileDescriptor fd; in stopSocketMonitor() local 395 private static boolean isSocketIdle(FileDescriptor fd) throws ErrnoException { in isSocketIdle() 399 private static boolean isReceiveQueueEmpty(FileDescriptor fd) in isReceiveQueueEmpty() 409 private static boolean isSendQueueEmpty(FileDescriptor fd) in isSendQueueEmpty() 419 private static void dropAllIncomingPackets(FileDescriptor fd, boolean enable) in dropAllIncomingPackets()
|
/packages/modules/Virtualization/libs/authfs_aidl_interface/com/android/virt/fs/ |
D | IVirtFdService.aidl | 36 byte[] readFile(int fd, long offset, int size); in readFile() 42 byte[] readFsverityMerkleTree(int fd, long offset, int size); in readFsverityMerkleTree() 45 byte[] readFsveritySignature(int fd); in readFsveritySignature() 51 int writeFile(int fd, in byte[] buf, long offset); in writeFile() 54 void resize(int fd, long size); in resize() 57 long getFileSize(int fd); in getFileSize() 105 void chmod(int fd, int mode); in chmod()
|
/packages/modules/Bluetooth/system/gd/hal/ |
D | syscall_wrapper_impl.cc | 34 int SyscallWrapperImpl::Bind(int fd, const struct sockaddr* addr, socklen_t len) { in Bind() 40 int SyscallWrapperImpl::Connect(int fd, const struct sockaddr* addr, socklen_t len) { in Connect() 46 ssize_t SyscallWrapperImpl::Send(int fd, const void* buf, size_t n, int flags) { in Send() 52 ssize_t SyscallWrapperImpl::Recv(int fd, void* buf, size_t n, int flags) { in Recv() 58 int SyscallWrapperImpl::Setsockopt(int fd, int level, int optname, const void* optval, in Setsockopt() 65 int SyscallWrapperImpl::Listen(int fd, int n) { in Listen() 71 int SyscallWrapperImpl::Accept(int fd, struct sockaddr* addr, socklen_t* addr_len, int flags) { in Accept() 77 ssize_t SyscallWrapperImpl::Write(int fd, const void* buf, size_t count) { in Write() 83 int SyscallWrapperImpl::Close(int fd) { in Close()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/ |
D | FakeOsAccess.java | 74 public FileDescriptor getInnerFileDescriptor(ParcelFileDescriptor fd) { in getInnerFileDescriptor() 83 public void close(ParcelFileDescriptor fd) { in close() 97 public synchronized void close(FileDescriptor fd) { in close() 109 private File getFile(String func, FileDescriptor fd) throws IOException { in getFile() 117 private File getFileOrNull(FileDescriptor fd) { in getFileOrNull() 122 public String getFileDebugName(ParcelFileDescriptor fd) { in getFileDebugName() 126 public String getFileDebugName(FileDescriptor fd) { in getFileDebugName() 149 public synchronized void setFileName(FileDescriptor fd, String name) { in setFileName() 157 public synchronized void setNonBlocking(FileDescriptor fd) throws IOException { in setNonBlocking() 163 public synchronized int read(FileDescriptor fd, byte[] buffer, int pos, int len) in read() [all …]
|
/packages/modules/adb/client/ |
D | incremental_utils.cpp | 67 static inline int32_t read_int32(borrowed_fd fd) { in read_int32() 72 static inline int32_t skip_int(borrowed_fd fd) { in skip_int() 76 static inline void append_int(borrowed_fd fd, std::vector<char>* bytes) { in append_int() 83 static inline bool append_bytes_with_size(borrowed_fd fd, std::vector<char>* bytes, in append_bytes_with_size() 104 static inline int32_t skip_bytes_with_size(borrowed_fd fd) { in skip_bytes_with_size() 113 std::pair<std::vector<char>, int32_t> read_id_sig_headers(borrowed_fd fd) { in read_id_sig_headers() 127 std::pair<off64_t, ssize_t> skip_id_sig_headers(borrowed_fd fd) { in skip_id_sig_headers() 137 static T valueAt(borrowed_fd fd, off64_t offset) { in valueAt() 165 static off64_t CentralDirOffset(borrowed_fd fd, Size fileSize) { in CentralDirOffset() 200 static off64_t SignerBlockOffset(borrowed_fd fd, Size fileSize) { in SignerBlockOffset() [all …]
|
D | adb_client.cpp | 81 static std::optional<TransportId> switch_socket_transport(int fd, std::string* error) { in switch_socket_transport() 137 bool adb_status(borrowed_fd fd, std::string* error) { in adb_status() 167 unique_fd fd; in _adb_connect() local 201 unique_fd fd; in adb_kill_server() local 255 unique_fd fd(_adb_connect("host:version", nullptr, error)); in __adb_check_server_version() local 370 unique_fd fd(_adb_connect(service, transport, error, force_switch_device)); in adb_connect() local 383 unique_fd fd(adb_connect(service, &error)); in adb_command() local 401 unique_fd fd(adb_connect(nullptr, service, error, force_switch_device)); in adb_query() local
|
/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/ |
D | MappedFileSharedMemoryTest.cpp | 38 unique_fd fd(-1); in TEST() local 46 unique_fd fd(0); in TEST() local 53 borrowed_fd fd(0); in TEST() local 67 unique_fd fd(ashmem_create_region("SharedMemory", TEST_SIZE)); in TEST() local 111 unique_fd fd(ashmem_create_region("SharedMemory", TEST_SIZE)); in TEST() local 131 unique_fd fd(ashmem_create_region("SharedMemory", TEST_SIZE)); in TEST() local 157 int fd = sm.getFd(); in TEST() local
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkUtils.java | 55 public static native void attachDropAllBPFFilter(FileDescriptor fd) throws SocketException; in attachDropAllBPFFilter() 61 public static native void detachBPFFilter(FileDescriptor fd) throws SocketException; in detachBPFFilter() 98 private static native int bindSocketToNetworkHandle(FileDescriptor fd, long netHandle); in bindSocketToNetworkHandle() 105 public static int bindSocketToNetwork(FileDescriptor fd, int netId) { in bindSocketToNetwork() 153 public static native DnsResolver.DnsResponse resNetworkResult(FileDescriptor fd) in resNetworkResult() 160 public static native void resNetworkCancel(FileDescriptor fd); in resNetworkCancel() 174 public static native TcpRepairWindow getTcpRepairWindow(FileDescriptor fd) in getTcpRepairWindow() 438 public static native void setsockoptBytes(FileDescriptor fd, int level, int option, in setsockoptBytes() 454 public static native long getSocketCookie(FileDescriptor fd) throws ErrnoException; in getSocketCookie()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/ |
D | NetlinkUtils.java | 129 public static void receiveNetlinkAck(final FileDescriptor fd) in receiveNetlinkAck() 165 final FileDescriptor fd = netlinkSocketForProto(nlProto, SOCKET_RECV_BUFSIZE); in sendOneShotKernelMessage() local 239 final FileDescriptor fd = Os.socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, nlProto); in netlinkSocketForProto() local 274 public static void connectToKernel(@NonNull FileDescriptor fd) in connectToKernel() 291 public static ByteBuffer recvMessage(FileDescriptor fd, int bufsize, long timeoutMs) in recvMessage() 315 FileDescriptor fd, byte[] bytes, int offset, int count, long timeoutMs) in sendMessage() 340 FileDescriptor fd, byte[] dumpRequestMessage, int nlFamily, Class<T> msgClass, in getAndProcessNetlinkDumpMessagesWithFd() 398 final FileDescriptor fd = netlinkSocketForProto(nlFamily, SOCKET_DUMP_RECV_BUFSIZE); in getAndProcessNetlinkDumpMessages() local 466 private static void closeSocketQuietly(final FileDescriptor fd) { in closeSocketQuietly()
|
/packages/services/Car/cpp/car_binder_lib/largeParcelable/ |
D | SharedMemory.cpp | 43 SharedMemory::SharedMemory(unique_fd fd) : mBorrowedFd(-1), mOwned(true) { in SharedMemory() 60 SharedMemory::SharedMemory(borrowed_fd fd) : mBorrowedFd(-1), mOwned(false) { in SharedMemory() 77 int fd = ashmem_create_region("SharedMemory", size); in SharedMemory() local
|
/packages/modules/NetworkStack/src/com/android/networkstack/util/ |
D | NetworkStackUtils.java | 521 public static native void attachDhcpFilter(FileDescriptor fd) throws ErrnoException; in attachDhcpFilter() 527 public static native void attachRaFilter(FileDescriptor fd) throws ErrnoException; in attachRaFilter() 536 public static native void attachControlPacketFilter(FileDescriptor fd) throws ErrnoException; in attachControlPacketFilter() 542 String ifname, FileDescriptor fd) throws IOException { in addArpEntry() 543 addArpEntry(ethAddr.toByteArray(), ipv4Addr.getAddress(), ifname, fd); in addArpEntry() local 554 public static native void attachEgressIgmpReportFilter(FileDescriptor fd) throws ErrnoException; in attachEgressIgmpReportFilter() 565 FileDescriptor fd) throws ErrnoException; in attachEgressMulticastReportFilter() 568 FileDescriptor fd) throws IOException; in addArpEntry()
|
/packages/modules/NetworkStack/jni/ |
D | network_stack_utils_jni.cpp | 83 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_addArpEntry() local 121 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachDhcpFilter() local 162 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_units_attachEgressIgmpReportFilter() local 230 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_units_attachEgressMulticastReportFilter() local 257 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachRaFilter() local 328 int fd = netjniutils::GetNativeFileDescriptor(env, javaFd); in network_stack_utils_attachControlPacketFilter() local
|
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/ |
D | linux_fileops.cc | 35 LinuxFileOps::FDCloser::FDCloser(int fd) : fd_(fd) {} in FDCloser() 56 int fd = Release(); in Close() local 73 bool LinuxFileOps::CloseFD(int fd) { in CloseFD()
|
/packages/modules/adb/test_utils/ |
D | test_utils.cpp | 31 std::string ReadRaw(android::base::borrowed_fd fd) { in ReadRaw() 47 int ReadShellProtocol(android::base::borrowed_fd fd, std::string* std_out, std::string* std_err) { in ReadShellProtocol() 104 int GetUnassignedPort(android::base::unique_fd& fd) { in GetUnassignedPort()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ |
D | IpSecXfrmController.java | 110 final FileDescriptor fd = in newNetlinkSocket() local 121 public void releaseNetlinkSocket(FileDescriptor fd) { in releaseNetlinkSocket() 126 public void sendMessage(FileDescriptor fd, byte[] bytes) in sendMessage() 132 public ByteBuffer recvMessage(FileDescriptor fd) in recvMessage()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | Fd.h | 33 constexpr Fd(int fd) : mFd(fd) {} in Fd() 45 inline bool isWellFormed(const Fd fd) { in isWellFormed()
|
/packages/services/Car/cpp/libsysfsmonitor/src/ |
D | SysfsMonitor.cpp | 77 Result<void> SysfsMonitor::registerFd(int32_t fd) { in registerFd() 98 Result<void> SysfsMonitor::unregisterFd(int32_t fd) { in unregisterFd() 128 int fd = events[i].data.fd; in observe() local
|
/packages/modules/Connectivity/tests/cts/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 38 int getAsyncResponse(int fd, int timeoutMs, int* rcode, uint8_t* buf, size_t bufLen) { in getAsyncResponse() 79 void expectAnswersValid(int fd, int ipType, int expectedRcode) { in expectAnswersValid() 96 void expectAnswersNotValid(int fd, int expectedErrno) { in expectAnswersNotValid() 198 int fd = android_res_nquery( in TEST_F() local 211 int fd = android_res_nquery( in TEST_F() local 230 int fd = android_res_nsend(NETWORK_UNSPECIFIED, buf, 10, 0); in TEST_F() local
|
/packages/modules/Bluetooth/system/gd/os/fake_timer/ |
D | fake_timerfd.cc | 31 int fd; member in bluetooth::os::fake_timer::FakeTimerFd 46 int fd = eventfd(0, EFD_SEMAPHORE); in fake_timerfd_create() local 57 int fake_timerfd_settime(int fd, int /* flags */, const struct itimerspec* new_value, in fake_timerfd_settime() argument 77 int fake_timerfd_close(int fd) { in fake_timerfd_close()
|