Commit graph

1895 commits

Author SHA1 Message Date
jiabin
3b4b33f479 Add a callback for codec format changed.
Bug: 133526565
Test: Manually
Change-Id: Ie7d17c7d9b49394601b4788aa44a8407ebb6f72e
2020-02-24 20:49:23 +00:00
Automerger Merge Worker
220ed7063e Merge "Add Keymaster4.1 definitions." am: 09b2f93ab9 am: bf3974f323 am: 7dcc835097
Change-Id: I99eded133e22ce7235d85a8ccb24c903b29c9c3e
2020-02-12 01:24:06 +00:00
Shawn Willden
e59d5b1e2e Add Keymaster4.1 definitions.
Test: VtsHalKeymasterV4_1TargetTest
Change-Id: I501e63a577368d78c609f868e452603b4110a970
2020-02-11 15:51:03 -07:00
TreeHugger Robot
fadd886ad2 Merge "Update new values for latest sensor HAL changes" 2020-01-24 18:45:02 +00:00
Dan Stoza
d5f2f67cd2 [hwc2] Add generic layer metadata (Composer 2.4)
Bug: 139747351
Test: VtsHalGraphicsComposerV2_4TargetTest
Test: Manual verification with a modified Composer implementation
Change-Id: Id3ac89612f41ef1d4d03552cc7b0851f6aba1f77
2020-01-22 15:18:30 -08:00
Matthew Maurer
df2f2301a3 Add ROLLBACK_RESISTANCE definition to for KM4
* Add ROLLBACK_RESISTANCE tag
* Add ROLLBACK_RESISTANCE_UNAVAILABLE error code

Test: m libkeymaster_messages
Change-Id: Ib69a0c0f179f894b488da8608e6005e68450453a
2020-01-20 21:11:01 -07:00
Peiyong Lin
7190983117 Merge "Add getClientTargetProperty API entry." 2020-01-18 01:08:19 +00:00
Anthony Stange
e2a118aafb Update new values for latest sensor HAL changes
A hinge angle sensor type has been added to the sensor HAL which
requires updating sensor.h and sensor-base.h.

Bug: 144139857
Test: N/A
Change-Id: I0d8e7d028cc1b2e05a8ec74b7ab3da9ffff5dbde
2020-01-16 19:39:06 -05:00
Peiyong Lin
f777542fd8 Add getClientTargetProperty API entry.
getClientTargetProperty will give hardware composer the ability to request some
properties of the client target that hardware composer wants. Prior to this
API, the client will does its best to produce the client target of which the
properties are pretty much fixed.

BUG: b/145968912
Test: boot
Change-Id: Ib8ba44d274a0c8a86c3fde1d09b72f592445ee91
2020-01-14 14:38:19 -08:00
Nicholas Ambur
430cc25a7c Merge "add start_recognition_exteded soundtrigger api" 2020-01-11 16:39:55 +00:00
Ady Abraham
fbdca5fdaa Merge "hwcomposer2: add seamlessPossible callback" 2020-01-11 00:29:58 +00:00
Nicholas Ambur
dc10826841 add start_recognition_exteded soundtrigger api
Bug: 146363190
Test: atest VtsHalSoundtriggerV2_3TargetTest
&& Assist GTS test suite and manual testing

Change-Id: I6a1ac196cb7f5ad1c0b60f0adfb67680bb18568b
2020-01-10 14:01:10 -08:00
Peiyong Lin
ae5e8ab33e Merge "[composer] Make Auto low latency mode APIs optional." 2020-01-10 19:24:50 +00:00
Eric Laurent
70a7b39f68 Audio HAL: Add API to attach an effect to a device
Add a function to audio HAL interface allowing the attachement of an
audio effect to an audio device.
This is used when an audio effect is implemented below the HAL (e.g by an audio DSP)
and is attached/enabled when a particular sink(e.g speaker) or source(e.g mic) device
is selected.
This function must be supported from legacy HAL version 3.1.

Bug: 136294538
Test: make
Change-Id: Id63c83403fef580579c52d92758a552d67c3faec
Merged-In: Id63c83403fef580579c52d92758a552d67c3faec
2020-01-10 11:17:36 -08:00
Eric Laurent
647165d396 Audio effect HAL: Add create effect API with device ID
Add the possibility to specify a target audio device when
creating an audio effect by passing its audio port handle
to createEffect API.

Add new create_effect_3_1() function to audio_effect_library_t
interface for interface version to 3.1.

Bug: 136294538
Test: make
Change-Id: Ia84eaf32f2a7c0cc73a43075c84902a395bafe58
Merged-In: Ia84eaf32f2a7c0cc73a43075c84902a395bafe58
2020-01-10 11:17:18 -08:00
Peiyong Lin
b923ad03cf [composer] Make Auto low latency mode APIs optional.
BUG: b/147365206
Test: boot
Change-Id: I54e21cbbf3b69813d8c58bd33b0c1d1e5f7a8fd8
2020-01-10 09:40:00 -08:00
Ady Abraham
c1b2f0753e hwcomposer2: add seamlessPossible callback
Add a callback to notify the client it should retry a
setActiveConfigWithConstraints call in case of SEAMLESS_NOT_POSSIBLE error.

Test: rev up composer to 2.4
Bug: 141329414
Change-Id: I102bedc9cb89f9d1886a431f8804897bb838eb8f
2020-01-07 22:35:57 +00:00
Nicholas Ambur
581c67326f add get_properties_extended soundtrigger api
Bug: 142414689
Test: GTS assist test suite and manual testing
Change-Id: I86c78e46bfee5072619d38784c29cd871ede731c
2020-01-07 14:03:20 -08:00
Galia Peycheva
038dfb1b1c Add ALLM and Content types in hwc2
Bug:132731049

Test: make -j$(nproc)
Change-Id: I652244d1934bef1472b7980ff7f4736b0460c53f
2019-12-17 13:51:11 +01:00
Robin Lee
61a7219b63 Merge "Revert submission" 2019-12-14 03:06:25 +00:00
Eric Laurent
1497080a9b Merge "Audio HAL: Add API to attach an effect to a device" 2019-12-14 00:31:43 +00:00
Hansong Zhang
d211ba6bab Revert submission
Based on Forrest run with earlier base build 6069142, the build with this submission failed apct/bluetooth/instrumentation_test 

Reason for revert: Break tests

Change-Id: Icccbdafc14394349baf6d116d6590552ebcbeba9
2019-12-13 22:03:07 +00:00
Galia Peycheva
54b86ebd8b Merge "Add ALLM and Content types in hwc2" 2019-12-13 10:09:00 +00:00
Nicholas Ambur
c3c3f12fb2 add support for sound trigger device api 1.3
add support for parameter control APIs with THRESHOLD_FACTOR as the first
supported parameter

Bug: 141929369
Test: Tested manually with test app and confirmed with GTS test
gts-tradefed run gts-dev -m GtsAssistIntentTestCases
Change-Id: Id0b48d90d02a0edbabfebb12697dabb8ea4edfae
2019-12-11 19:18:35 -08:00
Eric Laurent
26f0adfef1 Audio HAL: Add API to attach an effect to a device
Add a function to audio HAL interface allowing the attachement of an
audio effect to an audio device.
This is used when an audio effect is implemented below the HAL (e.g by an audio DSP)
and is attached/enabled when a particular sink(e.g speaker) or source(e.g mic) device
is selected.
This function must be supported from legacy HAL version 3.1.

Bug: 136294538
Test: make
Change-Id: Id63c83403fef580579c52d92758a552d67c3faec
2019-12-11 13:30:12 -08:00
Matthew Maurer
581f6f774e Add ROLLBACK_RESISTANCE definition to for KM4
* Add ROLLBACK_RESISTANCE tag
* Add ROLLBACK_RESISTANCE_UNAVAILABLE error code

Test: m libkeymaster_messages
Change-Id: I355ca86741337f86ae3954bed60b7fc061cae9ce
Merged-In: I355ca86741337f86ae3954bed60b7fc061cae9ce
2019-12-11 07:02:18 +00:00
Eric Laurent
472c7ed05f Audio effect HAL: Add create effect API with device ID
Add the possibility to specify a target audio device when
creating an audio effect by passing its audio port handle
to createEffect API.

Add new create_effect_3_1() function to audio_effect_library_t
interface for interface version to 3.1.

Bug: 136294538
Test: make
Change-Id: Ia84eaf32f2a7c0cc73a43075c84902a395bafe58
2019-12-06 17:23:18 -08:00
Galia Peycheva
f77ae43612 Add ALLM and Content types in hwc2
Bug:132731049

Test: make -j$(nproc)

Change-Id: I563f7d85f3bf92fc5a0710e45f06828cb1daa8b5
2019-12-02 20:58:48 +01:00
Ady Abraham
b1ea403d92 hwcomposer2: few changes for refresh rate switching
- getSupportedDisplayVsyncPeriods was removed as the vsync period
   can be obtained by getDisplayAttribute for each individual config.
 - renamed setActiveConfigAndVsyncPeriod -> setActiveConfigWithConstraints
   to better describe what this function does.
 - added VsyncPeriodChangeTimeline and onVsyncPeriodTimingChanged

Test: rev up composer to 2.4 and test refresh rate switching
Bug: 141329414
Change-Id: Ifec51c893bb9038e9ac48d02c1c7b0fe9e25c108
2019-11-19 23:53:53 +00:00
Ady Abraham
8324c92f2c hwcomposer2: add api to control vsync period
Add new functions to improve vsync period switching by the platform:
 - Adding a list of supported vsync periods to hwc2_config_t to avoid the need to expose
   separate hwc2_config_t for each vsync period.
 - Adding an API to set the vsync period with timeline constraints to allow better
   synchronization with vsync period change.
 - Extending HWC2_CALLBACK_VSYNC callback to provide the current vsync period.

Test: rev up composer to 2.4 and test refresh rate switching
Bug: 141329414
Change-Id: I0e3371dc41c4fbcf97073a120307f7a8923c9325
2019-10-29 10:20:46 -07:00
Dominik Laskowski
9c1266cd19 HWC2: Add getDisplayConnectionType
Bug: 134771872
Test: Build
Change-Id: I1605d6e2655031cf4bb2248788cb734c8a8303f1
2019-10-01 15:22:53 -07:00
Valerie Hau
f865a5680f Merge "Add validateBufferSize and getTransportSize to gralloc.h" into qt-dev 2019-05-06 16:11:34 +00:00
Valerie Hau
5543b1eb04 Add validateBufferSize and getTransportSize to gralloc.h
This reverts commit ae6d8a3e33.

Bug: 130669566
Test: build, boot
Change-Id: Icdb3b1e0534233995d5c0594feede6261033ec45
2019-04-24 22:44:42 +00:00
Valerie Hau
cdbe0ed9ce Merge "Make validateBufferSize and getTransportSize mandatory" into qt-dev 2019-04-24 20:52:57 +00:00
Valerie Hau
ae6d8a3e33 Revert "Add validateBufferSize and getTransportSize to gralloc.h"
This reverts commit 491378a3d4.

Reason for revert: Break Elfin
Bug: 130669566
Change-Id: I07c6883872ed9033ec5edbf27b0bd423ead39962
2019-04-23 22:55:18 +00:00
Valerie Hau
1155c41d01 Make validateBufferSize and getTransportSize mandatory
Bug: 131089111
Test: build, boot
Change-Id: I6c83e4ea9692fbdb185ff0679ee76b1dc826495e
2019-04-23 11:38:33 -07:00
Valerie Hau
491378a3d4 Add validateBufferSize and getTransportSize to gralloc.h
Bug: 130669566
Test: build, boot

Change-Id: Ic141e1c6f16d0e3c1e81c2bc6c5170e30bc60f3f
2019-04-23 11:38:03 -07:00
Peiyong Lin
59dedc31e8 Deprecate getDisplayBrightnessSupport.
Brightness is already a per display capability, we don't need this API.

BUG: 130313275
Test: build
Change-Id: If1ddf2a6224c9aa86f250178fc5cae3b01334b57
2019-04-15 13:59:18 -07:00
Matthew Maurer
f79d5f4dbe Merge "Add KM_TRUSTED_CONFIRMATION_REQUIRED" am: c559ff3937 am: c58c139801
am: 9c5b803a88

Change-Id: I044188282872292fc745bf85b4e3ca8126ce8a43
2019-04-03 10:46:53 -07:00
Matthew Maurer
0b9dc0d026 Add KM_TRUSTED_CONFIRMATION_REQUIRED
This was added in KM4, but didn't make it into this header.

Additionally, KM_TAG_UNLOCKED_DEVICE_REQUIRED was squatting on
KM_TRUSTED_CONFIRMATION_REQUIRED's number.

See hardware/interfaces/keymaster/4.0/types.hal for correct numbering.

Bug: 128851722
Test: Keymaster VTS 4.0 + Trusty
Change-Id: I89117ffe91602884edb8dd19ffd22e659f40fb1c
2019-03-26 00:18:24 +00:00
Emilian Peev
654acbee66 Camera: Update 'CAMERA3_MSG_ERROR_RESULT' comments
Extend "CAMERA3_MSG_ERROR_RESULT" comments and describe
how Hal must notify about physical device result failures
and logical device result failures.

Bug: 128835627
Test: Successful build
Change-Id: I935fba5a5676a0fe9440f43b281fc9eeb50578ea
2019-03-21 13:59:59 -07:00
Dan Gittik
10510ff31b Moved brightness from Lights to SF.
Test: manual.
      Check that brightness works.
Fixes: 111435292

Change-Id: I1a741bd57c8e2ce0841c5e25ee6f5c8e866f192a
2019-03-05 20:15:45 +00:00
Yin-Chia Yeh
c861e4c9e7 Merge "Camera: remove stream_configuration_counter" 2019-02-20 19:02:18 +00:00
TreeHugger Robot
d8771edc84 Merge "Camera: clarify unknown error logic in buffer request" 2019-02-14 19:58:05 +00:00
Yin-Chia Yeh
bf1010312e Camera: remove stream_configuration_counter
The race condition is now handled by default HAL wrapper so
we don't need to send this information to HAL implementation.

Test: Pixel 3 + Camera CTS + GCA
Bug: 120986771
Change-Id: I48e611ba45d45ebf34359e828bcb23cb6eec4af2
2019-02-13 15:13:10 -08:00
Emilian Peev
d22172150f camera3: Add support for session parameter queries
Enable Hal to trigger or skip stream reconfiguration
based on session parameter updates.

Bug: 122609098
Test: Manual using application,
VtsHalCameraProviderV2_4TargetTest
--hal_service_instance=android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
--gtest_filter=CameraHidlTest.configureStreamsWithSessionParameters
Change-Id: Ie931e7cb7f46257276cc1796fccd301c85a90d85
2019-02-12 11:06:57 -08:00
Eino-Ville Talvala
3e11b21931 Merge "Camera: Add device state notification to camera_module" 2019-02-11 01:22:52 +00:00
Yin-Chia Yeh
ace57bad57 Camera: clarify unknown error logic in buffer request
Test: N/A. doc update
Bug: 120986771
Change-Id: Ibf4ac8c4618f06f7075ff762f8e1461211cdea7b
2019-02-08 14:57:30 -08:00
Shuzhen Wang
f43b544c0e Camera: Add HEIC encoding support
- Add new BlobId to specify JPEG APP segments.
- Add new gralloc usage flag for HEIC encoder.

Test: testHeic CTS test
Bug: 79465976
Change-Id: Ie70654504eecb280e3a51b60c104124035c5fbe5
2019-02-04 18:18:09 -08:00
Yin-Chia Yeh
875df2a3f4 Camera: add device 3.6 and buffer management APIs
Test: compile
Bug: 120986771
Change-Id: I1e73f70ba05a08e80dcb0c55bb4f54671f201746
2019-01-28 10:10:57 -08:00