• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type vr_hwc, domain;
2type vr_hwc_exec, system_file_type, exec_type, file_type;
3
4# Get buffer metadata.
5hal_client_domain(vr_hwc, hal_graphics_allocator)
6
7binder_use(vr_hwc)
8binder_service(vr_hwc)
9
10binder_call(vr_hwc, surfaceflinger)
11# Needed to check for app permissions.
12binder_call(vr_hwc, system_server)
13
14add_service(vr_hwc, vr_hwc_service)
15
16# Hosts the VR HWC implementation and provides a simple Binder interface for VR
17# Window Manager to receive the layers/buffers.
18hwbinder_use(vr_hwc)
19
20# Load vendor libraries.
21allow vr_hwc system_file:dir r_dir_perms;
22
23allow vr_hwc ion_device:chr_file r_file_perms;
24
25# Allow connection to VR DisplayClient to get the primary display metadata
26# (ie: size).
27pdx_client(vr_hwc, display_client)
28
29# Requires access to the permission service to validate that clients have the
30# appropriate VR permissions.
31allow vr_hwc permission_service:service_manager find;
32
33allow vr_hwc vrflinger_vsync_service:service_manager find;
34