Add a flag for moving UdfpsEnroll* from SystemUI to settings.
The added files in this CL are mostly copied from SystemUI. Enabling the flag SETTINGS_SHOW_UDFPS_ENROLL_IN_SETTINGS with this CL, the udfps enrollment icons and progress bar are shown in settings. Turn this flag on via adb: adb shell setprop sys.fflag.override.settings_show_udfps_enroll_in_settings true There are some known issues that will be fixed in the following CLs, including: - When the finger is down on the screen and the lighting circle on the sensor is shown, the fingerprint icon is not hidden. - When rotating the screen, fingerprint location is not right. - Currently the scale factor is hard coded for pixel 7 pro, we should update the scale factor based on the device, etc. Test: manually tested on device Bug: 260617060 Change-Id: I5aede070eb1de9eb3b5e1400d6e51a8523079852
This commit is contained in:
@@ -184,4 +184,14 @@
|
||||
<attr name="ic_menu_moreoverflow" format="reference" />
|
||||
<attr name="side_margin" format="reference|dimension" />
|
||||
<attr name="wifi_signal_color" format="reference" />
|
||||
|
||||
<declare-styleable name="BiometricsEnrollView">
|
||||
<attr name="biometricsEnrollStyle" format="reference" />
|
||||
<attr name="biometricsEnrollIcon" format="reference|color" />
|
||||
<attr name="biometricsMovingTargetFill" format="reference|color" />
|
||||
<attr name="biometricsMovingTargetFillError" format="reference|color" />
|
||||
<attr name="biometricsEnrollProgress" format="reference|color" />
|
||||
<attr name="biometricsEnrollProgressHelp" format="reference|color" />
|
||||
<attr name="biometricsEnrollProgressHelpWithTalkback" format="reference|color" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
|
@@ -172,4 +172,13 @@
|
||||
|
||||
<!-- Icon tint color for battery usage system icon -->
|
||||
<color name="battery_usage_system_icon_color">?android:attr/textColorPrimary</color>
|
||||
|
||||
<!-- UDFPS colors -->
|
||||
<color name="udfps_enroll_icon">#699FF3</color>
|
||||
<color name="udfps_moving_target_fill">#C2D7F7</color>
|
||||
<!-- 50% of udfps_moving_target_fill-->
|
||||
<color name="udfps_moving_target_fill_error">#80C2D7F7</color>
|
||||
<color name="udfps_enroll_progress">#699FF3</color>
|
||||
<color name="udfps_enroll_progress_help">#70699FF3</color>
|
||||
<color name="udfps_enroll_progress_help_with_talkback">#FFEE675C</color>
|
||||
</resources>
|
||||
|
@@ -636,4 +636,25 @@
|
||||
|
||||
<!-- Whether the toggle for Auto-rotate with Face Detection should be shown. -->
|
||||
<bool name="config_auto_rotate_face_detection_available">true</bool>
|
||||
|
||||
<!-- The radius of the enrollment progress bar, in dp -->
|
||||
<integer name="config_udfpsEnrollProgressBar" translatable="false">
|
||||
280
|
||||
</integer>
|
||||
|
||||
<!-- Default udfps icon. Same path as ic_fingerprint.xml -->
|
||||
<string name="config_udfpsIcon" translatable="false">
|
||||
M25.5,16.3283C28.47,14.8433 31.9167,14 35.5834,14C39.2501,14 42.6968,14.8433 45.6668,16.3283
|
||||
M20,28.6669C22.7683,24.3402 28.7084,21.3335 35.5834,21.3335C42.4585,21.3335 48.3985,
|
||||
24.3402 51.1669,28.6669
|
||||
M22.8607,47.0002C21.834,44.3235 21.834,41.5002 21.834,41.5002C21.834,
|
||||
34.4051 27.7374,28.6667 35.5841,28.6667C43.4308,28.6667 49.3341,34.4051 49.3341,41.5002
|
||||
M49.3344,41.5003V42.0319C49.3344,44.7636 47.1161,47.0003 44.3661,47.0003C41.9461,
|
||||
47.0003 39.8744,45.2403 39.471,42.857L38.9577,
|
||||
39.7769C38.591,37.5953 36.7027,36.0002 34.5027,
|
||||
36.0002C26.5826,36.0002 29.846,49.1087 35.291,50.6487
|
||||
M44.9713,54.6267C42.5513,56.7167 39.2879,58.0001 35.5846,58.0001C32.2296,
|
||||
58.0001 29.2229,56.9551 26.8945,55.195
|
||||
</string>
|
||||
|
||||
</resources>
|
||||
|
@@ -11490,4 +11490,7 @@
|
||||
=1 {Apps installed more than # month ago}
|
||||
other {Apps installed more than # months ago}
|
||||
}</string>
|
||||
|
||||
<!-- Accessibility label for fingerprint sensor [CHAR LIMIT=NONE] -->
|
||||
<string name="accessibility_fingerprint_label">Fingerprint sensor</string>
|
||||
</resources>
|
||||
|
@@ -905,4 +905,13 @@
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
|
||||
<style name="BiometricsEnrollStyle">
|
||||
<item name="biometricsEnrollIcon">@color/udfps_enroll_icon</item>
|
||||
<item name="biometricsMovingTargetFill">@color/udfps_moving_target_fill</item>
|
||||
<item name="biometricsMovingTargetFillError">@color/udfps_moving_target_fill_error</item>
|
||||
<item name="biometricsEnrollProgress">@color/udfps_enroll_progress</item>
|
||||
<item name="biometricsEnrollProgressHelp">@color/udfps_enroll_progress_help</item>
|
||||
<item name="biometricsEnrollProgressHelpWithTalkback">@color/udfps_enroll_progress_help_with_talkback</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user