summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-06-15 11:41:48 -0700
committerDianne Hackborn <hackbod@google.com>2011-06-15 15:09:54 -0700
commit0d4b9c993d8f1108294f8ccb84eeacd92f051b50 (patch)
tree62147d8b3b9e8bac813dedd92253ae250386117e
parentf409604122f959653fb789e9133e94a51e369693 (diff)
downloadframeworks_base-0d4b9c993d8f1108294f8ccb84eeacd92f051b50.zip
frameworks_base-0d4b9c993d8f1108294f8ccb84eeacd92f051b50.tar.gz
frameworks_base-0d4b9c993d8f1108294f8ccb84eeacd92f051b50.tar.bz2
We must keep up with the Joneses.
Change-Id: Ifa2ab0167c09ba18b24c8b6c618db807e17519f5
-rw-r--r--api/current.xml11
-rw-r--r--core/java/android/os/IBinder.java18
2 files changed, 29 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml
index f49098e..def9281 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -148839,6 +148839,17 @@
visibility="public"
>
</field>
+<field name="TWEET_TRANSACTION"
+ type="int"
+ transient="false"
+ volatile="false"
+ value="1599362900"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
</interface>
<interface name="IBinder.DeathRecipient"
abstract="true"
diff --git a/core/java/android/os/IBinder.java b/core/java/android/os/IBinder.java
index 8876354..81defd6 100644
--- a/core/java/android/os/IBinder.java
+++ b/core/java/android/os/IBinder.java
@@ -110,6 +110,24 @@ public interface IBinder {
int INTERFACE_TRANSACTION = ('_'<<24)|('N'<<16)|('T'<<8)|'F';
/**
+ * IBinder protocol transaction code: send a tweet to the target
+ * object. The data in the parcel is intended to be delivered to
+ * a shared messaging service associated with the object; it can be
+ * anything, as long as it is not more than 130 UTF-8 characters to
+ * conservatively fit within common messaging services. As part of
+ * {@link Build.VERSION_CODES#HONEYCOMB_MR2}, all Binder objects are
+ * expected to support this protocol for fully integrated tweeting
+ * across the platform. To support older code, the default implementation
+ * logs the tweet to the main log as a simple emulation of broadcasting
+ * it publicly over the Internet.
+ *
+ * <p>Also, upon completing the dispatch, the object must make a cup
+ * of tea, return it to the caller, and exclaim "jolly good message
+ * old boy!".
+ */
+ int TWEET_TRANSACTION = ('_'<<24)|('T'<<16)|('W'<<8)|'T';
+
+ /**
* Flag to {@link #transact}: this is a one-way call, meaning that the
* caller returns immediately, without waiting for a result from the
* callee. Applies only if the caller and callee are in different