GUN Make 环境配置

来源:互联网 发布:淘宝淘友在哪里看 编辑:程序博客网 时间:2024/05/29 07:28
xref: /frameworks/base/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java

类中包含重要内部类KeyguardViewHost,那么我们先看看这个东西
86    private static class KeyguardViewHost extends FrameLayout {87        private final KeyguardViewCallback mCallback;8889        private KeyguardViewHost(Context context, KeyguardViewCallback callback) {90            super(context);91            mCallback = callback;92        }9394        @Override95        protected void dispatchDraw(Canvas canvas) {96            super.dispatchDraw(canvas);97            mCallback.keyguardDoneDrawing();98        }99    }

显示锁屏的函数show() 
105    public synchronized void show() {112        if (mKeyguardHost == null) {                 ......................                 //实例化keyguardhost容器113            if (DEBUG) Log.d(TAG, "keyguard host is null, creating it...");115            mKeyguardHost = new KeyguardViewHost(mContext, mCallback);145            mViewManager.addView(mKeyguardHost, lp);.......................146        }147157158        if (mKeyguardView == null) { .......................                 //往容器中装入Keyguardview168            mKeyguardHost.addView(mKeyguardView, lp);170            if (mScreenOn) {171                mKeyguardView.show();172            }.........................173        }174175        // Disable aspects of the system/status/navigation bars that are not appropriate or176        // useful for the lockscreen but can be re-shown by dialogs or SHOW_WHEN_LOCKED activities.177        // Other disabled bits are handled by the KeyguardViewMediator talking directly to the178        // status bar service.179        int visFlags =180                ( View.STATUS_BAR_DISABLE_BACK181                | View.STATUS_BAR_DISABLE_HOME182                );183        mKeyguardHost.setSystemUiVisibility(visFlags);184185        mViewManager.updateViewLayout(mKeyguardHost, mWindowLayoutParams);186        mKeyguardHost.setVisibility(View.VISIBLE);187        mKeyguardView.requestFocus();188    }

xref: /frameworks/base/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
mKeyguardView的类是LockPatternKeyguardView.java


0 0
原创粉丝点击