Squashed import of in-display fingerprint sensors related changes
Author: Peter Cai <peter@typeblog.net>
Date: Fri Apr 5 16:44:18 2019 +0200
Initial support for in-display fingerprint sensors
* Initially based upon phh's Mi9 implementation,
however a lot of changes have been made since.
* All device specific stuff has been moved to
IFingerprintInscreen HIDL interface and most
of code has been improved and refactored.
Change-Id: I52beaf6492b9daa012b5d42b858d552d1e378a2c
Author: Peter Cai <peter@typeblog.net>
Date: Sat Sep 7 11:01:39 2019 +0800
FODCircleView: defer removal to next re-layout
* Originally, when hide() is called, it removes the dim layer and then
removes the view immediately, then calls the hide event in HAL. This
causes severe flickering because the HAL is expected to restore the
brightness immediately, but the dim layer will not be removed until
the next repaint cycle.
* Since it is not easy to listen for a redraw after the view itself has
been removed, we can defer removal after the next time onLayout() is
called. When tested on my OnePlus 7 Pro, this reduces flickering on
successful fp authentication drastically.
* There are some cases where show() is called so quickly after hide()
that the view hasn't been actually removed due to this change (which
is actually another cause of flickering). This is handled by checking
the removal flag in show() and removing it immediately if the view is
yet to be removed, and also by moving calls to HAL show / hide events
to the actual attached / detached event handlers.
* For consistency in semantics, also move calls related to the dim
layer that were originally in onDraw for similar reasons to the
onLayout function.
Change-Id: I9b0cfe5c4d572a64b918ce7d3c130a659fd25a30
Author: Demon000 <demonsingur@gmail.com>
Date: Sun Dec 29 12:51:34 2019 +0100
FODCircleView: place above other UI elements
The navigation bar used to appear brighter because
TYPE_VOLUME_OVERLAY is behind TYPE_NAVIGATION_BAR.
Move the FOD overlay to TYPE_DISPLAY_OVERLAY
to be above other UI elements.
Change-Id: I3cd29d87fd31c817095a7327774d4dc931d54d30
Author: Demon000 <demonsingur@gmail.com>
Date: Sun Dec 29 13:17:22 2019 +0100
FODCircleView: rewrite and simplify implementation
Change-Id: Ie0859cc0e5b558b9446db5ec915c1f9f6608adad
Author: Demon000 <demonsingur@gmail.com>
Date: Sun Dec 29 23:38:18 2019 +0100
KeyguardView: report transiting bouncer as shown
FOD icon is shown until after the bouncer animation
is completed because onKeyguardBouncerChanged isn't
called when the bouncher animation is started.
Call updateStates when starting to show bouncer
and make sure a transitioning bouncer is considered
shown to make the FOD icon dissapear without
overlapping bouncer.
Change-Id: I4e452a6839586775264e087a7820ecc2bcf9a2cc
Author: XiNGRZ <chenxingyu92@gmail.com>
Date: Wed Jan 15 01:37:33 2020 +0800
FODCircleView: invert default icon path and add #20000000 bg
Change-Id: I320cfbe40c9ec24a2c65e403556cca5559ea2772
Author: Demon000 <demonsingur@gmail.com>
Date: Mon Feb 3 18:25:24 2020 +0000
FODCircleView: disable touch detection on screen off
Change-Id: Icfc46823028edb15473aee71992551ae9f7d21b8
Author: Demon000 <demonsingur@gmail.com>
Date: Wed Feb 19 18:53:59 2020 -0500
FODCircleView: update position of icon before show
FOD icon can appear in the wrong position when locking
the device while in landscape.
Fix it by updating the position before showing.
Change-Id: I812aa07357eadf8ff371761c041e44f5aab48046
Author: TheScarastic <warabhishek@gmail.com>
Date: Wed Mar 25 16:13:51 2020 +0530
FODCircleView: Show while bouncer is requesting Pattern or PIN
Also allow devices to overlay the minimum bottom padding of the
keyguard security container so that they may shift the pattern/pin input
and the emergency call button up until the FOD icon does not obscure the
view.
Change-Id: Ie9652afc0d105199bf1e660221c82266ac8cf30a
Author: LuK1337 <priv.luk@gmail.com>
Date: Thu Apr 30 21:16:32 2020 +0200
FODCircleView: Let us call show() when mIsBouncer() && !isPinOrPattern()
* Fixes missing fod circle when direct unlock is enabled.
Change-Id: Ib4f8d97a50685cfc9e3a24c243352c7b1af736d0
Author: TheScarastic <warabhishek@gmail.com>
Date: Sun May 24 07:12:17 2020 +0000
FODCircleView: Add support for pressed fod layer
Change-Id: Ic2a91ce6d6bcd03e5ac8d4d898a85f5d808c8776
Author: TheScarastic <warabhishek@gmail.com>
Date: Tue Sep 10 11:07:39 2019 +0530
FODCircleView: Add support for custom FP pressed icon
* For those devices which were calibrated to use
non-solid color icons, add the icon in overlay.
Change-Id: If357b8eb0da17b1ea97a2ab5ca880d465c33adc9
Author: TheScarastic <warabhishek@gmail.com>
Date: Fri Sep 18 16:10:57 2020 +0000
FODCircleView: Only reset brightness if brightness boost is enabled
Change-Id: Icddd29b1279e648d884e19bc917381981d9b97b3
[TheScarastic]: Adapt for Android R Dagger Injection
Change-Id: I52beaf6492b9daa012b5d42b858d552d1e378a2c
Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
Showing
- core/java/com/android/internal/statusbar/IStatusBar.aidl 6 additions, 0 deletionscore/java/com/android/internal/statusbar/IStatusBar.aidl
- core/java/com/android/internal/statusbar/IStatusBarService.aidl 6 additions, 0 deletions...ava/com/android/internal/statusbar/IStatusBarService.aidl
- core/java/com/android/internal/util/libremobileos/fod/FodUtils.java 24 additions, 0 deletions...com/android/internal/util/libremobileos/fod/FodUtils.java
- core/res/res/values/lmodroid_config.xml 3 additions, 0 deletionscore/res/res/values/lmodroid_config.xml
- core/res/res/values/lmodroid_symbols.xml 3 additions, 0 deletionscore/res/res/values/lmodroid_symbols.xml
- packages/SystemUI/Android.bp 4 additions, 2 deletionspackages/SystemUI/Android.bp
- packages/SystemUI/res-keyguard/values/lineage_dimens.xml 20 additions, 0 deletionspackages/SystemUI/res-keyguard/values/lineage_dimens.xml
- packages/SystemUI/res/drawable-nodpi/fod_icon_pressed.png 0 additions, 0 deletionspackages/SystemUI/res/drawable-nodpi/fod_icon_pressed.png
- packages/SystemUI/res/drawable/fod_icon_default.xml 25 additions, 0 deletionspackages/SystemUI/res/drawable/fod_icon_default.xml
- packages/SystemUI/res/values/config.xml 1 addition, 0 deletionspackages/SystemUI/res/values/config.xml
- packages/SystemUI/res/values/lmodroid_config.xml 4 additions, 0 deletionspackages/SystemUI/res/values/lmodroid_config.xml
- packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java 5 additions, 1 deletion...I/src/com/android/keyguard/KeyguardSecurityContainer.java
- packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java 464 additions, 0 deletions...UI/src/com/android/systemui/biometrics/FODCircleView.java
- packages/SystemUI/src/com/android/systemui/biometrics/FODCircleViewImpl.java 73 additions, 0 deletions...rc/com/android/systemui/biometrics/FODCircleViewImpl.java
- packages/SystemUI/src/com/android/systemui/dagger/SystemUIBinder.java 7 additions, 0 deletions...temUI/src/com/android/systemui/dagger/SystemUIBinder.java
- packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java 27 additions, 0 deletions...emUI/src/com/android/systemui/statusbar/CommandQueue.java
- packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java 9 additions, 2 deletions...ystemui/statusbar/phone/StatusBarKeyguardViewManager.java
- services/core/Android.bp 1 addition, 0 deletionsservices/core/Android.bp
- services/core/java/com/android/server/biometrics/BiometricServiceBase.java 1 addition, 1 deletion...a/com/android/server/biometrics/BiometricServiceBase.java
- services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java 111 additions, 0 deletions...oid/server/biometrics/fingerprint/FingerprintService.java
Loading
Please register or sign in to comment