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

Commit 5874c9df authored by Matt Pietal's avatar Matt Pietal Committed by Android (Google) Code Review
Browse files

Merge "Bouncer updates"

parents 84feade5 5f2121d7
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -51,10 +51,5 @@

    <!-- If true, show multiuser switcher by default unless the user specifically disables it. -->
    <bool name="config_showUserSwitcherByDefault">true</bool>

    <!-- Enable dynamic keyguard positioning for large-width screens. This will cause the keyguard
         to be aligned to one side of the screen when in landscape mode. -->
    <bool name="config_enableDynamicKeyguardPositioning">true</bool>

</resources>
+0 −4
Original line number Diff line number Diff line
@@ -5087,10 +5087,6 @@
    <!-- Whether to select voice/data/sms preference without user confirmation -->
    <bool name="config_voice_data_sms_auto_fallback">false</bool>

    <!-- Whether to enable dynamic keyguard positioning for wide screen devices (e.g. only using
         half of the screen, to be accessible using only one hand). -->
    <bool name="config_enableDynamicKeyguardPositioning">false</bool>

    <!-- Whether to allow the caching of the SIM PIN for verification after unattended reboot -->
    <bool name="config_allow_pin_storage_for_unattended_reboot">true</bool>

+0 −2
Original line number Diff line number Diff line
@@ -4326,8 +4326,6 @@

  <java-symbol type="bool" name="config_voice_data_sms_auto_fallback" />

  <java-symbol type="bool" name="config_enableDynamicKeyguardPositioning" />

  <java-symbol type="attr" name="colorAccentPrimary" />
  <java-symbol type="attr" name="colorAccentSecondary" />
  <java-symbol type="attr" name="colorAccentTertiary" />
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,13 @@

[KeyguardBouncer][1] is the component responsible for displaying the security method set by the user (password, PIN, pattern) as well as SIM-related security methods, allowing the user to unlock the device or SIM.

## Supported States

1. Phone, portrait mode - The default and typically only way to view the bouncer. Screen cannot rotate.
1. Phone, landscape - Can only get into this state via lockscreen activities. Launch camera, rotate to landscape, tap lock icon is one example.
1. Foldables - Both landscape and portrait are supported. In landscape, the bouncer can appear on either of the hinge and can be dragged to the other side. Also refered to as "OneHandedMode in [KeyguardSecurityContainerController][3]
1. Tablets - The bouncer is supplemented with user icons and a multi-user switcher, when available.

## Components

The bouncer contains a hierarchy of controllers/views to render the user's security method and to manage the authentication attempts.
@@ -11,6 +18,8 @@ The bouncer contains a hierarchy of controllers/views to render the user's secur
        1. [KeyguardSecurityContainerController][3] - Manages unlock attempt responses, one-handed use
            1. [KeyguardSecurityViewFlipperController][4] - Based upon the [KeyguardSecurityModel#SecurityMode][5], will instantiate the required view and controller. PIN, Pattern, etc.

Fun fact: Naming comes from the concept of a bouncer at a bar or nightclub, who prevent troublemakers from entering or eject them from the premises.

[1]: /frameworks/base/packages/SystemUI/com/android/systemui/statusbar/phone/KeyguardBouncer
[2]: /frameworks/base/packages/SystemUI/com/android/keyguard/KeyguardHostViewController
[3]: /frameworks/base/packages/SystemUI/com/android/keyguard/KeyguardSecurityContainerController
+2 −0
Original line number Diff line number Diff line
@@ -16,5 +16,7 @@
  -->

<resources>
    <!-- Allows PIN/Pattern to be drawn on one side of a display, and for the user to
         switch sides -->
    <bool name="can_use_one_handed_bouncer">true</bool>
</resources>
Loading