This reverts commit 8f5bb9d31c with a fix for change to the singleProvider method caused some tests on virtual devices to fail.
Refactors some fingerprint-only logic into a shared module so the face service can apply the same start & callback model. This will enable some keyguard optimizations for face auth that were previously made for fingerprint.
Bug: 221037350
Test: atest KeyguardUpdateMonitorTest AuthControllerTest DozeSensorsTest LockIconViewControllerTest FaceServiceRegistryTest FingerprintServiceRegistryTest BiometricStateCallbackTest
Test: manual (via BP test app)
Change-Id: I365c11858d8fbba74fad350932f3c7ae25c297fd
The death notifier for the middleware service is unnecessary
- We don't use mService elsewhere (nor check its nullity)
- We re-query the service upon each call
Additionally, creating a new death notifier on each query is redundant,
and results in memory leaks (since each notifier takes state, and we
never unlink to death).
Test: Compiles
Bug: 237968209
Change-Id: Ib53ec65235d4284357e0f6649bb6f65b2de83b99
This reverts commit 294f4a1e79.
Reason for revert: b/242845336 (a few cts tests seem to pass on device locally but fail on cf postsubmit)
Change-Id: Icf36d403f96fc7a24d5191e7f43f43354a32b54f
Refactors some fingerprint-only logic into a shared module so the face service can apply the same start & callback model. This will enable some keyguard optimizations for face auth that were previously made for fingerprint.
Bug: 221037350
Test: atest KeyguardUpdateMonitorTest AuthControllerTest DozeSensorsTest LockIconViewControllerTest FaceServiceRegistryTest FingerprintServiceRegistryTest BiometricStateCallbackTest
Test: manual (via BP test app)
Change-Id: I88a489ef0eaf9a9e5645e5e6f9b9381187b25fab
When a Display has the flag VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR, the
content on the display is expected to mirror another display. This was
previously done by setting the same layerStack. This change removes that
behavior and instead will create a mirror hierarchy of the other display
and place it at the root of the new Display. This is leveraging the work
done for ContentRecorder, but using it as default for all displays
instead of only for VD created by MediaProjection.
Test: Screen record via MediaProjection
Test: Screen record via DisplayManager
Test: ContentRecorderTests
Test: DisplayContentTests
Bug: 237664947
Change-Id: I18b36dadc43ba1c37f9516ff10d24bb8683c04ac
During the gap between createClient and setClientProxy that sets up
mClientProxy, another thread callbackFinished on mClientProxy that will
causes NPE, this CL wait until mClientProxy is created then allow
callbackFinished to be called
Test: Added Thread.sleep(7000) to expand the gap between
mService.createClient and client.setClientProxy to expand the chance of creating race condition NPE then run PtsChreTestCases and passed (ab/I55000010077218265)
Fixes: 240691175
Change-Id: I8a729abf9f4368eab51c886a20035ccf879d9eff
When we use any of the viewed methods from ByteBuffer such as
asFloatBuffer, the returned buffer's position and the original
ByteBuffer's positions are independent. So update the original
ByteBuffer's position as well, for correct accounting.
Bug: 239639757
Test: Camera CTS; GCA
Test: MarshalQueryableArray error logs don't appear in logcat while using GCA
Change-Id: I488a23c278ee5d044c2423a616e598a93cbbad0b
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
1. Added side fps auth delay on device entry/biometric
prompt to wait for power press.
2. Added tap to dismiss dialog for side fps enrollment.
Test: atest SideFpsEventHandlerTest
Bug: 233953696
Change-Id: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
Merged-In: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
Some combinations for ultra high resolution sensors are repeated, and
some are there in the documentation which are missing. Specifically
YUV/RAW/Jpeg + YUV preview don't have the right combinations listed.
This was probably a typo.
Bug: 234752370
Test: Tested in RobustnessTest.java
Change-Id: I316443c1e2328494b75ac49242b4ddac5a51775e
1. Added side fps auth delay on device entry/biometric
prompt to wait for power press.
2. Added tap to dismiss dialog for side fps enrollment.
Test: atest SideFpsEventHandlerTest
Bug: 233953696
Change-Id: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
Fix the bug that using keySet and removing items of mPrograms at
the same time during program list update
Bug: 238199883
Test: atest android.hardware.radio.tests.functional
Test: atest com.android.server.broadcastradio.hal2
Change-Id: Ie958b3686780de8c6f3b9912c71dcfe7c07befd0
Merged-In: Ie958b3686780de8c6f3b9912c71dcfe7c07befd0
(cherry picked from commit 92a2339b7b)