Commit Graph

5262 Commits

Author SHA1 Message Date
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
Kenneth Ford
f18a8b8534 Rename cancelRequest API to cancelStateRequest and remove the
request parameter

With the change to only having one override request at a time,
we can simplify the cancelRequest API in DeviceStateManager
to not require a request object and have the current
override request canceled. This API is still gated
around having the CONTROL_DEVICE_STATE permission or being the
top level app.

Bug: 215400374
Test: DeviceStateManagerGlobalTest, DeviceStateManagerServiceTest &&
 OverrideRequestControllerTest
Change-Id: I565b608372c21384d401db502b16553ed85b86ee
2022-01-29 01:41:43 +00:00
Kenneth Ford
cda48cdca5 Updates OverrideRequestController to allow for one override
request at max

To simplify orchestration around handling multiple override
requests, we are reducing the OverrideRequestController to
only having one override request at a time. If a new request
is added, the previous request will be cancelled and removed.

This change also means that we can remove the SUSPENDED status
of a request and the accompanying callbacks

Bug: 216495664, Bug: 207686851
Test: OverrideRequestControllerTest
Change-Id: I787f2ce8567812a633c0afdd5b3f684da4508249
2022-01-29 00:56:30 +00:00
Joe Bolinger
8a2f880221 Merge changes Id07e160b,I3ac8049c
* changes:
  Update client monitors to use HAL context methods.
  Add communication channel for AoD state for all biometric operations.
2022-01-28 23:35:17 +00:00
Christine Franks
41db41ad25 Merge "Update uniqueId association methods" 2022-01-28 18:16:07 +00:00
TreeHugger Robot
f654a3ceb6 Merge changes from topic "brightnessthrottler"
* changes:
  Add display brightness throttler
  Add BrightnessThrottler data to display device config
  Report HBM_ON_SUNLIGHT when display is in hbm mode
2022-01-27 23:21:30 +00:00
Joe Bolinger
1a2536afdb Add communication channel for AoD state for all biometric operations.
This will be added to the client monitors with tests in a follow up change.

Bug: 204585936
Bug: 204584403
Test: atest AuthControllerTest
Change-Id: I3ac8049ca73cb8bf58b1c1d47945a528f26d02a3
2022-01-27 15:06:24 -08:00
Evan Severson
e5c3230597 Merge "Refactor SensorPrivacyService to separate state from service" 2022-01-27 22:10:37 +00:00
Christine Franks
acc5a3e2d6 Update uniqueId association methods
Change from associating via name to associating via physical input port.
This is more robust as there is less likely to be a chance of collision,
as well as less likely to have problems as the userspace language changes
(and therefore the user-visible name should also change).

Bug: 202273865
Test: atest FrameworksServicesTests:com.android.server.companion.virtual

Change-Id: Ieae349e20f66df1490351c85a99d2efa5910d08b
2022-01-27 07:04:27 -08:00