Commit graph

802 commits

Author SHA1 Message Date
Devin Moore
10ff4a1fc3 Remove the HIDL usb.gadget interface from the compat matrix
This has been deprecated in level 8. Use the AIDL interface instead.

Test: none
Bug: 205764057

Change-Id: I5c7ca0dc26b5dd14daceb5a31d1040f59d1421e3
2023-02-03 22:29:27 +00:00
Treehugger Robot
9113258fe0 Merge "wifi: put vintf fragment into wifi apex" 2023-01-31 02:57:52 +00:00
Devin Moore
adf99047d5 Merge "Change optional="false" to "true" in compat matrix 7" 2023-01-30 17:55:31 +00:00
Jooyung Han
caad2b9831 wifi: put vintf fragment into wifi apex
The AOSP-version of wifi hal apex now contains the VINTF fragment in it.

Bug: 247018693
Bug: 266885060
Test: atest CtsWifiTestCases
Merged-In: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
Change-Id: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
2023-01-30 11:27:22 +09:00
Devin Moore
d874a23fc0 Make android.hardware.thermal HAL optional
A common workflow for vendors is to develop their new launching devices
targeting N-1 compatibility matrix so they can update each of their HALs
independently at different times.

This works because the target (N-1) framework compatibility matrix is squashed
with the newer compatibility matrices allowing the use of newer
interfaces.

This doesn't work when converting a service from HIDL to AIDL when the
HIDL service is marked as optional="false". It allows for the use of the
new AIDL interface, but it still requires the old HIDL interface.

Marking the old HIDL interfaces as optional allows vendors to develop
before the device targets level 8.

Test: atest vts_treble_vintf_vendor_test
Bug: 247575800
Change-Id: I0da1b10b2bf5c10b19b2713b56be72738a15eec1
2023-01-27 23:10:56 +00:00
Devin Moore
f2cada53a3 Change optional="false" to "true" in compat matrix 7
A common workflow for vendors is to develop their new launching devices
targeting N-1 compatibility matrix so they can update each of their HALs
independently at different times.

This works because the target (N-1) framework compatibility matrix is squashed
with the newer compatibility matrices allowing the use of newer
interfaces.

This doesn't work when converting a service from HIDL to AIDL when the
HIDL service is marked as optional="false". It allows for the use of the
new AIDL interface, but it still requires the old HIDL interface.

Marking the old HIDL interfaces as optional allows vendors to develop
before the device targets level 8.

Test: m
Bug: 247575800
Change-Id: I4446cdaa4a44b4dae1e9eee68089bf723dd25276
2023-01-27 23:07:43 +00:00
Devin Moore
d89a33b8c7 Rename compatibility_matrix.current.xml
We can stick with the expected number and drop the use of "current".

Test: m
Bug: 266392619
Change-Id: I309f3e2a031ae364d59b4f86a711ca637a30e6e1
2023-01-25 22:21:22 +00:00
Jack Wu
3356161d6c health: expose battery health data and update version to V2
1. add the new propertes
  - batteryHealthData
  - batteryStateOfHealth
  - chargingState
  - chargingPolicy
2. add new types to health status
3. add new methods
  - setChargingPolicy
  - getChargingPolicy
  - getBatteryHealthData

Bug: 251425963
Test: m android.hardware.health-update-api
Change-Id: Ie2339c50e1f9bfc28427e4108a95b1a16c739205
Signed-off-by: Jack Wu <wjack@google.com>
2023-01-21 07:33:51 +00:00
Treehugger Robot
d2bbda8b32 Merge "Drop <name>I</name> from mapper HAL." 2023-01-20 17:10:47 +00:00
Devin Moore
6ffc5c4958 Merge "Remove CAS HIDL interface from compat matrix" 2023-01-18 17:36:03 +00:00
Lorenzo Colitti
7306073719 Merge "Convert Tetheroffload HIDL to AIDL." 2023-01-18 00:04:51 +00:00
Yifan Hong
ccb250d550 Drop <name>I</name> from mapper HAL.
libvintf now supports empty interface names for native HALs.

Test: TH
Bug: 264267049
Change-Id: Ie525478631e785ce8b9d813d08b0a92331047ced
2023-01-17 15:23:32 -08:00
KH Shi
d97a308637 Convert Tetheroffload HIDL to AIDL.
This patch converts Tetheroffload HIDL to AIDL and adds an empty
example implementation.
There are some changes in AIDL HAL:
1. Combine IOffloadConfig and IOffloadControl into IOffload
2. Use AIDL builtin errors exception code with message as return

Bug: b/205762647
Test: m android.hardware.tetheroffload-update-api
      m android.hardware.tetheroffload-V1-ndk
      m android.hardware.tetheroffload-service.example
      atest VtsHalTetheroffloadTargetTest
Change-Id: I9859ff3df608c058786b4e2b91cb6cd5f38e653a
2023-01-17 22:44:55 +08:00
Treehugger Robot
8ec5472653 Merge "EARC: Add version to compatibility_matrix.current" 2023-01-12 17:59:35 +00:00
Treehugger Robot
ef0ed10e8f Merge changes from topic "USB AIDL Migration"
* changes:
  Migrate IUsbGadget to AIDL (Fixed Commnets)
  Migrate IUsbGadget to AIDL
2023-01-12 05:37:41 +00:00
Sham Rathod
1539ced6f5 EARC: Add version to compatibility_matrix.current
Test: atest VtsHalTvEArcAidlTargetTest

Bug: 240388105
Change-Id: I4e2487c19638c365580eeafede241d189edc7968
2023-01-11 19:07:30 +05:30
Devin Moore
e33ef6ccd2 Merge "Remove HIDL gatekeeper from compat matrix" 2023-01-10 21:58:43 +00:00
Devin Moore
c6221b09e7 Remove CAS HIDL interface from compat matrix
This interface is deprecated as of level 8. Use the AIDL CAS interface
instead.

Test: none
Bug: 227673974
Change-Id: I34c1034f247796f81f37a0c337385cdbe2005191
2023-01-10 21:46:56 +00:00
Nathalie Le Clair
e6c4ebb0de Merge "Refactor HDMI related AIDL packages" 2023-01-10 17:05:18 +00:00
Treehugger Robot
143ab50f77 Merge "Remove HIDL atrace interface from compatibility matrix level 8" 2023-01-10 02:32:48 +00:00
Devin Moore
3c63bb125b Remove HIDL gatekeeper from compat matrix
This HIDL interface is deprecate in level 8. The AIDL gatekeeper
interface should be used instead.

Test: none
Bug: 205760843
Change-Id: I58b8ca77ae9ab8d055a45871918dbd91435823a7
2023-01-09 23:14:38 +00:00
Devin Moore
da2777170d Remove HIDL atrace interface from compatibility matrix level 8
This interface is deprecated as of level 8.

Test: none
Bug: 204935495
Change-Id: Ie4cf7a45d70b9a9acf57f25e82fff64cfe379276
2023-01-09 21:47:02 +00:00
Venkatarama Avadhani
601d29917a Refactor HDMI related AIDL packages
Move CEC, EArc and the old "HDMI" package in to one common hdmi package
as cec, earc and connection.

Test: Build
Bug: 261729059

Change-Id: Ic657713e3a4078125e211bb0d337519a9192aaa1
2023-01-09 16:53:02 +05:30
John Reck
0124abc1e9 Add a README and a standardizable VERSION
* Changes the compatbility matrix version to 5.0 & marks optional
* Tweaks the interface name in case it doesn't get removed soon
  (otherwise readme looks silly)
* Adds a README.md to mapper/stable-c
* Adds VTS test to validate versions match

Test: build + mapper VTS

Change-Id: I9b1256e07aaf2876d579a5487d2051c60097fb70
2023-01-06 17:40:16 -05:00
Bo Hu
249e4eb80e Merge changes from topic "isap_hidl2aidl"
* changes:
  Make Sap Interface Apex Available
  [ISap hidl2aidl] VTS Tests
  [ISap hidl2aidl] Compat Support
  Radio: hidl2aidl for ISap interface
2023-01-06 16:05:25 +00:00
Ricky Niu
1eaaea47b2 Migrate IUsbGadget to AIDL
This change migrates android.hardware.usb.IUsbGadget to AIDL and
adds the default implementation.

Compared to the HIDL interface, AIDL based interface adds
transactionId argument to each of the interface method which
is used while invoking the corresponding callback.

Note: This is a cherry-pick of ag/16819267
Bug: 218791946
Test: USB function switch success and AIDL service is running.

Signed-off-by: Ricky Niu <rickyniu@google.com>

Merged-In: Ie05354660f13c8047e2c1712bf373e8699874d28
Change-Id: Ie05354660f13c8047e2c1712bf373e8699874d28
(cherry picked from commit 73b7652e00)
2023-01-06 11:13:36 +00:00
Treehugger Robot
7fb9baae1c Merge "EARC: Add eARC AIDL files" 2023-01-04 03:30:47 +00:00
Steven Moreland
f131f46272 Merge "stablec mapper VINTF entry" 2023-01-03 17:48:55 +00:00
Vlad Popa
2afbd1e549 Refactor the ISoundDose.aidl interface
This refactoring is fixing the hal_implementation_test workaround from
aosp/2363076. Adjusted the package name to match the aidl_interface and
declared the ISoundDose interface types only.

Test: VtsHalSoundDoseFactoryTargetTest, VtsHalAudioCoreTargetTest,
hal_implementation_test
Bug: 263388737

Change-Id: Ibce4cd95aaf600de2096179f137243939114ba6a
Merged-In: Ibce4cd95aaf600de2096179f137243939114ba6a
2022-12-28 18:01:01 +01:00
Venkatarama Avadhani
90373fe4d6 EARC: Add eARC AIDL files
AIDL files for eARC HAL.

Test: m android.hardware.tv.earc-update-api
      atest VtsHalTvEArcAidlTargetTest
Bug: 240388105
Change-Id: Id2a337b928e64e022d97b4339bf7788cc80ea653
2022-12-27 17:57:32 +05:30
Steven Moreland
61d6c00150 stablec mapper VINTF entry
Bug: 256701991
Test: vts_treble_vintf_vendor_test
Change-Id: I4a6597a10f80acefb28cb185988f82647b1c2e85
2022-12-22 03:29:33 +00:00
Pomai Ahlo
1d10db6063 [ISap hidl2aidl] Compat Support
Add support for ISap in the compat shim.

Test: atest VtsHalRadioTargetTest:PerInstance/SapTest
Bug: 241969533
Change-Id: I9fe5fe194de877bcd2b85ccfa822bd6565e2dc72
Merged-In: I9fe5fe194de877bcd2b85ccfa822bd6565e2dc72
2022-12-21 17:40:43 +00:00
Vlad Popa
f4fe41c873 Audio HAL: Add new HAL for sound dose
The new HAL is running as part of the HIDL audio HAL process. It is
meant as a workaround for HAL implementors that can not switch to the
audio AIDL yet and need to certify with IEC62368-1 3rd edition or
EN50332-3. Note that this HAL will be deprecated in the future.

Test: atest VtsHalSoundDoseFactoryTargetTest & flash bluejay-userdebug
Bug: 257937004
Change-Id: Ifbbf235bab58c1ee2f1ea246cf98c9e8966893c0
2022-12-18 10:18:10 +01:00
Treehugger Robot
94a68d04b7 Merge changes from topic "c2aidl"
* changes:
  Add Codec2 AIDL interface
  Add bufferpool AIDL definitions
2022-12-14 20:24:14 +00:00
Mikhail Naganov
c8e4312da8 audio: Bring default HAL configuration closer to cuttlefish
This is to simplify switching of cuttlefish to
the AIDL implementation. Split out 'r_submix' module.

Add all IModule instance names to the compatibility
matrix.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I424db14257281671eea87aa743deb778ca75f388
2022-12-13 01:17:55 +00:00
Sungtak Lee
8602fe3a0b Add Codec2 AIDL interface
Bug: 251850069
Test: m
Change-Id: I1fc28084519281df68bca7ae5e2b814b03214577
Merged-In: I1fc28084519281df68bca7ae5e2b814b03214577
2022-12-07 07:24:42 +00:00
Sungtak Lee
1468ddfbf3 Add bufferpool AIDL definitions
Bug: 254050250
Test: m
Change-Id: I4b371ccd9a1e1ed59e642d585aa4119c775fbd2c
Merged-In: I4b371ccd9a1e1ed59e642d585aa4119c775fbd2c
2022-12-07 07:23:32 +00:00
Steven Moreland
3cefaa0486 require AIDL secure_element for U devices
This is ready several months before release. We would like to save memory.

Bug: N/A
Change-Id: I6b533c2e9e03336e804d76b29f346400cb5375c7
Test: N/A
2022-12-02 19:53:11 +00:00
John Reck
4346ad0f75 Merge "IMapper 5 - the Stable C approach" 2022-12-01 23:48:40 +00:00
John Reck
97f313746f IMapper 5 - the Stable C approach
Test: make VtsHalGraphicsMapperStableC_TargetTest VtsHalGraphicsAllocatorAidl_TargetTest

Change-Id: I910b27f388e3fb7261425dd4b2133885c05edd37
Merged-In: I910b27f388e3fb7261425dd4b2133885c05edd37
2022-12-01 17:37:59 +00:00
Steven Moreland
6fe6954dd4 secure-element to AIDL
Bug: 205762050
Test: atest VtsHalSecureElementTargetTest (8/8 passed)
Test: atest CtsOmapiTestCases
    - all tests pass except testStatusWordTransmit,
      testTransmitApdu, and testSelectNext. This is because
      these tests don't increase coverage of the HAL API
      except they call 'transmit' several times. Doing a full
      mock OMAPI/APDU implementation for cuttlefish/AOSP is
      tracked in b/123254068

Change-Id: I0ec0eb08fbcc4207d8c07427ccdf7ff106995627
2022-11-24 01:24:13 +00:00
Jooyung Han
59ab6bb6ff Set android.hardware.camera.provider as updatable
android.hardware.camera.provider has been updatable since Android S. In
Android U, HALs updatable via APEX should declare the updatability.

Bug: 248142818
Test: checkvintf with updated DM
Merged-In: I51ddb9d141c71d22b7c7909b33ebfc8a0a703431
Change-Id: I51ddb9d141c71d22b7c7909b33ebfc8a0a703431
2022-11-14 23:24:11 +00:00
Maciej Żenczykowski
d05e5fa654 Delete {p,q}/android-4.9.
U will not support 4.9

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ia637833f5bfaf9ba2a3043beb09e53dc3c11caf6
2022-11-05 07:15:18 +00:00
Myles Watson
88150368f8 Merge changes from topic "hci_aidl_hal"
* changes:
  Bluetooth HAL: Add an AIDL default implementation
  Start with async and HCI
  Bluetooth HIDL -> AIDL conversion
2022-11-02 23:47:01 +00:00
Myles Watson
10d29e4934 Bluetooth HIDL -> AIDL conversion
Bug: 205758693
Test: updated vts tests
Change-Id: Iac4d387dba3715d17c63369f392d091e9228333a
2022-11-01 09:29:23 -07:00
Jooyung Han
bff24b7c52 Merge "Mark android.hardware.drm as an updatable hal" 2022-11-01 02:33:36 +00:00
Jooyung Han
91c09a4dd4 Mark android.hardware.drm as an updatable hal
As widevine impl has been moved to an updatable APEX.

Bug: 248142818
Bug: 243333942
Test: check-vintf-all
Merged-In: I2e8ea011af8dbcc8d6eb55236c039795851ad9b7
Change-Id: I2e8ea011af8dbcc8d6eb55236c039795851ad9b7
(cherry picked from commit ca78b7a817)
2022-10-28 09:12:20 +09:00
Yu Shan
362e18c978 Merge changes from topic "remoteaccess_hal"
* changes:
  Add INFO_VIN in reference VHAL.
  Add remote access HAL interface and ref impl.
2022-10-27 21:13:47 +00:00
Yu Shan
7a5283fda1 Add remote access HAL interface and ref impl.
Add remote access HAL interface and reference implementation. This
CL is a merge of multiple CLs commited in internal master.

Test: Presubmit
Bug: 241170646
Change-Id: I55ba98015055d779a362cac05a9f68650b5b92ab
Merged-In: I332221b303274463dfa5b46d78cf0d81f6045e4b
2022-10-26 17:16:05 -07:00
Yifan Hong
11bd25c78e Merge "Drop kernel configs p-4.4." 2022-10-26 17:53:12 +00:00