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

Commit ca383653 authored by Cosmin Băieș's avatar Cosmin Băieș Committed by Android (Google) Code Review
Browse files

Merge "Modifies some IMMS binder calls to oneway" into main

parents bab478ae b765a026
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ interface IInputMethodManager {
    @EnforcePermission("TEST_INPUT_METHOD")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(value = "
            + "android.Manifest.permission.TEST_INPUT_METHOD)")
    void hideSoftInputFromServerForTest();
    oneway void hideSoftInputFromServerForTest();

    // TODO(b/418839448): merge with startInputOrWindowGainedFocus once
    //                    WINDOW_FOCUS_GAIN_REPORT_ONLY uses async method.
@@ -117,13 +117,13 @@ interface IInputMethodManager {
            in ImeOnBackInvokedDispatcher imeDispatcher, boolean imeRequestedVisible,
            int startInputSeq);

    void showInputMethodPickerFromClient(in IInputMethodClient client,
    oneway void showInputMethodPickerFromClient(in IInputMethodClient client,
            int auxiliarySubtypeMode);

    @EnforcePermission(allOf = {"WRITE_SECURE_SETTINGS", "INTERACT_ACROSS_USERS_FULL"})
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(allOf = {android.Manifest."
    + "permission.WRITE_SECURE_SETTINGS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL})")
    void showInputMethodPickerFromSystem(int auxiliarySubtypeMode, int displayId);
    oneway void showInputMethodPickerFromSystem(int auxiliarySubtypeMode, int displayId);

    @EnforcePermission("TEST_INPUT_METHOD")
    @JavaPassthrough(annotation="@android.annotation.RequiresPermission(value = "
+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ final class ZeroJankProxy implements IInputMethodManagerImpl.Callback {
    @Override
    public void showInputMethodPickerFromClient(IInputMethodClient client,
            int auxiliarySubtypeMode) {
        offload(() -> mInner.showInputMethodPickerFromClient(client, auxiliarySubtypeMode));
        mInner.showInputMethodPickerFromClient(client, auxiliarySubtypeMode);
    }

    @IInputMethodManagerImpl.PermissionVerified(allOf = {