Home
last modified time | relevance | path

Searched refs:unique_fd (Results 1 – 25 of 81) sorted by relevance

1234

/device/generic/goldfish/camera/
DCachedStreamBuffer.cpp33 using base::unique_fd;
55 unique_fd importAidlNativeHandleFence(const NativeHandle& nh) { in importAidlNativeHandleFence()
62 return unique_fd(); in importAidlNativeHandleFence()
67 return FAILURE_V(unique_fd(), "fcntl failed with %s (%d)", in importAidlNativeHandleFence()
71 return unique_fd(fd); in importAidlNativeHandleFence()
75 return FAILURE_V(unique_fd(), "unexpected fence shape, nfds=%zu, must " in importAidlNativeHandleFence()
79 return unique_fd(); in importAidlNativeHandleFence()
83 NativeHandle moveFenceToAidlNativeHandle(unique_fd fence) { in moveFenceToAidlNativeHandle()
Dqemu_channel.cpp56 base::unique_fd qemuOpenChannel() { in qemuOpenChannel()
57 return base::unique_fd(qemud_channel_open(kServiceName)); in qemuOpenChannel()
60 base::unique_fd qemuOpenChannel(const std::string_view param) { in qemuOpenChannel()
64 return base::unique_fd(qemud_channel_open( in qemuOpenChannel()
Dqemu_channel.h30 base::unique_fd qemuOpenChannel();
31 base::unique_fd qemuOpenChannel(std::string_view arg);
/device/generic/goldfish-opengl/system/hwc3/
DFencedBuffer.h37 ::android::base::unique_fd getFence() const { in getFence()
39 return ::android::base::unique_fd(dup(mFence.get())); in getFence()
41 return ::android::base::unique_fd(); in getFence()
46 static ::android::base::unique_fd GetUniqueFd(const ndk::ScopedFileDescriptor& in) { in GetUniqueFd()
48 ::android::base::unique_fd ret(sfd.get()); in GetUniqueFd()
54 ::android::base::unique_fd mFence;
DHostFrameComposer.cpp470 Display* display, ::android::base::unique_fd* outDisplayFence, in presentDisplay()
471 std::unordered_map<int64_t, ::android::base::unique_fd>* outLayerFences) { in presentDisplay()
487 *outDisplayFence = ::android::base::unique_fd(); in presentDisplay()
520 ::android::base::unique_fd fence = displayClientTarget.getFence(); in presentDisplay()
572 ::android::base::unique_fd fence = layer->getBuffer().getFence(); in presentDisplay()
631 ::android::base::unique_fd retire_fd; in presentDisplay()
673 retire_fd = ::android::base::unique_fd(fd); in presentDisplay()
677 (*outLayerFences)[layerId] = ::android::base::unique_fd(dup(retire_fd.get())); in presentDisplay()
679 *outDisplayFence = ::android::base::unique_fd(dup(retire_fd.get())); in presentDisplay()
693 ::android::base::unique_fd displayClientTargetFence = displayClientTarget.getFence(); in presentDisplay()
[all …]
DDrmDisplay.cpp71 std::tuple<HWC3::Error, ::android::base::unique_fd> DrmDisplay::flush( in flush()
77 return std::make_tuple(HWC3::Error::NoResources, ::android::base::unique_fd()); in flush()
103 return std::make_tuple(HWC3::Error::NoResources, ::android::base::unique_fd()); in flush()
109 return std::make_tuple(HWC3::Error::None, ::android::base::unique_fd(flushFenceFd)); in flush()
DDrmClient.h52 ::android::base::unique_fd OpenVirtioGpuDrmFd();
82 std::tuple<HWC3::Error, ::android::base::unique_fd> flushToDisplay(
101 ::android::base::unique_fd mFd;
DDrmClient.cpp33 ::android::base::unique_fd DrmClient::OpenVirtioGpuDrmFd() { in OpenVirtioGpuDrmFd()
38 ::android::base::unique_fd fd(open(path.c_str(), O_RDWR | O_CLOEXEC)); in OpenVirtioGpuDrmFd()
60 return ::android::base::unique_fd(-1); in OpenVirtioGpuDrmFd()
344 std::tuple<HWC3::Error, ::android::base::unique_fd> DrmClient::flushToDisplay( in flushToDisplay()
351 return std::make_tuple(HWC3::Error::NoResources, ::android::base::unique_fd()); in flushToDisplay()
DClientFrameComposer.cpp130 Display* display, ::android::base::unique_fd* outDisplayFence, in presentDisplay()
131 std::unordered_map<int64_t, ::android::base::unique_fd>* /*outLayerFences*/) { in presentDisplay() argument
148 ::android::base::unique_fd fence = display->getClientTarget().getFence(); in presentDisplay()
DDrmSwapchain.h33 void markAsInUse(::android::base::unique_fd useCompleteFenceFd);
42 ::android::base::unique_fd mLastUseFenceFd;
/device/google/gs201/usb/usb/
DUsbDataSessionMonitor.h36 using ::android::base::unique_fd;
67 unique_fd fd;
89 unique_fd mEpollFd;
90 unique_fd mUeventFd;
91 unique_fd mTimerFd;
92 unique_fd mDataRoleFd;
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile()
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile()
106 unique_fd epollFd(epoll_create(8)); in UsbDataSessionMonitor()
112 unique_fd ueventFd(uevent_open_socket(64 * 1024, true)); in UsbDataSessionMonitor()
122 unique_fd timerFd(timerfd_create(CLOCK_BOOTTIME, TFD_NONBLOCK)); in UsbDataSessionMonitor()
/device/google/zuma/usb/usb/
DUsbDataSessionMonitor.h36 using ::android::base::unique_fd;
67 unique_fd fd;
89 unique_fd mEpollFd;
90 unique_fd mUeventFd;
91 unique_fd mTimerFd;
92 unique_fd mDataRoleFd;
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile()
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile()
106 unique_fd epollFd(epoll_create(8)); in UsbDataSessionMonitor()
112 unique_fd ueventFd(uevent_open_socket(64 * 1024, true)); in UsbDataSessionMonitor()
122 unique_fd timerFd(timerfd_create(CLOCK_BOOTTIME, TFD_NONBLOCK)); in UsbDataSessionMonitor()
/device/google/gs101/usb/usb/
DUsbDataSessionMonitor.h36 using ::android::base::unique_fd;
67 unique_fd fd;
89 unique_fd mEpollFd;
90 unique_fd mUeventFd;
91 unique_fd mTimerFd;
92 unique_fd mDataRoleFd;
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile()
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile()
106 unique_fd epollFd(epoll_create(8)); in UsbDataSessionMonitor()
112 unique_fd ueventFd(uevent_open_socket(64 * 1024, true)); in UsbDataSessionMonitor()
122 unique_fd timerFd(timerfd_create(CLOCK_BOOTTIME, TFD_NONBLOCK)); in UsbDataSessionMonitor()
/device/google/zumapro/usb/usb/
DUsbDataSessionMonitor.h36 using ::android::base::unique_fd;
67 unique_fd fd;
89 unique_fd mEpollFd;
90 unique_fd mUeventFd;
91 unique_fd mTimerFd;
92 unique_fd mDataRoleFd;
DUsbDataSessionMonitor.cpp68 static int addEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in addEpollFile()
71 unique_fd fd(open(filePath.c_str(), O_RDONLY)); in addEpollFile()
91 static void removeEpollFile(const int &epollFd, const std::string &filePath, unique_fd &fileFd) { in removeEpollFile()
106 unique_fd epollFd(epoll_create(8)); in UsbDataSessionMonitor()
112 unique_fd ueventFd(uevent_open_socket(64 * 1024, true)); in UsbDataSessionMonitor()
122 unique_fd timerFd(timerfd_create(CLOCK_BOOTTIME, TFD_NONBLOCK)); in UsbDataSessionMonitor()
/device/generic/goldfish/fingerprint/
Dstorage.cpp28 using ::android::base::unique_fd;
32 unique_fd openFile(const int32_t sensorId, const int32_t userId, const bool output) { in openFile()
45 return unique_fd(fd); in openFile()
47 return FAILURE_V(unique_fd(), "open('%s', output=%d) failed with errno=%d", in openFile()
114 unique_fd file(openFile(sensorId, mUserId, false)); in Storage()
157 unique_fd file(openFile(mSensorId, mUserId, true)); in save()
/device/generic/goldfish/gnss/
DGnssHwConn.h34 using ::android::base::unique_fd;
46 unique_fd mDevFd; // Goldfish GPS QEMU device
47 unique_fd mCallersFd; // a channel to talk to the thread
/device/generic/goldfish/qemu-props/
Dqemu-props.cpp72 using android::base::unique_fd; in setBootProperties()
73 unique_fd qemud; in setBootProperties()
76 qemud = unique_fd(qemud_channel_open(kBootPropertiesService)); in setBootProperties()
/device/generic/goldfish/sensors/include/
Dmultihal_sensors.h45 using ::android::base::unique_fd;
130 unique_fd m_callersFd; // a caller writes here
131 unique_fd m_sensorThreadFd; // the worker thread listens from here
/device/google/felix/vibrator/common/
DHardwareBase.h35 using ::android::base::unique_fd;
130 unique_fd fileFd{::open(path.c_str(), O_RDONLY)}; in poll()
131 unique_fd epollFd{epoll_create(1)}; in poll()
/device/google/sunfish/vibrator/common/
DHardwareBase.h37 using base::unique_fd;
136 unique_fd fileFd{::open(path.c_str(), O_RDONLY)}; in poll()
137 unique_fd epollFd{epoll_create(1)}; in poll()
/device/generic/goldfish/sensors/
Dentry.cpp21 using ::android::base::unique_fd;
52 const unique_fd m_qemuSensorsFd;

1234