Commit Graph

5337 Commits

Author SHA1 Message Date
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
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
Philip Junker
810e58044d Add more detailed documentation to InputDevice#getKeyCodeForKeyLocation().
Bug: 216640180
Bug: 179812917
Test: javadocs only
Change-Id: I7ebbd3ab2829667849576bf11a48689bb2714a2d
2022-02-22 13:21:40 +00:00
John Reck
fdcf3d9f47 Merge "Add more javadocs to SyncFence" into tm-dev am: e60fa2d099
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16938506

Change-Id: I91ab6833aff82d3cb944af7ace601959d948ba26
2022-02-19 18:40:49 +00:00
John Reck
e60fa2d099 Merge "Add more javadocs to SyncFence" into tm-dev 2022-02-19 18:04:24 +00:00
John Reck
2cf5c84530 Add P010 constant for HardwareBuffer
Also fix a typo in ImageFormat's docs

Fixes: 218928677
Test: make
Change-Id: Icc5d32afac113e639a81a11c86bee1698ef12861
(cherry picked from commit 000c374e2b)
2022-02-18 21:59:27 +00:00
John Reck
885fc0e45a Add more javadocs to SyncFence
Test: make offline-sdk-docs
Fixes: 218860229
Change-Id: Ia8adacf02358a43126df4c996842d5f67071ad71
2022-02-18 21:58:15 +00:00
TreeHugger Robot
6f14f3cd5b Merge "Add P010 constant for HardwareBuffer" 2022-02-18 02:19:43 +00:00
John Reck
000c374e2b Add P010 constant for HardwareBuffer
Also fix a typo in ImageFormat's docs

Fixes: 218928677
Test: make
Change-Id: Icc5d32afac113e639a81a11c86bee1698ef12861
2022-02-17 17:43:36 -05:00
Ytai Ben-tsvi
e908fbd93d Merge "Explicitly close sound model file descriptors" 2022-02-17 22:04:01 +00:00
TreeHugger Robot
a1b0c8b975 Merge "Make executor @Nullable in createVirtualDisplay" 2022-02-17 21:29:25 +00:00
Ytai Ben-Tsvi
578eadd1b4 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
2022-02-17 11:52:44 -08:00
Iavor-Valentin Iftime
917c62aa3b Merge "Add system APIs to allow checking of hardware mic/cam toggles" 2022-02-17 15:55:24 +00:00
Valentin Iftime
bea2fd3ae0 Add system APIs to allow checking of hardware mic/cam toggles
Allow priv apps to query the state of the software and hardware privacy toggles.

Test: atest CtsSensorPrivacyTestCases
Bug: 191745272
Change-Id: I87c31bcdd25daafe589dff8f21f227f2c2356ab1
2022-02-17 13:41:06 +01:00
TreeHugger Robot
7e360ad721 Merge changes I144487d3,I893397c9
* changes:
  Indicate sensor discontinuity via SensorEvent
  Clarify optionality of velocity in head tracker sensor
2022-02-17 11:32:48 +00:00
Brian Duddie
ddeb9c3680 Indicate sensor discontinuity via SensorEvent
Use a bool in SensorEvent rather than a new method in
SensorEventCallback to indicate discontinuities.

Fixes: 217364461
Test: additional CTS test cases pending
CTS-Coverage-Bug: 214618172
Change-Id: I144487d36b2d00d57265c9e3e9f542c7136a33f5
2022-02-17 01:30:36 +00:00
Maurice Lam
51f5463ae9 Make executor @Nullable in createVirtualDisplay
Fixes: 218717272
Test: Existing tests pass
Change-Id: I0e4b73d8e9c3bf80e7d7d33213fd1c43d8ed207d
2022-02-16 15:51:18 -08:00
John Reck
a49e26c27c Merge "Add setBuffer w/ SyncFence" 2022-02-15 17:55:51 +00:00
Treehugger Robot
4ce402ddb2 Merge "Fix registerListener documentation bug in which the notice does not contain the notice contents." am: e1ce0243a3 am: 8ff4db2d9d am: 580c3b06ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1985887

Change-Id: Ieea798a2a5df3ecf239d165793ffcd27fd25e7a8
2022-02-15 16:11:28 +00:00
Treehugger Robot
580c3b06ee Merge "Fix registerListener documentation bug in which the notice does not contain the notice contents." am: e1ce0243a3 am: 8ff4db2d9d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1985887

Change-Id: Iabedcceb302623774d7736b3bc313e9c260bb5d9
2022-02-15 15:55:07 +00:00
Treehugger Robot
8ff4db2d9d Merge "Fix registerListener documentation bug in which the notice does not contain the notice contents." am: e1ce0243a3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1985887

Change-Id: Ie1b3cbb261a8aea72a78ba1f6e916344848a1c23
2022-02-15 15:39:12 +00:00
Dereck Bridie
a24c4e8072 Fix registerListener documentation bug in which the notice does not contain the notice contents.
Change-Id: Ia123d583c0f4464b935751e1f389b3998a60d006
2022-02-15 09:34:19 +00:00
Iavor-Valentin Iftime
8157e9b0f3 Merge "Set HW toggle states" 2022-02-15 09:18:20 +00:00
Badhri Jagan Sridharan
14c53c6147 Merge "Convert @UsbDataStatus into bit field flags." 2022-02-15 07:30:29 +00:00
Evan Severson
f13ace95ab Merge "Add hidden apis to allow checking of hardware mic/cam toggles" 2022-02-15 05:03:09 +00:00
Badhri Jagan Sridharan
9c80283f83 Convert @UsbDataStatus into bit field flags.
getUsbDataStatus now returns bit field values of @UsbDataStatus.

Also renaming from USB_DATA_STATUS_* to DATA_STATUS_* based on
review comments.

Bug: 216640242
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I96ade3dd7041a4094e57907069a872909a62e72f
2022-02-15 03:17:46 +00:00
Brian Duddie
0c285639a7 Clarify optionality of velocity in head tracker sensor
Bug: 218911221
Test: n/a, comment update only
Change-Id: I893397c9446e5c976e3dc9e68d65d67e7128ba9e
2022-02-14 17:50:24 -08:00
Maurice Lam
a92994d82a Merge "Address API review comments" 2022-02-14 18:26:10 +00:00
John Reck
13bfbb7742 Add setBuffer w/ SyncFence
Test: atest android.view.cts.SurfaceControlTest
Bug: 217776226
Change-Id: Ia40947a8cc056d3fcc5569e522524af61c4e5b1b
2022-02-14 12:00:08 -05:00
John Reck
529ee8aa30 Merge "Add ability to make SyncFence from EGL" 2022-02-14 14:05:05 +00:00