Loading core/java/android/view/InputChannel.java +2 −5 Original line number Diff line number Diff line Loading @@ -48,8 +48,6 @@ public final class InputChannel implements Parcelable { @SuppressWarnings("unused") private int mPtr; // used by native code private boolean mDisposeAfterWriteToParcel; private static native InputChannel[] nativeOpenInputChannelPair(String name); private native void nativeDispose(boolean finalized); Loading Loading @@ -117,13 +115,12 @@ public final class InputChannel implements Parcelable { * as an out parameter in a binder call. * @param other The other input channel instance. */ public void transferToBinderOutParameter(InputChannel outParameter) { public void transferTo(InputChannel outParameter) { if (outParameter == null) { throw new IllegalArgumentException("outParameter must not be null"); } nativeTransferTo(outParameter); outParameter.mDisposeAfterWriteToParcel = true; } public int describeContents() { Loading @@ -145,7 +142,7 @@ public final class InputChannel implements Parcelable { nativeWriteToParcel(out); if (mDisposeAfterWriteToParcel) { if ((flags & PARCELABLE_WRITE_RETURN_VALUE) != 0) { dispose(); } } Loading services/java/com/android/server/wm/WindowManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -2052,7 +2052,7 @@ public class WindowManagerService extends IWindowManager.Stub String name = win.makeInputChannelName(); InputChannel[] inputChannels = InputChannel.openInputChannelPair(name); win.mInputChannel = inputChannels[0]; inputChannels[1].transferToBinderOutParameter(outInputChannel); inputChannels[1].transferTo(outInputChannel); mInputManager.registerInputChannel(win.mInputChannel, win.mInputWindowHandle); } Loading Loading
core/java/android/view/InputChannel.java +2 −5 Original line number Diff line number Diff line Loading @@ -48,8 +48,6 @@ public final class InputChannel implements Parcelable { @SuppressWarnings("unused") private int mPtr; // used by native code private boolean mDisposeAfterWriteToParcel; private static native InputChannel[] nativeOpenInputChannelPair(String name); private native void nativeDispose(boolean finalized); Loading Loading @@ -117,13 +115,12 @@ public final class InputChannel implements Parcelable { * as an out parameter in a binder call. * @param other The other input channel instance. */ public void transferToBinderOutParameter(InputChannel outParameter) { public void transferTo(InputChannel outParameter) { if (outParameter == null) { throw new IllegalArgumentException("outParameter must not be null"); } nativeTransferTo(outParameter); outParameter.mDisposeAfterWriteToParcel = true; } public int describeContents() { Loading @@ -145,7 +142,7 @@ public final class InputChannel implements Parcelable { nativeWriteToParcel(out); if (mDisposeAfterWriteToParcel) { if ((flags & PARCELABLE_WRITE_RETURN_VALUE) != 0) { dispose(); } } Loading
services/java/com/android/server/wm/WindowManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -2052,7 +2052,7 @@ public class WindowManagerService extends IWindowManager.Stub String name = win.makeInputChannelName(); InputChannel[] inputChannels = InputChannel.openInputChannelPair(name); win.mInputChannel = inputChannels[0]; inputChannels[1].transferToBinderOutParameter(outInputChannel); inputChannels[1].transferTo(outInputChannel); mInputManager.registerInputChannel(win.mInputChannel, win.mInputWindowHandle); } Loading