summaryrefslogtreecommitdiffstats
path: root/core/java/android/view
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-10-19 18:29:29 -0700
committerJamie Gennis <jgennis@google.com>2012-10-19 18:34:35 -0700
commit7bbf8163fb83afc54b353a8def52bfb87ecce047 (patch)
tree9080f41d0ea7a72ad49ca79441858091b693ed45 /core/java/android/view
parent398a6713c355cf59af071e944268aec7c0096b5a (diff)
downloadframeworks_base-7bbf8163fb83afc54b353a8def52bfb87ecce047.zip
frameworks_base-7bbf8163fb83afc54b353a8def52bfb87ecce047.tar.gz
frameworks_base-7bbf8163fb83afc54b353a8def52bfb87ecce047.tar.bz2
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
Diffstat (limited to 'core/java/android/view')
-rw-r--r--core/java/android/view/Surface.java6
1 files changed, 3 insertions, 3 deletions
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 */