Commit Graph

5299 Commits

Author SHA1 Message Date
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
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
Shuzhen Wang
9021bde419 Camera: Add support for timestamp base
Give applications the ability to select timestamp base for a particular
stream.

Test: atest ImageReaderTest
Bug: 200307880
Bug: 186700251
Change-Id: I61a3e4c16b0253b791e0c4252ef65d44f48b73e9
2022-02-07 15:00:00 -08:00
Sally Qi
8b60c74500 Merge "Add fence support in ImageWriter class." 2022-02-07 20:19:20 +00:00
Changyeon Jo
370b27ad3b Merge "Camera: Add automotive metadata section" 2022-02-07 19:02:58 +00:00
John Reck
abb11a360f Merge "Add some top-level OWNERs" am: 8abc52aad7 am: e3c2aae661 am: d603c2cbf7 am: 5877567a36
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973083

Change-Id: I4e233933208b6b2ee37b6417fd135ea7231860db
2022-02-07 17:34:56 +00:00
John Reck
5877567a36 Merge "Add some top-level OWNERs" am: 8abc52aad7 am: e3c2aae661 am: d603c2cbf7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973083

Change-Id: I67d7ac0ad32f826d0513e5ff4cefcc0798accb41
2022-02-07 17:21:24 +00:00
John Reck
d603c2cbf7 Merge "Add some top-level OWNERs" am: 8abc52aad7 am: e3c2aae661
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1973083

Change-Id: Ic74e9bef2ab9e438ff5d8c60451aabeec770c69b
2022-02-07 17:05:26 +00:00
Christine Franks
0ba7aa9321 Merge "Add API to hide cursor for virtual mice" 2022-02-07 17:03:56 +00:00
Eva Chen
5f459046ca Add TYPE_HEADING sensor type to sensor framework.
Bug: 189983308
Test: Compiled
Change-Id: I183f176352fd6e08025647638cee35fd1600f3f0
2022-02-05 22:39:48 -08:00
Eva Chen
c871906b60 Merge "Add limited axes sensor types to sensor framework." 2022-02-05 22:44:44 +00:00
Sally Qi
d2087e7781 Add fence support in ImageWriter class.
- Add SyncFence class that include FileDescriptor and related functions
- expose fence file descriptor setter/getter in the Image class

Bug: 210919185
Test: android.hardware.camera2.cts.ImageWriterTest
Change-Id: I7428db26e3e6ca84675d2ce2ef4def46ed0b1397
2022-02-04 21:09:37 -08:00
TreeHugger Robot
86c843e8cd Merge "Camera: Add support for client requests&results when using extension sessions" 2022-02-05 04:15:45 +00:00
Shuzhen Wang
cc2e26cdb5 Merge "Camera: Add stream use case support" 2022-02-05 03:13:09 +00:00
Emilian Peev
5b3d7a7c3c Camera: Add support for client requests&results when using extension sessions
Allow camera clients to query for any orthogonal camera parameters that
can be applied during extension capture sessions.
Enable capture result callbacks in the same scenario.

Bug: 198447410
Test: Camera CTS

Change-Id: Ifb472cd051121d83d230bcc152c6942b8fb82a2d
2022-02-04 17:52:23 -08:00
Evan Severson
34cd58e768 Merge "Add camera light privacy component" 2022-02-05 01:10:49 +00:00