/external/libchrome/base/posix/ |
D | unix_domain_socket_unittest.cc | 55 ScopedFD scoped_fd0(fds[0]); in TEST() 56 ScopedFD scoped_fd1(fds[1]); in TEST() 65 std::vector<ScopedFD> message_fds; in TEST() 90 ScopedFD scoped_fd1(fds[1]); in TEST() 107 ScopedFD recv_sock(fds[0]); in TEST() 108 ScopedFD send_sock(fds[1]); in TEST() 120 std::vector<ScopedFD> fd_vec; in TEST() 134 ScopedFD recv_sock(fds[0]); in TEST() 135 ScopedFD send_sock(fds[1]); in TEST() 149 std::vector<ScopedFD> recv_fds; in TEST() [all …]
|
D | unix_domain_socket.h | 26 bool BASE_EXPORT CreateSocketPair(ScopedFD* one, ScopedFD* two); 53 std::vector<ScopedFD>* fds); 62 std::vector<ScopedFD>* fds, 105 std::vector<ScopedFD>* fds,
|
D | unix_domain_socket.cc | 32 bool CreateSocketPair(ScopedFD* one, ScopedFD* two) { in CreateSocketPair() 121 std::vector<ScopedFD>* fds) { in RecvMsg() 129 std::vector<ScopedFD>* fds, in RecvMsgWithPid() 139 std::vector<ScopedFD>* fds, in RecvMsgWithFlags() 205 fds->push_back(ScopedFD(wire_fds[i])); // TODO(mdempsky): emplace_back in RecvMsgWithFlags() 249 ScopedFD recv_sock, send_sock; in SendRecvMsgWithFlags() 265 std::vector<ScopedFD> recv_fds; in SendRecvMsgWithFlags()
|
/external/llvm/unittests/Support/ |
D | ReplaceFileTest.cpp | 44 class ScopedFD { class 47 ScopedFD(const ScopedFD &) = delete; 48 ScopedFD &operator=(const ScopedFD &) = delete; 51 explicit ScopedFD(int Descriptor) : FD(Descriptor) {} in ScopedFD() function in __anon7471f03f0111::ScopedFD 52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); } in ~ScopedFD() 75 ScopedFD EventuallyCloseIt(ReadFD); in TEST() 95 ScopedFD EventuallyCloseIt(ReadFD); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | ReplaceFileTest.cpp | 44 class ScopedFD { class 47 ScopedFD(const ScopedFD &) = delete; 48 ScopedFD &operator=(const ScopedFD &) = delete; 51 explicit ScopedFD(int Descriptor) : FD(Descriptor) {} in ScopedFD() function in __anon7fa50a970111::ScopedFD 52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); } in ~ScopedFD() 66 ScopedFD EventuallyCloseIt(FD); in FileHasContent() 90 ScopedFD EventuallyCloseIt(ReadFD); in TEST() 149 ScopedFD X(TargetFD); in TEST()
|
/external/libchrome/base/memory/ |
D | shared_memory_helper.h | 22 ScopedFD* fd, 23 ScopedFD* readonly_fd, 28 bool PrepareMapFile(ScopedFD fd, 29 ScopedFD readonly_fd,
|
D | platform_shared_memory_region.h | 44 ScopedFDPair(ScopedFD in_fd, ScopedFD in_readonly_fd); 51 ScopedFD fd; 52 ScopedFD readonly_fd; 106 using ScopedPlatformHandle = ScopedFD;
|
D | platform_shared_memory_region_posix.cc | 63 ScopedFDPair::ScopedFDPair(ScopedFD in_fd, ScopedFD in_readonly_fd) in ScopedFDPair() 128 ScopedFD duped_fd(HANDLE_EINTR(dup(handle_.fd.get()))); in Duplicate() 134 return PlatformSharedMemoryRegion({std::move(duped_fd), ScopedFD()}, mode_, in Duplicate() 217 ScopedFD fd; in Create() 239 ScopedFD readonly_fd; in Create()
|
D | shared_memory_helper.cc | 33 ScopedFD* fd, in CreateAnonymousSharedMemory() 34 ScopedFD* readonly_fd, in CreateAnonymousSharedMemory() 69 bool PrepareMapFile(ScopedFD fd, in PrepareMapFile() 70 ScopedFD readonly_fd, in PrepareMapFile()
|
D | shared_memory_posix.cc | 107 ScopedFD fd; in Create() 108 ScopedFD readonly_fd; in Create() 232 ScopedFD fd(HANDLE_EINTR(open(path.value().c_str(), mode))); in Open() 233 ScopedFD readonly_fd(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); in Open()
|
/external/libchrome/base/android/ |
D | scoped_hardware_buffer_handle.cc | 65 ScopedFD ScopedHardwareBufferHandle::SerializeAsFileDescriptor() const { in SerializeAsFileDescriptor() 68 ScopedFD reader, writer; in SerializeAsFileDescriptor() 71 return ScopedFD(); in SerializeAsFileDescriptor() 82 return ScopedFD(); in SerializeAsFileDescriptor() 90 ScopedHardwareBufferHandle::DeserializeFromFileDescriptor(ScopedFD fd) { in DeserializeFromFileDescriptor()
|
D | scoped_hardware_buffer_handle.h | 63 ScopedFD SerializeAsFileDescriptor() const; 71 static ScopedHardwareBufferHandle DeserializeFromFileDescriptor(ScopedFD fd)
|
/external/libchrome/mojo/public/cpp/platform/ |
D | socket_utils_posix.h | 52 const std::vector<base::ScopedFD>& descriptors); 59 std::vector<base::ScopedFD>* descriptors, 75 base::ScopedFD* connection_fd,
|
D | socket_utils_posix.cc | 106 const std::vector<base::ScopedFD>& descriptors) { in SendmsgWithHandles() 132 std::vector<base::ScopedFD>* descriptors, in SocketRecvmsg() 160 base::ScopedFD fd(fds[i]); in SocketRecvmsg() 171 base::ScopedFD* connection_fd, in AcceptSocketConnection() 179 base::ScopedFD accepted_handle(HANDLE_EINTR(accept(server_fd, nullptr, 0))); in AcceptSocketConnection()
|
D | platform_handle.h | 68 explicit PlatformHandle(base::ScopedFD fd); in COMPONENT_EXPORT() 156 const base::ScopedFD& GetFD() const { return fd_; } in COMPONENT_EXPORT() 157 base::ScopedFD TakeFD() { in COMPONENT_EXPORT() 181 base::ScopedFD fd_; in COMPONENT_EXPORT()
|
D | platform_handle.cc | 76 base::ScopedFD CloneFD(const base::ScopedFD& fd) { in CloneFD() 78 return base::ScopedFD(dup(fd.get())); in CloneFD() 102 PlatformHandle::PlatformHandle(base::ScopedFD fd) in PlatformHandle() 200 return PlatformHandle(base::ScopedFD(static_cast<int>(handle->value))); in FromMojoPlatformHandle()
|
D | platform_channel.cc | 139 *local_endpoint = PlatformHandle(base::ScopedFD(fds[0])); 140 *remote_endpoint = PlatformHandle(base::ScopedFD(fds[1])); 263 base::ScopedFD(base::GlobalDescriptors::GetInstance()->Get(key)))); in RecoverPassedEndpointFromString() 271 return PlatformChannelEndpoint(PlatformHandle(base::ScopedFD(fd))); in RecoverPassedEndpointFromString()
|
/external/libbrillo/brillo/dbus/ |
D | file_descriptor.h | 27 FileDescriptor(base::ScopedFD&& other) : fd(std::move(other)) {} in FileDescriptor() 39 FileDescriptor& operator=(base::ScopedFD&& other) { 51 base::ScopedFD fd;
|
D | dbus_method_invoker.h | 161 inline base::ScopedFD HackMove(const base::ScopedFD& val) { in HackMove() 162 return std::move(const_cast<base::ScopedFD&>(val)); in HackMove()
|
/external/libchrome/ipc/ |
D | ipc_message_attachment.cc | 34 base::ScopedFD TakeOrDupFile(internal::PlatformFileAttachment* attachment) { in TakeOrDupFile() 36 ? base::ScopedFD(attachment->TakePlatformFile()) in TakeOrDupFile() 37 : base::ScopedFD(HANDLE_EINTR(dup(attachment->file()))); in TakeOrDupFile() 57 base::ScopedFD file = in TakeMojoHandle()
|
D | ipc_platform_file_attachment_posix.h | 24 explicit PlatformFileAttachment(base::ScopedFD file); 36 base::ScopedFD owning_;
|
/external/v4l2_codec2/vda/ |
D | v4l2_device.h | 94 std::vector<base::ScopedFD> GetDmabufsForV4L2Buffer( 153 base::ScopedFD device_fd_; 157 base::ScopedFD device_poll_interrupt_fd_;
|
/external/boringssl/src/ssl/test/ |
D | handshake_util.cc | 261 class ScopedFD { class 263 explicit ScopedFD(int fd): fd_(fd) {} in ScopedFD() function in ScopedFD 264 ~ScopedFD() { close(fd_); } in ~ScopedFD() 361 ScopedFD rfd_closer(rfd[1]); in RunHandshaker() 362 ScopedFD wfd_closer(wfd[0]); in RunHandshaker() 363 ScopedFD control_closer(control[0]); in RunHandshaker()
|
/external/libbrillo/brillo/ |
D | file_utils.cc | 68 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( in RegularFileOrDelete() 103 base::ScopedFD* fd_out) { in TouchFileInternal() 121 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( in TouchFileInternal() 165 base::ScopedFD scoped_fd; in TouchFile()
|
/external/libchrome/base/message_loop/ |
D | message_loop_io_posix_unittest.cc | 40 read_fd_ = ScopedFD(pipefds[0]); in SetUp() 41 write_fd_ = ScopedFD(pipefds[1]); in SetUp() 51 ScopedFD read_fd_; 52 ScopedFD write_fd_;
|