summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2019-10-15 16:58:33 -0700
committerSiarhei Vishniakou <svv@google.com>2019-11-01 18:27:42 -0700
commit6742983aa8a3b0e7f0a012f1887aa9342cd4d8b3 (patch)
tree48faed8b3b62037a060ea6a3f1cdb08c02bb3c28 /core/java
parenteef40f1152d8f30489009ac359b6e5c12563e9cc (diff)
Remove InputChannel::setToken
The token is now generated at the native level, inside InputTransport, when you open an inputchannelpair. It is read-only. Bug: 142581626 Test: presubmit Change-Id: I67314f9854c2f720eb4fc2cb489755eae8863f8f
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/InputChannel.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/java/android/view/InputChannel.java b/core/java/android/view/InputChannel.java
index 831e9ee43546..5d0d5bd79857 100644
--- a/core/java/android/view/InputChannel.java
+++ b/core/java/android/view/InputChannel.java
@@ -61,7 +61,6 @@ public final class InputChannel implements Parcelable {
private native void nativeWriteToParcel(Parcel parcel);
private native void nativeDup(InputChannel target);
private native IBinder nativeGetToken();
- private native void nativeSetToken(IBinder token);
private native String nativeGetName();
@@ -185,8 +184,4 @@ public final class InputChannel implements Parcelable {
public IBinder getToken() {
return nativeGetToken();
}
-
- public void setToken(IBinder token) {
- nativeSetToken(token);
- }
}