Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 664) sorted by relevance

12345678910>>...27

/packages/modules/adb/
Dadb_io.cpp37 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()
Dsysdeps.h86 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec()
117 static inline int unix_close(int fd) { in unix_close()
127 static inline int unix_read(borrowed_fd fd, void* buf, size_t len) { in unix_read()
138 static inline int unix_write(borrowed_fd fd, const void* buf, size_t len) { in unix_write()
148 static inline int unix_lseek(borrowed_fd fd, int pos, int where) { in unix_lseek()
235 int fd; member
375 inline HANDLE cast_int_to_handle(const int fd) { in cast_int_to_handle()
430 static inline int get_fd_flags(borrowed_fd fd) { in get_fd_flags()
434 static inline void close_on_exec(borrowed_fd fd) { in close_on_exec()
478 int fd = TEMP_FAILURE_RETRY(open(pathname, options)); in adb_open() local
[all …]
Dservices.cpp47 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
Dsysdeps_unix.cpp23 bool set_tcp_keepalive(borrowed_fd fd, int interval_sec) { in set_tcp_keepalive()
64 static __inline__ void disable_close_on_exec(borrowed_fd fd) { in disable_close_on_exec()
92 for (auto fd : fds_to_inherit) { in adb_launch_process() local
/packages/modules/Bluetooth/system/gd/hal/
Dsyscall_wrapper_impl.cc34 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, socklen_t op… in Setsockopt()
64 int SyscallWrapperImpl::Listen(int fd, int n) { in Listen()
70 int SyscallWrapperImpl::Accept(int fd, struct sockaddr* addr, socklen_t* addr_len, int flags) { in Accept()
76 ssize_t SyscallWrapperImpl::Write(int fd, const void* buf, size_t count) { in Write()
82 int SyscallWrapperImpl::Close(int fd) { in Close()
98 void SyscallWrapperImpl::FDSet(int fd, fd_set* set) { in FDSet()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/
DOsAccess.java32 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/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java128 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/adb/daemon/
Drestart_service.cpp31 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/Virtualization/authfs/aidl/com/android/virt/fs/
DIVirtFdService.aidl36 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/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/
DFakeOsAccess.java74 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/
Dincremental_utils.cpp67 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 …]
Dadb_client.cpp81 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/
DMappedFileSharedMemoryTest.cpp38 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/staticlibs/device/com/android/net/module/util/netlink/
DNetlinkUtils.java128 public static void receiveNetlinkAck(final FileDescriptor fd) in receiveNetlinkAck()
164 final FileDescriptor fd = netlinkSocketForProto(nlProto, SOCKET_RECV_BUFSIZE); in sendOneShotKernelMessage() local
238 final FileDescriptor fd = Os.socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, nlProto); in netlinkSocketForProto() local
273 public static void connectToKernel(@NonNull FileDescriptor fd) in connectToKernel()
290 public static ByteBuffer recvMessage(FileDescriptor fd, int bufsize, long timeoutMs) in recvMessage()
314 FileDescriptor fd, byte[] bytes, int offset, int count, long timeoutMs) in sendMessage()
339 FileDescriptor fd, byte[] dumpRequestMessage, int nlFamily, Class<T> msgClass, in getAndProcessNetlinkDumpMessagesWithFd()
397 final FileDescriptor fd = netlinkSocketForProto(nlFamily, SOCKET_DUMP_RECV_BUFSIZE); in getAndProcessNetlinkDumpMessages() local
465 private static void closeSocketQuietly(final FileDescriptor fd) { in closeSocketQuietly()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/
DSharedMemory.cpp43 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/Connectivity/framework/src/android/net/
DNetworkUtils.java55 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()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DNetworkStackUtils.java403 public static native void attachDhcpFilter(FileDescriptor fd) throws ErrnoException; in attachDhcpFilter()
409 public static native void attachRaFilter(FileDescriptor fd) throws ErrnoException; in attachRaFilter()
418 public static native void attachControlPacketFilter(FileDescriptor fd) throws ErrnoException; in attachControlPacketFilter()
424 String ifname, FileDescriptor fd) throws IOException { in addArpEntry()
425 addArpEntry(ethAddr.toByteArray(), ipv4Addr.getAddress(), ifname, fd); in addArpEntry() local
429 FileDescriptor fd) throws IOException; in addArpEntry()
/packages/modules/Connectivity/staticlibs/native/bpfmapjni/
Dcom_android_net_module_util_BpfMap.cpp38 jint fd = -1; in com_android_net_module_util_BpfMap_nativeBpfFdGet() local
80 jint fd, jbyteArray key, jbyteArray value, jint flags) { in com_android_net_module_util_BpfMap_nativeWriteToMapEntry()
98 jint fd, jbyteArray key) { in com_android_net_module_util_BpfMap_nativeDeleteMapEntry()
109 jint fd, jbyteArray key, jbyteArray nextKey) { in com_android_net_module_util_BpfMap_nativeGetNextMapKey()
128 jint fd, jbyteArray key, jbyteArray value) { in com_android_net_module_util_BpfMap_nativeFindMapEntry()
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Dlinux_fileops.cc35 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/
Dtest_utils.cpp31 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/
DIpSecXfrmController.java110 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/services/Car/cpp/libsysfsmonitor/src/
DSysfsMonitor.cpp77 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/staticlibs/netd/libnetdutils/include/netdutils/
DFd.h33 constexpr Fd(int fd) : mFd(fd) {} in Fd()
45 inline bool isWellFormed(const Fd fd) { in isWellFormed()
/packages/modules/Connectivity/tests/cts/net/native/dns/
DNativeDnsAsyncTest.cpp38 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/
Dfake_timerfd.cc30 int fd; member in bluetooth::os::fake_timer::FakeTimerFd
45 int fd = eventfd(0, EFD_SEMAPHORE); in fake_timerfd_create() local
57 int fd, in fake_timerfd_settime()
79 int fake_timerfd_close(int fd) { in fake_timerfd_close()

12345678910>>...27