public void bindInput(InputBinding binding) { InputConnection ic = new InputConnectionWrapper(IInputContext.Stub.asInterface(binding.getConnectionToken())); InputBinding nu = new InputBinding(ic, binding); mCaller.executeOrSendMessage(mCaller.obtainMessageO(DO_SET_INPUT_CONTEXT, nu)); }
/** * Constructor from an existing InputBinding taking a new local input connection interface. * * @param conn The new connection interface. * @param binding Existing binding to copy. */ public InputBinding(InputConnection conn, InputBinding binding) { mConnection = conn; mConnectionToken = binding.getConnectionToken(); mUid = binding.getUid(); mPid = binding.getPid(); }