Commit Graph

5328 Commits

Author SHA1 Message Date
Rucha Katakwar
7073d3bbe8 Merge "Update getHighSpeedVideoFpsRanges API doc." into tm-dev 2022-03-09 20:47:21 +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
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
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
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
750bc4d621 Merge "Update remote input device doc and add IntDef" into tm-dev 2022-03-02 17:42:17 +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
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
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
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
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
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
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
Valentin Iftime
28dac743f0 Set HW toggle states
Propagate HW toggle state from InputManagerService to SensorPrivacyManager.
Enable devices with 2-way (on/off) or 3-way hardware switches (on/mic-only/off)
 to control the microphone and camera privacy toggles state and behavior.

Devices map the hardware toggles GPIO to SW_MUTE_DEVICE
 and SW_CAMERA_LENS_COVER codes, which are handled by InputFlinger -> InputManagerService.

Test: atest SensorPrivacyServiceMockingTest , Manual
Bug: 191745272
Change-Id: If968a2c2292ab73808e7d5735f156515a6d62e03
2022-02-13 13:06:39 +01:00
Evan Severson
92e6edf5c2 Add hidden apis to allow checking of hardware mic/cam toggles
The service already supports a hardware type so this change introduces
new overloads which add a parameter to check between hardware/software
or any other future types.

Bug: 191745272
Test: Manual, CtsSensorPrivacyTestCases, SensorPrivacyServiceMockingTest

Change-Id: Icda09da03f5361997566a62e3a72b25a760ef3ca
2022-02-13 13:02:18 +01:00
TreeHugger Robot
b32e148d59 Merge "camera2: Add Mandatory stream combinations for PREVIEW_STABILIZATION." 2022-02-12 04:19:51 +00:00
Maurice Lam
b73e26f971 Address API review comments
Expand javadocs and change return value to NonNull for
VirtualDeviceManager.createVirtualDevice.
Also removed the redundant @TestApi on the virtual display flag.

Bug: 217742182
Test: Existing tests pass
Change-Id: I381039e6ebe4f5f5046a35e9a3e266ff7f46c369
2022-02-11 23:47:07 +00:00
Jayant Chowdhary
d8c00a273d camera2: Add Mandatory stream combinations for PREVIEW_STABILIZATION.
Bug: 170230992

Test: atest RobustnessTest.java#testMandatoryPreviewStabilizationOutputCombinations

Change-Id: I474c6ed154fdde32660ac495bc5adc4d979b88da
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2022-02-11 21:58:53 +00:00
TreeHugger Robot
ce366b9a97 Merge "Revert^2 "Add parameter annotations to createVirtualDisplay"" 2022-02-11 18:43:05 +00:00
Ahaan Ugale
ad7dd8fecb Merge changes from topics "aohd-invalidate", "eventpayload-data"
* changes:
  API to destroy active detectors
  expose HAL keyphrase trigger extras to EventPayload
  expose HAL keyphrase trigger data to EventPayload
2022-02-11 10:05:03 +00:00
Xin Li
5ad6db7742 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5
Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
2022-02-11 07:25:43 +00:00
Maurice Lam
6364f5dadb Revert^2 "Add parameter annotations to createVirtualDisplay"
Also changed the Handler parameter to Executor

Bug: 217742182
Test: atest CtsVirtualDevicesTestCases
Change-Id: I0f8f0c6a0f57e773191382da824e53d6ea371f4b
2022-02-11 04:33:58 +00:00