Commit graph

176 commits

Author SHA1 Message Date
Dan Shi
f2b950f470 Rename vts-core to vts
Bug: 151896491
Test: none
Change-Id: If74547c56b46ebc7fd728c1bf52fe9dedac65ffa
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-09-26 04:11:28 +00:00
Xin Li
36dcf1a404 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I6502829205ede2de914b27e6c2c5c42916af2b39
Change-Id: I7cb06511e43bd1fffd5f80a11dbdf5b1314cfe8e
2020-08-28 13:05:04 -07:00
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Jooyung Han
d18cba85fe update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-02 12:26:37 +09:00
Robin Jacob
3d5ea8a757 Merge "Add a delay between tests to make them more robust" into rvc-dev am: ad15d6c05a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11392730

Change-Id: Ic34a9f77830bca7bedae3777450b6cc5ddc439ec
2020-06-15 17:48:15 +00:00
Robin Jacob
ad15d6c05a Merge "Add a delay between tests to make them more robust" into rvc-dev 2020-06-15 17:34:42 +00:00
Ilya Matyukhin
798629af9e Reduce the number of iterations in PreEnrollTest am: 744b028807
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11712201

Change-Id: I83175791dd8538ff1e4c7846835a01ebfb0c9a75
2020-06-04 20:56:25 +00:00
Ilya Matyukhin
744b028807 Reduce the number of iterations in PreEnrollTest
The current number of iterations is too high and results in a timeout
from the testing framework.

The goal of the test is to make sure that the generated challenges are
different on every run. It's impossible to test whether any two
challenges will ever be the same for any number of iterations. Hence,
since a 1000 iterations doesn't provide much more value over 10
iterations, 10 was chosen because of its better performance.

Bug: 155844206
Test: "atest VtsHalBiometricsFingerprintV2_1TargetTest" on a blueline
Change-Id: I5db887bdcfed8fb0e44fcedcf9e99dd185d395c3
2020-06-03 01:09:22 +00:00
Ilya Matyukhin
92ecc4827f Add a delay between tests to make them more robust
Bug: 154342874
Test: atest VtsHalBiometricsFaceV1_0TargetTest
Change-Id: I09713b6814ecb9f4ee4a7f568b1f891a94f4e017
2020-05-08 18:39:40 +00:00
Roman Kiryanov
761c93e3b9 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>
Merged-In: I97ad0451bb3edfe85d33300baaa41c3fbc5c3cc6
Change-Id: I11c8ebea731f5e7b24ee483d20a8cd25fd01be38
2020-04-13 21:12:53 -07:00
Treehugger Robot
9e1e29b25c Merge "Add vintf_fragments to android.hardware.biometrics.fingerprint@2.1-service" am: 542841648c am: 0433361fd5
Change-Id: Id9b1e200f54d18c585331009f978edba91e3df05
2020-04-10 18:05:48 +00:00
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
Dan Shi
eb5f33e0ef Rename vts-core to vts am: ba894f81db am: 55d110bcd0
Change-Id: Ifc137320af42febc24937f09e5baa4c5a95ac1c4
2020-04-07 23:56:42 +00:00
Dan Shi
aad51fa000 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 16:37:40 -07: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
Ilya Matyukhin
49120d936c Remove enroll_2_2 and authenticate_2_2
Bug: 139317981
Bug: 149502271
Test: m vts -j
Test: vts-tradefed run commandAndExit vts -m VtsHalBiometricsFingerprintV2_2Target
Change-Id: I80492f324753291be4118de95e16ec370004afc8
2020-03-24 14:09:16 -07:00
Ilya Matyukhin
9a471eb8be Revert "Define biometrics.face@1.1 with remote enrollment"
This reverts commit ec0b6e26ea.

Reason for revert: this interface is untested in R.

Bug: 151331855
Bug: 149502271
Change-Id: I5d63c6e52c540af328fe108bff1861d16990a6b4
2020-03-24 14:09:16 -07:00
Ilya Matyukhin
32142e7c41 Revert "Add VTS tests for biometrics.face@1.1"
This reverts commit f21a4f0aee.

Reason for revert: this interface is untested in R.

Bug: 151331855
Change-Id: I6fbdd846a9ea56d1595347d0321fbf9018015da7
2020-03-24 14:09:16 -07:00
Ilya Matyukhin
1c0e3b7e57 Move default implementation from 1.1 to 1.0
Bug: 151331855
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_0Target
Change-Id: I4a0d136faacd427ac28970d1a30a374cb6618393
2020-03-24 14:09:16 -07:00
Ilya Matyukhin
921df7abd2 Revert "Add enroll_1_1 with preview window id"
This reverts commit 7ab5ab85d0.

Reason for revert: this interface is untested in R.

Bug: 151331855
Bug: 149502271
Change-Id: I819adb2910e70243e19e273675ad15de7736279a
2020-03-24 14:09:16 -07:00
Ilya Matyukhin
7ab5ab85d0 Add enroll_1_1 with preview window id
Bug: 145562442
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_0Target
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_1Target
Change-Id: I7839fe162dc31c71cc33ae226a23a2239a2093a1
2020-01-23 23:15:25 -08:00
Ilya Matyukhin
366cc53714 Add default implementation for biometrics.face@1.1
Bug: 145027036
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_0Target
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_1Target
Change-Id: I1aa682644b9b60705a1a8bf40867414b9fc99cd6
2020-01-23 23:15:25 -08:00
Ilya Matyukhin
e524913161 Merge changes from topic "biometrics.fingerprint@2.2"
* changes:
  Add VTS tests for biometrics.fingerprint@2.2
  Define biometrics.fingerprint@2.2
2020-01-23 06:00:40 +00:00
Ilya Matyukhin
b05fa96baa Add VTS tests for biometrics.fingerprint@2.2
Bug: 139317981
Test: m vts -j
Test: vts-tradefed run commandAndExit vts -m VtsHalBiometricsFingerprintV2_2Target
Change-Id: I9119de5e690163fbb9ddbb38b117206e8c95a279
2020-01-22 17:55:47 -08:00
Ilya Matyukhin
671c59917d Define biometrics.fingerprint@2.2
This interface allows to pass a hardware window ID to the enroll and
authenticate methods. Also, FingerprintAcquiredInfo::START is
introduced to make latency measurements possible.

Bug: 139317981
Test: hidl-gen -L check android.hardware.biometrics.fingerprint@2.2

Change-Id: Ie044764984776d32ab52ca941cfa008202eca2c6
2020-01-22 17:55:42 -08:00
Ilya Matyukhin
f21a4f0aee Add VTS tests for biometrics.face@1.1
Bug: 145027036
Test: m vts -j
Change-Id: I14c64aa784291c9027bf6888139f90d53908cf92
2020-01-22 10:50:12 -08:00
Ilya Matyukhin
ec0b6e26ea Define biometrics.face@1.1 with remote enrollment
Bug: 145027036
Test: hidl-gen -L check android.hardware.biometrics.face@1.1

Change-Id: I3b5cc1e7852509012aab7fea078b12b76bd83abb
2020-01-22 10:50:12 -08:00
Treehugger Robot
78e5470dbc Merge "[vts-core] add VtsHalBiometricsFaceV1_0TargetTest to vts-core" 2019-11-24 08:44:43 +00:00
nelsonli
809ea677bf [vts-core] add VtsHalBiometricsFaceV1_0TargetTest to vts-core
Convert VtsHalBiometricsFaceV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Bug: 144744276
Test: $atest VtsHalBiometricsFaceV1_0TargetTest
Change-Id: I7b5839619885f05ed8a24d6c2fefe0ffa92cb644
2019-11-19 08:09:07 +00:00
Ilya Matyukhin
a10570cdd7 Check for the correct userId in callbacks
Sync the code to aosp, then we can start to covert it to parameterized test.

Bug: 142397658
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_0Target
Change-Id: I0c9478d635f67c8ac5c4b47c022d76a6f91de230
2019-11-15 08:43:06 +00:00
nelsonli
6bc848ea73 [vts-core] add VtsHalBiometricsFingerprintV2_1TargetTest to vts-core
Bug: 142397658
Test: $ atest VtsHalBiometricsFingerprintV2_1TargetTest
Change-Id: I04baa4f4dbc07f927d1a8c05f691dd63bb098a97
2019-10-24 14:57:11 +08:00
nelsonli
6fe484ca11 [vts-core] add VtsHalBiometricsFingerprintV2_1TargetTest to vts-core
Convert VtsHalBiometricsFingerprintV2_1TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $ atest VtsHalBiometricsFingerprintV2_1TargetTest
Change-Id: I076d3de4398e071370f3386817b8248a13eb9352
2019-10-18 01:30:09 +08:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Ilya Matyukhin
87e8bab583 Update VTS tests to support the latest BiometricsFace.hal
am: 00bc962dea

Change-Id: Id60d66891fe93c719be7a4f6aa009c58475c6ab0
2019-06-28 12:13:02 -07:00
Ilya Matyukhin
00bc962dea Update VTS tests to support the latest BiometricsFace.hal
Bug: 134967390
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_0Target
Change-Id: Ifbd04d127626315efd8c8ce36636e550cbb843ff
2019-06-27 17:41:36 -07:00
Steven Moreland
99712c08cc Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I53e5bf67a0d314e1b10c0ba0c7172a7af358ddcc
2019-04-18 18:13:05 -07:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Kevin Chyn
6424d7ea26 Address HIDL review comments
Fixes: 127852175

Test: builds
Test: hidl-gen -L hash -r android.hardware:hardware/interfaces android.hardware.biometrics.face@1.0
      hash added to current.txt
Test: make -j56 VtsHalBiometricsFaceV1_0TargetTest

Change-Id: I4a8b6db5824a686ec742ed826ff26e721ff26dc8
2019-03-11 18:56:17 -07:00
Kevin Chyn
b936d1d684 Add SENSOR_DIRTY constant
Fixes: 127993599

Test: Test: hidl-gen -L hash -r android.hardware:hardware/interfaces android.hardware.biometrics.face@1.0
      add updated hash to current.txt
Test: Builds

Change-Id: I98a7953f3a99f263709a15f143a3ca5fd062b489
2019-03-11 11:21:14 -07:00
Kevin Chyn
41b986fb1a Merge "Finalize IBiometricsFace@1.0" 2019-03-06 19:29:58 +00:00
Kevin Chyn
25fe23f55f Finalize IBiometricsFace@1.0
Also update VTS tests

Fixes: 125936336
Fixes: 124512763
Fixes: 123262389

Test: hidl-gen -L hash -r android.hardware:hardware/interfaces android.hardware.biometrics.face@1.0
      add updated hash to current.txt
Test: Builds

Change-Id: I7949b251064d4578a89f6da834aadbfdf7e9a94f
2019-03-05 18:14:51 -08:00
Steven Moreland
87f43604b9 Merge "Update makefies: no 'types' internal" 2019-03-05 17:40:03 +00:00
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Steven Moreland
b91ac5c6a0 Update makefies: no 'types' internal
Bug: 123976090
Test: N/A
Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
2019-03-04 14:09:25 -08:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Ilya Matyukhin
1a34e407bf Implemented VTS tests for BiometricsFace.hal
Test: manually built and ran the tests
Fixes: 110708105
Change-Id: Id2882436b2346032b080cee16a9fc289ee3dbdc2
2019-03-01 10:54:38 -08:00
Kevin Chyn
1c16445989 resetLockout should return Status instead of bool
The actual lockout reset is asynchronous and returns its result in the
onLockoutChanged() callback

Bug: 121196511
Bug: 121198195
Bug: 123262389

Test: Builds
Change-Id: Ia5fd34d77ae1f8dba1a943e0e1fc51d458753090
2019-02-13 14:11:29 -08:00
Kevin Chyn
2065f80836 Merge "Add onLockoutChanged for IBiometricsFace" 2019-02-13 17:40:27 +00:00