Android 杂

1、无须编译整个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负责分发input event到window.

Tq,called from the low-level input queue thread. Input queue thread负责将raw input event放到global input queue,Ti thread会读出global input queue.

Lw,called with the main window manager lock held. 在Lw可以调用package mgr, power mgr. 但不能调用activity mgr和其它大多数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)

你可能感兴趣的:(Android 杂)