Commit graph

18499 commits

Author SHA1 Message Date
Les Lee
7fde2252fa Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1" am: dab90bdb08
am: 6b93ab65e4

Change-Id: I200c401f6485c9434a50ddc49e40c6136a71f724
2019-11-08 00:46:08 -08:00
Les Lee
6b93ab65e4 Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1"
am: dab90bdb08

Change-Id: If2d5f24f0d12c9be098d76a1d195c37079b52fc4
2019-11-08 00:40:22 -08:00
Les Lee
dab90bdb08 Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1" 2019-11-08 08:30:38 +00:00
lesl
c8a2e136ea hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1
If driver doesn't support the hotspot ACS feature.
It will cause ACS relate vts testcase failure.
Temp disable the vts test case and file b/140172237 to fix in R.

Bug: 135975451
Test: build - make vts
Test: atest VtsHalWifiHostapdV1_1Target / atest VtsHalWifiHostapdV1_0Target
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \
      --primary-abi-only --skip-preconditions --module \
      VtsHalWifiHostapdV1_0Target -l INFO
      vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \
      --primary-abi-only --skip-preconditions --module \
      VtsHalWifiHostapdV1_1Target -l INFO

Change-Id: I489d5f5c54f37f3603128e127a6c8b1ee62390d3
2019-11-08 11:49:55 +08:00
Xusong Wang
62a760c32d NN HAL: Upgrade IPreparedModel::execute to 1.3.
Bug: 143242728
Test: 1.3 VTS with sample driver
Change-Id: I9ca1e28ddc97fe880a72885afe7afb6c93903697
2019-11-07 17:30:56 -08:00
Xusong Wang
68c3234ad3 NN HAL: Upgrade IPreparedModelCallback::notify to 1.3.
Bug: 143242728
Test: 1.3 VTS with sample driver
Change-Id: I56bc7a2fb179a9576036ad0c2aae0e1f41ec4e2c
2019-11-07 17:30:43 -08:00
TreeHugger Robot
0b93288c77 Merge "gralloc: name buffer at allocation time" 2019-11-07 23:13:21 +00:00
Dan Shi
3d4d496078 Convert VtsHalWifiHostapdV1_*TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiHostapdV1_0TargetTest \
VtsHalWifiHostapdV1_1TargetTest
Change-Id: I37ae0369daf145731eb6b00078b396e1a4415d3f
2019-11-07 14:41:16 -08:00
Kevin Rocard
4b99dc65e3 Allow device to have use Audio HAL V6
This HAL is optional for now as breaking changed are planned.
It might get required for new device before R release.

Test: push V6 to device and check audio works fine
Bug: 134940862
Change-Id: Ib4a906da1c1d3d489003a6642bfc55b142424155
Merged-In: Ib4a906da1c1d3d489003a6642bfc55b142424155
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-11-07 14:19:48 -08:00
Kevin Rocard
2a515e1c27 Introduce Audio V6
Generate with ./newHal.sh 5.0

+ some typo fix in the .hal
+ some clang-tidy run

This new HAL is an exact copy of the V5.
It will be modified in following patches while R is developed.

Test: push V6 to device and check audio works fine
Bug: 134940862
Change-Id: Ic25d30175032e76e0d3208fb876451de9ae6b7b4
Merged-In: Ic25d30175032e76e0d3208fb876451de9ae6b7b4
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-11-07 14:19:12 -08:00
Kevin Rocard
55a451825c Change some formatting for better script parsing
Test: Compile
Bug: 134940862
Change-Id: Ibbafdcaa6e0bfa8fd2b80f4a6c9ac6ac95058f93
Merged-In: Ibbafdcaa6e0bfa8fd2b80f4a6c9ac6ac95058f93
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-11-07 14:18:45 -08:00
Kevin Rocard
82d3a0b3c7 Script to generate new audio HAL version
Mostly automated script to generate a new Audio HAL major version.

Test: push V6 to device and check audio works fine
Bug: 134940862
Change-Id: I0da621e747eb48e75901a2a10cfc224f33864c3b
Merged-In: I0da621e747eb48e75901a2a10cfc224f33864c3b
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-11-07 14:12:52 -08:00
Kevin Rocard
ad17f58e50 Convert audio HAL service mk to bp and rename the service
The service supports multiple versions and its name should not be
version dependant.

For backward compatibility, keep the target name
android.hardware.audio@2.0-service (32bit only), existing
PRODUCT_PACKAGES do not have to be updated.
New products should depend on android.hardware.audio.service:32.

Additionally migrate to Android.bp, dropping support for
AUDIOSERVER_MULTILIB. Previously the HAL service architecture (32 vs 64)
would be the same as the audio server. This in not wanted as all android
audio HAL are 32 bits.

Bug: 121208203
Test: # Compare following commands before and after patch:
      find $ANDROID_PRODUCT_OUT/vendor -name 'android.hardware.audio*'|xargs file
            adb shell reboot # check device boots to UI and
      # check the HAL restarts after the audioserver is killed
      adb shell ps |grep audio; adb shell killall audioserver; adb shell ps
Change-Id: I25f41735175a6687a051ca1e5a7fee670eb8115e
Merged-In: I25f41735175a6687a051ca1e5a7fee670eb8115e
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-11-07 14:12:30 -08:00
Kevin Rocard
350ce29826 Audio service: Refactor register interface
Remove all per interface version boilerplate.
Adding a new version now requires only including the file
and adding the version name to the list.

Bug: 134940862
Test: adb shell lshal
Change-Id: Ib6b99d7a2c2079d914970fbe804aaf3c78c143ce
Merged-In: Ib6b99d7a2c2079d914970fbe804aaf3c78c143ce
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-11-07 14:11:45 -08:00
Kevin Rocard
c581b41569 Version dependant target should included version in name
As a V6.0 version needs to be created.

Note that this target is not used anywhere explicitly.
There seem to be some magic to "xsd_config", probably has to do with the
package_name.

Bug: 134940862
Test: build
Change-Id: Id6935c5458294981cb778f3647ec01ee34a34e2f
Merged-In: Id6935c5458294981cb778f3647ec01ee34a34e2f
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-11-07 14:11:07 -08:00
TreeHugger Robot
d9ea718964 Merge "gralloc: clarify lock access region" 2019-11-07 21:42:18 +00:00
zhibo.chang
0674965275 Merge "Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2" am: 528f91b055 am: 3a8199998c
am: b9868f9988

Change-Id: I6f4faf1b515025ff096b1159dd69173c24e5e999
2019-11-07 13:17:45 -08:00
zhibo.chang
b9868f9988 Merge "Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2" am: 528f91b055
am: 3a8199998c

Change-Id: I2fd8bd2fc44cb123d088d3671847df794078b8d0
2019-11-07 13:12:06 -08:00
zhibo.chang
3a8199998c Merge "Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2"
am: 528f91b055

Change-Id: I802c059e8eb67ca01d90eeb6ade427c7559ebced
2019-11-07 13:06:39 -08:00
Henry Fang
0ce0f981a7 Add cas@1.2 support
Test: Manual
bug: 141783130
Change-Id: I487aa47c13ad1a50831ddbcb3b9b25de9972e5b7
2019-11-07 13:03:11 -08:00
Mikhail Naganov
5b8fc1298a audio: Run VTS tests for streams of non-primary modules for HAL V6
Implement parsing of AudioPolicyManager config for finding
out supported format configurations of streams. This only applies
when running tests for HAL V6. Previously format configurations
mandated by CDD were used for testing, this does not work well
for non-primary modules.

Fix the following issues found while running the tests
for "r_submix" and "msd" modules:

- IStream::getSupportedFormats must return a status
  to indicate that this capability is not supported by HAL;

- it is allowed for IStream::setDevices to return
  NOT_SUPPORTED status.

Other changes:

- Factor out helper functions for generating format
  configurations;

- Fix generation of the channel mask component in the names
  of tests that use AudioConfig, add sampling rate to test
  names.

Bug: 141989952
Bug: 141847510
Test: atest VtsHalAudioV5_0TargetTest
      atest VtsHalAudioV6_0TargetTest
            also, run modified V5_0 test using generators for V6_0

Change-Id: If0d330881901908e546baab89f63d3333003e355
2019-11-07 12:53:43 -08:00
Max Bires
2cdc273e8f Removing invalid HMAC tests.
Per Keymaster 4.0 spec, TEE and StrongBox implementations are only
required to support HMAC keys between 64 and 512 bits in length.
StrongBox implementations additionally must not support anything larger
than 512 bits. The tests removed in this CL specified key sizes larger
than 512 bits.

Bug: 143404829
Test: m VtsHalKeymasterV4_0TargetTest && adb sync data && \
adb shell data/nativetest64/VtsHalKeymasterV4_0TargetTest/VtsHalKeymasterV4_0TargetTest

Change-Id: I96ee3a20b981c288d88366f536b9924f907268f3
2019-11-07 12:48:07 -08:00
Treehugger Robot
528f91b055 Merge "Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2" 2019-11-07 20:47:29 +00:00
Henry Fang
3952872e75 [automerger skipped] Merge "Update cas@1.1 hal to cas@1.2." am: f8d76bd144 am: f437124480
am: b52cc834a3 -s ours
am skip reason: change_id I0c3e9041a2057ce721a608cf3a9f0a9bb15a2305 with SHA1 9bed3dc4fa is in history

Change-Id: I6867431f1c9ac50b3e1fbaf75921a929e52ef270
2019-11-07 12:11:55 -08:00
Steven Moreland
6b1493b3ae Merge "vibrator: add CAP_EXTERNAL_AMPLITUDE_CONTROL" am: 00fab92a7f am: 38a7fd810f
am: 1412991bf5

Change-Id: Id0f127c541db00b9729a3fb48c78b2149b5d1595
2019-11-07 12:01:13 -08:00
Henry Fang
b52cc834a3 Merge "Update cas@1.1 hal to cas@1.2." am: f8d76bd144
am: f437124480

Change-Id: I624a08043e1dbacd1b063d766ce9f03a61513bc1
2019-11-07 11:59:51 -08:00
Steven Moreland
1412991bf5 Merge "vibrator: add CAP_EXTERNAL_AMPLITUDE_CONTROL" am: 00fab92a7f
am: 38a7fd810f

Change-Id: I36d22c7419120363b06da27d9b8575e8df91d532
2019-11-07 11:48:15 -08:00
Marissa Wall
bf9f6d39ed gralloc: name buffer at allocation time
Allow the client to name their buffer at allocation time.

b/141632767 will let the client(s) query the name of the
buffer later.

Bug: 144026910
Test: VtsHalGraphicsMapperV4_0TargetTest

Change-Id: Ib08c1909c10a1778c50b59e0a42ddf19140d8f03
2019-11-07 11:46:58 -08:00
Henry Fang
f437124480 Merge "Update cas@1.1 hal to cas@1.2."
am: f8d76bd144

Change-Id: I6ffee9cb3a937c5b16b42c33b7ce2d4f4cc5e3a8
2019-11-07 11:46:30 -08:00
Steven Moreland
38a7fd810f Merge "vibrator: add CAP_EXTERNAL_AMPLITUDE_CONTROL"
am: 00fab92a7f

Change-Id: I90cb13116aa47243d39212f4d178824c3d436280
2019-11-07 11:42:14 -08:00
Henry Fang
f8d76bd144 Merge "Update cas@1.1 hal to cas@1.2." 2019-11-07 19:33:33 +00:00
Steven Moreland
00fab92a7f Merge "vibrator: add CAP_EXTERNAL_AMPLITUDE_CONTROL" 2019-11-07 19:18:08 +00:00
Dan Shi
776ca95863 Merge "Convert VtsHalGraphicsComposerV2_4TargetTest to be parameterized test" 2019-11-07 18:33:45 +00:00
Marissa Wall
a6a2af85d7 gralloc: clarify lock access region
Update lock to clarify that if the access region is outside the
bounds of the buffer, the lock call should fail.

Bug: 141631415
Test: VtsHalGraphicsMapperV4_0TargetTest

Change-Id: Ic9ccac9361c8cafc59660b107686d2cbb54faf2d
2019-11-07 10:24:34 -08:00
Tomasz Wasilczyk
4255862bb0 Merge "Improve error handling with separate ICanErrorListener" 2019-11-07 15:22:52 +00:00
Ahmed ElArabawy
c71f0f17e6 Merge "Wifi: Add 802.11ax support to RTT" 2019-11-07 04:35:54 +00:00
nelsonli
7519669ad6 Merge "[vts-core] add VtsHalTetheroffloadConfigV1_0TargetTest to vts-core" am: 10a6515170 am: f3325eacca
am: 058b49e284

Change-Id: If3946934c1f284a964d1d8ea7973762cd9c10baa
2019-11-06 19:18:20 -08:00
Steven Moreland
c0b92d5388 vibrator: add CAP_EXTERNAL_AMPLITUDE_CONTROL
For HIDL, vibrator may change the value of supportsAmplitudeControl
based on context. Since the interface is being redone in AIDL, we're
avoiding this changing value and providing capabilities for amplitudes
we expect to be available in different states.

Bug: 141828236
Test: VtsHalVibratorTargetTest
Change-Id: Idf0b28ffe5b1175469d32e790b10b4232482dc2b
2019-11-07 03:00:25 +00:00
Ahmed ElArabawy
eeb53385b3 Wifi: Add 802.11ax support to RTT
This CL makes modidfication to support Wifi 802.11ax to RTT procedures.

Bug: 139354972
Test: vts test
Change-Id: I79fba504e7c7380a254a0b8c175a13e8b993fc8e
2019-11-06 18:31:16 -08:00
nelsonli
058b49e284 Merge "[vts-core] add VtsHalTetheroffloadConfigV1_0TargetTest to vts-core" am: 10a6515170
am: f3325eacca

Change-Id: I65689ed364d83cd9ced0fd050cb8e2c6a227a159
2019-11-06 18:27:56 -08:00
nelsonli
f3325eacca Merge "[vts-core] add VtsHalTetheroffloadConfigV1_0TargetTest to vts-core"
am: 10a6515170

Change-Id: I7bc4fe3cbdf70c3cc59135e1dd90d1d1112d2885
2019-11-06 18:21:58 -08:00
Treehugger Robot
10a6515170 Merge "[vts-core] add VtsHalTetheroffloadConfigV1_0TargetTest to vts-core" 2019-11-07 02:07:29 +00:00
nelsonli
d93a6ccf5b [vts-core] add VtsHalHealthStorageV1_0TargetTest to vts-core
Convert VtsHalHealthStorageV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atest VtsHalHealthStorageV1_0TargetTest
Change-Id: I0e91e0958c2dc351a0e9af03fd977f55f418d1f5
2019-11-07 10:05:34 +08:00
Henry Fang
a9f9365551 Update cas@1.1 hal to cas@1.2.
Test: Manual
bug: 141783130
Change-Id: I0c3e9041a2057ce721a608cf3a9f0a9bb15a2305
Merged-In: I0c3e9041a2057ce721a608cf3a9f0a9bb15a2305
2019-11-06 23:00:05 +00:00
Tomasz Wasilczyk
a90619662b Improve error handling with separate ICanErrorListener
Error handling highlights:
- moved onError from ICanMessageListener to ICanErrorListener
- added isFatal callback argument to request client disconnect
- don't down interface that's already down

Also:
- don't crash if it's not possible to unregister ICanBus
- don't crash while trying to down interface that failed
- make hidl-utils available to vendor libraries

Bug: 143779011
Test: implemented a VHAL service prototype that communicates with this HAL
Change-Id: I98d054da9da0ead5ef952aebc086e052ac996212
2019-11-06 14:52:07 -08:00
Eric Laurent
040bfea972 audio: Add CALL_SCREEN audio mode.
Add new audio mode AudioMode.CALL_SCREEN allowing call screening
to take place while other audio use cases are still active.

Also add audio policy configuration attribute indicating if the
vendor implementation supports this audio mode.

Bug: 140384450
Test: make
Change-Id: I2714a9949f2c45b1f8e5a5c40368a6152bd91572
2019-11-06 12:39:46 -08:00
David Anderson
fdf32f00fa Merge "IBootControl: Use new defaultPassthroughServiceImplementation signature." am: 240c726150 am: b1ec4c6aa1
am: decc075e5f

Change-Id: I14c96f8da4c6bdff019809cf926fe24ec84512ed
2019-11-06 10:21:17 -08:00
David Anderson
decc075e5f Merge "IBootControl: Use new defaultPassthroughServiceImplementation signature." am: 240c726150
am: b1ec4c6aa1

Change-Id: I142a7a7bdbdf420d046ab3c43fe176cb8d84c079
2019-11-06 10:15:07 -08:00
Nick Desaulniers
8bbb6bc175 [automerger skipped] Merge changes I8a7ff4b0,Id121ecd4,I23375d73 am: 944e640e16 am: d770f4c628
am: 69871db874 -s ours
am skip reason: change_id I78d64ea2b7df3f2bd3b8503aa553a0523b20d711 with SHA1 0e2911ebe0 is in history

Change-Id: I62f6609034b814a02fa50bfa5528a7ab5c9ffcd8
2019-11-06 10:12:07 -08:00
David Anderson
b1ec4c6aa1 Merge "IBootControl: Use new defaultPassthroughServiceImplementation signature."
am: 240c726150

Change-Id: I4414f7e94fb3778ced7ceba5a87fcee1f66f3a93
2019-11-06 10:08:05 -08:00