Loading core/java/com/android/internal/policy/IKeyguardService.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -43,4 +43,5 @@ interface IKeyguardService { oneway void showAssistant(); oneway void dispatch(in MotionEvent event); oneway void launchCamera(); oneway void onBootCompleted(); } packages/Keyguard/src/com/android/keyguard/KeyguardService.java +4 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,10 @@ public class KeyguardService extends Service { checkPermission(); mKeyguardViewMediator.launchCamera(); } public void onBootCompleted() { checkPermission(); mKeyguardViewMediator.onBootCompleted(); } }; } Loading packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java +2 −3 Original line number Diff line number Diff line Loading @@ -635,15 +635,14 @@ public class KeyguardUpdateMonitor { * PhoneWindowManager in this case. */ protected void dispatchBootCompleted() { if (!mBootCompleted) { mHandler.sendEmptyMessage(MSG_BOOT_COMPLETED); } } /** * Handle {@link #MSG_BOOT_COMPLETED} */ protected void handleBootCompleted() { if (mBootCompleted) return; mBootCompleted = true; mAudioManager = new AudioManager(mContext); mAudioManager.registerRemoteControlDisplay(mRemoteControlDisplay); Loading packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java +4 −3 Original line number Diff line number Diff line Loading @@ -530,9 +530,6 @@ public class KeyguardViewMediator { mSystemReady = true; mUpdateMonitor.registerCallback(mUpdateCallback); // Send boot completed message if it hasn't already been sent. mUpdateMonitor.dispatchBootCompleted(); // Suppress biometric unlock right after boot until things have settled if it is the // selected security method, otherwise unsuppress it. It must be unsuppressed if it is // not the selected security method for the following reason: if the user starts Loading Loading @@ -1366,4 +1363,8 @@ public class KeyguardViewMediator { Message msg = mHandler.obtainMessage(LAUNCH_CAMERA); mHandler.sendMessage(msg); } public void onBootCompleted() { mUpdateMonitor.dispatchBootCompleted(); } } policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -4668,6 +4668,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { /** {@inheritDoc} */ public void systemBooted() { if (mKeyguardDelegate != null) { mKeyguardDelegate.onBootCompleted(); } synchronized (mLock) { mSystemBooted = true; } Loading Loading
core/java/com/android/internal/policy/IKeyguardService.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -43,4 +43,5 @@ interface IKeyguardService { oneway void showAssistant(); oneway void dispatch(in MotionEvent event); oneway void launchCamera(); oneway void onBootCompleted(); }
packages/Keyguard/src/com/android/keyguard/KeyguardService.java +4 −0 Original line number Diff line number Diff line Loading @@ -141,6 +141,10 @@ public class KeyguardService extends Service { checkPermission(); mKeyguardViewMediator.launchCamera(); } public void onBootCompleted() { checkPermission(); mKeyguardViewMediator.onBootCompleted(); } }; } Loading
packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java +2 −3 Original line number Diff line number Diff line Loading @@ -635,15 +635,14 @@ public class KeyguardUpdateMonitor { * PhoneWindowManager in this case. */ protected void dispatchBootCompleted() { if (!mBootCompleted) { mHandler.sendEmptyMessage(MSG_BOOT_COMPLETED); } } /** * Handle {@link #MSG_BOOT_COMPLETED} */ protected void handleBootCompleted() { if (mBootCompleted) return; mBootCompleted = true; mAudioManager = new AudioManager(mContext); mAudioManager.registerRemoteControlDisplay(mRemoteControlDisplay); Loading
packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java +4 −3 Original line number Diff line number Diff line Loading @@ -530,9 +530,6 @@ public class KeyguardViewMediator { mSystemReady = true; mUpdateMonitor.registerCallback(mUpdateCallback); // Send boot completed message if it hasn't already been sent. mUpdateMonitor.dispatchBootCompleted(); // Suppress biometric unlock right after boot until things have settled if it is the // selected security method, otherwise unsuppress it. It must be unsuppressed if it is // not the selected security method for the following reason: if the user starts Loading Loading @@ -1366,4 +1363,8 @@ public class KeyguardViewMediator { Message msg = mHandler.obtainMessage(LAUNCH_CAMERA); mHandler.sendMessage(msg); } public void onBootCompleted() { mUpdateMonitor.dispatchBootCompleted(); } }
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -4668,6 +4668,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { /** {@inheritDoc} */ public void systemBooted() { if (mKeyguardDelegate != null) { mKeyguardDelegate.onBootCompleted(); } synchronized (mLock) { mSystemBooted = true; } Loading