Commit Graph

5249 Commits

Author SHA1 Message Date
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
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
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
TreeHugger Robot
cc016b3496 Merge "Scribe in IMF: Stylus Spy windows Impl 5/N" 2022-01-27 08:33:08 +00:00
Evan Severson
0cefec2d4f Refactor SensorPrivacyService to separate state from service
This refactoring will let us have alternative implementations for the
state of microphone/camera. It also seperates the storage of the other
feature that is known as the "Sensor mute" so that the reuse of this
service doesn't get too convoluted.

Also extract the persitable state from the state implementation so that
alternative implementations can resuse the persistence code.

Some smaller changes:
* Start the sensor use dailog as user 0 always since system UI requires
user 0
* Use SystemClock.elapsedRealTime() instead of network time since it's
guaranteed to my monotonic. This will also change that intervals used in
telemetry aren't going to measure time the device is powered off.

Ignore-AOSP-First: New OWNERS file
Test: atest CtsSensorPrivacyTestCases SensorPrivacyServiceMockingTest
Bug: 200649586
Change-Id: I4c23c2509d7d1bdf49360fc9bbadb79ccd451dcc
2022-01-26 20:06:41 -08:00
TreeHugger Robot
1b23bfefc9 Merge "Fix constant" 2022-01-26 22:51:16 +00:00
Daniel Solomon
87546f5034 Add display brightness throttler
This change adds BrightnessThrottler, which is responsible for limiting
the usable range of display brightness based on skin temperature thermal
throttling (extensible to account for other events/conditions in the
future). Brightness constraints calculated by BrightnessThrottling are
applied by DisplayPowerController as a brightness transform similarly to
dimming and low power states.

This change also adds a field to BrightnessInfo in order to capture the
reason for an unusual max brightness (currently only accounts for a
thermal reason).

Finally, change HighBrightnessModeController (HBMC) so that HBM thermal
throttling is still reported correctly to FrameworkStatsLog when
brightness throttling is performed in DisplayPowerController (through
BrightnessThrottler) rather than through HBMC's own thermal throttling
mechanism. HBMC's own thermal throttling mechanism will be deprecated in
a future change.

Bug: 206857086
Bug: 212634465
Test: atest BrightnessThrottlerTest DisplayModeDirectorTest
    BrightnessLevelPreferenceControllerTest
    HighBrightnessModeControllerTest
Test: Manually trigger and clear thermal throttling, and verify
    transitions,
    1. While in manual brightness mode
    2. While in automatic Brightness mode
    3. While high brightness mode is enabled for HDR
    3. Across display suspend/resume events
Change-Id: I4c10f037a0a616e84fc109cc755bf3a5eaa3d111
2022-01-26 11:43:03 -08:00
Joe Bolinger
084c7daa6a Fix enrollment cancelation race conditions. am: abc127673b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16687106

Change-Id: If5fb6553ed99aefb894e00f4baf637329387d50e
2022-01-26 18:50:24 +00:00
Taran Singh
52f330491b Scribe in IMF: Stylus Spy windows Impl 5/N
Implement Handwriting surface spy in IMF that listens
and manages Stylus events.

Test: atest StylusHandwritingTest
Bug: 210039666
Bug: 203086136
Change-Id: I8681a33bb32f20b48cf741ba3ad2116de5db7ffa
2022-01-26 15:41:24 +00:00
TreeHugger Robot
5d4ad0c22c Merge "Support USB Port Reset" 2022-01-26 08:13:08 +00:00
Joe Bolinger
abc127673b Fix enrollment cancelation race conditions.
Bug: 210090299

Change-Id: Idd1485f182cf841b96ced1dab4b8330ff3b57c2a
Merged-In: Idd1485f182cf841b96ced1dab4b8330ff3b57c2a
2022-01-26 01:07:38 +00:00
John Reck
34e8f90af2 Fix constant
Why isn't this a compile failure??

Bug: 193558894
Test: WIP HardwareBuffer CTS test
Change-Id: Ib803816e70259f7c52fa4d4c06dffdb49df43e23
2022-01-25 17:34:38 -05:00
Ricky Niu
476cd2e3ca Support USB Port Reset
Verify the USB Gadget HAL already implement.

Bug: 197300598
Test: Verify the API working manually

Signed-off-by: Ricky Niu <rickyniu@google.com>
Change-Id: I8a4a4966237c925c87b32f74a382b7a56f82ab7d
2022-01-25 12:01:34 +08:00
Christine Franks
6e84913f17 Merge "Set pointer acceleration for virtual devices" 2022-01-25 01:19:09 +00:00
Badhri Jagan Sridharan
d368d4ee67 Merge "Add systemApis to allow data transfer over USB-C while being docked" 2022-01-24 19:19:25 +00:00
Christine Franks
a7fe83fdc6 Set pointer acceleration for virtual devices
Bug: 202273865
Test: atest FrameworksServicesTests:InputControllerTest

Change-Id: Ida5db8b34e7b75f5db96d0c31484c76276803af0
2022-01-24 11:11:35 -08:00