Loading core/java/android/hardware/display/DisplayManager.java +22 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,28 @@ public final class DisplayManager { * @see #createVirtualDisplay */ public static final int VIRTUAL_DISPLAY_FLAG_SECURE = 1 << 2; /** * Virtual display flag: Create a secure display that uses HWC secure * blending. * * <h3>Secure virtual displays that use HWC secure blending</h3> * <p> * When this flag is set, the virtual display is considered secure and uses * HWC secure blending for composing the surfaces. The caller promises to take * reasonable measures, such as over-the-air encryption, to prevent the contents * of the display from being intercepted or recorded on a persistent medium. * </p> * * <h3>Secure virtual displays that don't use HWC secure blending</h3> * <p> * When this flag is not set, HWC secure blending is not supported for this * virtual display. * </p> * * @see Display#FLAG_SUPPORTS_PROTECTED_BUFFERS * @hide */ public static final int VIRTUAL_DISPLAY_FLAG_SUPPORTS_PROTECTED_BUFFERS = 1 << 3; /** @hide */ public DisplayManager(Context context) { Loading services/java/com/android/server/display/VirtualDisplayAdapter.java +6 −0 Original line number Diff line number Diff line Loading @@ -162,6 +162,12 @@ final class VirtualDisplayAdapter extends DisplayAdapter { } if ((mFlags & DisplayManager.VIRTUAL_DISPLAY_FLAG_SECURE) != 0) { mInfo.flags |= DisplayDeviceInfo.FLAG_SECURE; if ((mFlags & DisplayManager. VIRTUAL_DISPLAY_FLAG_SUPPORTS_PROTECTED_BUFFERS) != 0) { mInfo.flags |= DisplayDeviceInfo.FLAG_SUPPORTS_PROTECTED_BUFFERS; } } if ((mFlags & DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION) != 0) { mInfo.flags |= DisplayDeviceInfo.FLAG_PRESENTATION; Loading Loading
core/java/android/hardware/display/DisplayManager.java +22 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,28 @@ public final class DisplayManager { * @see #createVirtualDisplay */ public static final int VIRTUAL_DISPLAY_FLAG_SECURE = 1 << 2; /** * Virtual display flag: Create a secure display that uses HWC secure * blending. * * <h3>Secure virtual displays that use HWC secure blending</h3> * <p> * When this flag is set, the virtual display is considered secure and uses * HWC secure blending for composing the surfaces. The caller promises to take * reasonable measures, such as over-the-air encryption, to prevent the contents * of the display from being intercepted or recorded on a persistent medium. * </p> * * <h3>Secure virtual displays that don't use HWC secure blending</h3> * <p> * When this flag is not set, HWC secure blending is not supported for this * virtual display. * </p> * * @see Display#FLAG_SUPPORTS_PROTECTED_BUFFERS * @hide */ public static final int VIRTUAL_DISPLAY_FLAG_SUPPORTS_PROTECTED_BUFFERS = 1 << 3; /** @hide */ public DisplayManager(Context context) { Loading
services/java/com/android/server/display/VirtualDisplayAdapter.java +6 −0 Original line number Diff line number Diff line Loading @@ -162,6 +162,12 @@ final class VirtualDisplayAdapter extends DisplayAdapter { } if ((mFlags & DisplayManager.VIRTUAL_DISPLAY_FLAG_SECURE) != 0) { mInfo.flags |= DisplayDeviceInfo.FLAG_SECURE; if ((mFlags & DisplayManager. VIRTUAL_DISPLAY_FLAG_SUPPORTS_PROTECTED_BUFFERS) != 0) { mInfo.flags |= DisplayDeviceInfo.FLAG_SUPPORTS_PROTECTED_BUFFERS; } } if ((mFlags & DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION) != 0) { mInfo.flags |= DisplayDeviceInfo.FLAG_PRESENTATION; Loading