Merge "Send more IME events to autofill manager service." into rvc-dev am: cbd80ea094 am: e8a3b8d44b am: 08b0f425b4 am: 838cc61943

Change-Id: I7884801e03c3f7f2273121551fdf297e524a274d
This commit is contained in:
TreeHugger Robot
2020-03-31 20:54:32 +00:00
committed by Automerger Merge Worker
6 changed files with 499 additions and 214 deletions

View File

@@ -26,10 +26,36 @@ import com.android.internal.view.IInlineSuggestionsResponseCallback;
* {@hide}
*/
oneway interface IInlineSuggestionsRequestCallback {
// Indicates that the current IME does not support inline suggestion.
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.
void onInlineSuggestionsRequest(in InlineSuggestionsRequest request,
in IInlineSuggestionsResponseCallback callback, in AutofillId imeFieldId,
boolean inputViewStarted);
void onInputMethodStartInputView(in AutofillId imeFieldId);
void onInputMethodFinishInputView(in AutofillId imeFieldId);
in IInlineSuggestionsResponseCallback callback);
// Signals that {@link android.inputmethodservice.InputMethodService
// #onStartInput(EditorInfo, boolean)} is called on the given focused field.
void onInputMethodStartInput(in AutofillId imeFieldId);
// Signals that {@link android.inputmethodservice.InputMethodService
// #dispatchOnShowInputRequested(int, boolean)} is called and shares the call result.
// 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);
// Signals that {@link android.inputmethodservice.InputMethodService
// #onStartInputView(EditorInfo, boolean)} is called on the field specified by the earlier
// {@link #onInputMethodStartInput(AutofillId)}.
void onInputMethodStartInputView();
// Signals that {@link android.inputmethodservice.InputMethodService
// #onFinishInputView(boolean)} is called on the field specified by the earlier
// {@link #onInputMethodStartInput(AutofillId)}.
void onInputMethodFinishInputView();
// Signals that {@link android.inputmethodservice.InputMethodService
// #onFinishInput()} is called on the field specified by the earlier
// {@link #onInputMethodStartInput(AutofillId)}.
void onInputMethodFinishInput();
}