Home
last modified time | relevance | path

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

12

/external/libchrome/base/posix/
Dunix_domain_socket_linux_unittest.cc33 ScopedFD scoped_fd0(fds[0]); in TEST()
34 ScopedFD scoped_fd1(fds[1]); in TEST()
44 std::vector<ScopedFD> message_fds; in TEST()
69 ScopedFD scoped_fd1(fds[1]); in TEST()
87 ScopedFD recv_sock(fds[0]); in TEST()
88 ScopedFD send_sock(fds[1]); in TEST()
100 std::vector<ScopedFD> fd_vec; in TEST()
114 ScopedFD recv_sock(fds[0]); in TEST()
115 ScopedFD send_sock(fds[1]); in TEST()
129 std::vector<ScopedFD> recv_fds; in TEST()
[all …]
Dunix_domain_socket_linux.cc32 static bool CreateSocketPair(ScopedFD* one, ScopedFD* two) { in CreateSocketPair()
89 std::vector<ScopedFD>* fds) { in RecvMsg()
97 std::vector<ScopedFD>* fds, in RecvMsgWithPid()
107 std::vector<ScopedFD>* fds, in RecvMsgWithFlags()
168 fds->push_back(ScopedFD(wire_fds[i])); // TODO(mdempsky): emplace_back in RecvMsgWithFlags()
206 ScopedFD recv_sock, send_sock; in SendRecvMsgWithFlags()
222 std::vector<ScopedFD> recv_fds; in SendRecvMsgWithFlags()
Dunix_domain_socket_linux.h46 std::vector<ScopedFD>* fds);
55 std::vector<ScopedFD>* fds,
98 std::vector<ScopedFD>* fds,
Dglobal_descriptors.cc50 base::ScopedFD GlobalDescriptors::TakeFD( in TakeFD()
53 base::ScopedFD fd; in TakeFD()
Dglobal_descriptors.h74 base::ScopedFD TakeFD(Key key, base::MemoryMappedFile::Region* region);
/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 __anoned3190330111::ScopedFD
52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); } in ~ScopedFD()
75 ScopedFD EventuallyCloseIt(ReadFD); in TEST()
95 ScopedFD EventuallyCloseIt(ReadFD); in TEST()
/external/libbrillo/brillo/
Dfile_utils.cc62 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( in RegularFileOrDelete()
97 base::ScopedFD* fd_out) { in TouchFileInternal()
115 base::ScopedFD scoped_fd( in TouchFileInternal()
143 base::ScopedFD scoped_fd; in TouchFile()
/external/libbrillo/brillo/dbus/
Ddbus_method_invoker_unittest.cc94 base::ScopedFD fd; in CreateResponse()
135 base::ScopedFD EchoFD(const base::ScopedFD& fd_in) { in EchoFD()
141 base::ScopedFD fd_out; in EchoFD()
183 base::ScopedFD fd_stdin(0); in TEST_F()
186 base::ScopedFD fd_stdout(1); in TEST_F()
189 base::ScopedFD fd_stderr(2); in TEST_F()
Ddata_serialization.h417 const base::ScopedFD& value);
419 base::ScopedFD* value);
422 struct DBusType<base::ScopedFD> {
427 const base::ScopedFD& value) {
431 base::ScopedFD* value) {
Ddata_serialization_unittest.cc15 using base::ScopedFD;
37 EXPECT_TRUE(IsTypeSupported<ScopedFD>::value); in TEST()
93 EXPECT_EQ("h", GetDBusSignature<ScopedFD>()); in TEST()
109 EXPECT_EQ("ah", GetDBusSignature<std::vector<ScopedFD>>()); in TEST()
242 ScopedFD temp(1); in TEST()
252 ScopedFD fd_value; in TEST()
/external/v4l2_codec2/vda/
Dv4l2_device.h95 std::vector<base::ScopedFD> GetDmabufsForV4L2Buffer(
154 base::ScopedFD device_fd_;
158 base::ScopedFD device_poll_interrupt_fd_;
Dv4l2_video_decode_accelerator.h191 std::vector<base::ScopedFD> processor_output_fds;
234 std::vector<base::ScopedFD> dmabuf_fds);
Dv4l2_slice_video_decode_accelerator.h86 std::vector<base::ScopedFD> dmabuf_fds;
243 std::unique_ptr<std::vector<base::ScopedFD>> passed_dmabuf_fds);
Dv4l2_device.cc246 std::vector<base::ScopedFD> V4L2Device::GetDmabufsForV4L2Buffer( in GetDmabufsForV4L2Buffer()
253 std::vector<base::ScopedFD> dmabuf_fds; in GetDmabufsForV4L2Buffer()
266 dmabuf_fds.push_back(base::ScopedFD(expbuf.fd)); in GetDmabufsForV4L2Buffer()
/external/libchrome/base/memory/
Dshared_memory_helper.h22 ScopedFD* readonly_fd,
27 bool PrepareMapFile(ScopedFILE fp, ScopedFD readonly_fd, int* mapped_file,
Dshared_memory_helper.cc27 ScopedFD* readonly_fd, in CreateAnonymousSharedMemory()
62 bool PrepareMapFile(ScopedFILE fp, ScopedFD readonly_fd, int* mapped_file, in PrepareMapFile()
Dshared_memory_posix.cc135 ScopedFD readonly_fd; in Create()
252 ScopedFD readonly_fd(HANDLE_EINTR(open(path.value().c_str(), O_RDONLY))); in Open()
/external/libmojo/ipc/
Dipc_platform_file_attachment_posix.h23 explicit PlatformFileAttachment(base::ScopedFD file);
35 base::ScopedFD owning_;
Dipc_platform_file_attachment_posix.cc16 PlatformFileAttachment::PlatformFileAttachment(base::ScopedFD file) in PlatformFileAttachment()
/external/autotest/client/site_tests/security_Libcontainer/src/
Dlibcontainer_target_unittest.cc52 base::ScopedFD read_fd_;
53 base::ScopedFD original_stdout_fd_;
/external/libchrome/base/test/
Dtest_file_util_linux.cc18 ScopedFD fd(open(file.value().c_str(), O_RDONLY)); in EvictFileFromSystemCache()
/external/libchrome/base/files/
Dscoped_file.h54 typedef ScopedGeneric<int, internal::ScopedFDCloseTraits> ScopedFD; typedef
/external/libchrome/base/
Dfile_descriptor_posix.h35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {} in FileDescriptor()
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dfile_utils.h28 using ScopedFD = ScopedResource<int, close>; variable
/external/libmojo/base/android/
Dapk_assets.cc43 base::FileDescriptorStore::GetInstance().Set(key, base::ScopedFD(asset_fd), in RegisterApkAssetWithFileDescriptorStore()

12