Home
last modified time | relevance | path

Searched refs:LocalHandle (Results 1 – 25 of 65) sorted by relevance

123

/aosp12/frameworks/native/libs/vr/libpdx_uds/private/uds/
H A Dchannel_event_set.h30 LocalHandle pollin_event_fd_;
31 LocalHandle pollhup_event_fd_;
41 ChannelEventReceiver(LocalHandle data_fd, LocalHandle pollin_event_fd,
42 LocalHandle pollhup_event_fd);
59 std::tuple<LocalHandle, LocalHandle, LocalHandle> TakeFds() { in TakeFds()
71 LocalHandle data_fd_;
72 LocalHandle pollin_event_fd_;
73 LocalHandle pollhup_event_fd_;
74 LocalHandle epoll_fd_;
H A Dservice_endpoint.h106 Status<void> RegisterNewChannelForTests(LocalHandle channel_fd);
112 LocalHandle data_fd;
120 explicit Endpoint(LocalHandle socket_fd);
122 void Init(LocalHandle socket_fd);
136 Status<void> OnNewChannel(LocalHandle channel_fd);
138 LocalHandle channel_fd, Channel* channel_state);
146 Status<void> CreateChannelSocketPair(LocalHandle* local_socket,
147 LocalHandle* remote_socket);
151 LocalHandle socket_fd_;
152 LocalHandle cancel_event_fd_;
[all …]
H A Dchannel_parcelable.h14 ChannelParcelable(LocalHandle data_fd, LocalHandle pollin_event_fd,
15 LocalHandle pollhup_event_fd);
26 LocalHandle data_fd_;
27 LocalHandle pollin_event_fd_;
28 LocalHandle pollhup_event_fd_;
H A Dchannel_manager.h19 LocalChannelHandle CreateHandle(LocalHandle data_fd,
20 LocalHandle pollin_event_fd,
21 LocalHandle pollhup_event_fd);
H A Dclient_channel_factory.h16 static std::unique_ptr<pdx::ClientChannelFactory> Create(LocalHandle socket);
26 explicit ClientChannelFactory(LocalHandle socket);
28 mutable LocalHandle socket_;
/aosp12/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dconsumer_buffer.h29 int Acquire(LocalHandle* ready_fence);
36 int Acquire(LocalHandle* ready_fence, void* meta, size_t user_metadata_size);
39 int AcquireAsync(DvrNativeBufferMetadata* out_meta, LocalHandle* out_fence);
44 int Release(const LocalHandle& release_fence);
52 const LocalHandle& release_fence);
65 int LocalAcquire(DvrNativeBufferMetadata* out_meta, LocalHandle* out_fence);
67 const LocalHandle& release_fence);
H A Dproducer_buffer.h30 const LocalHandle& ready_fence);
36 int Post(const LocalHandle& ready_fence, const void* meta,
39 int Post(const LocalHandle& ready_fence) { in Post()
52 int Gain(LocalHandle* release_fence, bool gain_posted_buffer = false);
64 int GainAsync(DvrNativeBufferMetadata* out_meta, LocalHandle* out_fence,
94 int LocalGain(DvrNativeBufferMetadata* out_meta, LocalHandle* out_fence,
97 const LocalHandle& ready_fence);
H A Dbuffer_hub_base.h15 using LocalHandle = pdx::LocalHandle;
33 LocalHandle GetBlobFd() const { in GetBlobFd()
39 return LocalHandle(dup(native_handle()->data[0])); in GetBlobFd()
118 int UpdateSharedFence(const LocalHandle& new_fence,
119 const LocalHandle& shared_fence);
140 LocalHandle shared_acquire_fence_;
141 LocalHandle shared_release_fence_;
145 LocalHandle pending_fence_fd_;
/aosp12/frameworks/native/libs/vr/libbufferhub/
H A Dbuffer_hub-test.cpp86 LocalHandle fence; in TEST_F()
215 LocalHandle fence; in TEST_F()
521 LocalHandle fence; in TEST_F()
580 LocalHandle fence; in TEST_F()
606 LocalHandle fence; in TEST_F()
619 LocalHandle fence; in TEST_F()
663 LocalHandle f2; in TEST_F()
680 LocalHandle f3; in TEST_F()
689 LocalHandle f4; in TEST_F()
702 LocalHandle f6; in TEST_F()
[all …]
H A Dconsumer_buffer.cpp4 using android::pdx::LocalHandle;
34 LocalHandle* out_fence) { in LocalAcquire()
88 int ConsumerBuffer::Acquire(LocalHandle* ready_fence) { in Acquire()
92 int ConsumerBuffer::Acquire(LocalHandle* ready_fence, void* meta, in Acquire()
120 LocalHandle* out_fence) { in AcquireAsync()
133 const LocalHandle& release_fence) { in LocalRelease()
171 int ConsumerBuffer::Release(const LocalHandle& release_fence) { in Release()
184 return ReleaseAsync(&meta, LocalHandle()); in ReleaseAsync()
188 const LocalHandle& release_fence) { in ReleaseAsync()
198 int ConsumerBuffer::Discard() { return Release(LocalHandle()); } in Discard()
H A Dproducer_buffer.cpp4 using android::pdx::LocalHandle;
78 const LocalHandle& ready_fence) { in LocalPost()
126 int ProducerBuffer::Post(const LocalHandle& ready_fence, const void* meta, in Post()
143 const LocalHandle& ready_fence) { in PostAsync()
153 LocalHandle* out_fence, bool gain_posted_buffer) { in LocalGain()
228 int ProducerBuffer::Gain(LocalHandle* release_fence, bool gain_posted_buffer) { in Gain()
242 LocalHandle* release_fence, in GainAsync()
254 LocalHandle fence; in GainAsync()
/aosp12/frameworks/native/libs/vr/libvrflinger/
H A Dhardware_composer.h197 pdx::LocalHandle release_fence;
221 return std::make_tuple(0, 0, -1, nullptr, pdx::LocalHandle{}, 0); in Acquire()
257 buffer->buffer(), pdx::LocalHandle{}, 0); in Acquire()
259 return std::make_tuple(0, 0, -1, nullptr, pdx::LocalHandle{}, 0); in Acquire()
262 void Finish(pdx::LocalHandle /*fence*/) {} in Finish()
274 pdx::LocalHandle acquire_fence_;
401 pdx::LocalHandle driver_vsync_event_fd;
444 int PostThreadPollInterruptible(const pdx::LocalHandle& event_fd,
522 pdx::LocalHandle post_thread_event_fd_;
532 pdx::LocalHandle vsync_sleep_timer_fd_;
[all …]
H A Dacquired_buffer.cpp6 using android::pdx::LocalHandle;
12 LocalHandle acquire_fence, std::size_t slot) in AcquiredBuffer()
17 LocalHandle fence; in AcquiredBuffer()
38 AcquiredBuffer::~AcquiredBuffer() { Release(LocalHandle(kEmptyFence)); } in ~AcquiredBuffer()
74 LocalHandle AcquiredBuffer::ClaimAcquireFence() { in ClaimAcquireFence()
82 int AcquiredBuffer::Release(LocalHandle release_fence) { in Release()
H A Dacquired_buffer.h15 static constexpr int kEmptyFence = pdx::LocalHandle::kEmptyFileHandle;
24 pdx::LocalHandle acquire_fence, std::size_t slot = 0);
57 pdx::LocalHandle ClaimAcquireFence();
67 int Release(pdx::LocalHandle release_fence = {});
77 mutable pdx::LocalHandle acquire_fence_;
/aosp12/frameworks/native/libs/vr/libpdx_uds/
H A Dremote_method_tests.cpp28 using android::pdx::LocalHandle;
82 LocalHandle fd;
268 int SendFile(const LocalHandle& fd) { in SendFile()
273 Status<LocalHandle> status = in GetFile()
296 std::vector<LocalHandle> OpenFiles( in OpenFiles()
478 LocalHandle fd(path.c_str(), mode); in OnGetFile()
492 std::vector<LocalHandle> OnOpenFiles( in OnOpenFiles()
508 LocalHandle fd(path, mode); in OnReadFile()
640 TEST_F(RemoteMethodTest, LocalHandle) { in TEST_F() argument
656 fd = LocalHandle(-3); in TEST_F()
[all …]
H A Dservice_endpoint.cpp29 using android::pdx::LocalHandle;
122 std::vector<LocalHandle> sockets_to_close;
138 LocalHandle fd;
173 void Endpoint::Init(LocalHandle socket_fd) { in Init()
221 LocalHandle connection_fd{accept4(socket_fd_.Get(), in AcceptConnection()
230 LocalHandle local_socket; in AcceptConnection()
231 LocalHandle remote_socket; in AcceptConnection()
429 LocalHandle local_socket; in PushChannel()
430 LocalHandle remote_socket; in PushChannel()
499 RequestHeader<LocalHandle> request; in ReceiveMessageForChannel()
[all …]
H A Dclient_channel_factory.cpp42 ClientChannelFactory::ClientChannelFactory(LocalHandle socket) in ClientChannelFactory()
52 LocalHandle socket) { in Create()
126 ChannelConnectionInfo<LocalHandle> connection_info; in Connect()
147 ResponseHeader<LocalHandle> response; in Connect()
154 LocalHandle pollin_event_fd = std::move(response.channels[0].pollin_event_fd); in Connect()
155 LocalHandle pollhup_event_fd = in Connect()
H A Dchannel_event_set.cpp34 LocalHandle pollin_event_fd, pollhup_event_fd; in ChannelEventSet()
71 ChannelEventReceiver::ChannelEventReceiver(LocalHandle data_fd, in ChannelEventReceiver()
72 LocalHandle pollin_event_fd, in ChannelEventReceiver()
73 LocalHandle pollhup_event_fd) { in ChannelEventReceiver()
74 LocalHandle epoll_fd; in ChannelEventReceiver()
H A Dclient_channel_tests.cpp26 using android::pdx::LocalHandle;
81 explicit TestServiceRunner(LocalHandle channel_socket) { in TestServiceRunner()
82 auto endpoint = Endpoint::CreateFromSocketFd(LocalHandle{}); in TestServiceRunner()
109 LocalHandle service_channel{channel_sockets[0]}; in SetUp()
110 LocalHandle client_channel{channel_sockets[1]}; in SetUp()
H A Dchannel_manager.cpp24 LocalChannelHandle ChannelManager::CreateHandle(LocalHandle data_fd, in CreateHandle()
25 LocalHandle pollin_event_fd, in CreateHandle()
26 LocalHandle pollhup_event_fd) { in CreateHandle()
H A Dclient_channel.cpp20 bool GetLocalFileHandle(int index, LocalHandle* handle) { in GetLocalFileHandle()
70 ResponseHeader<LocalHandle> response;
219 Status<LocalHandle> ClientChannel::SendWithFileHandle( in SendWithFileHandle()
225 Status<LocalHandle> status; in SendWithFileHandle()
230 LocalHandle handle; in SendWithFileHandle()
260 const LocalHandle& handle) { in PushFileHandle()
284 LocalHandle* handle) const { in GetFileHandle()
/aosp12/frameworks/native/libs/vr/libbufferhubqueue/tests/
H A Dbuffer_hub_queue-test.cpp21 using pdx::LocalHandle;
101 LocalHandle fence; in TEST_F()
139 LocalHandle fence; in TEST_F()
222 LocalHandle fence; in TEST_F()
272 LocalHandle fence; in TEST_F()
487 LocalHandle fence; in TEST_F()
617 LocalHandle fence; in TEST_F()
641 LocalHandle fence; in TEST_F()
658 LocalHandle fence; in TEST_F()
745 LocalHandle fence; in TEST_F()
[all …]
/aosp12/frameworks/native/libs/vr/libpdx/
H A Dclient_tests.cpp17 using android::pdx::LocalHandle;
52 PDX_REMOTE_METHOD(SendFile, kOpSendFile, void(const LocalHandle& fd));
246 .WillOnce(Return(ByMove(LocalHandle{fd}))); in TEST_F()
248 Status<LocalHandle> status = in TEST_F()
263 Status<LocalHandle> status = in TEST_F()
304 LocalHandle fd{eventfd(0, 0)}; in TEST_F()
320 LocalHandle fd{eventfd(0, 0)}; in TEST_F()
426 .WillOnce(Return(ByMove(LocalHandle{-1}))); in TEST_F()
427 EXPECT_TRUE(transaction_.Send<LocalHandle>(2)); in TEST_F()
521 EXPECT_EQ(1, transaction_.PushFileHandle(LocalHandle{-1}).get()); in TEST_F()
[all …]
/aosp12/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
H A Dbuffer_hub_queue_client.h180 std::unique_ptr<uint8_t[]> in_metadata, pdx::LocalHandle in_fence, in Entry()
191 pdx::LocalHandle fence;
359 int timeout, size_t* slot, pdx::LocalHandle* release_fence);
380 pdx::LocalHandle* release_fence, bool gain_posted_buffer = false);
443 int timeout, size_t* slot, Meta* meta, pdx::LocalHandle* acquire_fence) { in Dequeue()
447 int timeout, size_t* slot, pdx::LocalHandle* acquire_fence) { in Dequeue()
453 pdx::LocalHandle* acquire_fence);
456 pdx::LocalHandle* acquire_fence);
/aosp12/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dmock_client_channel.h27 Status<LocalHandle>(void* transaction_state, int opcode,
38 const LocalHandle& handle));
49 LocalHandle* handle));

123