深入SystemUI
百吉猫锅巴
西安IT坑很大
展开
-
[深入SystemUI]-了解statusbar的启动流程
本文流程基于Android 9.01.启动SystemUIService在SystemServer中有一个方法startSystemUi,当系统启动后,会执行到SystemServer的startSystemUi()方法,正是在这个方法中启动了SystemUIService。static final void startSystemUi(Context context, WindowMa...原创 2019-04-24 11:23:28 · 745 阅读 · 0 评论 -
[深入SystemUI]-了解SystemUI中有用到哪些设计模式
我会在不断的学习中将这篇文章充实起来,也希望大家能够为本文提供一些内容。文章目录1. 抽象工厂模式2. 观察者模式1. 抽象工厂模式代表类:SystemUIFactory方法列表:public StatusBarKeyguardViewManager createStatusBarKeyguardViewManager(Context context, ViewMediatorCal...原创 2019-04-29 10:00:32 · 509 阅读 · 0 评论 -
[深入SystemUI]-了解recents的启动流程(一)
本文流程基于Android 9.01. PhoneWindowManager的事件分发PhoneWindowManager处理点击事件的方法是interceptKeyBeforeDispatching()。相应recents键的逻辑如下:点击switch键} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) { //不处于锁屏界...原创 2019-04-24 17:51:24 · 2453 阅读 · 2 评论 -
[深入SystemUI]-了解recents的启动流程(二)
本文流程基于Android 9.0toggleRecentApps介绍上节中我们讲了preloadRecentApps,而点击了switch可能执行两种不同的方法,另外一种就是toggleRecentApps。和preloadRecentApps在fwk中的调用过程一样,最终是调用到了SystemUI的Recents.toggleRecentApps()方法。toggleRecent...原创 2019-04-25 16:30:10 · 2137 阅读 · 1 评论 -
[深入SystemUI]-了解SystemUI的大致架构
文章目录1. SystemUI的架构图2. 对我的架构图的解释2.1 为什么要将SystemUIService和SystemUIApplication放在一层?2.2 抽象服务层2.3 功能层这篇文章还是在于一位前辈的交流过程中汲取到的,之前也有看网上的关于SystemUI的内容,但是都没有从架构角度去琢磨SystemUI,我一位SystemUI小白就先在这里班门弄斧了,希望各位看官们抱着批评的...原创 2019-05-12 14:43:27 · 2361 阅读 · 0 评论