……
}
AbstractInputMethodSessionImpl 实现了InputMethodSession的方法,这就是说IInputMethodSession的实现就是在这里的InputMethodSessionImpl。
我们现在总结一下:
InputMethodManager 通过 InputMethodManagerService的本地代理访问InputMethodManagerService
InputMethodManager 通过 IInputMethodSession访问InputMethodService
InputMethodManagerService通过 IInputMethodClient 回调InputMethodManager
InputMethodManagerService 通过 IInputMethodWrapper(mCurMethod) 回调 InputMethodService