am fddedc94: Merge "Dream metadata now specified using an xml-resource." into jb-mr1-dev
* commit 'fddedc94b77812ea13afe8cae32ad27d7266f787': Dream metadata now specified using an xml-resource.
This commit is contained in:
@@ -20332,7 +20332,6 @@ package android.service.dreams {
|
|||||||
method public boolean isInteractive();
|
method public boolean isInteractive();
|
||||||
method public boolean isLowProfile();
|
method public boolean isLowProfile();
|
||||||
method public boolean isScreenBright();
|
method public boolean isScreenBright();
|
||||||
method protected deprecated void lightsOut();
|
|
||||||
method public void onActionModeFinished(android.view.ActionMode);
|
method public void onActionModeFinished(android.view.ActionMode);
|
||||||
method public void onActionModeStarted(android.view.ActionMode);
|
method public void onActionModeStarted(android.view.ActionMode);
|
||||||
method public void onAttachedToWindow();
|
method public void onAttachedToWindow();
|
||||||
@@ -20360,7 +20359,7 @@ package android.service.dreams {
|
|||||||
field public static final java.lang.String ACTION_DREAMING_STARTED = "android.intent.action.DREAMING_STARTED";
|
field public static final java.lang.String ACTION_DREAMING_STARTED = "android.intent.action.DREAMING_STARTED";
|
||||||
field public static final java.lang.String ACTION_DREAMING_STOPPED = "android.intent.action.DREAMING_STOPPED";
|
field public static final java.lang.String ACTION_DREAMING_STOPPED = "android.intent.action.DREAMING_STOPPED";
|
||||||
field public static final java.lang.String CATEGORY_DREAM = "android.intent.category.DREAM";
|
field public static final java.lang.String CATEGORY_DREAM = "android.intent.category.DREAM";
|
||||||
field public static final java.lang.String METADATA_NAME_CONFIG_ACTIVITY = "android.service.dreams.config_activity";
|
field public static final java.lang.String DREAM_META_DATA = "android.service.dream";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,10 +59,10 @@ import com.android.internal.policy.PolicyManager;
|
|||||||
* <category android:name="android.intent.category.DREAM" />
|
* <category android:name="android.intent.category.DREAM" />
|
||||||
* </intent-filter>
|
* </intent-filter>
|
||||||
*
|
*
|
||||||
* <!-- Point to configuration activity for this dream (optional) -->
|
* <!-- Point to additional information for this dream (optional) -->
|
||||||
* <meta-data
|
* <meta-data
|
||||||
* android:name="android.service.dreams.config_activity"
|
* android:name="android.service.dream"
|
||||||
* android:value="com.example.mypackage/com.example.mypackage.MyDreamSettingsActivity" />
|
* android:resource="@xml/my_dream" />
|
||||||
* </service>
|
* </service>
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
@@ -81,12 +81,12 @@ public class Dream extends Service implements Window.Callback {
|
|||||||
"android.intent.category.DREAM";
|
"android.intent.category.DREAM";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service meta-data key for declaring an optional configuration activity.
|
* Name under which a Dream publishes information about itself.
|
||||||
*
|
* This meta-data must reference an XML resource containing
|
||||||
* @see Dream
|
* a <code><{@link android.R.styleable#Dream dream}></code>
|
||||||
* */
|
* tag.
|
||||||
public static final String METADATA_NAME_CONFIG_ACTIVITY =
|
*/
|
||||||
"android.service.dreams.config_activity";
|
public static final String DREAM_META_DATA = "android.service.dream";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Broadcast Action: Sent after the system starts dreaming.
|
* Broadcast Action: Sent after the system starts dreaming.
|
||||||
@@ -361,13 +361,6 @@ public class Dream extends Service implements Window.Callback {
|
|||||||
return getWindow().findViewById(id);
|
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.
|
* Marks this dream as interactive to receive input events.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -5305,6 +5305,19 @@
|
|||||||
<attr name="description" />
|
<attr name="description" />
|
||||||
</declare-styleable>
|
</declare-styleable>
|
||||||
|
|
||||||
|
<!-- Use <code>dream</code> as the root tag of the XML resource that
|
||||||
|
describes an
|
||||||
|
{@link android.service.dreams.Dream}, which is
|
||||||
|
referenced from its
|
||||||
|
{@link android.service.dreams.Dream#DREAM_META_DATA}
|
||||||
|
meta-data entry. Described here are the attributes that can be
|
||||||
|
included in that tag. -->
|
||||||
|
<declare-styleable name="Dream">
|
||||||
|
<!-- Component name of an activity that allows the user to modify
|
||||||
|
the settings for this dream. -->
|
||||||
|
<attr name="settingsActivity" />
|
||||||
|
</declare-styleable>
|
||||||
|
|
||||||
<!-- =============================== -->
|
<!-- =============================== -->
|
||||||
<!-- Accounts package class attributes -->
|
<!-- Accounts package class attributes -->
|
||||||
<!-- =============================== -->
|
<!-- =============================== -->
|
||||||
|
|||||||
Reference in New Issue
Block a user