Commit Graph

5313 Commits

Author SHA1 Message Date
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
Maurice Lam
cc9f89383f Merge "Revert "Add parameter annotations to createVirtualDisplay"" 2022-02-11 04:23:34 +00:00
Maurice Lam
a343cdb58e Revert "Add parameter annotations to createVirtualDisplay"
Revert "Update usage of VirtualDevice.createVirtualDisplay"

Revert submission 16788542-vdm-api-review

Reason for revert: Broke build
BUG: 218953698
Reverted Changes:
Iea9be6d6d:Update usage of VirtualDevice.createVirtualDisplay...
I3ff9fe54c:Update usage of VirtualDevice.createVirtualDisplay...
I3321927b3:Add parameter annotations to createVirtualDisplay

Change-Id: I22a345200d0dce57acdced1fc102e4631e659a44
2022-02-11 04:10:16 +00:00
Maurice Lam
d93cbb0074 Merge "Add parameter annotations to createVirtualDisplay" 2022-02-11 03:35:02 +00:00
TreeHugger Robot
fca54fd47e Merge "Add more docs per API council feedback" 2022-02-11 02:25:05 +00:00
John Reck
1ce46f750a Add ability to make SyncFence from EGL
Bug: 217776226
Test: atest android.graphics.cts.EGL15Test#testEGL15AndroidNativeFence
Change-Id: I5e1356739831f63426521561c45e719fc5f419d9
2022-02-10 19:48:45 -05:00
Nicholas Ambur
2f7b2d5f94 expose HAL keyphrase trigger extras to EventPayload
The SoundTrigger HAL can deliver additional context about the kephrase
that was triggered along with the trigger audio. This change moves to
expose the information which was previously suppressed by the Android
framework.

Data exposed:
- Keyphrase extras providing details on what phrase was interpreted by
the voice engine

Extra keyphrase information provided by the SoundTrigger HAL which was
previously suppressed is also exposed.

Test: atest AlwaysOnHotwordDetectorEventPayloadTest
CTS-Coverage-Bug: 215375531
Bug: 215066299
Change-Id: I3b20fd3692c3f9c86181f87d66622c77778b9ab2
2022-02-10 13:37:41 -08:00
John Reck
a96a6df156 Add more docs per API council feedback
Test: make
Fixes: 218314633
Change-Id: I49fa3defa7907f48e650618295f7db758e247a2a
2022-02-10 16:32:04 -05:00
Maurice Lam
1feb56be88 Add parameter annotations to createVirtualDisplay
Also changed the Handler parameter to Executor

Bug: 217742182
Test: atest CtsVirtualDevicesTestCases
Change-Id: I3321927b36361168655f4886825955a642fb6c79
2022-02-10 21:25:22 +00:00
TreeHugger Robot
9da38b8761 Merge "Camera: Add mirror mode in OutputConfiguration" 2022-02-10 17:12:59 +00:00
Shuzhen Wang
aad70e9883 Camera: Add mirror mode in OutputConfiguration
The mirror mode gives the camera framework the ability to override the
default AUTO mode, where front facing camera's outputs are mirrored.

CTS-Coverage-Bug: 218869676
Test: Camera CTS
Bug: 200309079
Change-Id: I90d5826311c7f9088d13240085506d5b040565eb
2022-02-10 17:06:05 +00:00
Leon Scroggins
4be1391e96 Merge "getDisplayDecorationSupport: return more detailed info" 2022-02-10 11:56:32 +00:00
Christine Franks
3b79889dfd Address API feedback and CTS on cloud devices
- Add additional javadoc for vendor and product ids
- Enumerate full allowed key code set for VirtualKeyEvent
- On cloud devices, CTS fails with 'bad address' for VirtualTouchscreen.
  Pass by address rather than by value to solve.

Bug: 216554655
Test: atest CtsHardwareTestCases:android.hardware.input.cts.tests
Change-Id: Ifb233d2b6c4eee1ffdcba218ed17312e67bac6f6
2022-02-09 17:14:52 -08:00
Leon Scroggins III
73e0689d8a getDisplayDecorationSupport: return more detailed info
Call the updated native version of getDisplayDecorationSupport (added in
I961051c0a660b596039ac04b546040764ee20d34), and convert the NDK struct
into a Java class. Depend on the graphics AIDLs, which now have Java
backends. A future CL will update SysUI to call the new API.

Add a PixelFormat for R_8 to correspond to the native version. This will
allow SysUI to use COLOR_MODE_A8 when the HAL reports R_8.

If64fd6924960f592b7a211371bc2ca6536ae34f7 demonstrates using this.

Bug: 216644902
Test: manual
Change-Id: I0e34c6d6e369fda0a96231ab38c3bd5f3bfe3e06
2022-02-09 17:30:29 -05:00
TreeHugger Robot
38b71d70f3 Merge "Camera: Add support for timestamp base" 2022-02-08 23:03:41 +00:00
John Reck
ffa81f86ba Add setDataSpace SurfaceControl API
Also change DataSpace from long to int (HAL & native are both ints)

Bug: 217776226
Fixes: 218320444
Test: make && SurfaceControlTest#testSurfaceTransaction_setDataSpace
Change-Id: Ic2b9ccb1d0ba3c1d049839310b4fef0881a3d2e2
2022-02-08 03:05:30 +00:00