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

Commit f2ee5d93 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Updated docs for IInlineSuggestionsRequestCallback.aidl." into rvc-dev...

Merge "Updated docs for IInlineSuggestionsRequestCallback.aidl." into rvc-dev am: f65210f9 am: eecfa86e am: 92418bd4 am: a0ed2f38

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12142032

Change-Id: I0bd28cdd5f65e664505483e59ee49bdb3bc5c5f9
parents 3d0dca5c a0ed2f38
Loading
Loading
Loading
Loading
+32 −19
Original line number Original line Diff line number Diff line
@@ -22,41 +22,54 @@ import android.view.inputmethod.InlineSuggestionsRequest;
import com.android.internal.view.IInlineSuggestionsResponseCallback;
import com.android.internal.view.IInlineSuggestionsResponseCallback;


/**
/**
 * Binder interface for the IME service to send an inline suggestion request to the system.
 * Binder interface for the IME service to send {@link InlineSuggestionsRequest} or notify other IME
 * service events to the system.
 * {@hide}
 * {@hide}
 */
 */
oneway interface IInlineSuggestionsRequestCallback {
oneway interface IInlineSuggestionsRequestCallback {
    // Indicates that the current IME does not support inline suggestion.
    /** Indicates that the current IME does not support inline suggestion. */
    void onInlineSuggestionsUnsupported();
    void onInlineSuggestionsUnsupported();


    // Sends the inline suggestions request from IME to Autofill. Calling this method indicates
    /**
    // that the IME input is started on the view corresponding to the request.
     * Sends the inline suggestions request from IME to Autofill. Calling this method indicates
     * that the IME input is started on the view corresponding to the request.
     */
    void onInlineSuggestionsRequest(in InlineSuggestionsRequest request,
    void onInlineSuggestionsRequest(in InlineSuggestionsRequest request,
            in IInlineSuggestionsResponseCallback callback);
            in IInlineSuggestionsResponseCallback callback);


    // Signals that {@link android.inputmethodservice.InputMethodService
    /**
    //  #onStartInput(EditorInfo, boolean)} is called on the given focused field.
     * Signals that {@link android.inputmethodservice.InputMethodService
     * #onStartInput(EditorInfo, boolean)} is called on the given focused field.
     */
    void onInputMethodStartInput(in AutofillId imeFieldId);
    void onInputMethodStartInput(in AutofillId imeFieldId);


    // Signals that {@link android.inputmethodservice.InputMethodService
    /**
    //  #dispatchOnShowInputRequested(int, boolean)} is called and shares the call result.
     * Signals that {@link android.inputmethodservice.InputMethodService
    //  The true value of {@code requestResult} means the IME is about to be shown, while
     * #dispatchOnShowInputRequested(int, boolean)} is called and shares the call result.
    //  false value means the IME will not be shown.
     * The true value of {@code requestResult} means the IME is about to be shown, while
     * false value means the IME will not be shown.
     */
    void onInputMethodShowInputRequested(boolean requestResult);
    void onInputMethodShowInputRequested(boolean requestResult);


    // Signals that {@link android.inputmethodservice.InputMethodService
    /**
    //  #onStartInputView(EditorInfo, boolean)} is called on the field specified by the earlier
     * Signals that {@link android.inputmethodservice.InputMethodService
    //  {@link #onInputMethodStartInput(AutofillId)}.
     * #onStartInputView(EditorInfo, boolean)} is called on the field specified by the earlier
     * {@link #onInputMethodStartInput(AutofillId)}.
     */
    void onInputMethodStartInputView();
    void onInputMethodStartInputView();


    // Signals that {@link android.inputmethodservice.InputMethodService
    /**
    //  #onFinishInputView(boolean)} is called on the field specified by the earlier
     * Signals that {@link android.inputmethodservice.InputMethodService
    //  {@link #onInputMethodStartInput(AutofillId)}.
     * #onFinishInputView(boolean)} is called on the field specified by the earlier
     * {@link #onInputMethodStartInput(AutofillId)}.
     */
    void onInputMethodFinishInputView();
    void onInputMethodFinishInputView();


    // Signals that {@link android.inputmethodservice.InputMethodService
    /**
    //  #onFinishInput()} is called on the field specified by the earlier
     * Signals that {@link android.inputmethodservice.InputMethodService
    //  {@link #onInputMethodStartInput(AutofillId)}.
     * #onFinishInput()} is called on the field specified by the earlier
     * {@link #onInputMethodStartInput(AutofillId)}.
     */
    void onInputMethodFinishInput();
    void onInputMethodFinishInput();


    // Indicates that the current IME changes inline suggestion session.
    // Indicates that the current IME changes inline suggestion session.