1省核、無須編譯整個(gè)Android源代碼稿辙,查看代碼偷懶法
http://yuanfentiank789.github.io/2016/11/24/asreadandroid/
2、MacBook 安裝 Ubuntu 16.04
http://blog.topspeedsnail.com/archives/5901
WindowManagerPolicy的方法后綴
Ti气忠,called from the input thread. Input thread負(fù)責(zé)分發(fā)input event到window.
Tq邻储,called from the low-level input queue thread. Input queue thread負(fù)責(zé)將raw input event放到global input queue未桥,Ti thread會(huì)讀出global input queue.
Lw,called with the main window manager lock held. 在Lw可以調(diào)用package mgr, power mgr. 但不能調(diào)用activity mgr和其它大多數(shù)services芥备。
Li,called with the input thread lock held.比Lw更加苛刻.
Lp舌菜,for an internal lock of the PhoneWindowManager.? This is used to protect some internal state, and can be acquired with either thw Lw and Li lock held, so has the restrictions of both of those when held.? (ref PhoneWindowManger.java)