Home
last modified time | relevance | path

Searched refs:ScopedFd (Results 1 – 10 of 10) sorted by relevance

/system/tools/aidl/tests/
Daidl_test_client_file_descriptors.cpp50 bool DoWrite(string name, const ScopedFd& fd, const string& buf) { in DoWrite()
69 bool DoRead(string name, const ScopedFd& fd, const string& expected) { in DoRead()
90 bool DoPipe(ScopedFd* read_side, ScopedFd* write_side) { in DoPipe()
92 ScopedFd return_fd; in DoPipe()
108 ScopedFd return_fd; in ConfirmFileDescriptors()
109 ScopedFd read_fd; in ConfirmFileDescriptors()
110 ScopedFd write_fd; in ConfirmFileDescriptors()
139 vector<ScopedFd> array; in ConfirmFileDescriptorArrays()
146 vector<ScopedFd> repeated; in ConfirmFileDescriptorArrays()
147 vector<ScopedFd> reversed; in ConfirmFileDescriptorArrays()
Daidl_test_service.cpp285 Status RepeatFileDescriptor(const ScopedFd& read, in RepeatFileDescriptor()
286 ScopedFd* _aidl_return) override { in RepeatFileDescriptor()
288 *_aidl_return = ScopedFd(dup(read.get())); in RepeatFileDescriptor()
292 Status ReverseFileDescriptorArray(const vector<ScopedFd>& input, in ReverseFileDescriptorArray()
293 vector<ScopedFd>* repeated, in ReverseFileDescriptorArray()
294 vector<ScopedFd>* _aidl_return) override { in ReverseFileDescriptorArray()
297 repeated->push_back(ScopedFd(dup(item.get()))); in ReverseFileDescriptorArray()
298 _aidl_return->push_back(ScopedFd(dup(item.get()))); in ReverseFileDescriptorArray()
/system/core/adb/
Dadb_utils.h62 class ScopedFd {
64 ScopedFd() { in ScopedFd() function
67 ~ScopedFd() { in ~ScopedFd()
97 DISALLOW_COPY_AND_ASSIGN(ScopedFd);
Dshell_service.cpp139 bool CreateSocketpair(ScopedFd* fd1, ScopedFd* fd2) { in CreateSocketpair()
173 int OpenPtyChildFd(const char* pts_name, ScopedFd* error_sfd);
179 ScopedFd* SelectLoop(fd_set* master_read_set_ptr,
184 ScopedFd* PassInput();
185 ScopedFd* PassOutput(ScopedFd* sfd, ShellProtocol::Id id);
193 ScopedFd local_socket_sfd_;
196 ScopedFd stdinout_sfd_, stderr_sfd_, protocol_sfd_;
228 ScopedFd child_stdinout_sfd, child_stderr_sfd; in ForkAndExec()
229 ScopedFd parent_error_sfd, child_error_sfd; in ForkAndExec()
415 int Subprocess::OpenPtyChildFd(const char* pts_name, ScopedFd* error_sfd) { in OpenPtyChildFd()
[all …]
Dcommandline.cpp1085 ScopedFd fd; in adb_root()
/system/vold/
DUtils.h119 class ScopedFd {
122 ScopedFd(int fd);
123 ~ScopedFd();
126 DISALLOW_COPY_AND_ASSIGN(ScopedFd);
DUtils.cpp661 ScopedFd::ScopedFd(int fd) : fd_(fd) {} in ScopedFd() function in android::vold::ScopedFd
663 ScopedFd::~ScopedFd() { in ~ScopedFd()
DCommandListener.cpp691 const android::vold::ScopedFd pid_fd( in runCommandInNamespace()
735 android::vold::ScopedFd ns_fd(openat(pid_fd.get(), "ns/mnt", O_RDONLY)); in runCommandInNamespace()
803 android::vold::ScopedFd device_fd(open("/dev/fuse", O_RDWR)); in runCommand()
/system/tools/aidl/docs/
Daidl-cpp.md98 | FileDescriptor | ScopedFd | inout | nativehelper/ScopedFd.h …
/system/core/debuggerd/
Ddebuggerd.cpp754 ScopedFd closer(fd); in handle_request()