android.view.inputmethod.InputBinding Java Examples

The following examples show how to use android.view.inputmethod.InputBinding. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InputMethodService.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 *
 * <p>Calls {@link InputMethodService#onBindInput()} when done.</p>
 */
@MainThread
@Override
public void bindInput(InputBinding binding) {
    mInputBinding = binding;
    mInputConnection = binding.getConnection();
    if (DEBUG) Log.v(TAG, "bindInput(): binding=" + binding
            + " ic=" + mInputConnection);
    if (mImm != null && mToken != null) {
        mImm.reportFullscreenMode(mToken, mIsFullscreen);
    }
    initialize();
    onBindInput();
}
 
Example #2
Source File: InputMethodManagerService.java    From TvRemoteControl with Apache License 2.0 5 votes vote down vote up
ClientState(IInputMethodClient _client, IInputContext _inputContext,
        int _uid, int _pid) {
    client = _client;
    inputContext = _inputContext;
    uid = _uid;
    pid = _pid;
    binding = new InputBinding(null, inputContext.asBinder(), uid, pid);
}
 
Example #3
Source File: InputMethodService.java    From android_9.0.0_r45 with Apache License 2.0 2 votes vote down vote up
/**
 * Return the currently active InputBinding for the input method, or
 * null if there is none.
 */
public InputBinding getCurrentInputBinding() {
    return mInputBinding;
}