Commit Graph

5737 Commits

Author SHA1 Message Date
TreeHugger Robot
b6d3fbfced Merge "Camera: Clarify doc for onPhysicalCameraUnavailable" into tm-qpr-dev am: 0a9fbfe94c am: e766e4e525
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19784829

Change-Id: I6f7e6dc82b2aeb48bfee100d4ee414c390093d1a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 17:17:20 +00:00
TreeHugger Robot
e766e4e525 Merge "Camera: Clarify doc for onPhysicalCameraUnavailable" into tm-qpr-dev am: 0a9fbfe94c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19784829

Change-Id: I3c8f2c3162bf1bb68e4e7b9e2fb355e97e76fa6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 17:11:45 +00:00
TreeHugger Robot
0a9fbfe94c Merge "Camera: Clarify doc for onPhysicalCameraUnavailable" into tm-qpr-dev 2022-09-02 17:03:49 +00:00
Joe Bolinger
33e1463496 Merge "Move ALS auth logging triggers to wakefullness events." into tm-qpr-dev am: 40db12e7c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19775212

Change-Id: I773e5885a49273e1d335165fba8afecbcb157410
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 20:14:06 +00:00
Joe Bolinger
40db12e7c7 Merge "Move ALS auth logging triggers to wakefullness events." into tm-qpr-dev 2022-09-01 19:27:04 +00:00
Shuzhen Wang
d216f25f6b Camera: Clarify doc for onPhysicalCameraUnavailable
Clarify that no physical camera availability callbacks will be called
if the parent logical camera becomes unavailable.

Test: Build doc
Bug: 243738805
Change-Id: I339b7cedf1df10f89aa6ead0c67ed9f2bda9ed0c
2022-09-01 11:21:16 -07:00
Grace Cheng
45038c6e7b Merge "Implement SFPS guided enrollment for T6" into tm-qpr-dev am: 6562716382
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19561857

Change-Id: Ib7b7a95f979c4fc30b0c1d7cf2c31475b6c396b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 01:13:36 +00:00
Grace Cheng
422a670b91 Merge "Implement SFPS guided enrollment for T6" 2022-09-01 00:46:23 +00:00
John Reck
697f48f768 Merge "HardwareBuffer.aidl now for everyone!" 2022-08-31 18:30:21 +00:00
Cole Faust
247456d9e9 Merge "[conflict] Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567 am: 9b3a5fc03b" 2022-08-31 04:03:46 +00:00
Grace Cheng
d69192ded6 Implement SFPS guided enrollment for T6
Reduces perception of long enrollment process by introducing new enrollment layout and stages for SFPS. Also adds user feedback via new animated assets with dynamic colors, and all associated strings and a11y labels.

Test: Observe new guided enrollment process on T6
Test: make RunSettingsRoboTests ROBOTEST_FILTER=FingerprintEnrollEnrollingTest
Fixes: 232024488
Fixes: 233091341
Fixes: 241165082
Fixes: 242218240
Change-Id: Ifa8788e78dce4c682ec4a9e2fe2c077418f8bddb
2022-08-30 22:18:15 +00:00
Joe Bolinger
cfd4d10f91 Move ALS auth logging triggers to wakefullness events.
These were orignally tied to pointer up/down events, but change I4a217ef4a068c8b2cae0f345856912028f9a9525 removed these events entirely on many devices and left these triggers unreliable.

Bug: 243836005
Test: atest FingerprintAuthenticationClientTest BiometricContextProviderTest AuthControllerTest
Test: manual (verify on lockscreen via adb shell dumpsys sensorservice | grep -i Biometric)
Change-Id: I2db34ca561850eb1eddcc65c08c617a46dd3d845
Merged-In: I2db34ca561850eb1eddcc65c08c617a46dd3d845
2022-08-30 22:08:43 +00:00
Cole Faust
9acf46f66f [conflict] Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567 am: 9b3a5fc03b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I5e59b8549df348c181cd3b72311798a5d7602a67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 21:03:54 +00:00
Cole Faust
9b3a5fc03b Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564 am: 6a79ae2567
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I7052a1f7391ed6701fe0e1036c27368609032e35
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 20:44:00 +00:00
Grace Cheng
7957047dd8 Implement SFPS guided enrollment for T6
Reduces perception of long enrollment process by introducing new enrollment layout and stages for SFPS. Also adds user feedback via new animated assets with dynamic colors, and all associated strings and a11y labels.

Test: Observe new guided enrollment process on T6
Test: make RunSettingsRoboTests ROBOTEST_FILTER=FingerprintEnrollEnrollingTest
Fixes: 232024488
Fixes: 233091341
Fixes: 241165082
Fixes: 242218240
Fixes: 243813773
Change-Id: Ifa8788e78dce4c682ec4a9e2fe2c077418f8bddb
2022-08-30 20:11:32 +00:00
Cole Faust
6a79ae2567 Merge "Fix array-related errorprone warnings" am: a1eb8cf128 am: 44f8576073 am: 91d6c5b564
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2186016

Change-Id: I931e692e6d170d19a7492e44cc1333c10e96c897
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 20:00:09 +00:00
Joe Bolinger
95289da7cb Move ALS auth logging triggers to wakefullness events.
These were orignally tied to pointer up/down events, but change I4a217ef4a068c8b2cae0f345856912028f9a9525 removed these events entirely on many devices and left these triggers unreliable.

Bug: 243836005
Test: atest FingerprintAuthenticationClientTest BiometricContextProviderTest AuthControllerTest
Test: manual (verify on lockscreen via adb shell dumpsys sensorservice | grep -i Biometric)
Change-Id: I2db34ca561850eb1eddcc65c08c617a46dd3d845
2022-08-30 18:28:41 +00:00
John Reck
61f628c372 HardwareBuffer.aidl now for everyone!
Fixes: 162794619
Test: CtsHardwareTestCases
Change-Id: Icd6f80dbfff6052042fad0572679555ff42fd928
2022-08-25 13:58:34 -04:00
Cole Faust
584140c83a Fix array-related errorprone warnings
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.

Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ia6f216cc36ad0a5758f39fd9b34962cd4adf9d8e
2022-08-25 10:57:12 -07:00
Joe Bolinger
9edabde2ee Merge "Revert "Revert "Copy startup & callback mechanism from fingerprint to face service.""" 2022-08-23 16:39:17 +00:00
Joe Bolinger
cbea2975d3 Revert "Revert "Copy startup & callback mechanism from fingerprint to face service.""
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
2022-08-20 00:53:27 +00:00
TreeHugger Robot
ec12c0742d Merge "Remove SoundTriggerMiddleware death notification" into tm-qpr-dev am: ee9494914b am: 6f988c39c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19668917

Change-Id: I890054a55f8a8a1b630b44219567c0539bc09c0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 20:45:56 +00:00
TreeHugger Robot
6f988c39c5 Merge "Remove SoundTriggerMiddleware death notification" into tm-qpr-dev am: ee9494914b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19668917

Change-Id: I16b18ee3086f1d249da3f490bef7899a2e81a5f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 20:42:23 +00:00
John Reck
bb756097dd Merge "HardwareBuffer API cleanups" 2022-08-19 19:06:02 +00:00
Atneya Nair
e6ac0c57d7 Remove SoundTriggerMiddleware death notification
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
2022-08-18 18:04:07 +00:00
Joe Bolinger
64fce1104d Merge "Revert "Copy startup & callback mechanism from fingerprint to face service."" 2022-08-17 18:29:32 +00:00
Joe Bolinger
8f5bb9d31c Revert "Copy startup & callback mechanism from fingerprint to face service."
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
2022-08-17 18:16:40 +00:00
Joe Bolinger
f87c0d1017 Merge "Copy startup & callback mechanism from fingerprint to face service." 2022-08-15 17:54:53 +00:00
Joe Bolinger
294f4a1e79 Copy startup & callback mechanism from fingerprint to face service.
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
2022-08-12 22:59:22 +00:00
John Reck
95d3e7b9a3 HardwareBuffer API cleanups
Add getId()
Remove invalid format check
Unify ISE throwing

Fixes: 241943759
Test: atest android.hardware.cts.HardwareBufferTest

Change-Id: I656c30365a2fbf826193c7a398b03e61102c625f
2022-08-12 12:08:17 -04:00
Chavi Weingarten
619dfd599a Merge "Use layer mirroring when screen recording via VD" 2022-08-10 21:58:58 +00:00
Jayant Chowdhary
68b009b02b Merge "Fix spacing for preview stabilization mandatory streams docs." into tm-qpr-dev am: 23ac6aceca am: 4bcb7914b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19572800

Change-Id: Iaf16a291dc42d40257a8a8d872460c66ce3d252b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 18:08:54 +00:00
Jayant Chowdhary
4bcb7914b8 Merge "Fix spacing for preview stabilization mandatory streams docs." into tm-qpr-dev am: 23ac6aceca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19572800

Change-Id: Ibe4864a2f0b239f0ff8d3d642dbe5da01bfb0186
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 17:42:54 +00:00
Jayant Chowdhary
b723541a6e Fix spacing for preview stabilization mandatory streams docs.
Bug: 237717894

Test: Check output of make doc-comment-check-docs

Change-Id: Ia389f18746fd6c4c534a87ae6ad89261bdd8cc3a
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-08-10 00:10:37 +00:00
Chavi Weingarten
e64bae455e Use layer mirroring when screen recording via VD
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
2022-08-09 16:45:56 +00:00
rockyfang
cc16eef601 Synchronized setClientProxy and callbackFinished to prevent NPE
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
2022-08-05 18:31:12 +00:00
TreeHugger Robot
2d3ab8bd84 Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6 am: 5c002a64a5 am: 3d698aabaa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689

Change-Id: I3d36b6323c6434f0ad0351a7026c8b4b51568b67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:03:39 +00:00
TreeHugger Robot
3d698aabaa Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6 am: 5c002a64a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689

Change-Id: I980d941daf2be5aef08b9695e993dbb76edffc3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 17:59:25 +00:00
TreeHugger Robot
5c002a64a5 Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689

Change-Id: I7d641cea03f9f35889d0ebdcf66e9bf7a0f35609
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 17:51:59 +00:00
TreeHugger Robot
13dd5971c4 Merge "Camera: Avoid NPE when extension results are not supported" into tm-d1-dev am: 8f42b2f8d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19451689

Change-Id: Ie2118964e3072a9c3cf7b45a296b1aa4674084af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 17:51:57 +00:00
Bharatt Kukreja
563b92d6c6 Merge "Fix MandatoryStreamCombinations for ultra high resolution sensors" 2022-07-28 14:22:53 +00:00
Emilian Peev
671d613bcb Camera: Avoid NPE when extension results are not supported
Bug: 240017175
Test: atest -c -d cts/tests/camera/src/android/hardware/camera2/cts/CameraExtensionSessionTest.java#testRepeatingAndCaptureCombined
Change-Id: I0b82039a103ac2a55f71a6aea505d7c7c696d7be
2022-07-27 22:46:59 +00:00
Rucha Katakwar
656bb29f56 Merge "Update torch brightness max level description." into tm-d1-dev am: 7cdfd75b02 am: 77f3fe5709 am: 81d5ed723b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386567

Change-Id: Ib0197be19c70ff8e6ffa6b016883a9da1b3ae7ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 19:44:48 +00:00
Rucha Katakwar
81d5ed723b Merge "Update torch brightness max level description." into tm-d1-dev am: 7cdfd75b02 am: 77f3fe5709
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386567

Change-Id: I8cc7c95e80e21ad68847b749dd9f0b0d36bbf27b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 19:00:10 +00:00
Rucha Katakwar
ff800ef92c Merge "Update torch brightness max level description." into tm-d1-dev am: 7cdfd75b02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386567

Change-Id: Icf0a904563a9267e19c8efdc15bae4e29e39e392
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 18:37:46 +00:00
Rucha Katakwar
77f3fe5709 Merge "Update torch brightness max level description." into tm-d1-dev am: 7cdfd75b02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386567

Change-Id: Idc09acf8b2b185f873b45b7bad70e0a32fab5ac3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 18:37:45 +00:00
Rucha Katakwar
7cdfd75b02 Merge "Update torch brightness max level description." into tm-d1-dev 2022-07-27 18:14:04 +00:00
Joshua Mccloskey
315f6f124d Merge "SideFPS UX updates" into tm-qpr-dev am: 2ff2a64cfe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19039844

Change-Id: I0e5645ff7a507ebd9c8c29f347ed6e45f3f365d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 20:56:14 +00:00
Joshua Mccloskey
2ff2a64cfe Merge "SideFPS UX updates" into tm-qpr-dev 2022-07-26 20:34:50 +00:00
Jayant Chowdhary
9623f2520a Merge "camera2: update original ByteBuffer using bulk get on 'viewed' ByteBuffer for correct position" into tm-d1-dev am: 138fc75ad4 am: 8023620746 am: aaee5102db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19354614

Change-Id: I3ff06d72705ae3852dae3e67d3e589d364a90624
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-21 21:31:30 +00:00