1

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?

Onik
  • 19,396
  • 14
  • 68
  • 91
shhp
  • 3,653
  • 2
  • 18
  • 23

0 Answers0