Home
last modified time | relevance | path

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

12

/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;
DDrmClient.h52 ::android::base::unique_fd OpenVirtioGpuDrmFd();
82 std::tuple<HWC3::Error, ::android::base::unique_fd> flushToDisplay(
101 ::android::base::unique_fd mFd;
DHostFrameComposer.cpp476 Display* display, ::android::base::unique_fd* outDisplayFence, in presentDisplay()
477 std::unordered_map<int64_t, ::android::base::unique_fd>* outLayerFences) { in presentDisplay()
493 *outDisplayFence = ::android::base::unique_fd(); in presentDisplay()
526 ::android::base::unique_fd fence = displayClientTarget.getFence(); in presentDisplay()
579 ::android::base::unique_fd fence = layer->getBuffer().getFence(); in presentDisplay()
655 ::android::base::unique_fd retire_fd; in presentDisplay()
697 retire_fd = ::android::base::unique_fd(fd); in presentDisplay()
701 (*outLayerFences)[layerId] = ::android::base::unique_fd(dup(retire_fd.get())); in presentDisplay()
703 *outDisplayFence = ::android::base::unique_fd(dup(retire_fd.get())); in presentDisplay()
717 ::android::base::unique_fd displayClientTargetFence = displayClientTarget.getFence(); in presentDisplay()
[all …]
DDrmSwapchain.h33 void markAsInUse(::android::base::unique_fd useCompleteFenceFd);
42 ::android::base::unique_fd mLastUseFenceFd;
DFrameComposer.h66 Display* display, ::android::base::unique_fd* outDisplayFence,
67 std::unordered_map<int64_t, ::android::base::unique_fd>* outLayerFences) = 0;
DNoOpFrameComposer.h58 Display* display, ::android::base::unique_fd* outDisplayFence,
59 std::unordered_map<int64_t, ::android::base::unique_fd>* outLayerFences) override;
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()
DClientFrameComposer.h62 Display* display, ::android::base::unique_fd* outDisplayFence,
63 std::unordered_map<int64_t, ::android::base::unique_fd>* outLayerFences) override;
DNoOpFrameComposer.cpp74 Display*, ::android::base::unique_fd*, in presentDisplay() argument
75 std::unordered_map<int64_t, ::android::base::unique_fd>* /*outLayerFences*/) { in presentDisplay() argument
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()
DHostFrameComposer.h62 Display* display, ::android::base::unique_fd* outDisplayFence,
63 std::unordered_map<int64_t, ::android::base::unique_fd>* outLayerFences) override;
DGuestFrameComposer.h60 Display* display, ::android::base::unique_fd* outDisplayFence,
61 std::unordered_map<int64_t, ::android::base::unique_fd>* outLayerFences) override;
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()
DDrmSwapchain.cpp46 mLastUseFenceFd = ::android::base::unique_fd(); in wait()
56 void DrmSwapchain::Image::markAsInUse(::android::base::unique_fd useCompleteFenceFd) { in markAsInUse()
/device/generic/goldfish/hals/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/hals/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
DGnssHwConn.cpp72 const unique_fd epollFd(epoll_create1(0)); in workerThread()
146 unique_fd threadsFd; in GnssHwConn()
/device/generic/goldfish/hals/radio/
Dmain.cpp42 using ::android::base::unique_fd;
45 unique_fd openHostChannel(const char propertyName[]) { in openHostChannel()
48 return FAILURE_V(unique_fd(), "The '%s' property is not defined", propertyName); in openHostChannel()
53 return unique_fd(fd); in openHostChannel()
55 return FAILURE_V(unique_fd(), "Could not open '%s'", channelName); in openHostChannel()
DAtChannel.h39 using ::android::base::unique_fd;
42 using HostChannelFactory = std::function<unique_fd()>;
99 unique_fd mHostChannel;
/device/generic/goldfish/hals/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/qemu-props/
Dqemu-props.cpp74 using android::base::unique_fd; in setBootProperties()
75 unique_fd qemud; in setBootProperties()
78 qemud = unique_fd(qemud_channel_open(kBootPropertiesService)); in setBootProperties()
/device/generic/goldfish/hals/sensors/
Dentry.cpp21 using ::android::base::unique_fd;
52 const unique_fd m_qemuSensorsFd;
/device/generic/goldfish/hals/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

12