diff --git a/api/current.txt b/api/current.txt index 8dbb577a1fc7d..c34bf130705b4 100644 --- a/api/current.txt +++ b/api/current.txt @@ -4069,10 +4069,12 @@ package android.app { method public void setWallpaperOffsetSteps(float, float); method public void setWallpaperOffsets(android.os.IBinder, float, float); method public void suggestDesiredDimensions(int, int); + field public static final java.lang.String ACTION_CHANGE_LIVE_WALLPAPER = "android.service.wallpaper.CHANGE_LIVE_WALLPAPER"; field public static final java.lang.String ACTION_LIVE_WALLPAPER_CHOOSER = "android.service.wallpaper.LIVE_WALLPAPER_CHOOSER"; field public static final java.lang.String COMMAND_DROP = "android.home.drop"; field public static final java.lang.String COMMAND_SECONDARY_TAP = "android.wallpaper.secondaryTap"; field public static final java.lang.String COMMAND_TAP = "android.wallpaper.tap"; + field public static final java.lang.String EXTRA_LIVE_WALLPAPER_COMPONENT = "android.service.wallpaper.extra.LIVE_WALLPAPER_COMPONENT"; field public static final java.lang.String WALLPAPER_PREVIEW_META_DATA = "android.wallpaper.preview"; } diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 53a0186a5e0d0..8cd89003fd02c 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -194,6 +194,12 @@ public class Am { String key = nextArgRequired(); String value = nextArgRequired(); intent.putExtra(key, Uri.parse(value)); + } else if (opt.equals("--ecn")) { + String key = nextArgRequired(); + String value = nextArgRequired(); + ComponentName cn = ComponentName.unflattenFromString(value); + if (cn == null) throw new IllegalArgumentException("Bad component name: " + value); + intent.putExtra(key, cn); } else if (opt.equals("--eia")) { String key = nextArgRequired(); String value = nextArgRequired(); @@ -1366,6 +1372,7 @@ public class Am { " [--el ...]\n" + " [--ef ...]\n" + " [--eu ...]\n" + + " [--ecn ]\n" + " [--eia [, [, [,