欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

SystemUI KeyguardBouncer的加载

程序员文章站 2022-05-27 09:09:49
...

不积跬步无以至千里
SystemUI KeyguardBouncer的加载
Bouncer界面就是安全解锁界面,绘制在statusbar的window上.
一.keyguardbouncer在statusbar布局上添加,移除:
1.code/app/src/com/android/systemui/statusbar/phone/StatusBar.java

protected void startKeyguard() {
...
mStatusBarKeyguardViewManager = keyguardViewMediator.registerStatusBar(this,
                getBouncerContainer(), mScrimController,
                mFingerprintUnlockController);
...
}
...
//StatusBar的布局
protected ViewGroup getBouncerContainer() {
        return mStatusBarWindow;
 }

2.code/app/src/com/android/systemui/keyguard/KeyguardViewMediator.java

public StatusBarKeyguardViewManager registerStatusBar(StatusBar statusBar,
            ViewGroup contain