summaryrefslogtreecommitdiffstats
path: root/core/java/com
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 /core/java/com
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 'core/java/com')
-rw-r--r--core/java/com/android/internal/view/BaseIWindow.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/com/android/internal/view/BaseIWindow.java b/core/java/com/android/internal/view/BaseIWindow.java
index 38ef0c2..2674262 100644
--- a/core/java/com/android/internal/view/BaseIWindow.java
+++ b/core/java/com/android/internal/view/BaseIWindow.java
@@ -1,6 +1,7 @@
package com.android.internal.view;
import android.graphics.Rect;
+import android.os.Bundle;
import android.os.ParcelFileDescriptor;
import android.os.RemoteException;
import android.view.IWindow;
@@ -101,4 +102,14 @@ public class BaseIWindow extends IWindow.Stub {
}
}
}
+
+ public void dispatchWallpaperCommand(String action, int x, int y,
+ int z, Bundle extras, boolean sync) {
+ if (sync) {
+ try {
+ mSession.wallpaperCommandComplete(asBinder(), null);
+ } catch (RemoteException e) {
+ }
+ }
+ }
}