Commit graph

1907 commits

Author SHA1 Message Date
Rahul Sabnis
4be5facf6d Update the signature of init function to include whether the device is am: 247c646824 am: 14511f6722 am: 99d5aba8ec am: 28ce79352a am: 1751a06b9f am: db07ea5953
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I61f2c9dc76f20b44c3efe84ddc00a8184a099da5
2020-08-05 22:51:57 +00:00
Rahul Sabnis
1751a06b9f Update the signature of init function to include whether the device is am: 247c646824 am: 14511f6722 am: 99d5aba8ec am: 28ce79352a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I443edd62865ca64aaeeee749818430cd41cf160c
2020-08-05 22:20:56 +00:00
Rahul Sabnis
99d5aba8ec Update the signature of init function to include whether the device is am: 247c646824 am: 14511f6722
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I9962c4c765f16fdffaac17f24ca62fac6eb0bf31
2020-08-05 21:37:24 +00:00
Rahul Sabnis
14511f6722 Update the signature of init function to include whether the device is am: 247c646824
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware/+/12308133

Change-Id: I787e5077a29653ecb551f4176fcfa0b2a054f7a5
2020-08-05 21:17:00 +00:00
Rahul Sabnis
247c646824 Update the signature of init function to include whether the device is
an ATV

Bug: 157038281
Test: Manual
Change-Id: I1685c4318c27e8dcca5f7a696fe9e1f8bf594b9d
2020-08-04 14:17:15 -07:00
Andy Hung
bb2bf2d62d Merge "audio_alsaops: fix format conversion error handling bug" am: 9a2cf9a818 am: 53ead60966
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1323975

Change-Id: If3b86f025a61e3151da8e45c6dac1d221c8f3a5c
2020-06-08 17:17:51 +00:00
Jindong
8681eabddf audio_alsaops: fix format conversion error handling bug
Returns a invalid format after fatal error,
instead of "0", which equals to PCM_FORMAT_S16_LE or
AUDIO_FORMAT_DEFAULT.

Also fix below build error:
hardware/libhardware/include/hardware/audio_alsaops.h:63:16:
error: cannot initialize return object of type 'enum pcm_format' with an rvalue of type 'int'
        return 0;
hardware/libhardware/include/hardware/audio_alsaops.h:97:16:
error: cannot initialize return object of type 'audio_format_t' with an rvalue of type 'int'
        return 0;

Signed-off-by: Jindong <jindong.yue@nxp.com>
Change-Id: Iabf5ae106d9c371c00ad5236326c6f38d1a9f116
2020-06-05 11:11:07 +08:00
Selene Huang
de4d82fc16 Added identity credential key to keymaster tag set.
Bug: 149908474

Test: atest android.security.identity.cts.AttestationTest
Test: atest VtsHalIdentityCredentialTarge
Merged-In: I5a0336692f894580a46d6e70a5b2e2b6d54508e5
Change-Id: I4c1cf2cc5112ccae2151958c65025d9e225bdeed
2020-03-09 12:28:05 -04:00
Automerger Merge Worker
c320973058 Add a callback for codec format changed. am: 3b4b33f479
Change-Id: Idb2e22016e4a58cc1315d8f1355830512fb58ffb
2020-02-26 18:54:15 +00:00
Automerger Merge Worker
0f30f984e8 Merge "Added identity credential key to keymaster tag set." am: 0f6a221b62 am: 353924555e
Change-Id: I8b9be13d5928f2a9221c08a5801b8a3b4f7f4fe0
2020-02-25 21:41:46 +00:00
jiabin
3b4b33f479 Add a callback for codec format changed.
Bug: 133526565
Test: Manually
Change-Id: Ie7d17c7d9b49394601b4788aa44a8407ebb6f72e
2020-02-24 20:49:23 +00:00
Selene Huang
79a5bd607d Added identity credential key to keymaster tag set.
Bug: 149908474

Test: atest android.security.identity.cts.AttestationTest
Test: atest VtsHalIdentityCredentialTarge
Change-Id: I5a0336692f894580a46d6e70a5b2e2b6d54508e5
2020-02-21 15:58:10 -08: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