From 7580493b014a2c7ea883cd291255798dc72ebbff Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 20 Oct 2009 20:15:20 -0700 Subject: Implement feature #2117336: Create event communication APIs for live wallpaper Note: currently only implements an async version (no result), and not yet actually tested. Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a --- .../src/com/android/layoutlib/bridge/Bridge.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tools/layoutlib') diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java index d28a151..f0223e8 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java @@ -36,6 +36,7 @@ import android.graphics.Rect; import android.graphics.Region; import android.graphics.Typeface; import android.graphics.drawable.Drawable; +import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.Looper; @@ -1069,6 +1070,18 @@ public final class Bridge implements ILayoutBridge { } @SuppressWarnings("unused") + public Bundle sendWallpaperCommand(IBinder window, String action, int x, int y, + int z, Bundle extras, boolean sync) { + // pass for now. + return null; + } + + @SuppressWarnings("unused") + public void wallpaperCommandComplete(IBinder window, Bundle result) { + // pass for now. + } + + @SuppressWarnings("unused") public void closeSystemDialogs(String reason) { // pass for now. } @@ -1132,6 +1145,12 @@ public final class Bridge implements ILayoutBridge { } @SuppressWarnings("unused") + public void dispatchWallpaperCommand(String action, int x, int y, + int z, Bundle extras, boolean sync) { + // pass for now. + } + + @SuppressWarnings("unused") public void closeSystemDialogs(String reason) { // pass for now. } -- cgit v1.1