Commit Graph

5270 Commits

Author SHA1 Message Date
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
Changyeon Jo
1d5f34a955 Camera: Add automotive metadata section
This CL adds a new automotive metadata section with below fields:
- AUTOMOTIVE_LOCATION describes where the camera exists.
- AUTOMOTIVE_LENS_FACING tells where the camera's lens is facing toward.

Bug: 205156620
Test: m -j
Change-Id: Iea1483a5afea7e290da6303b1999f17fc4a7778d
2022-02-04 15:29:38 -08:00
John Reck
5ec2b572eb Add some top-level OWNERs
To keep their respective per-files updated primarily

Test: N/A
Change-Id: Ib5fbeac665fc1cfd01ff62ef61ec910e5c516669
2022-02-04 18:26:08 -05:00
Christine Franks
27a354bf40 Add API to hide cursor for virtual mice
Bug: 216244627
Test: atest FrameworksServicesTests:com.android.server.companion.virtual
CTS-Coverage-Bug: 208247880
Change-Id: Ie1a2bc526a705f2f9788898afbff87f5a9448f85
2022-02-04 12:15:18 -08:00
Evan Severson
45dde6f1a4 Add camera light privacy component
This listens to app op events and turns on all lights of the type CAMERA
when the camera is in use.

Test: atest CameraPrivacyLightControllerTest
Bug: 216107392
Change-Id: I84629bbb8465b20a1298677a42b9214550f9d765
2022-02-04 08:20:11 -08:00
Shuzhen Wang
a92e021416 Camera: Add stream use case support
Stream use case indicates the purpose of a camera stream. By using
stream use case, the camera device doesn't need to use the stream's
format and immediate consumer surface type as heuristics to figure
out what the stream is for.

Bug: 200307880
Test: Camera CTS
Change-Id: I390c0e4fcc1272723784c358c6f0334e1dbbd848
2022-02-04 00:02:55 -08:00
Rucha Katakwar
6e6505f7fb Camera: Support 60fps during constrained HFR.
Currently we are calculating the requestList size using a fixed preview
size of 30fps. Support 60fps along with 30fps preview. This change
also updates the requestList size to 1 for high speed recording preview.

Test: CTS RecordingTest on pixel 4 device.

Bug: 200310682
Change-Id: I8c417eefd0d2584e8a4a1c45c0f023a2dc405cb2
2022-02-04 05:30:58 +00:00
Eva Chen
219d4e242b Add limited axes sensor types to sensor framework.
Includes changes for the following sensors:
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES
- SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED
- SENSOR_TYPE_GYROSCOPE_LIMITED_AXES_UNCALIBRATED

These changes will enable support for automotive style IMUs that have
more limited axes for accelerometers (x-axis and y-axis) and gyroscopes
(z-axis).

Bug: 187342209
Test: Compiled
Change-Id: I7030501ddfba5ee51d9e3e51a8e25d7c6708cb68
2022-02-03 13:51:44 -08:00
TreeHugger Robot
d3bffe3284 Merge "CameraManager: Update display size query" 2022-02-02 22:04:55 +00:00
TreeHugger Robot
23f99963c0 Merge "Revert "Revert "Boot time resolution changes in framework""" 2022-02-02 21:13:49 +00:00
Kriti Dang
12bdcd1a52 Revert "Revert "Boot time resolution changes in framework""
This reverts commit 5f415e6190.

Reason for revert: Fixed the underlying issue
BUG: 217335654
Test: verified on forrest

Change-Id: I599ed7c6ed8f3483b68653cfb35ddb1effb01efb
2022-02-02 16:53:13 +00:00
TreeHugger Robot
0f29c8406a Merge "Add tracking bug to TODO" 2022-02-02 15:32:15 +00:00
TreeHugger Robot
51e42e9306 Merge "[CEC Configuration] Add 'set_menu_language' setting" 2022-02-02 14:39:16 +00:00
Prabir Pradhan
bf10ca0507 Merge changes I02a480dd,I9673b49d
* changes:
  Use binder tokens to remove its gesture monitors if a process dies
  Implement gesture monitors using spy windows
2022-02-02 14:10:13 +00:00
Nathalie Le Clair
2df4a73476 Add tracking bug to TODO
Bug: 217509829
Test: none
Change-Id: Icc122d4cbd238d8235bf3c69460248558f1e2e0c
2022-02-02 11:50:08 +01:00
Nathalie Le Clair
d31c55e559 Merge "CEC: Change vendor command handling" am: 134f59f851 am: e90b5a3efc am: 53ffd7a1f3 am: 70b1d31e62
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807376

Change-Id: I42316b1f2508b9eebde4b3d3e9470044e387fd17
2022-02-01 23:19:25 +00:00
Nathalie Le Clair
70b1d31e62 Merge "CEC: Change vendor command handling" am: 134f59f851 am: e90b5a3efc am: 53ffd7a1f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807376

Change-Id: I35c2ec0be80f6d00028f562227e212341f76f7f2
2022-02-01 23:06:40 +00:00
Prabir Pradhan
c809658285 Use binder tokens to remove its gesture monitors if a process dies
Bug: 162194035
Test: manual: "adb shell am crash com.android.systemui" and observe its
gesture monitors are removed through dumpsys input

Change-Id: I02a480dd8e4b98a9911d976de2684d283c9e7d8b
2022-02-01 14:09:06 -08:00
Nathalie Le Clair
53ffd7a1f3 Merge "CEC: Change vendor command handling" am: 134f59f851 am: e90b5a3efc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807376

Change-Id: Ib9aa66ef9089f5b628745b9e5931ba69c9e15448
2022-02-01 20:20:37 +00:00
Michal Olech
6c966b35ea Merge "Add system prompt for system language change after <Set Menu Language> CEC message" 2022-02-01 17:21:51 +00:00
Shubham Dubey
53fef98a25 Merge "Revert "Boot time resolution changes in framework"" 2022-02-01 17:10:52 +00:00
Shubham Dubey
5f415e6190 Revert "Boot time resolution changes in framework"
This reverts commit aef5aa78b5.

Reason for revert: Causing boot failures
BUG: 217335654

Change-Id: I41e47b88ef7663804de4a04928be4eb08ad83f73
2022-02-01 13:47:54 +00:00
Nathalie Le Clair
134f59f851 Merge "CEC: Change vendor command handling" 2022-02-01 12:56:13 +00:00
Michal Olech
b39f3b509e [CEC Configuration] Add 'set_menu_language' setting
This ports ro.hdmi.set_menu_language to HdmiCecConfig.

Bug: 190810909
Test: unit tests + manual build & run
Change-Id: Ia473f11816bd7d24256b9be1a510d15e70a2a3e2
2022-02-01 12:39:53 +01:00
Michal Olech
6f1aecf1bf Add system prompt for system language change after <Set Menu Language> CEC message
Requires ro.hdmi.set_menu_language=true

Test: build; flash; manual test
Bug: 190810909
Change-Id: Ic0664e077e975bba0929dd871c3a4c9ab385814c
2022-02-01 12:39:53 +01:00
TreeHugger Robot
b72556f479 Merge "Boot time resolution changes in framework" 2022-02-01 06:50:09 +00:00
Kriti Dang
aef5aa78b5 Boot time resolution changes in framework
Adding API and changes to incorporate boot-time resolution HAL APIs

Bug: 209598222
Test: atest CtsBootDisplayModeTestCases

Change-Id: I7081af903d8259cf7c0009238e7968d458ff3325
2022-01-31 19:36:23 +01:00
Shubham Dubey
e63c1ae566 Merge "Remove SystemApi on resetUsbPort" 2022-01-31 15:17:22 +00:00
Ricky Niu
3a3874de97 Remove SystemApi on resetUsbPort
Remove SystemApi on resetUsbPort which only meant to be called by UsbPort

Bug: 216476071
Test: atest CtsSystemApiAnnotationTestCases:android.signature.cts.api.AnnotationTest#testAnnotation -- --abi x86_64
Change-Id: I2e71ef756814dd7fe2eb20e503dd5a12e729a9f7
2022-01-31 06:26:20 +00:00
Kenneth Ford
3523eab795 Merge changes from topic "device_state_manager"
* changes:
  Rename cancelRequest API to cancelStateRequest and remove the request parameter
  Updates OverrideRequestController to allow for one override request at max
2022-01-29 22:54:38 +00:00