Loading core/java/android/hardware/biometrics/BiometricFingerprintConstants.java +9 −8 Original line number Diff line number Diff line Loading @@ -315,17 +315,17 @@ public interface BiometricFingerprintConstants { int FINGERPRINT_ACQUIRED_VENDOR_BASE = 1000; /** * Whether the FingerprintAcquired message is a signal to turn off HBM * Whether the FingerprintAcquired message is a signal to disable the UDFPS display mode. * We want to disable the UDFPS mode as soon as possible to conserve power and provide better * UX. For example, prolonged high-brightness illumination of optical sensors can be unpleasant * to the user, can cause long term display burn-in, and can drain the battery faster. */ static boolean shouldTurnOffHbm(@FingerprintAcquired int acquiredInfo) { static boolean shouldDisableUdfpsDisplayMode(@FingerprintAcquired int acquiredInfo) { switch (acquiredInfo) { case FINGERPRINT_ACQUIRED_START: // Authentication just began // Keep the UDFPS mode because the authentication just began. return false; case FINGERPRINT_ACQUIRED_GOOD: // Good image captured. Turn off HBM. Success/Reject comes after, which is when // hideUdfpsOverlay will be called. return true; case FINGERPRINT_ACQUIRED_PARTIAL: case FINGERPRINT_ACQUIRED_INSUFFICIENT: case FINGERPRINT_ACQUIRED_IMAGER_DIRTY: Loading @@ -334,11 +334,12 @@ public interface BiometricFingerprintConstants { case FINGERPRINT_ACQUIRED_IMMOBILE: case FINGERPRINT_ACQUIRED_TOO_BRIGHT: case FINGERPRINT_ACQUIRED_VENDOR: // Bad image captured. Turn off HBM. Matcher will not run, so there's no need to // keep HBM on. // Disable the UDFPS mode because the image capture has finished. The overlay // can be hidden later, once the authentication result arrives. return true; case FINGERPRINT_ACQUIRED_UNKNOWN: default: // Keep the UDFPS mode in case of an unknown message. return false; } } Loading core/res/res/values/config.xml +0 −3 Original line number Diff line number Diff line Loading @@ -4877,9 +4877,6 @@ --> </array> <!-- How long it takes for the HW to start illuminating after the illumination is requested. --> <integer name="config_udfps_illumination_transition_ms">50</integer> <!-- Indicates whether device has a power button fingerprint sensor. --> <bool name="config_is_powerbutton_fps" translatable="false" >false</bool> Loading core/res/res/values/symbols.xml +0 −1 Original line number Diff line number Diff line Loading @@ -2706,7 +2706,6 @@ <java-symbol type="bool" name="allow_test_udfps" /> <java-symbol type="array" name="config_udfps_sensor_props" /> <java-symbol type="array" name="config_sfps_sensor_props" /> <java-symbol type="integer" name="config_udfps_illumination_transition_ms" /> <java-symbol type="bool" name="config_is_powerbutton_fps" /> <java-symbol type="array" name="config_udfps_enroll_stage_thresholds" /> <java-symbol type="array" name="config_sfps_enroll_stage_thresholds" /> Loading packages/SystemUI/src/com/android/systemui/biometrics/AuthController.java +0 −1 Original line number Diff line number Diff line Loading @@ -291,7 +291,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba } }); mUdfpsController.setAuthControllerUpdateUdfpsLocation(this::updateUdfpsLocation); mUdfpsController.setHalControlsIllumination(mUdfpsProps.get(0).halControlsIllumination); mUdfpsBounds = mUdfpsProps.get(0).getLocation().getRect(); } Loading packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -264,7 +264,7 @@ class AuthRippleController @Inject constructor( acquireInfo: Int ) { if (biometricSourceType == BiometricSourceType.FINGERPRINT && BiometricFingerprintConstants.shouldTurnOffHbm(acquireInfo) && BiometricFingerprintConstants.shouldDisableUdfpsDisplayMode(acquireInfo) && acquireInfo != BiometricFingerprintConstants.FINGERPRINT_ACQUIRED_GOOD) { // received an 'acquiredBad' message, so immediately retract mView.retractDwellRipple() Loading Loading
core/java/android/hardware/biometrics/BiometricFingerprintConstants.java +9 −8 Original line number Diff line number Diff line Loading @@ -315,17 +315,17 @@ public interface BiometricFingerprintConstants { int FINGERPRINT_ACQUIRED_VENDOR_BASE = 1000; /** * Whether the FingerprintAcquired message is a signal to turn off HBM * Whether the FingerprintAcquired message is a signal to disable the UDFPS display mode. * We want to disable the UDFPS mode as soon as possible to conserve power and provide better * UX. For example, prolonged high-brightness illumination of optical sensors can be unpleasant * to the user, can cause long term display burn-in, and can drain the battery faster. */ static boolean shouldTurnOffHbm(@FingerprintAcquired int acquiredInfo) { static boolean shouldDisableUdfpsDisplayMode(@FingerprintAcquired int acquiredInfo) { switch (acquiredInfo) { case FINGERPRINT_ACQUIRED_START: // Authentication just began // Keep the UDFPS mode because the authentication just began. return false; case FINGERPRINT_ACQUIRED_GOOD: // Good image captured. Turn off HBM. Success/Reject comes after, which is when // hideUdfpsOverlay will be called. return true; case FINGERPRINT_ACQUIRED_PARTIAL: case FINGERPRINT_ACQUIRED_INSUFFICIENT: case FINGERPRINT_ACQUIRED_IMAGER_DIRTY: Loading @@ -334,11 +334,12 @@ public interface BiometricFingerprintConstants { case FINGERPRINT_ACQUIRED_IMMOBILE: case FINGERPRINT_ACQUIRED_TOO_BRIGHT: case FINGERPRINT_ACQUIRED_VENDOR: // Bad image captured. Turn off HBM. Matcher will not run, so there's no need to // keep HBM on. // Disable the UDFPS mode because the image capture has finished. The overlay // can be hidden later, once the authentication result arrives. return true; case FINGERPRINT_ACQUIRED_UNKNOWN: default: // Keep the UDFPS mode in case of an unknown message. return false; } } Loading
core/res/res/values/config.xml +0 −3 Original line number Diff line number Diff line Loading @@ -4877,9 +4877,6 @@ --> </array> <!-- How long it takes for the HW to start illuminating after the illumination is requested. --> <integer name="config_udfps_illumination_transition_ms">50</integer> <!-- Indicates whether device has a power button fingerprint sensor. --> <bool name="config_is_powerbutton_fps" translatable="false" >false</bool> Loading
core/res/res/values/symbols.xml +0 −1 Original line number Diff line number Diff line Loading @@ -2706,7 +2706,6 @@ <java-symbol type="bool" name="allow_test_udfps" /> <java-symbol type="array" name="config_udfps_sensor_props" /> <java-symbol type="array" name="config_sfps_sensor_props" /> <java-symbol type="integer" name="config_udfps_illumination_transition_ms" /> <java-symbol type="bool" name="config_is_powerbutton_fps" /> <java-symbol type="array" name="config_udfps_enroll_stage_thresholds" /> <java-symbol type="array" name="config_sfps_enroll_stage_thresholds" /> Loading
packages/SystemUI/src/com/android/systemui/biometrics/AuthController.java +0 −1 Original line number Diff line number Diff line Loading @@ -291,7 +291,6 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba } }); mUdfpsController.setAuthControllerUpdateUdfpsLocation(this::updateUdfpsLocation); mUdfpsController.setHalControlsIllumination(mUdfpsProps.get(0).halControlsIllumination); mUdfpsBounds = mUdfpsProps.get(0).getLocation().getRect(); } Loading
packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt +1 −1 Original line number Diff line number Diff line Loading @@ -264,7 +264,7 @@ class AuthRippleController @Inject constructor( acquireInfo: Int ) { if (biometricSourceType == BiometricSourceType.FINGERPRINT && BiometricFingerprintConstants.shouldTurnOffHbm(acquireInfo) && BiometricFingerprintConstants.shouldDisableUdfpsDisplayMode(acquireInfo) && acquireInfo != BiometricFingerprintConstants.FINGERPRINT_ACQUIRED_GOOD) { // received an 'acquiredBad' message, so immediately retract mView.retractDwellRipple() Loading