macOS 自动开机
macOS 自动开机
开盖自动开机
// disable
sudo nvram AutoBoot=%00
// enable
sudo nvram AutoBoot=%03
启动铃声
// enable
sudo nvram BootAudio=%01
// disable
sudo nvram BootAudio=%00
Reference
How to stop the new MacBook Pro from automatically turning on when the lid is open
Android Runtime (ART) and Dalvik
Android Runtime (ART) and Dalvik
Reference
Android Runtime (ART) and Dalvik
Android Runtime — How Dalvik and ART work?
Difference Between Dalvik and ART in Android
What are the differences between Dalvik and ART?
Android View drawing process
Android View drawing process
Android’s UI management system
Activity
PhoneWindow mWindow
DecorView mDecor
System Layout
ViewGroup mContentParent
Activity Layout
PhoneWindow
每一个Activity都包含一个Window对象,Window对象通常由PhoneWindow实现
PhoneWindow:将Decoriew设置为整个应用窗口的根View。是Window的实现类。它是Android中的最基本的窗口系统,每个Activity 均会创建一个PhoneWindow对象,是...
Android Surface
Android Surface
Activity
setContentView
DecorView
Windows, LocalWindowManager
ViewRoot
mSurface
AIDL
WindowManagerService Surface
Reference
深入理解Android:Surface
Android IPC
Android IPC
Binder
AIDL
Messager
FILE
bundle
socket
Pipe
Binder
Messager 是依赖AIDL, AIDL依赖Binder
使用/dev/binder, Android中的虚拟设备
一个进程只打开设备一次
Reference
深入理解Android:Binder
Android Event-Dispatching
Android Event-Dispatching
Activity:
public boolean dispatchTouchEvent(MotionEvent ev);
public boolean onTouchEvent(MotionEvent ev);
ViewGroup:
public boolean dispatchTouchEvent(MotionEvent ev);
public boolean onInterceptTouchEvent(MotionEvent ev);
public boolean onTouchEvent(MotionEvent ev);
View:
public boolean dispatchTouchEvent(MotionEvent e...
Android ActivityManagerService
Android ActivityManagerService
Zygote
Reference
deep understand of Android ActivityManagerService
453 post articles, 57 pages.