Commit graph

103 commits

Author SHA1 Message Date
Sooraj Sasindran
bed7070e4d Merge "Fix the compatibility matrix with range" 2019-01-28 19:48:44 +00:00
Sooraj Sasindran
373a240386 Fix the compatibility matrix with range
Fix the compatibility matrix with range of versions

Bug: 122994344
Test: verified manually
Change-Id: Ic5ebb7261d2fe8f379d46ebcc0c47efe8dbd3c59
Merged-In: Ic5ebb7261d2fe8f379d46ebcc0c47efe8dbd3c59
2019-01-28 18:05:20 +00:00
Yifan Hong
fee037aac8 Build DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE.
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE is installed on
/product/etc/vintf. It is considered as a replacement of
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE, so only one
of them may be defined. At build time, things like
SEPolicy versions etc. will be written to
/product/etc/vintf/compatibility_matrix.device.xml, just
like the /system one.

Also, split framework_compatibitity_matrix.xml to
system_compatibility_matrix.xml and product_compatibility_matrix.xml.
The latter two corresponds to matrices installed to respective
partitions only.

Test: build with DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE defined
Test: boot (sanity)
Bug: 120600021
Change-Id: I81f9a8f5028cbb88c45f44df04bccb8ccb483972
2019-01-25 13:58:34 -08:00
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
Benjamin Schwartz
df43c41b27 Merge changes from topic "power.stats HAL"
* changes:
  power/stats: Add VTS test cases for power.stats HAL
  power/stats: Add VTS testcases
  power/stats: Add default implementation
  power/stats: Update HIDL to include power stats API
  power/stats: Update HIDL to use synchronous FMQ
  power.stats: Add power.stats HIDL interface
2019-01-08 17:58:59 +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
Sandeep Patil
e5f4947bf8 fcm: kernel: Remove 4.4 kernel from current matrix
Test: builds
Bug: none
Change-Id: I8e472edf1e050968a7a1e6f9c82e41eeee473eb3
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-01-03 14:22:03 -08:00
Treehugger Robot
43ec700725 Merge "Add 4.19 to compatibility_matrix.current.xml" 2018-11-30 04:30:20 +00: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
Alistair Strachan
a280304ebc Add 4.19 to compatibility_matrix.current.xml
We will remove 4.4 once 4.19 settles down.

Bug: 116969327
Bug: 118439987
Change-Id: Ida11841bf972e6fde7171c839ad1ac32d85f9cbc
Signed-off-by: Alistair Strachan <astrachan@google.com>
2018-10-31 02:02:14 +00:00
Yifan Hong
ab6de249ec removed unused line.
Test: builds
Change-Id: I6df9338de150e35147c191a551b1e5eb538db32e
2018-10-16 12:00:25 -07:00
Yifan Hong
0cd10dd03e compatibility matrices: move to soong
* Kernel config requirements are built as
separate rules in kernel/configs. All kernel requirements
(including minlts and configs) are represented there.

* device framework compatibility matrix and final
framework compatibility matrix need special environment
variables, so they are not generic enough to be written
in the soong rule.

See compatibility_matrices/Android.bp for sample usages.

Test: builds and compare output before change
Change-Id: I53bf88362314f96487ca243c9292570b7931f24b
2018-10-15 15:42:11 -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
Yifan Hong
f1ccd4d794 Fix matrix dep on kernel configs
Use global instead of rule variables.

Test: make a change in kernel configs, existing out files
are changed.

Change-Id: Ic731356b4533bc10743d3711309ab16de1d3bd78
2018-08-17 15:45:18 -07:00
Yifan Hong
38d8d80b4c Merge "Allow OTA package to contain fake AVB version" 2018-08-14 17:47:24 +00:00
Yifan Hong
53891ac2be Allow OTA package to contain fake AVB version
The system_matrix.xml in compatibility.zip can contain a fake
AVB version as specified by BOARD_OTA_FRAMEWORK_VBMETA_VERSION_OVERRIDE.
This allows OTA to pass compatibility check when the AVB version is
updated *during* the OTA.
Bug: 112291283
Test: specify BOARD_OTA_FRAMEWORK_VBMETA_VERSION_OVERRIDE and
      manual test

Change-Id: I53c2de49ee68d6a3afc97201e759be344de6bdff
2018-08-13 12:44:51 -07:00
Michael Wright
966356e089 Update power HAL to version 1.3.
am: 795990cca6

Change-Id: I4ddb4c23790467c9ffe921d8c698ec4f5ce76c38
2018-08-10 18:42:47 -07:00
Michael Wright
795990cca6 Update power HAL to version 1.3.
Adds new EXPENSIVE_RENDERING power hint.

This adds a new library which does not affect any pre-existing
targets unless they create and add a new binary which uses this.

BUG: 110112323
Test: adb shell /data/nativetest/VtsHalPowerV1_3TargetTest/VtsHalPowerV1_3TargetTest
Change-Id: I5fb33abbbe4c4958882a106dfa400ad74013e40d
2018-08-10 18:37:07 -07:00
Yifan Hong
baa72a6e63 matrix: IR HAL specifies interface/instance
This is missing from a very old CL. IR is an optional
HAL so specifying interface / instance here doesn't break
requirements.

Test: builds
Change-Id: I6d30d33041a01d8a8a724a89e00ba4c57d820d46
2018-08-09 13:43:01 -07:00
Yifan Hong
0e193786e8 Merge "matrix: Enforce kernel requirements in OTA only when flag is set."
am: 0084639ada

Change-Id: Iad98f059fd3a15a7bd5dffa1c53300340e3f9e19
2018-07-30 10:38:43 -07:00
Yifan Hong
f529c34cc4 matrix: Enforce kernel requirements in OTA only when flag is set.
Enforce only when PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS
is set. If a device does want to require kernel configs, it has to
provide info for new kernel in OTA package.
Bug: 111840577
Test: build and manual inspection

Change-Id: I36b3fcd9d14a9795aaf8d020bba6180c5e8681d1
2018-07-27 12:42:28 -07:00
Steve Muckle
0564f4d6a9 Merge "change kernel config naming convention"
am: f4fdfc325f

Change-Id: I4c9e0e3baa0ec27ecb9e74f4accff4e2d2b91790
2018-07-25 16:31:47 -07:00
Steve Muckle
914a897385 change kernel config naming convention
The kernel config naming convention is being modified
to use .config instead of .cfg.

Bug: 111762107
Test: builds
Change-Id: I33fb46226313abc2c8e854301cef1ac1b34342d2
2018-07-23 17:30:28 -07:00
Yifan Hong
bf4d56a5b3 Merge "Do not install assembled framework matrix to device."
am: c70978d890

Change-Id: I607c056eb99e558b9adf172262392767434243cc
2018-06-12 13:05:11 -07:00
Yifan Hong
774c2bfcca Do not install assembled framework matrix to device.
Test: `m` dist
Test: make system matrix incompatible, `m` dist fails
Test: `m` and /system/etc/vintf files are installed
Bug: 110056937
Change-Id: If0bf2023f48ef31fffaf8636b3893cbfb40270ee
2018-06-11 19:28:15 -07:00
Jaesoo Lee
ff866b9b0d Merge "configstore: configstore HAL uprev'ed to 1.1" into pi-dev
am: ce7d394935

Change-Id: I610b46eb5a8d959e7ebacbc2beecb953b9e5383c
2018-05-23 18:20:47 -07:00
Yifan Hong
b50e8777f4 Merge "P requires 4.14.42" into pi-dev
am: 6e839e80bb

Change-Id: I7d741a1faf84be0dbf452faba71e635ef0db3fbb
2018-05-23 18:07:39 -07:00
TreeHugger Robot
ce7d394935 Merge "configstore: configstore HAL uprev'ed to 1.1" into pi-dev 2018-05-24 00:50:19 +00:00
Jaesoo Lee
712ee82162 configstore: configstore HAL uprev'ed to 1.1
This change provides a reference implementation of the configstore HAL
v1.1.

Bug: 69691076
Test: tested on walleye-userdebug
Change-Id: I68ee224bcbda64f6fef91e8a0f95adb32d504aad
2018-05-23 15:48:36 -07:00
Yifan Hong
75c7e3d5b7 P requires 4.14.42
Test: build and manual inspection of matrices
Change-Id: Ib5223e41c175843babe9039011fe56a616b225af
Fixes: 72409164
2018-05-23 14:59:15 -07:00
Yifan Hong
cdd39fb0d7 Merge changes from topic "pi_matrix" into pi-dev
am: 3569b0273f

Change-Id: I6c82b5536b11f458b28044cbe8c3ca469f3d88bf
2018-05-16 15:53:58 -07:00
TreeHugger Robot
3569b0273f Merge changes from topic "pi_matrix" into pi-dev
* changes:
  matrix: broadcastradio@2.0::IBroadcastRadio/.*
  matrix: nn@1.0-1
  matrix: graphics.mapper@2.0-1
  matrix: graphics.composer@2.1-2
2018-05-16 22:32:30 +00:00
Yifan Hong
f2fda5e4df Merge "Update kernel minor revision for P." into pi-dev
am: ae4136070e

Change-Id: I0ad36b2b03aee9f2b7e87b7befbfe7750be8eee4
2018-05-16 15:08:30 -07:00
Yifan Hong
e18d1cd547 matrix: broadcastradio@2.0::IBroadcastRadio/.*
Test: builds
Bug: 79871481
Change-Id: Icd81124f74f60443f48322ab882cb6170b61ebb7
2018-05-16 14:31:19 -07:00
Yifan Hong
9b917bd21a matrix: nn@1.0-1
Test: builds
Bug: 79871481
Change-Id: I5d68a32dbbe740738e202aebf9cf867a39f48be8
2018-05-16 14:28:10 -07:00
Yifan Hong
71965a570d matrix: graphics.mapper@2.0-1
Test: builds
Bug: 79871481
Change-Id: I32accd4f4a20843c3491b1e5fa4508107bb275cd
2018-05-16 14:27:37 -07:00
Yifan Hong
84dd44b630 matrix: graphics.composer@2.1-2
Test: builds
Bug: 79871481
Change-Id: Icaa31db4b6c5795474fd423a3ac65562fb6a6e6d
2018-05-16 14:26:43 -07:00
Yifan Hong
22af37df18 Update kernel minor revision for P.
These are the P requirements of kernel versions:
4.4.107, 4.9.84, 4.14.40.

Test: build and manual inspection of matrices
Test: boots
Test: vts_treble_vintf_test

Change-Id: Ic3cec1395e960000b70c6e001aa4981a9ffcd8c6
Fixes: 72409164
2018-05-16 11:07:28 -07:00
Steven Moreland
93df7cf513 rename BUILT_SYSTEM_{COMPATIBILITY_,}MATRIX am: 515324a7a4
am: 240aa37762

Change-Id: Ib11c05f8591c559d70154f8d06007f7d3c027342
2018-05-02 18:29:05 -07:00
Steven Moreland
5920eae277 Remove early checks on manifest. am: a5cca55a1f
am: e03003b4de

Change-Id: I6932f9a4091ad6d3d6ab1c9c2ee464becd53752f
2018-05-02 18:29:00 -07:00
Steven Moreland
515324a7a4 rename BUILT_SYSTEM_{COMPATIBILITY_,}MATRIX
For consistency with BUILT_VENDOR_MATRIX.

Bug: 66917623
Test: manual
Change-Id: I666eceeb9fc20e5f5754f605c2fbb6530e51b326
2018-05-01 18:36:30 -07:00
Steven Moreland
a5cca55a1f Remove early checks on manifest.
These are to be checked in verify_vintf_matrices at
the end of the build when all of the manifest fragments
are available.

Bug: 66917623
Test: check that verify_vintf_matrices hits these checks
Change-Id: I3f184a05a6a95751384da077257dddcf73d3a6f2
2018-05-01 18:36:30 -07:00
Yifan Hong
a6a1e0b2d2 Restore kernel requirements for frozen matrices.
Requirements for legacy/1/2.xml has changed because
android-base.cfg files are changed. These files should
build from an older snapshot of the requirements.

Fixes: 78576469
Test: builds
Test: vts_treble_vintf_test

Change-Id: I908ebbe495ae06f983ef983a1be7937cf6be1c12
Merged-In: I908ebbe495ae06f983ef983a1be7937cf6be1c12
2018-04-30 17:27:46 -07:00
Yifan Hong
d8a4d3463e Add 4.14.0 kernel to all matrices.
P framework can work with 4.14 kernel. 0 should
be updated to the correct value in a follow-up
patch.

This creates the following tags in all matrices:
Kernel 4.14 common requirements
Kernel 4.14 requirements on CONFIG_ARM is set
Kernel 4.14 requirements on CONFIG_ARM64 is set

Bug: 72409164
Bug: 77886167
Test: manually inspect built matrix
Change-Id: I82168df314ad61b21440ec5c703db8358468e083
Merged-In: I82168df314ad61b21440ec5c703db8358468e083
2018-04-30 16:33:56 -07:00
Yifan Hong
efbb22fec4 matrix: copy kernel configs to subdirectory.
Bug: 78576469
Test: make vintf metadata and manual inspect
Test: vts_treble_vintf_test
Change-Id: Ie3c299e74c9479cbf9a868aeef96f5850feb8cfe
2018-04-30 15:41:41 -07:00