Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0876bb1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "wm: expose isKeyguardShowing() in WindowManagerInternal" into main

parents 66c14cfe e888cc04
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -546,6 +546,13 @@ public abstract class WindowManagerInternal {
     */
    public abstract boolean isKeyguardLocked();

    /**
     * @return Whether the keyguard is showing, reported by WindowManager policy. This value matches
     * the initial value reported by {@link android.app.KeyguardManager#isKeyguardLocked()}, for
     * system_server internal use only.
     */
    public abstract boolean isKeyguardShowing();

    /**
    * @return Whether the keyguard is showing and not occluded.
    */
+5 −0
Original line number Diff line number Diff line
@@ -8098,6 +8098,11 @@ public class WindowManagerService extends IWindowManager.Stub
            return WindowManagerService.this.isKeyguardShowingAndNotOccluded();
        }

        @Override
        public boolean isKeyguardShowing() {
            return mPolicy.isKeyguardShowing();
        }

        @Override
        public boolean isKeyguardSecure(@UserIdInt int userId) {
            return mPolicy.isKeyguardSecure(userId);