public void updateExtractedText(View view, int token, ExtractedText text) {
    checkFocus();
    synchronized (mH) {
      if (mServedView != view
          && (mServedView == null || !mServedView.checkInputConnectionProxy(view))) {
        return;
      }

      if (mCurMethod != null) {
        try {
          mCurMethod.updateExtractedText(token, text);
        } catch (RemoteException e) {
        }
      }
    }
  }