Commit Graph

5497 Commits

Author SHA1 Message Date
Kenneth Ford
7f8d5fd451 Introduces requestBaseStateOverride test API
Adds new requestBaseStateOverride on DeviceStateManager
to be used for testing, to provide a similar behavior
to changing the physical configuration of the device.

This is necessary now that the requestState API is being
used for features now, we need a test API that will
be a closer simulation to physical device changes.

Bug: 234336979
Test: DeviceStateManagerGlobalTest
Change-Id: I6ad9e799329f16521aa3c13b248eed762fe0b121
2022-09-21 23:47:04 +00:00
Kenneth Ford
d5fe5cc1ca Adds requestBaseStateOverride method on DeviceStateManagerService
Server side changes to accompany the addition of the
DeviceStateManager#requestBaseStateOverride test API

Bug: 234336979
Test: OverrideRequestControllerTest
 && DeviceStateManagerServiceTest
Change-Id: Ib915b245acd260be1e0d5016d765af5598ea390c
2022-09-20 18:11:27 +00:00
Ilya Matyukhin
6eda3a1d1a Refactor UDFPS display logic and remove illumination
Bug: 243818429
Test: atest SystemUITests
Change-Id: I285f136a75bbd26226a39c544f3c07101ff8eb80
Merged-In: I285f136a75bbd26226a39c544f3c07101ff8eb80
2022-09-19 06:13:06 +00:00
Joshua Mccloskey
ce1e8cee95 Merge "Updated power press strings in enrollment." into tm-qpr-dev 2022-09-13 23:12:40 +00:00
Joshua McCloskey
15fd68227e Updated power press strings in enrollment.
Test: Manual.
Test: atest FingerprintEnrollClientTest
Fixes: 245150708
Change-Id: Icdf83c3c46d12b6241a3695f3151528b412b2ccd
2022-09-09 17:52:57 +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
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
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
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
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
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
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
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
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
2ff2a64cfe Merge "SideFPS UX updates" into tm-qpr-dev 2022-07-26 20:34:50 +00:00
Jayant Chowdhary
8023620746 Merge "camera2: update original ByteBuffer using bulk get on 'viewed' ByteBuffer for correct position" into tm-d1-dev am: 138fc75ad4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19354614

Change-Id: Iaf4d48ea9d31b053f78f788e0f651b7ba1c5c8bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-21 21:06:35 +00:00
Rucha Katakwar
851d5cf44b Update torch brightness max level description.
Bug: 239492786
Change-Id: I9514a3d137a64f99e3c5c03d1843b53ace0cbf3a
2022-07-21 14:03:50 -07:00
Jayant Chowdhary
138fc75ad4 Merge "camera2: update original ByteBuffer using bulk get on 'viewed' ByteBuffer for correct position" into tm-d1-dev 2022-07-21 20:41:45 +00:00
Rucha Katakwar
727b4386db Merge "Update torch brightness max level description." into tm-d1-dev am: 88949ab1fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19340523

Change-Id: Id2ddfe491e9f75e9f2e1818bf48f26e369234e63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20 23:47:39 +00:00
Jayant Chowdhary
cff610bf0e camera2: update original ByteBuffer using bulk get on 'viewed' ByteBuffer for correct position
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>
2022-07-20 18:33:45 +00:00
Joshua McCloskey
2987c8b264 SideFPS UX updates
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
2022-07-20 17:02:29 +00:00
Rucha Katakwar
a5bd39561a Update torch brightness max level description.
Bug: 239492786
Change-Id: I01720f2d25b932d58fa8b7816f8504101d70f3a3
2022-07-19 16:50:25 -07:00
Jayant Chowdhary
2f824d9426 Merge "camera2: use bulk get methods while unmarshalling primitives." into tm-d1-dev am: c5a041d4c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19303234

Change-Id: Ic9bd7f09a84b2e873e6cc00e2f77ab321c8f1f9f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19 15:37:39 +00:00
Jayant Chowdhary
f0f7a7cabf camera2: use bulk get methods while unmarshalling primitives.
Bug: 239167817

Test: GCA (validity)
Test: Camera CTS
Test: profiling results mentioned in b/239167817

Change-Id: I6954a81d49be6d8a0746301e544b1772444ee746
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-07-15 19:40:29 +00:00
Weilin Xu
db8579ffd0 Fix purge bug for program list update
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)
2022-07-13 16:37:31 +00:00
Avichal Rakesh
573c527843 Merge "camera: Fix exception handling from ImageReader#detach" into tm-d1-dev am: 00d8fb5022
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19139699

Change-Id: Ib70238ad7e850cad5666a66c2a6f29353d58cf0f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 20:52:26 +00:00
Avichal Rakesh
a9d512bef1 camera: Fix exception handling from ImageReader#detach
ImageReader has a bug where if detaching an Image from Surface fails, it
might throw a RuntimeException instead of an IllegalStateException as
stated in the javadoc. This can lead to CameraExtensionSessionImpl
crashing due to the unhandled exception. Changing ImageReader behavior
is difficult as it might break backwards compatibility.

To prevent crashes from expected exception, this CL adds exception
handling for RuntimeException when detaching images.

In addition, CameraExtensionSessionImpl caught generic `Exception` at
another place, which can lead to it consuming unintended exceptions.
This CL scopes in the exception handling to consume expected exceptions
only.

Bug: 236825255
Test: CtsCameraTestCases pass on Flame
Change-Id: I6fa81b7a19fb4017480074e33b09942aedcd2212
2022-07-01 11:42:22 -07:00
Weilin Xu
b5c6901c67 Fix deadlock due to callbacks in ProgramList
Copy callback member variables in ProgramList and call them after
releasing the lock of ProgramList, avoiding acquiring lock in
RadioAppService after already locking ProgramList, which causes
deadlook.

Bug: 193041795
Test: m -j
Test: atest android.hardware.radio.tests.functional
Test: atest com.android.server.broadcastradio.hal2
Change-Id: I196377ea030248a5d66a4db03ffb3bee4a70e633
Merged-In: I196377ea030248a5d66a4db03ffb3bee4a70e633
(cherry picked from commit 4ca33d655a)
2022-06-29 18:30:11 +00:00
Fiona Campbell
265f9a6c9c Brightnessthrottler updateable through DeviceConfig
Add listener and methods to allow BrightnessThrottler to be updated
though DeviceConfig.

Bug: 224567082
Test: atest com.android.server.display
Test: adb shell device_config put display_manager
brightness_throttling_data
"local:4619827677550801152,3,moderate,0.5,severe,0.379518072,emergency,0.248995984;local:4619827677550801151,1,moderate,0.75;local:4619827677550801150,0"
adb shell dumpsys display | grep -A20 BrightnessThrottler

Change-Id: If4fe4875d6a05cb03fbf69abb8a62a645098b3a0
2022-06-24 14:51:33 +00:00
Jayant Chowdhary
b2918b14a7 Merge "Limit preview stabilization mandatory stream sizes to 1440p (instead of RECORD)." into tm-dev am: f0094b8dd3 am: 06086bee8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18704183

Change-Id: Icf8348f8c54af9a1741f17a8edef8c5b221f2499
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-17 22:04:57 +00:00
Jayant Chowdhary
06086bee8e Merge "Limit preview stabilization mandatory stream sizes to 1440p (instead of RECORD)." into tm-dev am: f0094b8dd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18704183

Change-Id: I17b3850de21c4b35e5e447e5faa1b03adedae9a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-17 21:36:47 +00:00
Jayant Chowdhary
f0094b8dd3 Merge "Limit preview stabilization mandatory stream sizes to 1440p (instead of RECORD)." into tm-dev 2022-06-17 21:35:12 +00:00
Jayant Chowdhary
d83e9b5325 Limit preview stabilization mandatory stream sizes to 1440p (instead of RECORD).
Also fix a logic error in an if check while retrieving mandatory streams
for preview stabilization. This was not caught by CTS since for devices
where preview stabilization was supported, skipped the test. A
modification has been made to CTS RobustnessTest to ensure that the
preview stabilization support and mandatory streams are in agreement
with each other.

Bug: 228245412

Test: atest RobustnessTest.java on device supporting preview stabilization

Change-Id: I18c7f3c728862866b8f088da3afe222afbad7051
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-06-17 17:18:29 +00:00
Alex Chau
937ca4b396 Revert^2 "Revert "Do not send updates for disabled displays.""
Bug: 221071695
Reason for revert: b/235889652
Reverted Changes:
I966d2c07d:Update IDisplayManager proxy.
Idfba84d5a:Revert "Revert "Do not send updates for disabled d...
Change-Id: I8c6c23bbf0c41aaeb576ad2917759fe8d782d02f
2022-06-15 10:16:57 +00:00
TreeHugger Robot
857d672870 Merge "Camera: Update streamConfigurationMap doc for JPEG sizes" into tm-dev am: 0558b51322 am: 36b94109da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18870021

Change-Id: I362d34435ab91710166e1097bf3d16d3c592bc6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 03:54:12 +00:00
TreeHugger Robot
36b94109da Merge "Camera: Update streamConfigurationMap doc for JPEG sizes" into tm-dev am: 0558b51322
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18870021

Change-Id: I9d568bfb8c0203d15ce146c0592611e12297a04e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 03:36:48 +00:00
TreeHugger Robot
0558b51322 Merge "Camera: Update streamConfigurationMap doc for JPEG sizes" into tm-dev 2022-06-14 03:16:43 +00:00
Emilian Peev
29a9bf7f85 Merge "Camera: Allow synthetic extension metadata" into tm-dev am: eb177cd5d6 am: 53b01eb303
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18801658

Change-Id: Id4bc3cea32f57dd893c27d0977771ea8b38213ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 22:10:07 +00:00
Emilian Peev
53b01eb303 Merge "Camera: Allow synthetic extension metadata" into tm-dev am: eb177cd5d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18801658

Change-Id: I3eb898b1001a34db4d315ca7bc44a607acd927a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 21:51:53 +00:00
Emilian Peev
eb177cd5d6 Merge "Camera: Allow synthetic extension metadata" into tm-dev 2022-06-13 21:29:03 +00:00
Shuzhen Wang
e07c69bfde Camera: Update streamConfigurationMap doc for JPEG sizes
Update the developer doc for reduced set of supported JPEG sizes
depending on media performance class level.

Also fix some broken links in developer doc.

Test: Build
Bug: 235804659
Change-Id: Iab3be52d13f02a19cc62732dcdf46feb576e0095
2022-06-13 14:09:58 -07:00
Michael Wright
924d63481c Merge "Revert "Revert "Do not send updates for disabled displays.""" into tm-dev am: f029d8cf1b am: 4f89921b4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18799664

Change-Id: I3c2b7052d5d91dc0f5aa2f1c3eb93efa40cfcbd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 20:16:01 +00:00
Michael Wright
4f89921b4a Merge "Revert "Revert "Do not send updates for disabled displays.""" into tm-dev am: f029d8cf1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18799664

Change-Id: Ia26667a9b7d0d79d69496acd37857b48b4e2cda0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-13 19:48:22 +00:00
Michael Wright
ce5906b4a1 Revert "Revert "Do not send updates for disabled displays.""
This reverts commit d04fae1ba7.

Reason for revert: Robolectric fixed

Change-Id: Idfba84d5aefb694f9af77a1d4f1a648e01e282b4
2022-06-13 11:08:32 +00:00
Sam Dubey
53ff5b141e Merge "Revert "Do not send updates for disabled displays."" into tm-dev am: 54e0824f85 am: 525a41a6db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18803234

Change-Id: I85e89210aedbbd98b1dc8038c8cc1915cf2ea4f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 07:03:34 +00:00
Sam Dubey
525a41a6db Merge "Revert "Do not send updates for disabled displays."" into tm-dev am: 54e0824f85
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18803234

Change-Id: Ide0cddaef2914222fbea373abcb2d517e50edbe1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-10 06:47:39 +00:00
Sam Dubey
54e0824f85 Merge "Revert "Do not send updates for disabled displays."" into tm-dev 2022-06-10 05:51:43 +00:00
Sam Dubey
d04fae1ba7 Revert "Do not send updates for disabled displays."
This reverts commit 3175300106.

Reason for revert: Breaking roboelectric suw tests with an NPE accessing displayids() in shadowdisplaymanager

Bug: 235541208
Change-Id: Ib760b5b9a477eb3c8516f01614afe8192a6e597b
2022-06-10 04:38:26 +00:00