/system/core/adb/daemon/ |
D | abb_service.cpp | 31 unique_fd sendCommand(std::string_view command); 34 static unique_fd startAbbProcess(unique_fd* error_fd); 40 unique_fd socket_fd_; 43 unique_fd AbbProcess::sendCommand(std::string_view command) { in sendCommand() 47 unique_fd error_fd; in sendCommand() 62 unique_fd fd; in sendCommand() 79 unique_fd AbbProcess::startAbbProcess(unique_fd* error_fd) { in startAbbProcess() 89 unique_fd execute_abb_command(std::string_view command) { in execute_abb_command()
|
D | restart_service.h | 22 void restart_root_service(unique_fd fd); 23 void restart_unroot_service(unique_fd fd); 24 void restart_tcp_service(unique_fd fd, int port); 25 void restart_usb_service(unique_fd fd);
|
D | shell_service.h | 39 unique_fd StartSubprocess(std::string name, const char* terminal_type, SubprocessType type, 43 unique_fd StartSubprocess(std::string name, const char* terminal_type, SubprocessType type, 45 SubprocessProtocol error_protocol, unique_fd* error_fd); 52 unique_fd StartCommandInProcess(std::string name, Command command, SubprocessProtocol protocol); 55 unique_fd ReportError(SubprocessProtocol protocol, const std::string& message);
|
D | shell_service.cpp | 133 bool CreateSocketpair(unique_fd* fd1, unique_fd* fd2) { in CreateSocketpair() 171 int OpenPtyChildFd(const char* pts_name, unique_fd* error_sfd); 179 unique_fd* SelectLoop(fd_set* master_read_set_ptr, 184 unique_fd* PassInput(); 185 unique_fd* PassOutput(unique_fd* sfd, ShellProtocol::Id id); 193 unique_fd local_socket_sfd_; 196 unique_fd stdinout_sfd_, stderr_sfd_, protocol_sfd_; 223 unique_fd child_stdinout_sfd, child_stderr_sfd; in ForkAndExec() 224 unique_fd parent_error_sfd, child_error_sfd; in ForkAndExec() 398 unique_fd child_stdinout_sfd, child_stderr_sfd; in ExecInProcess() [all …]
|
D | services.cpp | 63 void reconnect_service(unique_fd fd, atransport* t) { in reconnect_service() 68 unique_fd reverse_service(std::string_view command, atransport* transport) { in reverse_service() 75 return unique_fd{}; in reverse_service() 82 return unique_fd{s[0]}; in reverse_service() 87 unique_fd ShellService(std::string_view args, const atransport* transport) { in ShellService() 91 return unique_fd{}; in ShellService() 124 static void spin_service(unique_fd fd) { in spin_service() 131 unique_fd pipe_read, pipe_write; in spin_service() 243 unique_fd daemon_service_to_fd(std::string_view name, atransport* transport) { in daemon_service_to_fd() 283 return unique_fd{}; in daemon_service_to_fd() [all …]
|
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()
|
/system/tools/aidl/tests/ |
D | aidl_test_client_file_descriptors.cpp | 30 using android::base::unique_fd; 56 bool DoWrite(const string& name, const unique_fd& fd, const string& buf) { in DoWrite() 75 bool DoRead(const string& name, const unique_fd& fd, const string& expected) { in DoRead() 96 bool DoPipe(unique_fd* read_side, unique_fd* write_side) { in DoPipe() 98 unique_fd return_fd; in DoPipe() 114 unique_fd return_fd; in ConfirmFileDescriptors() 115 unique_fd read_fd; in ConfirmFileDescriptors() 116 unique_fd write_fd; in ConfirmFileDescriptors() 145 vector<unique_fd> array; in ConfirmFileDescriptorArrays() 152 vector<unique_fd> repeated; in ConfirmFileDescriptorArrays() [all …]
|
/system/core/fs_mgr/libdm/ |
D | loop_control_test.cpp | 33 using unique_fd = android::base::unique_fd; typedef 35 static unique_fd TempFile() { in TempFile() 38 unique_fd fd(CreateTempFile("temp", 0)); in TempFile() 53 unique_fd fd = TempFile(); in TEST() 60 unique_fd loop_fd(open(loop.device().c_str(), O_RDWR)); in TEST()
|
D | test_util.cpp | 29 using unique_fd = android::base::unique_fd; typedef 33 unique_fd CreateTempFile(const std::string& name, size_t size) { in CreateTempFile() 34 unique_fd fd(syscall(__NR_memfd_create, name.c_str(), MFD_ALLOW_SEALING)); in CreateTempFile()
|
/system/core/base/ |
D | cmsg_test.cpp | 28 using android::base::unique_fd; 57 unique_fd send; 58 unique_fd recv; 63 unique_fd fd1; 64 unique_fd fd2; 74 unique_fd received; in TEST_P() 86 unique_fd received1, received2; in TEST_P() 108 unique_fd received; in TEST_P() 121 unique_fd received; in TEST_P() 139 std::vector<unique_fd> received1; in TEST_P() [all …]
|
/system/core/adb/daemon/include/adbd/ |
D | usb.h | 51 android::base::unique_fd control; 52 android::base::unique_fd bulk_out; // "out" from the host's perspective => source for adbd 53 android::base::unique_fd bulk_in; // "in" from the host's perspective => sink for adbd 65 bool open_functionfs(android::base::unique_fd* control, android::base::unique_fd* bulk_out, 66 android::base::unique_fd* bulk_in);
|
/system/hardware/interfaces/suspend/1.0/default/ |
D | SystemSuspend.h | 36 using ::android::base::unique_fd; 72 SystemSuspend(unique_fd wakeupCountFd, unique_fd stateFd, size_t maxStatsEntries, 89 unique_fd mWakeupCountFd; 90 unique_fd mStateFd; 116 unique_fd mWakeLockFd; 117 unique_fd mWakeUnlockFd;
|
/system/core/adb/ |
D | services.cpp | 44 void service_bootstrap_func(std::string service_name, std::function<void(unique_fd)> func, in service_bootstrap_func() 45 unique_fd fd) { in service_bootstrap_func() 52 unique_fd create_service_thread(const char* service_name, std::function<void(unique_fd)> func) { in create_service_thread() 56 return unique_fd(); in create_service_thread() 69 std::thread(service_bootstrap_func, service_name, func, unique_fd(s[1])).detach(); in create_service_thread() 72 return unique_fd(s[0]); in create_service_thread() 75 unique_fd service_to_fd(std::string_view name, atransport* transport) { in service_to_fd() 76 unique_fd ret; in service_to_fd() 186 static void connect_service(unique_fd fd, std::string host) { in connect_service() 244 unique_fd fd = create_service_thread("wait", [sinfo](int fd) { in host_service_to_socket() [all …]
|
D | adb_unique_fd.h | 30 using unique_fd = android::base::unique_fd_impl<AdbCloser>; variable 32 using unique_fd = android::base::unique_fd; variable
|
D | transport_local.cpp | 88 std::tuple<unique_fd, int, std::string> tcp_connect(const std::string& address, in tcp_connect() 90 unique_fd fd; in tcp_connect() 101 return std::make_tuple(unique_fd(), 0, serial); in tcp_connect() 111 unique_fd fd; in connect_device() 120 unique_fd fd; in connect_device() 152 unique_fd fd; in local_connect_arbitrary_ports() 251 void server_socket_thread(std::function<unique_fd(int, std::string*)> listen_func, int port) { in server_socket_thread() 254 unique_fd serverfd; in server_socket_thread() 273 unique_fd fd(adb_socket_accept(serverfd, nullptr, nullptr)); in server_socket_thread() 288 unique_fd tcp_listen_inaddr_any(int port, std::string* error) { in tcp_listen_inaddr_any() [all …]
|
D | transport_fd.cpp | 35 static void CreateWakeFds(unique_fd* read, unique_fd* write) { in CreateWakeFds() 42 *read = unique_fd(wake_fds[0]); in CreateWakeFds() 43 *write = unique_fd(wake_fds[1]); in CreateWakeFds() 47 NonblockingFdConnection(unique_fd fd) : started_(false), fd_(std::move(fd)) { in NonblockingFdConnection() 224 unique_fd fd_; 225 unique_fd wake_fd_read_; 226 unique_fd wake_fd_write_; 235 std::unique_ptr<Connection> Connection::FromFd(unique_fd fd) { in FromFd()
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 59 using android::base::unique_fd; 96 static void tombstoned_intercept(pid_t target_pid, unique_fd* intercept_fd, unique_fd* output_fd, in tombstoned_intercept() 106 unique_fd output_pipe_write; in tombstoned_intercept() 153 unique_fd crasher_pipe; 154 unique_fd intercept_fd; 159 void StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type = kDebuggerdTombstone); 185 void CrasherTest::StartIntercept(unique_fd* output_fd, DebuggerdDumpType intercept_type) { in StartIntercept() 213 unique_fd read_pipe; in StartProcess() 214 unique_fd crasher_read_pipe; in StartProcess() 264 static void ConsumeFd(unique_fd fd, std::string* output) { in ConsumeFd() [all …]
|
/system/core/libsysutils/src/ |
D | SocketListener_test.cpp | 35 using android::base::unique_fd; 46 unique_fd serverSocket(const std::string& path) { in serverSocket() 49 unique_fd fd(socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in serverSocket() 62 unique_fd clientSocket(const std::string& path) { in clientSocket() 63 unique_fd fd(socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in clientSocket() 140 unique_fd client_fd = clientSocket(mSocketPath); in testCommand() 149 unique_fd mSserverFd; 176 unique_fd client1 = clientSocket(mSocketPath); in TEST_F() 177 unique_fd client2 = clientSocket(mSocketPath); in TEST_F()
|
/system/core/debuggerd/tombstoned/ |
D | tombstoned_client.cpp | 33 using android::base::unique_fd; 35 bool tombstoned_connect(pid_t pid, unique_fd* tombstoned_socket, unique_fd* output_fd, in tombstoned_connect() 37 unique_fd sockfd( in tombstoned_connect() 57 unique_fd tmp_output_fd; in tombstoned_connect()
|
D | intercept_manager.h | 39 android::base::unique_fd sockfd; 42 android::base::unique_fd output_fd; 56 bool GetIntercept(pid_t pid, DebuggerdDumpType dump_type, android::base::unique_fd* out_fd);
|
/system/bpf/libbpf_android/include/bpf/ |
D | BpfUtils.h | 106 base::unique_fd fd; 150 int writeToMapEntry(const base::unique_fd& map_fd, void* key, void* value, uint64_t flags); 151 int findMapEntry(const base::unique_fd& map_fd, void* key, void* value); 152 int deleteMapEntry(const base::unique_fd& map_fd, void* key); 153 int getNextMapKey(const base::unique_fd& map_fd, void* key, void* next_key); 154 int getFirstMapKey(const base::unique_fd& map_fd, void* firstKey); 157 int bpfFdPin(const base::unique_fd& map_fd, const char* pathname);
|
/system/core/libmeminfo/ |
D | pageacct.cpp | 26 using unique_fd = ::android::base::unique_fd; typedef 47 unique_fd count_fd(TEMP_FAILURE_RETRY(open("/proc/kpagecount", O_RDONLY | O_CLOEXEC))); in InitPageAcct() 56 unique_fd flags_fd(TEMP_FAILURE_RETRY(open("/proc/kpageflags", O_RDONLY | O_CLOEXEC))); in InitPageAcct() 65 unique_fd idle_fd( in InitPageAcct()
|
/system/core/fs_mgr/liblp/ |
D | test_partition_opener.cpp | 24 using android::base::unique_fd; 31 unique_fd TestPartitionOpener::Open(const std::string& partition_name, int flags) const { in Open() 37 return unique_fd{dup(iter->second)}; in Open()
|
/system/core/base/include/android-base/ |
D | cmsg.h | 62 std::vector<android::base::unique_fd>* fds); 83 std::vector<unique_fd*> fds; in ReceiveFileDescriptors() 86 std::vector<unique_fd> result; in ReceiveFileDescriptors() 90 for (unique_fd* fd : fds) { in ReceiveFileDescriptors()
|
/system/core/libcutils/ |
D | ashmem_test.cpp | 30 using android::base::unique_fd; 32 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { in TestCreateRegion() 33 fd = unique_fd(ashmem_create_region(nullptr, size)); in TestCreateRegion() 40 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap() 47 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { in TestProtDenied() 53 void TestProtIs(const unique_fd& fd, int prot) { in TestProtIs() 70 unique_fd fd; in TEST() 92 unique_fd fd; in TEST() 128 unique_fd fd; in TEST() 186 unique_fd fd; in TEST() [all …]
|