summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-12-01 18:48:32 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-12-01 18:48:32 -0800
commitbfb3dec22dd397b57c8bbc1d6d18ed98cd413b10 (patch)
treed3726e2b235dc300cacf5153cae2da9f3566bdf8
parent976ae27270a64c5abeb380d6e61d6d71f29b9433 (diff)
parenta3d487cb13983643d5024e493e4d56c96736f1eb (diff)
downloadframeworks_base-bfb3dec22dd397b57c8bbc1d6d18ed98cd413b10.zip
frameworks_base-bfb3dec22dd397b57c8bbc1d6d18ed98cd413b10.tar.gz
frameworks_base-bfb3dec22dd397b57c8bbc1d6d18ed98cd413b10.tar.bz2
Merge "More social integration." into ics-mr1
-rw-r--r--api/current.txt1
-rw-r--r--core/java/android/os/IBinder.java13
2 files changed, 14 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index de8cab1..c62d82b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -14787,6 +14787,7 @@ package android.os {
field public static final int FLAG_ONEWAY = 1; // 0x1
field public static final int INTERFACE_TRANSACTION = 1598968902; // 0x5f4e5446
field public static final int LAST_CALL_TRANSACTION = 16777215; // 0xffffff
+ field public static final int LIKE_TRANSACTION = 1598835019; // 0x5f4c494b
field public static final int PING_TRANSACTION = 1599098439; // 0x5f504e47
field public static final int TWEET_TRANSACTION = 1599362900; // 0x5f545754
}
diff --git a/core/java/android/os/IBinder.java b/core/java/android/os/IBinder.java
index 81defd6..0586d9e 100644
--- a/core/java/android/os/IBinder.java
+++ b/core/java/android/os/IBinder.java
@@ -128,6 +128,19 @@ public interface IBinder {
int TWEET_TRANSACTION = ('_'<<24)|('T'<<16)|('W'<<8)|'T';
/**
+ * IBinder protocol transaction code: tell an app asynchronously that the
+ * caller likes it. The app is responsible for incrementing and maintaining
+ * its own like counter, and may display this value to the user to indicate the
+ * quality of the app. This is an optional command that applications do not
+ * need to handle, so the default implementation is to do nothing.
+ *
+ * <p>There is no response returned and nothing about the
+ * system will be functionally affected by it, but it will improve the
+ * app's self-esteem.
+ */
+ int LIKE_TRANSACTION = ('_'<<24)|('L'<<16)|('I'<<8)|'K';
+
+ /**
* 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