1package android.dvr;
2
3import android.dvr.IVrComposerCallback;
4
5/**
6 * Service interface exposed by VR HWC exposed to system apps which allows one
7 * system app to connect to get SurfaceFlinger's outputs (all displays). This
8 * is active when SurfaceFlinger is in VR mode, where all 2D output is
9 * redirected to VR HWC.
10 *
11 * @hide */
12interface IVrComposer
13{
14  const String SERVICE_NAME = "vr_hwc";
15
16  /**
17   * Registers a callback used to receive frame notifications.
18   */
19  void registerObserver(in IVrComposerCallback callback);
20
21  /**
22   * Clears a previously registered frame notification callback.
23   */
24  void clearObserver();
25}
26