From a3d487cb13983643d5024e493e4d56c96736f1eb Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 1 Dec 2011 18:42:24 -0800 Subject: More social integration. Change-Id: I9be09e08bda5db6c05f5beabc380708a11ead43b --- api/current.txt | 1 + core/java/android/os/IBinder.java | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/api/current.txt b/api/current.txt index de8cab1fe317..c62d82b2b4c6 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 81defd690af8..0586d9ed1eeb 100644 --- a/core/java/android/os/IBinder.java +++ b/core/java/android/os/IBinder.java @@ -127,6 +127,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. + * + *

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 -- cgit v1.2.3-59-g8ed1b