Commit graph

42 commits

Author SHA1 Message Date
Pavlin Radoslavov
1ea96a3802 Bluetooth Audio HAL interface v2
Generalized Bluetooth Audio HAL interface.
It is similar to the original android.hardware.bluetooth.a2dp@1.0
interface with the following modifications:

* The session type can be one of the following:
  - A2DP Software Encoding Datapath
  - A2DP Hardware Encoding Datapath
  - Hearing Aid Software Encoding Datapath
* For Hardware Offload Datapath (A2DP), the HAL interface is used only
  for the control path
* For Software Encoding Datapath (A2DP or Hearing Aid), the HAL
  interface is used for both the control and data paths
* Added Delay Report support: IBluetoothAudioHost.getPresentationPosition()
  that was missing in the original android.hardware.bluetooth.a2dp@1.0
  HAL interface.
* Removed "oneway" calls to avoid potential reordering of HAL calls:
  b/111244402
* Updated SBC-specific codec configuration
* Added AAC-specific and LDAC-specific codec configuration
* Reorganized the original CodecConfiguration into two sections:
  - PcmDataConfiguration: Audio PCM data configuration
  - EncodedDataConfiguration: Encoded audio data codec configuration.
    It is used only if the HAL is responsible for encoding the PCM audio
    data.
* Added new HAL IBluetoothAudioProvidersFactory.
  It is used to open an audio provider for an audio session as specified by
  the session type and the codec configuration as negotiated with the
  remote device.

Bug: 111519504
Test: manual
Change-Id: I2ee4cf50b177baee077cf0b5143dbeadda57c8fb
Merged-In: I2ee4cf50b177baee077cf0b5143dbeadda57c8fb
(cherry picked from commit fcc0732db4)
2019-01-14 03:55:18 +08:00
Nathan Harold
0bc890da0c Require IRadio 1.4 for Devices Launching Q
In order to continue providing the best Telephony
experience possible, Android devices that ship
with Q should implement the IRadio 1.4 HAL.

Likewise, new devices should ship with IRadioConfig
version 1.2.

Bug: 112764647
Test: compilation; boots with Pixel 2
Change-Id: I7ce1a7e81dc54d6e4e13b4bdaad8228465bf1570
2019-01-11 00:36:50 +00:00
Vinay Kalia
f12c171b3a power.stats: Add power.stats HIDL interface
Initial commit defines APIS to collect on-device
power-related data.

BUG: 117424656
BUG: 111185513
Test: Compilation and device boot
Change-Id: I6e3153c9fcd2d67e4a566a4621d7aa4c01da7636
(cherry picked from commit f91dcb5bfd)
Merged-In: I6e3153c9fcd2d67e4a566a4621d7aa4c01da7636
2019-01-07 13:58:41 -08:00
Xusong Wang
95a303b4a7 Update nn hidl to version 1.2 in compatibility_matrix.current.xml.
Bug: 115390740

Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: Ib306dc558796a659592c0645a0610e3c8358c37d
(cherry picked from commit beecd569f4)
2018-11-01 17:42:23 -07:00
Wei Wang
c45ef0e920 Add atrace HAL 1.0
Bug: 111098596
Test: vts, atrace and systrace

(cherry picked from commit db895ad8da)

Change-Id: Iea4ee4bff7509031a6daaf7c9570d0583a59affa
2018-09-27 16:35:31 -07:00
Yifan Hong
b58edcd198 Add health filesystem HAL to compatibility matrix
Test: no build errors
Bug: 111655771
Change-Id: I4cc6308f969840996560ac65143744d37cbf0b14
(cherry picked from commit 62ca53926e)
Merged-In: I4cc6308f969840996560ac65143744d37cbf0b14
2018-09-24 17:44:05 -07:00
Peiyong Lin
73da92ea9a Update power hidl to version 1.3 in compatibility_matrix.current.xml.
BUG: 110112323
Test: adb shell /data/nativetest/VtsHalPowerV1_3TargetTest/VtsHalPowerV1_3TargetTest
Change-Id: I397a30044850ffa8d078dce7ef201073ae65c940
(cherry picked from commit 9475cc240b)
Merged-In: I397a30044850ffa8d078dce7ef201073ae65c940
2018-09-24 17:44:05 -07:00
Steven Moreland
54ed395017 Add configstore@1.1 to current matrix.
This was added late in P. Go ahead and require
configstore@1.1 since it is built from a universal source
for all devices as well.

Bug: 69691076
Test: N/A
Change-Id: I0203ecc2e70127c11f596896f71c869d12cd3973
(cherry picked from commit 74274cfbc6)
Merged-In: I0203ecc2e70127c11f596896f71c869d12cd3973
2018-09-24 17:44:05 -07:00
Steven Moreland
3c86d9adb0 Add compatibility_matrix.current.xml for Android Q.
HAL development is starting for Andorid Q, so we need this.

Test: m compatibility_matrix.current.xml
Test: assemble_vintf (but b/78895849)
Test: boot a Pixel device after setting its target-level to 4
    and verify that the compatibility check passes, and the
    file is in the correct location (system/etc/vintf) and that
    the dependencies are setup properly.
Change-Id: I42426d0145a97c719092306abc4f7ce8fa2b51bd
(cherry picked from commit 2d2e2d5c05)
Merged-In: I42426d0145a97c719092306abc4f7ce8fa2b51bd
2018-09-24 17:38:08 -07:00
Steven Moreland
92ea6540a5 Freeze current as compatibility_matrix.3.xml.
This freezes the current compatibility_matrix for
Android P.

Fixes: 68112778
Test: m (assemble_vintf checks devices)

Change-Id: Ida30b7ba7f5df7c2755bd7c737190574b9195a92
2018-04-03 11:19:40 -07:00
Steven Moreland
61f1ddf635 Add confirmationui to compatibility matrix.
Bug: 68112778
Test: install compatibility matrix
Change-Id: Ibab77dce5848b0843c5c33048e7d027f0d3fe099
2018-04-02 15:02:26 -07:00
Steven Moreland
adbe943fd5 Add automotive.audiocontrol to compatibility matrix.
Bug: 68112778
Test: install compatibility matrix
Change-Id: I0829a91d2f715886dc226131d4ef50ad0dec8075
2018-04-02 15:01:13 -07:00
Yifan Hong
e84319da9d Merge "matrix: add radio.config" into pi-dev 2018-04-02 18:21:01 +00:00
TreeHugger Robot
1398462d18 Merge "matrix: secure_element use regex eSE[1-9][0-9]*" into pi-dev 2018-03-30 20:57:29 +00:00
TreeHugger Robot
e7fb362dc1 Merge "matrix: radio 1.0-2 IRadio/slot[1-3], ISap/slot1" into pi-dev 2018-03-30 20:09:56 +00:00
Yifan Hong
45ab966221 matrix: secure_element use regex eSE[1-9][0-9]*
Bug: 68112778
Bug: 73738616
Test: m framework_compatibility_matrix.xml

Change-Id: Ia9db2d3e55c0745f715de14be768ee73adaad988
2018-03-30 12:31:52 -07:00
Yifan Hong
1f8a14fce5 Merge "matrix: add gnss 1.1" into pi-dev 2018-03-30 18:04:20 +00:00
Yifan Hong
a1f7f7171a matrix: radio 1.0-2 IRadio/slot[1-3], ISap/slot1
Framework only uses these instances. If a vendor extension
of the framework use more instances, they should be added
via DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE.

Bug: 68112778
Test: builds + treehugger (telephony test)
Change-Id: Ie08db3c61f940d78e33f46ecc36e931dc688a7aa
2018-03-30 10:51:20 -07:00
Yifan Hong
ae85d49b31 Merge "matrix: add nfc 1.1" into pi-dev 2018-03-30 17:34:42 +00:00
Yifan Hong
860d745e0d matrix: add bluetooth.a2dp
Add bluetooth.a2dp to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml

Change-Id: I818a1d278eeae625f563ce74f056140407c50a64
2018-03-30 00:14:24 +00:00
Yifan Hong
fd7674f596 matrix: add gnss 1.1
Add gnss 1.1 to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml

Change-Id: I4a3676ab85db6c4bd632224298524dfa70f9ecf6
2018-03-30 00:10:06 +00:00
Yifan Hong
da9ee894a2 matrix: add nfc 1.1
Add nfc 1.1 to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml
Change-Id: I48ea252b5f6318f091ecf91dfaee8b71625eafe3
2018-03-30 00:09:19 +00:00
Yifan Hong
3874ebc5b2 matrix: add radio.config
Add radio.config to matrix as optional HAL.

Bug: 68112778
Test: m framework_compatibility_matrix.xml
Change-Id: If4466e3f189897219b33cf7da09883cf63c66de3
2018-03-30 00:08:31 +00:00
Yifan Hong
dc83563449 matrix: Set drm 1.1/* as required, 1.0/* as optional
This correctly specifies the requirement of framework
on device. Specifically:

A device at target FCM version 2 is still required to
provide 1.0/default as specified in 2.xml.

Combined matrix at FCM version 2 has the following:
optional: 1.1/.*
optional: 1.0/.*
required: 1.0/default

A device at target FCM version 3 is required to provide
1.0-1/(any instance) as specified in 3.xml.

Matrix at FCM version 3 has the following:
required: 1.1/.*
optional: 1.0/.*

OTA: old libvintf does not recognize the <regex-instance>
tag, and parse this as "no instance requirements"
(satisfyAllInstances returns true). Hence this should
state no restrictions for old libvintf.

Caveat:
if a device does not provide any DRM instance, OTA
(specifically, full OTA that upgrades vendor image to
target level 3) will pass, but when the device is booted
there will be run-time checks about inconsistent builds
and VTS failures. But this case should be caught at build
time.

Test: vts_treble_vintf_test
Test: vts_testability_checker64 --compliance \
      android.hardware.drm@1.0::IDrmFactory
Test: vts_testability_checker64 --compliance \
      android.hardware.drm@1.1::IDrmFactory
Fixes: 73556059
Bug: 68112778
Change-Id: I45c76356d304a94d716eddebc621d367c0ce165a
2018-03-29 00:48:30 +00:00
TreeHugger Robot
28efdacd2c Merge "matrix: camera HAL uses [^/]+/[0-9]+ instance." into pi-dev 2018-03-28 20:51:08 +00:00
TreeHugger Robot
2953a165c7 Merge "matrix: NN HAL uses .* instance." into pi-dev 2018-03-28 17:54:58 +00:00
Yifan Hong
383860105f matrix: NN HAL uses .* instance.
Use regular expression. NN HAL is a new
HAL so this does not break OTA.

Bug: 73738616
Test: builds
Test: vts_treble_vintf_test (compatible and No deprecate HALs)
Change-Id: I1bfb916854c62fa75d341d4572a15a944178eb47
2018-03-28 17:50:40 +00:00
Yifan Hong
f945261b30 matrix: camera HAL uses [^/]+/[0-9]+ instance.
Use regular expression. Camera HAL is an optional
HAL so this does not break OTA.

Bug: 73738616
Test: builds
Test: vts_treble_vintf_test (compatible and No deprecate HALs)
Change-Id: Idf2b8cbe49f5a913df744833147bb1c48588c956
2018-03-27 23:49:16 +00:00
Yifan Hong
9b3392dcb5 matrix: radio HAL uses slot[0-9]+ instance.
Use regular expression. Radio HAL is an optional
HAL so this does not break OTA.

Bug: 73738616
Test: builds
Test: vts_treble_vintf_test (compatible and No deprecate HALs)
Change-Id: I00a0d97a9528e0c4a72bde6244e47dc2842686ed
2018-03-27 15:24:29 -07:00
nagendra modadugu
8862966152 Add strongbox KM instance as optional
The strongbox instance of the Keymaster 4.0 HAL
is optional, as not all P devices are expected
to provide an implementation.

Test: builds
Bug: 68112778
Change-Id: I96a18cb31058d82b04ba3486a88ceac26058a7d2
2018-03-20 14:21:42 -07:00
nagendra modadugu
597197a5bf Remove KM strongbox instance temporarily
Strongbox is not supported on all devices
and breaks device builds (cf_x86_phone-userdebug).

This change to be relanded once dependencies are resolved.

Test: builds
Bug: 68112778
Change-Id: I846cdbcfdf7d0a76e0c86518da8a1bb4eeed3caa
2018-03-20 14:08:46 -07:00
nagendra modadugu
02d1bb7a96 Add strongbox KM instance to compatibilty matrix
Test: builds
Bug: 68112778
Change-Id: If04ff2b5ab95dd1a17c145f509657e5438d00bdc
2018-03-19 18:11:02 -07:00
Steven Moreland
6684b2c65c Fix order of compatibility matrix.
Bug: 65028233
Test: N/A
Change-Id: I46a0f86d19ba74186fc6eac32fa7c7b2289bcbdb
2018-03-19 11:23:56 -07:00
Yifan Hong
1d853503ef Update compatibility_matrix.current.xml.
Add the following:
    android.hardware.neuralnetworks@1.0::IDevice/hvx
    android.hardware.soundtrigger@2.1::ISoundTriggerHw/default
    android.hardware.usb.gadget@1.0::IUsbGadget/default
    android.hardware.vibrator@1.2::IVibrator/default
    android.hardware.wifi.hostapd@1.0::IHostapd/default
    android.hardware.wifi.supplicant@1.1::ISupplicant/default
    android.hardware.wifi@1.2::IWifi/default

Test: builds (checks VINTF data at build time)
Bug: 68112778
Change-Id: I3c48f2c35c1a7a63549b1a30c9c2bb02d707a4a2
2018-03-16 16:32:25 -07:00
Kevin Rocard
802931b173 Only allow audio V4 for devices targeting level 3
Device targeting the last level must use the last version of the
audio HAL.

Bug: 38184704
Test: cuttlefish has no build target, so there is no way to test,
      nevertheless the exact same trivial change was made to Pixel 2
Change-Id: If767803e08caf5b03edcea26fd8dba1cca12cc38
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-07 19:12:50 -08:00
Kevin Rocard
5b84bbb548 Audio V4: Require audio V4 in new devices, optional for upgrades
Upgrading devices are allowed to stay on audio V2,
but can also update to V4.

Bug: 38184704
Test: compile and check V4 can be loaded and functional with lshal
Change-Id: Ib1c8381925837a8402ae535755a0558afcf26f4d
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 18:30:23 +00:00
nagendra modadugu
897dbb572c keymaster: add 4.0 to compatibility matrix
Change-Id: I53af1c33f05b73459372a8f8bfc8c0997a925a92
2018-03-01 17:26:12 -08:00
Ruchi Kandoi
54791a993b Merge "Add VTS Test for Secure Element HAL" am: 6a75cdbe96 am: 3b24df528a
am: 6e3948f36b

Change-Id: I0a360479fd9f31352bacb4b857672f642c99b253
2018-02-02 06:55:31 +00:00
Ruchi Kandoi
22a4d0e07e Add VTS Test for Secure Element HAL
Test: Run VTS test
Bug: 64881253
Change-Id: If77d87c88bd073409dce3d18aba8f15a1267a80e
2018-01-31 11:51:48 -08:00
Wei Wang
277ce85c27 add powerhal 1.2 to compatibility_matrix
Bug: 71613821
Test: Build
Change-Id: I4587028c5c38e35e00522b2e9041f0b07ac7e036
2018-01-16 18:37:58 -08:00
Yifan Hong
c8b8599fd4 Merge "Install all comp mat to system image" am: 1612a3c27e am: 8f44cca63e
am: c420de7939

Change-Id: Iee2942bb2b8ce0874ea8bfed781368d8ac5284c8
2018-01-11 19:28:51 +00:00
Yifan Hong
2d8442c762 Install all comp mat to system image
Moved framework_compatibility_matrix.xml module definition
from target/board/Android.mk here because it depends on
compatibility_matrix.*.xml.

Test: m dist
Bug: 69636193

Change-Id: I7480b27756992b47555f6b397925170ae9d1ac22
2018-01-10 19:17:23 -08:00
Renamed from compatibility_matrix.current.xml (Browse further)