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

Commit cc811102 authored by Ming-Shin Lu's avatar Ming-Shin Lu Committed by Android (Google) Code Review
Browse files

Merge "Add Intrsumentation#resetInTouchMode for instrumenting" into tm-dev

parents f13eb56f 32a96b8a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5630,6 +5630,7 @@ package android.app {
    method public boolean onException(Object, Throwable);
    method public void onStart();
    method public void removeMonitor(android.app.Instrumentation.ActivityMonitor);
    method public void resetInTouchMode();
    method public void runOnMainSync(Runnable);
    method public void sendCharacterSync(int);
    method public void sendKeyDownUpSync(int);
+9 −0
Original line number Diff line number Diff line
@@ -392,6 +392,15 @@ public class Instrumentation {
        }
    }

    /**
     * Resets the {@link #setInTouchMode touch mode} to the device default.
     */
    public void resetInTouchMode() {
        final boolean defaultInTouchMode = getContext().getResources().getBoolean(
                com.android.internal.R.bool.config_defaultInTouchMode);
        setInTouchMode(defaultInTouchMode);
    }

    /**
     * Schedule a callback for when the application's main thread goes idle
     * (has no more events to process).