In WindowManagerGlobal.addView
, there is such a statement:
if (mRoots.get(i).mWindow.asBinder() == wparams.token)
I'm confuesd here. ViewRootImpl.mWindow
is an instance of IWindow.stub
, but WindowManager.LayoutParams.token
is an instance of IApplicationToken.stub
. How can they be equal?
Could anyone explain this?