Home
last modified time | relevance | path

Searched refs:pdx (Results 1 – 25 of 149) sorted by relevance

123456

/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h37 class BufferHubQueue : public pdx::Client {
67 pdx::Status<pdx::LocalChannelHandle> CreateConsumerQueueHandle(
72 pdx::Status<ConsumerQueueParcelable> CreateConsumerQueueParcelable(
101 pdx::Status<int> GetEventMask(int events) { in GetEventMask()
105 return pdx::ErrorStatus(EINVAL); in GetEventMask()
134 explicit BufferHubQueue(pdx::LocalChannelHandle channel);
139 pdx::Status<void> ImportQueue();
146 pdx::Status<void> AddBuffer(const std::shared_ptr<BufferHubBase>& buffer,
151 virtual pdx::Status<void> RemoveBuffer(size_t slot);
155 virtual pdx::Status<void> FreeAllBuffers();
[all …]
/frameworks/native/libs/vr/libvrflinger/
Ddisplay_service.h25 class DisplayService : public pdx::ServiceBase<DisplayService> {
30 void OnChannelClose(pdx::Message& message,
31 const std::shared_ptr<pdx::Channel>& channel) override;
32 pdx::Status<void> HandleMessage(pdx::Message& message) override;
43 pdx::Status<BorrowedNativeBufferHandle> SetupGlobalBuffer(
46 pdx::Status<void> DeleteGlobalBuffer(DvrGlobalBufferKey key);
78 pdx::Status<BorrowedNativeBufferHandle> OnGetGlobalBuffer(
79 pdx::Message& message, DvrGlobalBufferKey key);
80 pdx::Status<display::Metrics> OnGetMetrics(pdx::Message& message);
81 pdx::Status<std::string> OnGetConfigurationData(
[all …]
Ddisplay_manager_service.cpp13 using android::pdx::Channel;
14 using android::pdx::LocalChannelHandle;
15 using android::pdx::Message;
16 using android::pdx::default_transport::Endpoint;
17 using android::pdx::ErrorStatus;
18 using android::pdx::rpc::DispatchRemoteMethod;
19 using android::pdx::rpc::IfAnyOf;
20 using android::pdx::rpc::RemoteMethodError;
43 std::shared_ptr<pdx::Channel> DisplayManagerService::OnChannelOpen( in OnChannelOpen()
44 pdx::Message& message) { in OnChannelOpen()
[all …]
Ddisplay_manager_service.h18 class DisplayManager : public pdx::Channel {
41 class DisplayManagerService : public pdx::ServiceBase<DisplayManagerService> {
43 std::shared_ptr<pdx::Channel> OnChannelOpen(pdx::Message& message) override;
44 void OnChannelClose(pdx::Message& message,
45 const std::shared_ptr<pdx::Channel>& channel) override;
46 pdx::Status<void> HandleMessage(pdx::Message& message) override;
54 pdx::Status<std::vector<display::SurfaceState>> OnGetSurfaceState(
55 pdx::Message& message);
56 pdx::Status<pdx::LocalChannelHandle> OnGetSurfaceQueue(pdx::Message& message,
Ddisplay_surface.h28 class DisplaySurface : public pdx::Channel {
30 static pdx::Status<std::shared_ptr<DisplaySurface>> Create(
67 virtual pdx::Status<pdx::LocalChannelHandle> OnCreateQueue(
68 pdx::Message& message, const ProducerQueueConfig& config) = 0;
72 pdx::Status<void> RegisterQueue(
74 pdx::Status<void> UnregisterQueue(
95 pdx::Status<void> HandleMessage(pdx::Message& message);
97 pdx::Status<void> OnSetAttributes(
98 pdx::Message& message, const display::SurfaceAttributes& attributes);
99 pdx::Status<display::SurfaceInfo> OnGetSurfaceInfo(pdx::Message& message);
[all …]
Ddisplay_service.cpp22 using android::pdx::Channel;
23 using android::pdx::ErrorStatus;
24 using android::pdx::Message;
25 using android::pdx::Status;
26 using android::pdx::default_transport::Endpoint;
27 using android::pdx::rpc::DispatchRemoteMethod;
115 void DisplayService::OnChannelClose(pdx::Message& message, in OnChannelClose()
127 Status<void> DisplayService::HandleMessage(pdx::Message& message) { in HandleMessage()
179 pdx::Message& /*message*/) { in OnGetMetrics()
194 pdx::Status<std::string> DisplayService::OnGetConfigurationData( in OnGetConfigurationData()
[all …]
Dhardware_composer.h132 pdx::rpc::IfAnyOf<SourceSurface>::Call( in GetSurfaceId()
141 pdx::rpc::IfAnyOf<SourceSurface>::Call( in GetBufferId()
196 pdx::LocalHandle release_fence;
206 std::tuple<int, int, int, sp<GraphicBuffer>, pdx::LocalHandle, std::size_t>
220 return std::make_tuple(0, 0, -1, nullptr, pdx::LocalHandle{}, 0); in Acquire()
224 void Finish(pdx::LocalHandle fence) { release_fence = std::move(fence); } in Finish()
252 std::tuple<int, int, int, sp<GraphicBuffer>, pdx::LocalHandle, std::size_t>
256 buffer->buffer(), pdx::LocalHandle{}, 0); in Acquire()
258 return std::make_tuple(0, 0, -1, nullptr, pdx::LocalHandle{}, 0); in Acquire()
261 void Finish(pdx::LocalHandle /*fence*/) {} in Finish()
[all …]
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_;
Depoll_event_dispatcher.h31 pdx::Status<void> AddEventHandler(int fd, int event_mask, Handler handler);
32 pdx::Status<void> RemoveEventHandler(int fd);
56 pdx::LocalHandle epoll_fd_;
57 pdx::LocalHandle event_fd_;
/frameworks/native/services/vr/bufferhubd/include/private/dvr/
Dproducer_queue_channel.h13 static pdx::Status<std::shared_ptr<ProducerQueueChannel>> Create(
18 bool HandleMessage(pdx::Message& message) override;
19 void HandleImpulse(pdx::Message& message) override;
27 pdx::Status<pdx::RemoteChannelHandle> OnCreateConsumerQueue(
28 pdx::Message& message, bool silent);
30 pdx::Status<QueueInfo> OnGetQueueInfo(pdx::Message& message);
34 pdx::Status<std::vector<std::pair<pdx::RemoteChannelHandle, size_t>>>
35 OnProducerQueueAllocateBuffers(pdx::Message& message, uint32_t width,
42 pdx::Status<size_t> OnProducerQueueInsertBuffer(pdx::Message& message, int buffer_cid);
46 pdx::Status<void> OnProducerQueueRemoveBuffer(pdx::Message& message,
[all …]
Dproducer_channel.h26 using Message = pdx::Message;
27 using BorrowedHandle = pdx::BorrowedHandle;
28 using RemoteChannelHandle = pdx::RemoteChannelHandle;
30 using BufferWrapper = pdx::rpc::BufferWrapper<T>;
38 static pdx::Status<std::shared_ptr<ProducerChannel>> Create(
56 pdx::Status<RemoteChannelHandle> CreateConsumer(Message& message,
58 pdx::Status<uint32_t> CreateConsumerStateMask();
59 pdx::Status<RemoteChannelHandle> OnNewConsumer(Message& message);
61 pdx::Status<LocalFence> OnConsumerAcquire(Message& message);
62 pdx::Status<void> OnConsumerRelease(Message& message,
[all …]
Dbuffer_hub.h21 class BufferHubChannel : public pdx::Channel {
39 virtual bool HandleMessage(pdx::Message& message) = 0;
40 virtual void HandleImpulse(pdx::Message& message) = 0;
130 class BufferHubService : public pdx::ServiceBase<BufferHubService> {
135 pdx::Status<void> HandleMessage(pdx::Message& message) override;
136 void HandleImpulse(pdx::Message& message) override;
144 pdx::Status<void> OnCreateBuffer(pdx::Message& message, uint32_t width,
147 pdx::Status<QueueInfo> OnCreateProducerQueue(
148 pdx::Message& message, const ProducerQueueConfig& producer_config,
Dconsumer_channel.h14 using BorrowedHandle = pdx::BorrowedHandle;
15 using Channel = pdx::Channel;
16 using Message = pdx::Message;
36 pdx::Status<BufferDescription<BorrowedHandle>> OnGetBuffer(Message& message);
38 pdx::Status<LocalFence> OnConsumerAcquire(Message& message);
39 pdx::Status<void> OnConsumerRelease(Message& message,
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_client.h15 class Surface : public pdx::ClientBase<Surface> {
19 static pdx::Status<std::unique_ptr<Surface>> CreateSurface( in CreateSurface()
22 pdx::Status<std::unique_ptr<Surface>> status; in CreateSurface()
34 pdx::Status<void> SetVisible(bool visible);
35 pdx::Status<void> SetZOrder(int z_order);
36 pdx::Status<void> SetAttributes(const SurfaceAttributes& attributes);
39 pdx::Status<std::unique_ptr<ProducerQueue>> CreateQueue(uint32_t width,
46 pdx::Status<std::unique_ptr<ProducerQueue>> CreateQueue(uint32_t width,
64 explicit Surface(pdx::LocalChannelHandle channel_handle,
71 class DisplayClient : public pdx::ClientBase<DisplayClient> {
[all …]
Ddisplay_manager_client.h19 class DisplayManagerClient : public pdx::ClientBase<DisplayManagerClient> {
23 pdx::Status<std::vector<SurfaceState>> GetSurfaceState();
24 pdx::Status<std::unique_ptr<ConsumerQueue>> GetSurfaceQueue(int surface_id,
29 pdx::Status<int> GetEventMask(int events) { in GetEventMask()
33 return pdx::ErrorStatus(EINVAL); in GetEventMask()
/frameworks/native/services/vr/performanced/
Dperformance_service.h20 class PerformanceService : public pdx::ServiceBase<PerformanceService> {
22 pdx::Status<void> HandleMessage(pdx::Message& message) override;
32 pdx::Status<void> OnSetSchedulerPolicy(pdx::Message& message, pid_t task_id,
35 pdx::Status<void> OnSetCpuPartition(pdx::Message& message, pid_t task_id,
37 pdx::Status<void> OnSetSchedulerClass(pdx::Message& message, pid_t task_id,
39 pdx::Status<std::string> OnGetCpuPartition(pdx::Message& message,
59 std::function<bool(const pdx::Message& message, const Task& task)>
66 bool IsAllowed(const pdx::Message& sender, const Task& task) const { in IsAllowed()
78 std::function<bool(const pdx::Message& message, const Task& task)>
/frameworks/native/libs/vr/libpdx/
Dmock_tests.cpp11 android::pdx::MockClientChannel client_channel; in TEST()
12 android::pdx::MockClientChannelFactory client_channel_factory; in TEST()
13 android::pdx::MockInputResourceMapper input_resource_mapper; in TEST()
14 android::pdx::MockMessageReader message_reader; in TEST()
15 android::pdx::MockOutputResourceMapper output_resource_mapper; in TEST()
16 android::pdx::MockMessageWriter message_writer; in TEST()
17 android::pdx::MockEndpoint endpoint; in TEST()
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel_tests.cpp24 using android::pdx::ClientBase;
25 using android::pdx::LocalChannelHandle;
26 using android::pdx::LocalHandle;
27 using android::pdx::Message;
28 using android::pdx::ServiceBase;
29 using android::pdx::ServiceDispatcher;
30 using android::pdx::Status;
31 using android::pdx::rpc::DispatchRemoteMethod;
32 using android::pdx::uds::ClientChannel;
33 using android::pdx::uds::ClientChannelFactory;
[all …]
Dservice_framework_tests.cpp26 using android::pdx::BorrowedChannelHandle;
27 using android::pdx::Channel;
28 using android::pdx::ChannelReference;
29 using android::pdx::ClientBase;
30 using android::pdx::ErrorStatus;
31 using android::pdx::LocalChannelHandle;
32 using android::pdx::LocalHandle;
33 using android::pdx::Message;
34 using android::pdx::MessageInfo;
35 using android::pdx::RemoteChannelHandle;
[all …]
/frameworks/native/libs/vr/libdisplay/
Ddisplay_manager_client.cpp8 using android::pdx::ErrorStatus;
9 using android::pdx::LocalChannelHandle;
10 using android::pdx::Transaction;
17 : BASE(pdx::default_transport::ClientChannelFactory::Create( in DisplayManagerClient()
22 pdx::Status<std::vector<display::SurfaceState>>
34 pdx::Status<std::unique_ptr<ConsumerQueue>>
Ddisplay_client.cpp13 using android::pdx::ErrorStatus;
14 using android::pdx::LocalHandle;
15 using android::pdx::LocalChannelHandle;
16 using android::pdx::Status;
17 using android::pdx::Transaction;
18 using android::pdx::rpc::IfAnyOf;
25 : BASE{pdx::default_transport::ClientChannel::Create( in Surface()
42 : BASE{pdx::default_transport::ClientChannelFactory::Create( in Surface()
157 : BASE(pdx::default_transport::ClientChannelFactory::Create( in DisplayClient()
190 pdx::Status<std::unique_ptr<IonBuffer>> DisplayClient::SetupGlobalBuffer( in SetupGlobalBuffer()
[all …]
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dclient_channel_factory.h9 namespace pdx {
12 class ClientChannelFactory : public pdx::ClientChannelFactory {
14 static std::unique_ptr<pdx::ClientChannelFactory> Create(
16 static std::unique_ptr<pdx::ClientChannelFactory> Create(LocalHandle socket);
18 Status<std::unique_ptr<pdx::ClientChannel>> Connect(
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dbuffer_hub_base.h13 class BufferHubBase : public pdx::Client {
15 using LocalHandle = pdx::LocalHandle;
16 using LocalChannelHandle = pdx::LocalChannelHandle;
18 using Status = pdx::Status<T>;
48 return pdx::ErrorStatus(EINVAL); in GetEventMask()
52 std::vector<pdx::ClientChannel::EventSource> GetEventSources() const { in GetEventSources()
/frameworks/native/services/vr/bufferhubd/
Dconsumer_channel.cpp9 using android::pdx::BorrowedHandle;
10 using android::pdx::Channel;
11 using android::pdx::ErrorStatus;
12 using android::pdx::Message;
13 using android::pdx::Status;
14 using android::pdx::rpc::DispatchRemoteMethod;
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub_base.cpp8 using android::pdx::LocalChannelHandle;
9 using android::pdx::LocalHandle;
10 using android::pdx::Status;
11 using android::pdx::default_transport::ClientChannel;
12 using android::pdx::default_transport::ClientChannelFactory;
18 : Client{pdx::default_transport::ClientChannel::Create( in BufferHubBase()
23 : Client{pdx::default_transport::ClientChannelFactory::Create( in BufferHubBase()

123456