Commit graph

18351 commits

Author SHA1 Message Date
Roman Kiryanov
407776edee Add vintf_fragments to android.hardware.biometrics.fingerprint@2.1-service
Bug: 144386336
Test: boot emulator, lshal | grep fingerprint
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I97ad0451bb3edfe85d33300baaa41c3fbc5c3cc6
2020-04-09 14:17:54 -07:00
Roman Kiryanov
41f2139cab Add vintf_fragments to android.hardware.confirmationui@1.0-service
Bug: 153666825
Test: boot, lshal | grep confirmationui
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Ib8ff51a60df30d6d8773d658bdadf3de904c0426
2020-04-09 12:16:56 -07:00
Yifan Hong
94841c9df1 health 2.0 vts: add battery current test.
Require the following on battery current:
- skip health info tests if current is 0 (indicates the value is unavailable)
- when charging, positive
- when discharging / not charging, negative
- when unknown, zero
- batteryCurrentAverage should be similar to batteryCurrentNow.

All new tests are executed over
a period of time to avoid effects of fluctuation in
battery current, and ensure battery status is initialized.

Requirements are enforced on devices launching with R
only.

Require the following on battery status:
- if not charging / full / charging, must be connected
- if discharging, must not be connected.

Test: run on coral, tests are skipped
Test: run on cuttlefish, test passes

Bug: 136717180
Change-Id: Ic5a714b830ffeca1dcd000c6cad0fbfe8a8710ed
2020-04-09 11:32:42 -07:00
Yifan Hong
9fb96fa4b0 health 2.0 VTS: require GTEST_SKIP to be defined
This is a hack to support the test in Android P. Now that gtest
has been updated, we no longer need this hack.

Test: run it
Bug: 118852225
Bug: 136717180
Change-Id: I81802b6fae0dc7839aa9fd1dd40cb881ff4eefdb
2020-04-09 11:32:42 -07:00
Jeongik Cha
6eb3709c38 Remove redunant aidl api
test-android.hardware.vibrator-ext became android.hardware.vibrator-ext
accordingly, remove redunant aidl api directory

Bug: 153501107
Bug: 152655547
Test: m
Change-Id: I3de4196c6fe8ecfae4a6bd5f6bac7920695150c8
2020-04-09 17:01:44 +09:00
Treehugger Robot
15664d3f58 Merge "Freeze vintf aidl interfaces" 2020-04-09 07:49:49 +00:00
Treehugger Robot
3cd2b74e0d Merge "android.hardware.tests.extension.vibrator-update-api" 2020-04-09 07:49:49 +00:00
Treehugger Robot
9967a61dba Merge "Update the current API dump" 2020-04-09 07:49:49 +00:00
Treehugger Robot
ecbe5b9353 Merge "Update the current API dump" 2020-04-09 07:49:49 +00:00
Treehugger Robot
9e7d451a00 Merge "Update the current API dump" 2020-04-09 07:49:49 +00:00
Treehugger Robot
c2116d2c90 Merge "Update the current API dump" 2020-04-09 07:49:49 +00:00
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
Jeongik Cha
cfb374895d Freeze vintf aidl interfaces
AIDL interfaces which are vintf-stable have to be frozen in release.
But these interfaces have been never frozen, so freeze them.

- android.hardware.power
- android.hardware.identity
- android.hardware.keymaster
- android.hardware.vibrator
- android.hardware.light
- android.hardware.tests.extension.vibrator

Bug: 153500421
Bug: 153500550
Bug: 153511407
Bug: 153500549
Bug: 153501107
Bug: 153501202
Test: m
Change-Id: I643c25fc695f9d1e874dcceb327d465c49e9cab6
2020-04-08 20:28:40 +09:00
Jiyong Park
369fe2f322 Update the current API dump
All aidl_interface modules should by default considered as stable, in
case it is used across system and vendor partitions, or across modules.
Like other API surfaces, we need to have a dump for the current
(yet-to-be-released) version and update it when there is an API change.
This is done via .

Then the owner of the interface can freeze the current version as a
numbered version via .

This change shal be rejected only when the owner is certain that the
interface is not used across the updatable boundaries.

Bug: 152655547
Test: m
Change-Id: I93fba2721695a14e0eb4a2173066ce132228b895
Merged-In: I93fba2721695a14e0eb4a2173066ce132228b895
2020-04-08 20:21:58 +09:00
Jiyong Park
db3a8dcdd4 Update the current API dump
All aidl_interface modules should by default considered as stable, in
case it is used across system and vendor partitions, or across modules.
Like other API surfaces, we need to have a dump for the current
(yet-to-be-released) version and update it when there is an API change.
This is done via .

Then the owner of the interface can freeze the current version as a
numbered version via .

This change shal be rejected only when the owner is certain that the
interface is not used across the updatable boundaries.

Bug: 152655547
Test: m
Change-Id: If47c5982894dc99a7f2d1767d64be60b491842c7
Merged-In: If47c5982894dc99a7f2d1767d64be60b491842c7
2020-04-08 20:20:52 +09:00
Jiyong Park
fbaea712a3 Update the current API dump
All aidl_interface modules should by default considered as stable, in
case it is used across system and vendor partitions, or across modules.
Like other API surfaces, we need to have a dump for the current
(yet-to-be-released) version and update it when there is an API change.
This is done via .

Then the owner of the interface can freeze the current version as a
numbered version via .

This change shal be rejected only when the owner is certain that the
interface is not used across the updatable boundaries.

Bug: 152655547
Test: m
Change-Id: Id167905590c0a596b0ed470ef668c47810966836
Merged-In: Id167905590c0a596b0ed470ef668c47810966836
2020-04-08 18:38:49 +09:00
Jiyong Park
b74bd982f9 Update the current API dump
All aidl_interface modules should by default considered as stable, in
case it is used across system and vendor partitions, or across modules.
Like other API surfaces, we need to have a dump for the current
(yet-to-be-released) version and update it when there is an API change.
This is done via .

Then the owner of the interface can freeze the current version as a
numbered version via .

This change shal be rejected only when the owner is certain that the
interface is not used across the updatable boundaries.

Bug: 152655547
Test: m
Change-Id: Idb1c34df81674321911e4a85f9e862b539a3f30c
Merged-In: Idb1c34df81674321911e4a85f9e862b539a3f30c
2020-04-08 18:30:44 +09:00
Jiyong Park
d7fcbb00d7 Update the current API dump
All aidl_interface modules should by default considered as stable, in
case it is used across system and vendor partitions, or across modules.
Like other API surfaces, we need to have a dump for the current
(yet-to-be-released) version and update it when there is an API change.
This is done via .

Then the owner of the interface can freeze the current version as a
numbered version via .

This change shal be rejected only when the owner is certain that the
interface is not used across the updatable boundaries.

Bug: 152655547
Test: m
Change-Id: Ia633e3a143b35626c59b2447c38c1710ee270f0c
Merged-In: Ia633e3a143b35626c59b2447c38c1710ee270f0c
2020-04-08 18:27:11 +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
Shawn Willden
e32c142da4 Remove IOperation and beginOp.
The way I planned for this to work doesn't work.  We'll revisit in
Keymaster5.  For now, removing IOperation and beginOp.

Test: Build & boot
Merged-In: I017d17079380cc3bacc6f05b2486e1b6e6c3f675
Change-Id: I017d17079380cc3bacc6f05b2486e1b6e6c3f675
2020-04-02 12:47:32 -06: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