Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07d9c3be authored by Harry Cutts's avatar Harry Cutts Committed by Android (Google) Code Review
Browse files

Revert^2 "InputManagerService: fix requireNonNull failure messages"

This reverts commit a749304d.

Reason for revert: This is obviously unrelated to the failure from b/403394359.

Test: $ atest CtsAppTestCases:android.app.cts.DownloadManagerTest#testDownloadManagerSupportsHttpsWithExternalWebServer
Bug: 403394359
Change-Id: Ia10e48ac3b04a422d845af04734171fa4283039d
parent a749304d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1230,7 +1230,7 @@ public class InputManagerService extends IInputManager.Stub
                "registerTabletModeChangedListener()")) {
            throw new SecurityException("Requires TABLET_MODE_LISTENER permission");
        }
        Objects.requireNonNull(listener, "event must not be null");
        Objects.requireNonNull(listener, "listener must not be null");

        synchronized (mTabletModeLock) {
            final int callingPid = Binder.getCallingPid();
@@ -1342,7 +1342,7 @@ public class InputManagerService extends IInputManager.Stub

    @Override
    public void requestPointerCapture(IBinder inputChannelToken, boolean enabled) {
        Objects.requireNonNull(inputChannelToken, "event must not be null");
        Objects.requireNonNull(inputChannelToken, "inputChannelToken must not be null");

        mNative.requestPointerCapture(inputChannelToken, enabled);
    }