Commit graph

18283 commits

Author SHA1 Message Date
Jeongik Cha
f63412fcf9 android.hardware.tests.extension.vibrator-update-api
Dumping android.hardware.tests.extension.vibrator was ommited
because of difference of module name across branch.

Bug: 153501107
Bug: 152655547
Test: m
Change-Id: Ia272ffa77add9ef0b02ee0a23fc2389ac69fa9aa
2020-04-08 22:32:00 +09:00
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Malcolm Chen
1c4905c2ee Skip enableModem vts if in single SIM mode.
Due to modem issue, enableModem only works in dual-SIM mode.
And we only use that in dual-SIM mode. So skipping testing in
in single SIM mode.

Bug: 152557383
Test: vts
Change-Id: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
Merged-In: I41f200317eaf9be0613f92e5bff9a3ee8a98ef15
2020-04-03 14:01:23 -07:00
Shuo Qian
fb98e4f092 Starting from Android 11, VTS will use "DISABLE_" prefix to disable tests instead of the .xml file. We need to migrate these things.
Test: Treehugger; GoogleTest knowledge; VTS team confirmation
Bug: 152813990
Change-Id: I92616557ae44c2a421ee687d0420f7b7901ba5a9
Merged-In: I92616557ae44c2a421ee687d0420f7b7901ba5a9
(cherry picked from commit 872ffc262f)
2020-04-01 04:39:47 +00:00
Dan Shi
ac06943cad Merge "Convert VtsHalBluetoothA2dpV1_0TargetTest to be parameterized test" 2020-03-31 19:29:31 +00:00
Steven Moreland
cc7eac49b2 Merge "Add current.txt HAL sections for S." 2020-03-30 22:20:19 +00:00
Steven Moreland
b2b01a5793 Drop configstore@1.1 from compatibility_matrix.
configstore usage was replaced with sysprop usage
e.g. ro.surface_flinger.force_hwc_copy_for_virtual_displays
(and many others)

Bug: 124531214
Test: this is checked against devices at build time
Change-Id: Ifc8c699514ce426e5c61195f0e78f73ad9c7885c
2020-03-30 20:28:35 +00:00
Steven Moreland
57906836e6 Add current.txt HAL sections for S.
Adding these now, with a note that AIDL interfaces should be preserved,
to avoid some merge conflicts.

Bug: 147496715
Test: N/A
Change-Id: I67f6c5d583b853516c7203edb77f3c5fa841863b
(cherry picked from commit e6c11c9407)
Merged-In: I67f6c5d583b853516c7203edb77f3c5fa841863b
2020-03-27 17:12:57 -07:00
Treehugger Robot
96d959486c Merge "Add vintf_fragments to keymaster@4.1-service" 2020-03-27 22:17:41 +00:00
Treehugger Robot
3acc7dc1f8 Merge changes I0699ed67,I58293973,I9c795dcb,I0b731d10,Ia2097345
* changes:
  Remove extra tests from NNAPI VTS validation tests
  Fix the timing initialization error for failed executeFenced case
  Add BLOB AHWB tests in VTS.
  Add fenced compute path to memory domain validation test.
  Add memory domain VTS validation tests.
2020-03-27 20:39:47 +00:00
Roman Kiryanov
1cc355b57b Add vintf_fragments to keymaster@4.1-service
Bug: 152616625
Bug: 152554068
Test: boot emulator, lshal | grep keymaster
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I36818fdc0f7732174fc7b2fd7619b1ae75b5b33d
2020-03-27 10:46:21 -07:00
Steven Moreland
46aa366ab2 Add compatibility_matrix.current.xml for S
Bug: 152310927
Test: build only (b/150215458 for enabling this on cf)
Change-Id: Id33494d8433ba58362c592deb2598fe89127561e
(cherry picked from commit 7f431d264a993ad0eda47299a59da4eb37fc2358)
Merged-In: Id33494d8433ba58362c592deb2598fe89127561e
2020-03-27 16:34:32 +00:00
Michael Butler
b1865b6593 Remove extra tests from NNAPI VTS validation tests
Do not run validation on "inputs_as_internal" and
"all_tensors_as_inputs" variants.

Bug: 138149072
Bug: 149840439
Test: mma
Test: VtsHalNeuralnetworksV1_*TargetTest
Change-Id: I0699ed6703e48b6c4bc0e7a392b79c12770f04c9
Merged-In: I0699ed6703e48b6c4bc0e7a392b79c12770f04c9
(cherry picked from commit 678a10600c)
2020-03-27 11:44:10 +00:00
Miao Wang
702a91acf5 Fix the timing initialization error for failed executeFenced case
Fixes: 152075771
Test: mm
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I5829397346354ee3fc4a58b0a418197a1eee47cc
Merged-In: I5829397346354ee3fc4a58b0a418197a1eee47cc
(cherry picked from commit ad7678c8cb)
2020-03-27 11:44:08 +00:00
Xusong Wang
75e63ad743 Add BLOB AHWB tests in VTS.
Bug: 149847930
Test: 1.3 VTS
Change-Id: I9c795dcb7696c843afd12551927463c5529a4b60
Merged-In: I9c795dcb7696c843afd12551927463c5529a4b60
(cherry picked from commit 41adc5bc11)
2020-03-27 11:44:06 +00:00
Xusong Wang
2844165bf3 Add fenced compute path to memory domain validation test.
Bug: 147777318
Test: 1.3 VTS
Change-Id: I0b731d10384ef2024241af1d908acf3ba760d73f
Merged-In: I0b731d10384ef2024241af1d908acf3ba760d73f
(cherry picked from commit 9c415917e0)
2020-03-27 11:44:04 +00:00
Xusong Wang
5b0c58d1fb Add memory domain VTS validation tests.
Bug: 147777318
Test: 1.3 VTS with sample driver
Change-Id: Ia2097345924726d8fb627845fd7438cc3eb35eb6
Merged-In: Ia2097345924726d8fb627845fd7438cc3eb35eb6
(cherry picked from commit fed2f5213f)
2020-03-27 11:44:00 +00:00
Steven Moreland
951fce0fa5 Freeze 'current' matrix as '5'.
To signify this as being ready for release.

Bug: 147496715
Test: build & boot cf (which is at target-level 5)
Change-Id: I7bb9d561506849bac2353d9356a6580f6e2393ab
(cherry picked from commit 0e0665efec1b61ef329a370b9483937b7ce9ac9f)
Merged-In: I7bb9d561506849bac2353d9356a6580f6e2393ab
2020-03-25 23:53:52 +00:00
Steven Moreland
8a8f0d77fe bpfmt compat matrix Android.bp
Bug: 147496715
Test: n/A
Change-Id: I2748d4a74f0bfc668f6ff0f8bce22c94dd90f61f
(cherry picked from commit a37ed88ebb)
Merged-In: I2748d4a74f0bfc668f6ff0f8bce22c94dd90f61f
2020-03-25 15:36:05 -07:00
Treehugger Robot
a108098648 Merge "Fix file paths for DumpstateUtil calls in 1.0" 2020-03-25 20:11:32 +00:00
Steven Moreland
a26d285844 Merge "android.hardware.tests.lazy@1.0::ILazy" 2020-03-25 17:34:50 +00:00
Treehugger Robot
a2d07ec5d2 Merge "Add default/android.hardware.dumpstate@1.1-service.example" 2020-03-25 16:54:06 +00:00
Steven Moreland
1f9aa386ba android.hardware.tests.lazy@1.0::ILazy
For testing lazy HALs in HIDL on continuous integration.

Bug: 148114689
Test: hidl_lazy_test
Change-Id: I710c11c0cb59f04b4f162d627ca0d11135ab1437
2020-03-24 18:50:06 -07:00
Roman Kiryanov
58c23a6832 Fix file paths for DumpstateUtil calls in 1.0
selinux prevents access to /vendor/bin/date and
/system/etc/hosts.

Bug: 152067221
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I6202878427718bc825063941377c3e91b798677f
2020-03-24 11:52:24 -07:00
Roman Kiryanov
23e3c29369 Add default/android.hardware.dumpstate@1.1-service.example
Bug: 152067221
Test: VtsHalDumpstateV1_1TargetTest
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I7f4e50846e2dc4393563c602145afb5617b2d48f
2020-03-24 11:51:19 -07:00
Yifan Hong
dc0e2f69ea Merge "Drop GNSS1.1 and Thermal1.0" 2020-03-24 16:31:09 +00:00
Jooyung Han
067662581f Merge "use vector<uint8_t> for byte[] in AIDL" 2020-03-24 06:37:31 +00:00
Jooyung Han
17be89b21b use vector<uint8_t> for byte[] in AIDL
In native world, byte stream is typically represented in uint8_t[]
or vector<uint8_t>. C++ backend already generates that way. This
change involves NDK backend.

Now NDK backend also uses vector<uint8_t> just like C++ backend.

Bug: 144957764
Test: atest CtsNdkBinderTestCases
Merged-In: I8de348b57cf92dd99b3ee16252f56300ce5f4683
Change-Id: I8de348b57cf92dd99b3ee16252f56300ce5f4683
(cherry picked from commit 9070318462)

Exempt-From-Owner-Approval: cp from internal
2020-03-24 06:37:11 +00:00
Treehugger Robot
7a2c9860f2 Merge "Audio Effects: Run more tests for LoudnessEnhancerEffect" 2020-03-23 19:52:02 +00:00
Dan Shi
83a017d5fc Merge "Convert MediaOmx tests to parameterized gtest" 2020-03-23 18:36:34 +00:00
Mikhail Naganov
892d147516 Audio Effects: Run more tests for LoudnessEnhancerEffect
Due to incorrect assumptions about test case inheritance
in GTests, LoudnessEnhancerEffect wasn't running tests
for methods of IEffect interface. The test code has been
restructured to fix that via proper parametrization.

Bug: 146149801
Test: atest VtsHalAudioEffectV5_0TargetTest
Test: atest VtsHalAudioEffectV6_0TargetTest
Change-Id: Ie366979880bfc3b7e95a02957451736d724f838f
2020-03-23 11:32:08 -07:00
Yifan Hong
42debcc122 Merge "Freeze kernel configs for r." 2020-03-23 16:45:07 +00:00
Amit Mahajan
3e3e78bf20 Merge "Documentation for enum PersoSubstate" 2020-03-21 21:13:33 +00:00
Yifan Hong
aa2da24f5f Drop GNSS1.1 and Thermal1.0
These two are added because checkUnusedHals does not check for
inheritance. These two HALs are considered deprecated and are dropped
from the current matrix.

They are dropped from matrix.4.xml too because
GnssHalVersionCompatibility and ThermalHalVersionCompatibility ensures
devices with target FCM version 4 must implement GNSS2.0 and thermal
2.0.

Bug: 131717099
Test: m check-vintf-all

Change-Id: I2c7cbf8f51925e55026a9f85382c8a22897eabaa
Merged-In: I2c7cbf8f51925e55026a9f85382c8a22897eabaa
2020-03-20 17:19:39 -07:00
Nazish Tabassum
770b353705 Documentation for enum PersoSubstate
Documentation for Additional personalization categories.
        - SIM_SPN
        - SIM_SP_EHPLMN
        - SIM_ICCID
        - SIM_IMPI
        - SIM_NS_SP

Bug: 69389695
Change-Id: I011c4e67b4189e5db21883f3ac19bee5ea2af250
Merged-in: I011c4e67b4189e5db21883f3ac19bee5ea2af250
2020-03-20 22:49:04 +00:00
Xusong Wang
3e64ecc347 Exclude invalid test models from QuantizationCouplingTest.
Bug: 151674996
Test: 1.3 VTS
Change-Id: I381eb6d39926054279f1791bd71d28a963acc0b9
Merged-In: I381eb6d39926054279f1791bd71d28a963acc0b9
(cherry picked from commit 962fdb26ca)
2020-03-20 12:29:16 -07:00
Dan Shi
e2a91ed317 Convert MediaOmx tests to parameterized gtest
Bug: 142950220
Test: atest VtsHalMediaOmxV1_0TargetMasterTest \
  VtsHalMediaOmxV1_0TargetComponentTest \
  VtsHalMediaOmxV1_0TargetAudioEncTest \
  VtsHalMediaOmxV1_0TargetAudioDecTest \
  VtsHalMediaOmxV1_0TargetVideoDecTest \
  VtsHalMediaOmxV1_0TargetVideoEncTest

Change-Id: Id1b8f6073c98db36c0ac86a881e7220ecfd0a71f
2020-03-20 11:36:06 -07:00
Steven Moreland
9464d94434 Merge "remove hidl prebuilt hashes" 2020-03-20 18:30:09 +00:00
Sarah Chin
c940a17900 Convert VtsHalRadioV1_5TargetTest to parameterized gtest
Test: make cf_x86_phone-userdebug, mm
Test: atest VtsHalRadioV1_5Target
Bug: 148816663
Change-Id: I708cc7335f539379d4e676dc0a6541a6c98d43bb
Merged-In: I708cc7335f539379d4e676dc0a6541a6c98d43bb
2020-03-19 18:40:37 -07:00
Yifan Hong
98b9495782 Freeze kernel configs for r.
Bug: 151966896
Test: builds
Change-Id: Iefad197353738410dc066531a6e14e3df96449d4
2020-03-19 16:00:22 -07:00
Steven Moreland
ecc65476cd remove hidl prebuilt hashes
No longer maintained/used.

Bug: 147496715
Test: N/A
Change-Id: I761989dc6c19111a1436e422295f2bb7c91d184d
2020-03-19 14:48:01 -07:00
Mikhail Naganov
248708f63c Audio Effects: Skip CheckConfig test for non-matching HAL versions
In vts-core a test suite for version N can be called for HAL
of version M. Since in the case of the Effects HAL the XSD
configuration for the effects is version-dependent, the test
must not validate the effects config using XSD file for other
version. Thus, the configuration validity check must be skipped
if no corresponding version of IEffectsFactory is found
on the device.

Bug: 142397658
Bug: 146015418
Test: atest VtsHalAudioEffectV6_0TargetTest
      on a device that uses earlier version of Audio HAL;
      CheckConfig#audioEffectsConfigurationValidation must
      be IGNORED
Change-Id: I4b34cc34091447c04bf8d3e988c9bd4048dc8ef9
2020-03-18 14:45:42 -07:00
Sundong Ahn
775bd7cb9a Add disable_configstore
The disable_configstore is added to disable configstore when API level
is less than or equal to 29.

Bug: 150761042
Test: Add disable_configstore to PRODUCT_PACKAGES && build && check
configstore service

Change-Id: Iac01bb375a5c4080c0e110213c64041ea823ed68
2020-03-18 00:08:59 +00:00
Xusong Wang
87d5a3ffe5 Merge changes from topic "nnapi_memory_domain_sample_driver"
* changes:
  Fix VTS of fenced execution with zero-sized output.
  NNAPI VTS: Add validation for Priority
2020-03-17 22:46:11 +00:00
Dan Shi
1b03269ec7 Merge "Convert VtsHalAudioV*_0TargetTest to parameterized gtest" 2020-03-17 22:27:21 +00:00
Dan Shi
82cf1f1bb2 Convert VtsHalAudioV*_0TargetTest to parameterized gtest
For version 2, 4 and 5.

Bug: 150299743
Test: atest VtsHalAudioV2_0TargetTest \
  VtsHalAudioV4_0TargetTest \
  VtsHalAudioV5_0TargetTest
Change-Id: I09be1dc79b69caadd2a5468c4e6ed9c1efd76ffd
2020-03-17 13:12:42 -07:00
Treehugger Robot
6e568e84f8 Merge "Remove setSystemSelectionChannels vts test." 2020-03-17 19:45:52 +00:00
Slava Shklyaev
8db59c363b Merge changes from topics "executeFenced_tests", "nnapi-decouple-1.2"
* changes:
  NNAPI VTS: decouple 1.2 tests from 1.3 types
  Add tests to make sure executeFenced validate unspecified output shapes
  Add more tests exercising IPreparedModel::executeFenced API
2020-03-17 12:27:31 +00:00
Malcolm Chen
96f01bb75d Remove setSystemSelectionChannels vts test.
This HAL API was not enforced in IRadio 1.3. The vts was disabled.
Now we have new API setSystemSelectionChannels_1_5 in IRadio 1.5 and
corresponding vts test. We no longer need this old disabled vts.

Bug: 146062695
Test: vts
Change-Id: Ie81cb38c4848118318b9df5eef799469ff362f16
Merged-In: Ie81cb38c4848118318b9df5eef799469ff362f16
2020-03-16 12:18:45 -07:00
Xusong Wang
f07a957ce2 Fix VTS of fenced execution with zero-sized output.
Fixes: 151441390
Test: 1.3 VTS
Change-Id: I100329e18c34c377d217af155c2abc8e67078778
Merged-In: I100329e18c34c377d217af155c2abc8e67078778
(cherry picked from commit 9fcccf8b85)
2020-03-16 11:08:06 +00:00