diff options
author | Adam Cohen <adamcohen@google.com> | 2010-12-07 21:07:07 -0800 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2010-12-08 19:37:59 -0800 |
commit | 5a242ec2cf54e1bda69c2451304181ef1bc3e872 (patch) | |
tree | d2fbd5eb66f23e8dcece009a3a32fa5b3ce85c52 | |
parent | 2095a6d63b5b773030732b86aa44ba9ee52a04cc (diff) | |
download | frameworks_base-5a242ec2cf54e1bda69c2451304181ef1bc3e872.zip frameworks_base-5a242ec2cf54e1bda69c2451304181ef1bc3e872.tar.gz frameworks_base-5a242ec2cf54e1bda69c2451304181ef1bc3e872.tar.bz2 |
Added some pieces for Wallpaper previews
Change-Id: I48cd80108e5a555a1ca6180e29f67a87e05e9683
-rw-r--r-- | api/current.xml | 24 | ||||
-rw-r--r-- | core/java/android/app/WallpaperManager.java | 8 | ||||
-rwxr-xr-x | core/res/res/values/attrs.xml | 12 | ||||
-rw-r--r-- | core/res/res/values/public.xml | 1 |
4 files changed, 43 insertions, 2 deletions
diff --git a/api/current.xml b/api/current.xml index 9605511..5f22c47 100644 --- a/api/current.xml +++ b/api/current.xml @@ -8886,6 +8886,17 @@ visibility="public" > </field> +<field name="staticWallpaperPreview" + type="int" + transient="false" + volatile="false" + value="16843584" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="stepSize" type="int" transient="false" @@ -36149,6 +36160,17 @@ visibility="public" > </field> +<field name="WALLPAPER_PREVIEW_META_DATA" + type="java.lang.String" + transient="false" + volatile="false" + value=""android.wallpaper.preview"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> </class> </package> <package name="android.app.admin" @@ -250950,7 +250972,7 @@ deprecated="not deprecated" visibility="public" > -<parameter name="arg0" type="T"> +<parameter name="t" type="T"> </parameter> </method> </interface> diff --git a/core/java/android/app/WallpaperManager.java b/core/java/android/app/WallpaperManager.java index b95b123..13a8b78 100644 --- a/core/java/android/app/WallpaperManager.java +++ b/core/java/android/app/WallpaperManager.java @@ -62,7 +62,13 @@ public class WallpaperManager { */ public static final String ACTION_LIVE_WALLPAPER_CHOOSER = "android.service.wallpaper.LIVE_WALLPAPER_CHOOSER"; - + + /** + * Manifest entry for activities that respond to {@link Intent#ACTION_SET_WALLPAPER} + * which allows them to provide a custom large icon associated with this action. + */ + public static final String WALLPAPER_PREVIEW_META_DATA = "android.wallpaper.preview"; + /** * Command for {@link #sendWallpaperCommand}: reported by the wallpaper * host when the user taps on an empty area (not performing an action diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 4bd91b3..9aabfc4 100755 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -4282,6 +4282,18 @@ </declare-styleable> <!-- =============================== --> + <!-- Wallpaper preview attributes --> + <!-- =============================== --> + <eat-comment /> + + <!-- Use <code>wallpaper-preview</code> as the root tag of the XML resource that + describes a wallpaper preview. --> + <declare-styleable name="WallpaperPreviewInfo"> + <!-- A resource id of a static drawable. --> + <attr name="staticWallpaperPreview" format="reference" /> + </declare-styleable> + + <!-- =============================== --> <!-- App package class attributes --> <!-- =============================== --> <eat-comment /> diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 8fa1d32..22fe535 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -1398,6 +1398,7 @@ <public type="attr" name="buttonBarStyle" /> <public type="attr" name="buttonBarButtonStyle" /> <public type="attr" name="segmentedButtonStyle" /> + <public type="attr" name="staticWallpaperPreview" /> <public type="anim" name="animator_fade_in" /> <public type="anim" name="animator_fade_out" /> |