Home

macOS 问题

macOS 问题 应用图标不显示 Apps Icons not appearing sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \; sudo rm -rf /Library/Caches/com.apple.iconservices.store killall Dock Reference

Read more

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

Read more

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?

Read more

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对象,是...

Read more

Android Surface

Android Surface Activity setContentView DecorView Windows, LocalWindowManager ViewRoot mSurface AIDL WindowManagerService Surface Reference 深入理解Android:Surface

Read more

Android IPC

Android IPC Binder AIDL Messager FILE bundle socket Pipe Binder Messager 是依赖AIDL, AIDL依赖Binder 使用/dev/binder, Android中的虚拟设备 一个进程只打开设备一次 Reference 深入理解Android:Binder

Read more

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...

Read more