From f41f505fac0ba31159d3cdba3ca9e0c00bc3fe9b Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Wed, 26 Sep 2012 12:17:42 -0400 Subject: Dream metadata now specified using an xml-resource. Removed old metadata key for dream settings activity, now defined in attrs.xml. Also took this opportunity to remove Dream#lightsOut. Bug:7172816 Bug:7211867 Change-Id: Ied18a527d2dc2aacc19d7a9543f090653232f0ed --- core/java/android/service/dreams/Dream.java | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'core/java/android/service') diff --git a/core/java/android/service/dreams/Dream.java b/core/java/android/service/dreams/Dream.java index dedfb0c..473414c 100644 --- a/core/java/android/service/dreams/Dream.java +++ b/core/java/android/service/dreams/Dream.java @@ -59,10 +59,10 @@ import com.android.internal.policy.PolicyManager; * * * - * + * * + * android:name="android.service.dream" + * android:resource="@xml/my_dream" /> * * } * @@ -81,12 +81,12 @@ public class Dream extends Service implements Window.Callback { "android.intent.category.DREAM"; /** - * Service meta-data key for declaring an optional configuration activity. - * - * @see Dream - * */ - public static final String METADATA_NAME_CONFIG_ACTIVITY = - "android.service.dreams.config_activity"; + * Name under which a Dream publishes information about itself. + * This meta-data must reference an XML resource containing + * a <{@link android.R.styleable#Dream dream}> + * tag. + */ + public static final String DREAM_META_DATA = "android.service.dream"; /** * Broadcast Action: Sent after the system starts dreaming. @@ -361,13 +361,6 @@ public class Dream extends Service implements Window.Callback { return getWindow().findViewById(id); } - /** FIXME remove once platform dreams are updated */ - @Deprecated - protected void lightsOut() { - setLowProfile(true); - setFullscreen(true); - } - /** * Marks this dream as interactive to receive input events. * -- cgit v1.1