From 7bbf8163fb83afc54b353a8def52bfb87ecce047 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Fri, 19 Oct 2012 18:29:29 -0700 Subject: Set the secureness when creating displays This change makes use of the new 'secure' argument to the ISurfaceComposer::createDisplay method. In this change both the overlay and wifi displays are hard-coded to be non-secure displays. Bug: 7368436 Change-Id: Ib65312f2adab5104d8deefbfc32af9dc106a9129 --- core/java/android/view/Surface.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/java/android/view') diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java index 7ef6939..183b012 100644 --- a/core/java/android/view/Surface.java +++ b/core/java/android/view/Surface.java @@ -258,7 +258,7 @@ public class Surface implements Parcelable { private native void nativeSetLayerStack(int layerStack); private static native IBinder nativeGetBuiltInDisplay(int physicalDisplayId); - private static native IBinder nativeCreateDisplay(String name); + private static native IBinder nativeCreateDisplay(String name, boolean secure); private static native void nativeSetDisplaySurface( IBinder displayToken, Surface surface); private static native void nativeSetDisplayLayerStack( @@ -597,11 +597,11 @@ public class Surface implements Parcelable { } /** @hide */ - public static IBinder createDisplay(String name) { + public static IBinder createDisplay(String name, boolean secure) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } - return nativeCreateDisplay(name); + return nativeCreateDisplay(name, secure); } /** @hide */ -- cgit v1.1