Commit Graph

5365 Commits

Author SHA1 Message Date
Nicholas Ambur
d8322a6cec Merge "add IntRange to KeyphraseRecognitionExtra APIs" into tm-dev am: c9476b6dbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17299610

Change-Id: Ie88bcd425708f08cfa1595f1683e6a9816e11d3a
2022-03-22 23:20:32 +00:00
Nicholas Ambur
4b1a9dbcff add IntRange to KeyphraseRecognitionExtra APIs
added coarseConfidenceLevel IntRange

Bug: 220128045
Test: atest AlwaysOnHotwordDetectorEventPayloadTest
Change-Id: I2b0b7cbb6bc446fdfbb9241eed763fd4f4d33531
2022-03-22 22:53:57 +00:00
Arthur Hung
514835696a Merge "Expose input association to be testable" 2022-03-22 01:03:51 +00:00
David Christie
5ce39ecf21 Merge "Update GeofenceHardwareRequestParcelable to match parcel/unparcel format." 2022-03-21 23:42:51 +00:00
David Christie
4a320b3ba9 Merge changes from topic "presubmit-am-db1f62fddd154ef5a414bf17435d37f0" into sc-v2-dev-plus-aosp am: a6984e544a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17183360

Change-Id: I60ff7a2e0a0d59ca65342a5812c5402a29d52c47
2022-03-21 23:26:30 +00:00
Arthur Hung
7298692865 Expose input association to be testable
- Expose api via TestApi
- Add ASSOCIATE_INPUT_DEVICE_TO_DISPLAY permission to Shell
- Add port for uinput command

Bug: 215631144
Test: atest CtsInputTestCases
Ignore-AOSP-First: Permission that should be kept internal until T releases
Change-Id: I55f2141aabceb71475f5e7f7d590b2f95e05c5aa
2022-03-21 13:05:08 +08:00
John Reck
302cf42988 Merge "Add setBuffer w/ release callback" into tm-dev am: bb0809e758
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17242896

Change-Id: I4b69be05b9c57fe5f9c13b5a3b5074d6d25a5d62
2022-03-19 01:50:06 +00:00
John Reck
bb0809e758 Merge "Add setBuffer w/ release callback" into tm-dev 2022-03-19 01:32:25 +00:00
TreeHugger Robot
faa01fa2d9 Merge "Add display committed state to DisplayInfo" 2022-03-18 18:10:19 +00:00
Joe Bolinger
47f2766f43 Merge "Invoke lifecycle callbacks while waiting for cookies." into tm-dev am: afde3e325a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17039479

Change-Id: If2b6a52fb4cace1002fceef97ead3e4464310d07
2022-03-18 18:05:05 +00:00
John Reck
f6fb6f6288 Add setBuffer w/ release callback
Also tweak SyncFence#getSignalTime javadocs

Fixes: 220897032
Bug: 222095580
Test: SurfaceControlTest
Change-Id: I83c000e1699c95b73ac7b41815e1798475c1a778
2022-03-18 13:42:09 -04:00
Joe Bolinger
0cab3b4252 Invoke lifecycle callbacks while waiting for cookies.
Operations that wait for cookies (authentication) do not set their lifecycle callback until started. This leaves a small window when failures are not propogated to callers (i.e. fast/immediate failures).

This also adds some additional checking for stale UI events (point up/down) that are delivered after the operation has ended.

Fix: 216071532
Test: atest com.android.systemui.biometrics com.android.server.biometrics
Change-Id: I7f7500db0a42b2ea97e171e26148ee68b15f5ae8
2022-03-17 18:51:40 +00:00
Nicolo' Mazzucato
07c6ebdd97 Add display committed state to DisplayInfo
This adds the committed state to the display.
The `state` is used to set the correct power state (e.g. turning display on/off), however there was no way to know when this power state change finished. This new "committedState" aims to fulfill this gap.

DisplayListeners receives a `onDisplayChanged` callback whenever the power state change is fully committed, and can get this information from DisplayInfo.

This will be used in a follow up cl to improve unfold latency performances.

Bug: 223808403
Bug: 220690092
Bug: 197515205
Test: atest LocalDisplayAdapterTest && manual
Change-Id: Ia2fbab768b696c59578d974c88157ee3c8f3ddde
2022-03-17 15:04:22 +00:00
Shuzhen Wang
528918b840 Merge "Camera: Make stream use case to be 64 bit" into tm-dev am: bba3858a2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17140813

Change-Id: Ic8f101db9e029938f693f2cf05aeeb74e2b0e099
2022-03-14 22:37:41 +00:00
Shuzhen Wang
bba3858a2d Merge "Camera: Make stream use case to be 64 bit" into tm-dev 2022-03-14 22:16:37 +00:00
David Christie
5be4f1c431 [automerge] Update GeofenceHardwareRequestParcelable to match parcel/unparcel format. 2p: e20d8ae710
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17183360

Bug: 216631962
Change-Id: Ifb0a5e2aa0d649e100ada36b8019983a59316bf1
2022-03-14 19:51:59 +00:00
David Christie
e20d8ae710 Update GeofenceHardwareRequestParcelable to match parcel/unparcel format.
Test: manual
Bug: 216631962

Change-Id: I3d6d1be9d6c312fe0bf98f600ff8fc9c617f8ec3
2022-03-14 19:51:40 +00:00
David Christie
5fc1c46f63 Update GeofenceHardwareRequestParcelable to match parcel/unparcel format.
Test: manual
Bug: 216631962

Change-Id: I3d6d1be9d6c312fe0bf98f600ff8fc9c617f8ec3
2022-03-11 16:56:02 +00:00
Shuzhen Wang
cc922dacc5 Camera: Make stream use case to be 64 bit
This increases the available bits for OEMs' custom range.

Test: Camera CTS
Bug: 223387965
Change-Id: I4bc1ccc5430a8c54dd753a410155723be890080f
2022-03-10 18:20:36 +00:00
Rucha Katakwar
b28ddc9728 Merge "Update getHighSpeedVideoFpsRanges API doc." into tm-dev am: 7073d3bbe8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17127955

Change-Id: I5c4fad761817e6d105486e672ff607d1b8775131
2022-03-09 20:58:25 +00:00
Rucha Katakwar
7073d3bbe8 Merge "Update getHighSpeedVideoFpsRanges API doc." into tm-dev 2022-03-09 20:47:21 +00:00
Austin Borger
de2f302705 Merge "Provide refresh rate range to the window manager based on the maximum frame rate of each camera stream." into tm-dev am: 1f854ad7c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17008564

Change-Id: Id48e0d965d5a4aea67a77b12d6899ce29165779e
2022-03-08 23:50:17 +00:00
Austin Borger
1f854ad7c3 Merge "Provide refresh rate range to the window manager based on the maximum frame rate of each camera stream." into tm-dev 2022-03-08 23:26:22 +00:00
Rucha Katakwar
3fe1ef18dd Update getHighSpeedVideoFpsRanges API doc.
bug: 189383363
Change-Id: Idf1eb85a737adc6e6dbd0f007e7e9f311af7db6f
2022-03-08 15:16:01 -08:00
Beverly Tai
f09c77daf6 Merge "Immediately stop HBM & authRipple anim onAcquire" into tm-dev am: f7599ba9ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17071183

Change-Id: I03eafb34dd3333adb01d73daae87f74ef7827f77
2022-03-08 13:11:10 +00:00
Beverly Tai
f7599ba9ee Merge "Immediately stop HBM & authRipple anim onAcquire" into tm-dev 2022-03-08 13:03:55 +00:00
Beverly
9996e3acab Immediately stop HBM & authRipple anim onAcquire
Previously we only stopped HBM if we receive onAcquired with
info=FINGERPRINT_ACQUIRED_GOOD.

Update the onAcquiredGood method to be more generic (onAcquired,
with an acquiredInfo parameter) so the UdfpsOverlay can turn
off HBM for the appropriate acquiredInfo messages.

Bug: 222117182
Test: manually test on Lock Screen, enroll and biometric prompt
Test: atest SystemUITests
Change-Id: I6b21fbf65a6f38660fe8beab617d17cef3ad50ba
2022-03-07 19:59:51 +00:00
TreeHugger Robot
137b896f63 Merge "Camera: Standard dynamic range profile must not have any extra latency" into tm-dev am: 7517f6d5d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17073032

Change-Id: Ie3d98339cb1c80a74b0af0b1ee04e98116deac27
2022-03-03 22:36:12 +00:00
TreeHugger Robot
7517f6d5d5 Merge "Camera: Standard dynamic range profile must not have any extra latency" into tm-dev 2022-03-03 22:25:54 +00:00
Emilian Peev
cb4b1b0230 Camera: Standard dynamic range profile must not have any extra latency
The standard dynamic range profile will always be present as part of the
advertised profiles. Additionally the same profile must never advertise
extra latency due to the format selection.

Bug: 215396395
Test: Camera CTS
Change-Id: I0ad7dd23a1b1f742293b4c52a48a8fca98b7925c
2022-03-03 11:43:11 -08:00
Naomi Musgrave
769b37a901 Merge "MediaProjection sets content recording details in WM directly." into tm-dev am: 3302797586
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16933664

Change-Id: Ied0cd35f5fb924b0a47ffa862c9a19c82621606b
2022-03-03 10:52:52 +00:00
Naomi Musgrave
3302797586 Merge "MediaProjection sets content recording details in WM directly." into tm-dev 2022-03-03 10:45:36 +00:00
Naomi Musgrave
27655e1fc3 MediaProjection sets content recording details in WM directly.
Content recording relies upon a class describing current state.
rather than passing around details from media > display > wm.
WMService keeps track of the session in ContentRecordingController.
ContentRecordingController manages hand-off between different
DisplayContent instances, as the session details are changed.

Manually tested that fold/unfold handling when screen recording
from QS tile still works, and that taking over a screen cast
with a screen recording works.

Refactoring logic from DisplayContent into new recording
delegate will come in a future change.

Bug: 216756854
Test: atest FrameworksCoreTests:ContentRecordingSessionTest
Test: atest WmTests:DisplayContentTests
Test: atest WmTests:ContentRecordingControllerTests
Change-Id: Ib4f125dd703d362ac13fcbe469d00b345827e706
2022-03-02 18:32:34 +00:00
Christine Franks
87c29671ff Merge "Update remote input device doc and add IntDef" into tm-dev am: 750bc4d621
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17047390

Change-Id: I39dd8a4fd44a033a37d26fc8b29cdb7e0f9de317
2022-03-02 18:03:52 +00:00
Christine Franks
750bc4d621 Merge "Update remote input device doc and add IntDef" into tm-dev 2022-03-02 17:42:17 +00:00
Joe Bolinger
61cd3a1294 Merge changes from topic "coex-again-2" into tm-dev am: 532df4fc03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17040854

Change-Id: I312b3ae24f36969ac6d22a3e507b92ebb6a46524
2022-03-01 23:41:52 +00:00
Christine Franks
70dda6fe48 Update remote input device doc and add IntDef
This IntDef specifies the supported key codes.

Bug: 216554655
Test: builds
Change-Id: Idde1ab17148294bd7348fdf72eb3b1fa65f777c1
2022-03-01 18:07:09 +00:00
Joe Bolinger
4f75555ac1 Add Face and Fingerprint (Co-Ex) support to biometric prompt.
Migrate simple views to Kotlin & remove useless test. Will add new tests in a follow up change.

Bug: 217393533
Test: atest com.android.systemui.biometrics com.android.server.biometrics CommandQueueTest
Test: manual (via BP test app)
Change-Id: Ic8c80344d75f34f4b5f65ef14b61bbb5cddb0349
2022-02-28 18:37:19 -08:00
Joe Bolinger
1c9a06276a Remove face to fingerprint multi-sensor behavior.
Refactor existing tests to remove unnecessary mocks and boilerplate code to
cover more of the real behavior. This is prep for adding new tests in another
change to add the new face and fingerprint behavior.

Bug: 217393533
Test: atest AuthBiometricViewTest AuthContainerViewTest
Test: manual (authenticate using test app)

Change-Id: If984d1c07fee98d2d7a20cb0025ad434ad9977f4
2022-02-28 18:36:20 -08:00
Austin Borger
447e815bd7 Provide refresh rate range to the window manager based on the maximum
frame rate of each camera stream.

Bug: 209669709
Test: Verified values received by the CameraServiceProxy are reasonable.
Change-Id: I5cff78bf6f055e5f04ed5da33d5d6ef3a3d64bb6
2022-02-28 21:22:50 +00:00
TreeHugger Robot
74dcb83240 Merge "Implement API feedback for Safety Center QS" into tm-dev am: d7af7fcaff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16992964

Change-Id: I632596b01fb0808c7c263d47326cd015a1b4b1d6
2022-02-25 21:50:25 +00:00
Nate Myren
6510aa238e Implement API feedback for Safety Center QS
Implements API feedback about the safety center constants. Also renames
Safety Hub to Safety Center

Fixes: 215301946
Test: build
Change-Id: Ie07e8fc3ae7371e94d23ac6dfa9a446ef92da074
2022-02-25 16:56:30 +00:00
TreeHugger Robot
b7aa8319d9 Merge "Replace LinkedList by a more performant collection" 2022-02-24 17:52:53 +00:00
Nikolas Havrikov
10375309d1 Replace LinkedList by a more performant collection
This is a semi-automatic change.
See https://errorprone.info/bugpattern/JdkObsolete for the rationale.

Test: make
Bug: 221046110
Change-Id: I4b26645bb2aec41940275e41b76fe64c1aea91cd
2022-02-24 11:03:54 +00:00
TreeHugger Robot
5f902c6439 Merge "Camera: Allow clients to query for extra profile latency" into tm-dev 2022-02-24 00:27:29 +00:00
TreeHugger Robot
57da9a6e4f Merge "Make executor @Nullable in createVirtualDisplay" into tm-dev 2022-02-24 00:00:47 +00:00
Emilian Peev
404ce3f141 Camera: Allow clients to query for extra profile latency
Additionally switch the dynamic range profiles to long values
instead of integers.

Bug: 215396395
Test: Camera CTS

Change-Id: I4700af73f31423fd9316cfb08a351b0cde731d76
2022-02-23 00:26:22 +00:00
Ytai Ben-Tsvi
8dc40270b7 Explicitly close sound model file descriptors
This is a workaround for the fact that currently, relying on the GC to
release those resources is unreliable and on the other hand having an
explicit close() that isn't tightly coupled with the internal details
of the parcelable is not possible (filed a bug).

Test: Manual verification of soundtrigger operation.
Test: atest com.android.server.soundtrigger_middleware.SoundHw2CompatTest
Fixes: 219411458
Change-Id: I43bd43ca80eadf97f0254678b0e817fc6f8a06b2
Merged-In: I43bd43ca80eadf97f0254678b0e817fc6f8a06b2
(cherry picked from commit 578eadd1b4)
2022-02-22 23:06:50 +00:00
Maurice Lam
4de7d3f9d2 Make executor @Nullable in createVirtualDisplay
Fixes: 218717272
Test: Existing tests pass
Change-Id: I0e4b73d8e9c3bf80e7d7d33213fd1c43d8ed207d
2022-02-22 20:32:31 +00:00
Philip Junker
826f58a66a Merge "Add more detailed documentation to InputDevice#getKeyCodeForKeyLocation()." into tm-dev am: e90d6b5e78 am: 992c4ad000
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16976023

Change-Id: I57822dddd883c3d5a84dce790113af46f8af6f26
2022-02-22 18:13:25 +00:00