Home
last modified time | relevance | path

Searched refs:ScopedFD (Results 1 – 25 of 64) sorted by relevance

123

/external/libchrome/base/posix/
Dunix_domain_socket_unittest.cc55 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 …]
Dunix_domain_socket.h26 bool BASE_EXPORT CreateSocketPair(ScopedFD* one, ScopedFD* two);
53 std::vector<ScopedFD>* fds);
62 std::vector<ScopedFD>* fds,
105 std::vector<ScopedFD>* fds,
Dunix_domain_socket.cc32 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/
DReplaceFileTest.cpp44 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/
DReplaceFileTest.cpp44 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/
Dshared_memory_helper.h22 ScopedFD* fd,
23 ScopedFD* readonly_fd,
28 bool PrepareMapFile(ScopedFD fd,
29 ScopedFD readonly_fd,
Dplatform_shared_memory_region.h44 ScopedFDPair(ScopedFD in_fd, ScopedFD in_readonly_fd);
51 ScopedFD fd;
52 ScopedFD readonly_fd;
106 using ScopedPlatformHandle = ScopedFD;
Dplatform_shared_memory_region_posix.cc63 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()
Dshared_memory_helper.cc33 ScopedFD* fd, in CreateAnonymousSharedMemory()
34 ScopedFD* readonly_fd, in CreateAnonymousSharedMemory()
69 bool PrepareMapFile(ScopedFD fd, in PrepareMapFile()
70 ScopedFD readonly_fd, in PrepareMapFile()
Dshared_memory_posix.cc107 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/
Dscoped_hardware_buffer_handle.cc65 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()
Dscoped_hardware_buffer_handle.h63 ScopedFD SerializeAsFileDescriptor() const;
71 static ScopedHardwareBufferHandle DeserializeFromFileDescriptor(ScopedFD fd)
/external/libchrome/mojo/public/cpp/platform/
Dsocket_utils_posix.h52 const std::vector<base::ScopedFD>& descriptors);
59 std::vector<base::ScopedFD>* descriptors,
75 base::ScopedFD* connection_fd,
Dsocket_utils_posix.cc106 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()
Dplatform_handle.h68 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()
Dplatform_handle.cc76 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()
Dplatform_channel.cc139 *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/
Dfile_descriptor.h27 FileDescriptor(base::ScopedFD&& other) : fd(std::move(other)) {} in FileDescriptor()
39 FileDescriptor& operator=(base::ScopedFD&& other) {
51 base::ScopedFD fd;
Ddbus_method_invoker.h161 inline base::ScopedFD HackMove(const base::ScopedFD& val) { in HackMove()
162 return std::move(const_cast<base::ScopedFD&>(val)); in HackMove()
/external/libchrome/ipc/
Dipc_message_attachment.cc34 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()
Dipc_platform_file_attachment_posix.h24 explicit PlatformFileAttachment(base::ScopedFD file);
36 base::ScopedFD owning_;
/external/v4l2_codec2/vda/
Dv4l2_device.h94 std::vector<base::ScopedFD> GetDmabufsForV4L2Buffer(
153 base::ScopedFD device_fd_;
157 base::ScopedFD device_poll_interrupt_fd_;
/external/boringssl/src/ssl/test/
Dhandshake_util.cc261 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/
Dfile_utils.cc68 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/
Dmessage_loop_io_posix_unittest.cc40 read_fd_ = ScopedFD(pipefds[0]); in SetUp()
41 write_fd_ = ScopedFD(pipefds[1]); in SetUp()
51 ScopedFD read_fd_;
52 ScopedFD write_fd_;

123