Home
last modified time | relevance | path

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

/hardware/google/aemu/base/include/aemu/base/files/
DScopedFd.h32 class ScopedFd {
35 ScopedFd() : fd_(-1) {} in ScopedFd() function
38 explicit ScopedFd(int fd) : fd_(fd) {} in ScopedFd() function
41 ScopedFd(ScopedFd&& other) : fd_(other.fd_) { in ScopedFd() function
45 ScopedFd& operator=(ScopedFd&& other) {
51 ~ScopedFd() { close(); } in ~ScopedFd()
77 void swap(ScopedFd* other) { in swap()
84 DISALLOW_COPY_AND_ASSIGN(ScopedFd);
/hardware/google/aemu/base/
DScopedFd_unittest.cpp42 TEST(ScopedFd, DefaultConstructor) { in TEST() argument
43 ScopedFd f; in TEST()
48 TEST(ScopedFd, Constructor) { in TEST() argument
49 ScopedFd f(OpenNull()); in TEST()
53 TEST(ScopedFd, Release) { in TEST() argument
54 ScopedFd f(OpenNull()); in TEST()
62 TEST(ScopedFd, Close) { in TEST() argument
63 ScopedFd f(OpenNull()); in TEST()
69 TEST(ScopedFd, Swap) { in TEST() argument
70 ScopedFd f1; in TEST()
[all …]
DFileUtils_unittest.cpp29 using android::base::ScopedFd;
37 ScopedFd fd(HANDLE_EINTR(open(tempfile_path(tf), O_RDWR, 0600))); in TEST()
75 ScopedFd fd(HANDLE_EINTR(open(tempfile_path(tf), O_RDWR, 0600))); in TEST()
/hardware/google/gfxstream/common/detector/
DGraphicsDetectorVkExternalMemoryHost.cpp31 class ScopedFd { class
33 explicit ScopedFd(int fd) { Reset(fd); } in ScopedFd() function in gfxstream::__anonade00b740111::ScopedFd
34 ~ScopedFd() { Reset(); } in ~ScopedFd()
36 ScopedFd(const ScopedFd&) = delete;
37 ScopedFd& operator=(const ScopedFd&) = delete;
39 ScopedFd(ScopedFd&& rhs) { in ScopedFd() function in gfxstream::__anonade00b740111::ScopedFd
44 ScopedFd& operator=(ScopedFd&& rhs) { in operator =()
95 gfxstream::expected<ScopedFd, std::string> CreateSharedMemory(vkhpp::DeviceSize size) { in CreateSharedMemory()
116 return ScopedFd(fd); in CreateSharedMemory()
/hardware/google/gfxstream/host/gl/gl-host-common/opengl/
DNativeGpuInfo_linux.cpp25 using android::base::ScopedFd;