summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-10-20 20:15:20 -0700
committerDianne Hackborn <hackbod@google.com>2009-10-22 20:10:53 -0700
commit7580493b014a2c7ea883cd291255798dc72ebbff (patch)
tree22bffa58ac973192ea8b06ea747e1582526c1249 /tools/layoutlib
parent86dc4d312216be0b4c2847a1e79d94efaf4b9559 (diff)
downloadframeworks_base-7580493b014a2c7ea883cd291255798dc72ebbff.zip
frameworks_base-7580493b014a2c7ea883cd291255798dc72ebbff.tar.gz
frameworks_base-7580493b014a2c7ea883cd291255798dc72ebbff.tar.bz2
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
Diffstat (limited to 'tools/layoutlib')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java19
1 files changed, 19 insertions, 0 deletions
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.
}