summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2020-09-22 22:04:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-09-22 22:04:00 +0000
commitcc848e93c1f97ff7ff2a12d8f7fa727b89932e84 (patch)
tree5865b34ea3fba2ff1aaa0763c298a9a2a84ddf42 /core/java
parent8e8eaa8624a5c39de6a1f43a0cb6d559a86db771 (diff)
parente97ad446cb24e4724ebaa34ff829ad5ae2b372bc (diff)
Merge "Revert "Reland "Use new create/removeInputChannel()."""
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/InputChannel.java7
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");
}