diff options
| author | Jeff Brown <jeffbrown@google.com> | 2013-03-27 02:43:54 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-03-27 02:43:54 +0000 |
| commit | ca3d655d20c13c71972a4475cec3b98efa7dbdd0 (patch) | |
| tree | 2766b887f99e37bcdc423ecf668b7ad6ee58d609 /core/java/android/view/InputChannel.java | |
| parent | b404ecc91a5dd3dd027554490b2ca18c1048bdba (diff) | |
| parent | c28867a1d67121ce5963de135e3ae2b1dbd9a33d (diff) | |
Merge "Use input transport for communications between app and IME." into jb-mr2-dev
Diffstat (limited to 'core/java/android/view/InputChannel.java')
| -rw-r--r-- | core/java/android/view/InputChannel.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/core/java/android/view/InputChannel.java b/core/java/android/view/InputChannel.java index 523af04ada5e..a797176d799d 100644 --- a/core/java/android/view/InputChannel.java +++ b/core/java/android/view/InputChannel.java @@ -78,7 +78,9 @@ public final class InputChannel implements Parcelable { * Creates a new input channel pair. One channel should be provided to the input * dispatcher and the other to the application's input queue. * @param name The descriptive (non-unique) name of the channel pair. - * @return A pair of input channels. They are symmetric and indistinguishable. + * @return A pair of input channels. The first channel is designated as the + * server channel and should be used to publish input events. The second channel + * is designated as the client channel and should be used to consume input events. */ public static InputChannel[] openInputChannelPair(String name) { if (name == null) { @@ -123,10 +125,11 @@ public final class InputChannel implements Parcelable { nativeTransferTo(outParameter); } + @Override public int describeContents() { return Parcelable.CONTENTS_FILE_DESCRIPTOR; } - + public void readFromParcel(Parcel in) { if (in == null) { throw new IllegalArgumentException("in must not be null"); @@ -134,7 +137,8 @@ public final class InputChannel implements Parcelable { nativeReadFromParcel(in); } - + + @Override public void writeToParcel(Parcel out, int flags) { if (out == null) { throw new IllegalArgumentException("out must not be null"); |
