Home
last modified time | relevance | path

Searched refs:BorrowedHandle (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dipc_helper.h40 Status<void> SendAll(SendInterface* sender, const BorrowedHandle& socket_fd,
42 Status<void> SendMsgAll(SendInterface* sender, const BorrowedHandle& socket_fd,
44 Status<void> RecvAll(RecvInterface* receiver, const BorrowedHandle& socket_fd,
47 const BorrowedHandle& socket_fd, msghdr* msg);
61 Status<void> Send(const BorrowedHandle& socket_fd);
62 Status<void> Send(const BorrowedHandle& socket_fd, const ucred* cred,
71 Status<FileReference> PushFileHandle(const BorrowedHandle& handle) override;
90 Status<void> Receive(const BorrowedHandle& socket_fd);
91 Status<void> Receive(const BorrowedHandle& socket_fd, ucred* cred);
163 inline Status<void> SendData(const BorrowedHandle& socket_fd, const T& data,
[all …]
Dchannel_event_set.h20 BorrowedHandle pollin_event_fd() const { return pollin_event_fd_.Borrow(); } in pollin_event_fd()
21 BorrowedHandle pollhup_event_fd() const { return pollhup_event_fd_.Borrow(); } in pollhup_event_fd()
51 BorrowedHandle event_fd() const { return epoll_fd_.Borrow(); } in event_fd()
53 BorrowedHandle pollin_event_fd() const { return pollin_event_fd_.Borrow(); } in pollin_event_fd()
54 BorrowedHandle pollhup_event_fd() const { return pollhup_event_fd_.Borrow(); } in pollhup_event_fd()
55 BorrowedHandle data_fd() const { return data_fd_.Borrow(); } in data_fd()
Dservice_endpoint.h68 const BorrowedHandle& handle) override;
134 Status<void> ReceiveMessageForChannel(const BorrowedHandle& channel_fd,
140 Status<void> ReenableEpollEvent(const BorrowedHandle& channel_fd);
142 BorrowedHandle GetChannelSocketFd(int32_t channel_id);
143 Status<std::pair<BorrowedHandle, BorrowedHandle>> GetChannelEventFd(
145 int32_t GetChannelId(const BorrowedHandle& channel_fd);
Dclient_channel.h70 const BorrowedHandle& handle) override;
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel.cpp46 FileReference PushFileHandle(BorrowedHandle handle) { in PushFileHandle()
59 ChannelInfo<BorrowedHandle> channel_info{ in PushChannelHandle()
69 RequestHeader<BorrowedHandle> request;
73 Status<void> ReadAndDiscardData(const BorrowedHandle& socket_fd, size_t size) { in ReadAndDiscardData()
89 Status<void> SendRequest(const BorrowedHandle& socket_fd, in SendRequest()
104 Status<void> ReceiveResponse(const BorrowedHandle& socket_fd, in ReceiveResponse()
166 android::pdx::uds::RequestHeader<BorrowedHandle> request; in SendImpulse()
175 return SendData(BorrowedHandle{channel_handle_.value()}, request); in SendImpulse()
194 auto status = SendRequest(BorrowedHandle{channel_handle_.value()}, state, in SendAndReceive()
197 status = ReceiveResponse(BorrowedHandle{channel_handle_.value()}, state, in SendAndReceive()
[all …]
Dipc_helper.cpp54 Status<void> SendAll(SendInterface* sender, const BorrowedHandle& socket_fd, in SendAll()
73 Status<void> SendMsgAll(SendInterface* sender, const BorrowedHandle& socket_fd, in SendMsgAll()
112 const BorrowedHandle& socket_fd, msghdr* msg) { in RecvMsgAll()
145 Status<void> RecvAll(RecvInterface* receiver, const BorrowedHandle& socket_fd, in RecvAll()
176 Status<void> SendPayload::Send(const BorrowedHandle& socket_fd) { in Send()
180 Status<void> SendPayload::Send(const BorrowedHandle& socket_fd, in Send()
252 const BorrowedHandle& handle) { in PushFileHandle()
279 Status<void> ReceivePayload::Receive(const BorrowedHandle& socket_fd) { in Receive()
283 Status<void> ReceivePayload::Receive(const BorrowedHandle& socket_fd, in Receive()
368 Status<void> SendData(const BorrowedHandle& socket_fd, const void* data, in SendData()
[all …]
Dservice_endpoint.cpp24 using android::pdx::BorrowedHandle;
61 Status<FileReference> PushFileHandle(BorrowedHandle handle) { in PushFileHandle()
74 ChannelInfo<BorrowedHandle> channel_info{ in PushChannelHandle()
84 Status<ChannelReference> PushChannelHandle(BorrowedHandle data_fd, in PushChannelHandle()
85 BorrowedHandle pollin_event_fd, in PushChannelHandle()
86 BorrowedHandle pollhup_event_fd) { in PushChannelHandle()
89 ChannelInfo<BorrowedHandle> channel_info{std::move(data_fd), in PushChannelHandle()
121 android::pdx::uds::ResponseHeader<BorrowedHandle> response;
237 BorrowedHandle channel_handle = local_socket.Borrow(); in AcceptConnection()
309 Status<void> Endpoint::ReenableEpollEvent(const BorrowedHandle& fd) { in ReenableEpollEvent()
[all …]
Dremote_method_tests.cpp23 using android::pdx::BorrowedHandle;
909 EXPECT_TRUE((IsConvertible<LocalHandle, BorrowedHandle>::value)); in TEST()
915 TestTemplateType<BorrowedHandle>>::value)); in TEST()
918 EXPECT_FALSE((IsConvertible<TestTemplateType<BorrowedHandle>, in TEST()
927 EXPECT_TRUE(HasSerializableMembers<TestTemplateType<BorrowedHandle>>::value); in TEST()
934 TestTemplateType<BorrowedHandle>>>::value); in TEST()
942 EXPECT_TRUE(HasSerializableMembers<TestTemplateType<BorrowedHandle>>::value); in TEST()
Dclient_channel_factory.cpp140 RequestHeader<BorrowedHandle> request; in Connect()
Dipc_helper_tests.cpp10 using android::pdx::BorrowedHandle;
23 static const BorrowedHandle kSocket{kSocketFd};
/frameworks/native/services/vr/bufferhubd/include/private/dvr/
Dconsumer_channel.h14 using BorrowedHandle = pdx::BorrowedHandle;
36 pdx::Status<BufferDescription<BorrowedHandle>> OnGetBuffer(Message& message);
Dproducer_channel.h27 using BorrowedHandle = pdx::BorrowedHandle; variable
54 BufferDescription<BorrowedHandle> GetBuffer(uint32_t client_state_mask);
107 pdx::Status<BufferDescription<BorrowedHandle>> OnGetBuffer(Message& message);
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dbufferhub_rpc.h153 using BorrowedNativeBufferHandle = NativeBufferHandle<pdx::BorrowedHandle>;
173 FenceHandle<pdx::BorrowedHandle> borrow() const { in borrow()
174 return FenceHandle<pdx::BorrowedHandle>(fence_.Borrow()); in borrow()
187 using BorrowedFence = FenceHandle<pdx::BorrowedHandle>;
/frameworks/native/services/vr/bufferhubd/
Dconsumer_channel.cpp9 using android::pdx::BorrowedHandle;
98 Status<BufferDescription<BorrowedHandle>> ConsumerChannel::OnGetBuffer( in OnGetBuffer()
Dproducer_channel.cpp16 using android::pdx::BorrowedHandle;
228 BufferDescription<BorrowedHandle> ProducerChannel::GetBuffer( in GetBuffer()
239 Status<BufferDescription<BorrowedHandle>> ProducerChannel::OnGetBuffer( in OnGetBuffer()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dmock_message_writer.h15 Status<FileReference>(const BorrowedHandle& handle));
Dmessage_writer.h15 const BorrowedHandle& handle) = 0;
Dmock_client_channel.h40 const BorrowedHandle& handle));
Dclient_channel.h57 const BorrowedHandle& handle) = 0;
Dfile_handle.h130 using BorrowedHandle = FileHandle<FileHandleMode::Borrowed>; variable
Dmock_service_endpoint.h48 const BorrowedHandle& handle));
Dservice_endpoint.h115 Message* message, const BorrowedHandle& handle) = 0;
Dutility.h159 Status<FileReference> PushFileHandle(const BorrowedHandle& handle) override {
293 Status<FileReference> PushFileHandle(const BorrowedHandle& handle) override {
/frameworks/native/libs/vr/libpdx/
Dservice_tests.cpp10 using android::pdx::BorrowedHandle;
438 BorrowedHandle handle{kFakeFd}; in TEST_F()
445 BorrowedHandle handle{-EACCES}; in TEST_F()
581 BorrowedHandle handle{kFakeFd}; in TEST_F()
583 PushFileHandle(message_.get(), Matcher<const BorrowedHandle&>( in TEST_F()
Dclient_tests.cpp11 using android::pdx::BorrowedHandle;
524 PushFileHandle(kTransactionState, A<const BorrowedHandle&>())) in TEST_F()
526 EXPECT_EQ(2, transaction_.PushFileHandle(BorrowedHandle{-1}).get()); in TEST_F()

12