diff options
| author | Jean-Michel Trivi <jmtrivi@google.com> | 2020-09-22 22:04:00 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-09-22 22:04:00 +0000 |
| commit | cc848e93c1f97ff7ff2a12d8f7fa727b89932e84 (patch) | |
| tree | 5865b34ea3fba2ff1aaa0763c298a9a2a84ddf42 /core/java/android | |
| parent | 8e8eaa8624a5c39de6a1f43a0cb6d559a86db771 (diff) | |
| parent | e97ad446cb24e4724ebaa34ff829ad5ae2b372bc (diff) | |
Merge "Revert "Reland "Use new create/removeInputChannel()."""
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/InputChannel.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/view/InputChannel.java b/core/java/android/view/InputChannel.java index f2d3f5ad08bf..e1b042160062 100644 --- a/core/java/android/view/InputChannel.java +++ b/core/java/android/view/InputChannel.java @@ -83,7 +83,7 @@ public final class InputChannel implements Parcelable { * * @hide */ - private void setNativeInputChannel(long nativeChannel) { + public void setNativeInputChannel(long nativeChannel) { if (nativeChannel == 0) { throw new IllegalArgumentException("Attempting to set native input channel to null."); } @@ -148,11 +148,12 @@ public final class InputChannel implements Parcelable { } /** - * Creates a copy of this instance to the outParameter. This is used to pass an input channel + * Transfers ownership of the internal state of the input channel to another + * instance and invalidates this instance. This is used to pass an input channel * as an out parameter in a binder call. * @param other The other input channel instance. */ - public void copyTo(InputChannel outParameter) { + public void transferTo(InputChannel outParameter) { if (outParameter == null) { throw new IllegalArgumentException("outParameter must not be null"); } |
