Commit graph

399 commits

Author SHA1 Message Date
Jooyung Han
d5842aebcd Add faceauth HAL APEX
This moves the faceauth HAL into a vendor apex:
  com.android.hardware.biometrics.face

The contents:

  ./apex_manifest.pb
  ./bin/hw/android.hardware.biometrics.face-service.example
  ./etc/face-default-apex.rc
  ./etc/permissions/android.hardware.biometrics.face.prebuilt.xml
  ./etc/vintf/face-default-apex.xml
  ./lib64/android.hardware.biometrics.common-V2-ndk.so
  ./lib64/android.hardware.biometrics.face-V2-ndk.so
  ./lib64/android.hardware.keymaster-V3-ndk.so

Bug: 279674662
Test: Not installed yet
Test: m com.android.hardware.biometrics.face
Change-Id: I6e52c83601d29bcc6a9ef4e165fab48f3579426c
2023-05-25 17:35:23 +09:00
Diya Bera
414ea865b3 Adding owners
Test: N/A
Bug: 278741020
Change-Id: I586787a31cab0d32d14d43f5f84ceb1e14087aa4
Merged-In: I586787a31cab0d32d14d43f5f84ceb1e14087aa4
2023-04-19 19:18:58 +00:00
Steven Moreland
e489590628 specify import version (I)
Required to automate AIDL finalization - makes errors show up
now instead of later.

Bug: 188871598
Test: build
Change-Id: I6f46a39f76a73f27a71bc36e600941249ccbe8ee
Merged-In: Ic544707bac671d8327d8cc704a9d453470141e8e
2022-12-23 03:49:06 +00:00
Steven Moreland
13666147e9 Mark modules frozen explicitly.
Makes it easier to see which versions are available.

Bug: 188871598
Test: N/A
Change-Id: Iec656df1d0008d95ab50f9bd8806517b95242f00
Merged-In: Ica76a8225fec8dc5267362cbfd43e06e65ad3f1e
2022-12-14 01:47:26 +00:00
Jiyong Park
36e00b0741 Finalize V2 of android.hardware.biometrics.common
It was missing in the prior attempt to finzalize all AIDL interfaces.

Bug: 230660133
Test: m nothing
Change-Id: Icc319c84d57639ce083730a8bf15957e3ab7fe1d
2022-04-28 08:48:50 +09:00
Tim Murray
712f48c217 Fix WorkerThreadTest
Queue capacity needs to be NUM_TASKS + 1 for the extra final cv.notify
at the end.

Test: atest --host --rerun-until-failure 1000 WorkerThreadTest
Bug: b/229801892
Change-Id: I95eb07680fe80cfc3bfafaa2de81c48d61d14b4b
2022-04-20 03:33:16 +00:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00
Joshua Mccloskey
dba89696b0 Updated Face AIDL createSession docs
Test: N/A
Bug: 219081263
Change-Id: I05af5a64ca9275932a026ed43e2061e7fd51d247
2022-03-14 18:16:22 +00:00
Chih-hung Hsieh
34593d4e2a Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: fa83970b3a am: 581616e658
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232

Change-Id: I2eac13fe3b5ab0b4f15d6ceadf376e5e74124a81
2022-02-24 01:32:09 +00:00
Chih-Hung Hsieh
ad1bf31b78 Add timed out test files to tidy_timeout_srcs
* Timed out runs do not show any warning messages.
* These test files cannot finish clang-tidy runs with
  the following settings:
    TIDY_TIMEOUT=90
    WITH_TIDY=1
    CLANG_ANALYZER_CHECKS=1
* When TIDY_TIMEOUT is set, in Android continuous builds,
  tidy_timeout_srcs files will not be compiled by clang-tidy.
  When developers build locally without TIDY_TIMEOUT,
  tidy_timeout_srcs files will be compiled.
* Some of these test modules may be split into smaller ones,
  or disable some time consuming checks, and then
  enable clang-tidy to run within limited time.

Bug: 201099167
Test: make droid tidy-hardware-interfaces_subset
Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-18 17:25:41 -08:00
Ilya Matyukhin
f6e0f39cde Add new fields to fingerprint PointerContext
The new fields provide additional information to the HAL about the touch
events originating from the framework.

Bug: 205915651
Test: m android.hardware.biometrics.common-update-api
Test: m android.hardware.biometrics.fingerprint-update-api
Test: lunch cf_x86_phone-userdebug && m
Change-Id: I987e26ac03e3268eea30feb9bbddffe6ca8d0035
2022-02-07 16:05:32 -08:00
Steven Moreland
22c5b64894 -= src_available (internal)
Default now. To Remove.

Bug: 215754978
Test: N/A
Change-Id: Ie83df828ea2ec892c6586ffa32e9f6c42d83a2fe
2022-01-31 19:52:35 +00:00
Joe Bolinger
25e9823f63 Add update context method to face and fingerprint HAL.
This is needed for changes that occur mid-operation and was lost
from the previous changes when switching from the single context
method to the overloaded approach.

Bug: 204584403
Test: atest VtsHalBiometricsFingerprintTargetTest VtsHalBiometricsFaceTargetTest

Change-Id: Ie917bce9de910a421e19130b6e518bd6fc85298e
2022-01-25 01:19:56 +00:00
Joe Bolinger
7bd42e1b14 Update common and face AIDL for session logging.
Bug: 204585936
Bug: 204584403
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: Icba064c5c48f808327323ab64b7b63f68737a2f8
2022-01-12 16:29:35 -08:00
Joe Bolinger
13cb0fb235 Update common and fingerprint AIDL for session logging.
This also partially reverts commit 1988b3825bc95a0e7e3bb86bfa5bf70ea5323a61 which unnecessarily froze the interface during a prior interface addition.

Bug: 204585936
Bug: 204584403
Test: atest VtsHalBiometricsFingerprintTargetTest
Change-Id: Ibc9934390a487f5bfb9d3678ad65e7b1c3740ae7
2022-01-12 12:31:19 -08:00
Steven Moreland
77b74ffc0a Merge "CHECK -> CHECK_EQ copy pasta" am: a8138bfbf6 am: dd39b5c9d0 am: f711c9d406 am: 53c7517b02
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1921302

Change-Id: I3f32bf37c1c025e82e14ee6c9f0ffde87f6bcbd6
2021-12-14 18:40:32 +00:00
Steven Moreland
ffb03995e6 CHECK -> CHECK_EQ copy pasta
Hey did I start this? We can take a little bit better errors. :)

Bug: N/A
Test: N/A
Change-Id: I0e96f7f49dae9968904333da9b8269694058c11c
2021-12-14 01:45:47 +00:00
Joe Bolinger
ce02213c6a Update fingerprint AIDL with additional display id field.
This enables the HAL to use stable display ids (i.e. config_displayUniqueIdArray).

Bug: 174868353
Test: builds
Change-Id: Ib02e9d026d116df3f9acadf6c083f44b37b4169c
2021-10-25 20:48:04 +00:00
Yiming Pan
b692d61e3d Merge "Add OWNERS for VTS module VtsHalBiometricsFingerprintV2_1TargetTest" am: 9f62451015 am: 29828bc55a am: ad7f738d63 am: 8165cd5d57 am: dfe32de916
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793837

Change-Id: Ib74eaf8e191a45e3a1dab4fcc01227231986fc7b
2021-10-01 01:30:57 +00:00
Yiming Pan
29828bc55a Merge "Add OWNERS for VTS module VtsHalBiometricsFingerprintV2_1TargetTest" am: 9f62451015
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793837

Change-Id: I928b4b4c013f9109190538871b67dade51547fae
2021-10-01 00:36:41 +00:00
Yiming Pan
9f62451015 Merge "Add OWNERS for VTS module VtsHalBiometricsFingerprintV2_1TargetTest" 2021-10-01 00:34:46 +00:00
Treehugger Robot
9bd4c2fa54 Merge "Backfill owner information for VTS module VtsHalBiometricsFingerprintV2_2TargetTest." am: 80d2664e96 am: 1ade669804 am: b71f0a7c41 am: 232efecddc am: f6c290fc31
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814069

Change-Id: I899b0584883d7fd44969db1ca3173df276479803
2021-09-10 18:19:45 +00:00
Treehugger Robot
1ade669804 Merge "Backfill owner information for VTS module VtsHalBiometricsFingerprintV2_2TargetTest." am: 80d2664e96
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1814069

Change-Id: I3c6bd792c8c7a85ef4f31921d997f13d7d18fc9a
2021-09-10 17:22:21 +00:00
Treehugger Robot
80d2664e96 Merge "Backfill owner information for VTS module VtsHalBiometricsFingerprintV2_2TargetTest." 2021-09-10 17:06:41 +00:00
Yiming Pan
e06fdd73c0 Backfill owner information for VTS module VtsHalBiometricsFingerprintV2_2TargetTest.
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: Id9f854295ab38c07a65d87ec32251dd5c2d687cf
2021-08-30 12:58:13 -07:00
Yiming Pan
538c89c06d Add OWNERS for VTS module VtsHalBiometricsFingerprintV2_1TargetTest
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: Idebf408aad47b57901336baecbc2cbfc1cd501b0
2021-08-11 16:38:22 -07:00
Jiyong Park
d55d28a1d0 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I0652f1efe920111d79dd8c2ecd52e55dda54538f
Change-Id: Ib58c9f1cb80d083a3c62d03415610be855b80f03
(cherry picked from commit c426c6dbdc)
2021-08-09 11:20:04 +09:00
Jiyong Park
1519b41bdd Merge "Remove ndk_platform backend. Use the ndk backend." 2021-08-05 13:51:02 +00:00
Jiyong Park
c426c6dbdc Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Change-Id: I0652f1efe920111d79dd8c2ecd52e55dda54538f
2021-08-04 12:48:07 +09:00
Hongguang
92545ca013 Generate face HAL java-source
Bug: 194739778
Test: make and CTS cases in b/194739778
Change-Id: Iaf3cd972402017b4606fc494e4fe02acdca99767
2021-08-02 11:58:43 -07:00
Yiming Pan
6019058f8e Merge "Add OWNERS for VTS module VtsHalBiometricsFaceV1_0TargetTest" am: 031685709c am: 512d88c06c am: b9a5f4d4be am: 881abe7bc0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1773791

Change-Id: If35d1a84e78d52896e03d5fdddd11c9821d78dad
2021-07-30 21:46:16 +00:00
Yiming Pan
b9a5f4d4be Merge "Add OWNERS for VTS module VtsHalBiometricsFaceV1_0TargetTest" am: 031685709c am: 512d88c06c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1773791

Change-Id: I5e6e2e5106d6315432f59e9872d46e207be8b1ff
2021-07-30 21:20:29 +00:00
TreeHugger Robot
e5433ff609 Merge changes from topic "fix-IFace-enroll" into sc-dev am: de4d1e954f am: 33ec14975d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15353380

Change-Id: I84f55ce41e71e961e8d258522af4fc387f7fe2b1
2021-07-27 00:49:57 +00:00
TreeHugger Robot
e7e8fb975a Merge changes from topic "fix-IFace-enroll" into sc-dev am: de4d1e954f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15353380

Change-Id: I20d803aac7971185026439162ba7cc52a58b83db
2021-07-27 00:35:33 +00:00
TreeHugger Robot
de4d1e954f Merge changes from topic "fix-IFace-enroll" into sc-dev
* changes:
  IFace: update VTS test to pass std::nullopt for previewSurface
  IFace: update default implementation to use optional previewSurface
  IFace: annotate the previewSurface as @nullable in enroll
2021-07-27 00:21:27 +00:00
Ilya Matyukhin
f073d4a64c Merge "Update comments for IBiometricsFingerprint@2.3" into sc-dev am: 70b9c17191 am: 0a97ea1364
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15364786

Change-Id: I8912831a1dae9841b3d37c582bcd5e2a2db53385
2021-07-24 03:21:01 +00:00
Ilya Matyukhin
ca3f4c0ac1 Merge "Update comments for IBiometricsFingerprint@2.3" into sc-dev am: 70b9c17191
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15364786

Change-Id: If1aae2740b54c5539d7bced35a47bda6e5022358
2021-07-24 03:08:17 +00:00
Ilya Matyukhin
70b9c17191 Merge "Update comments for IBiometricsFingerprint@2.3" into sc-dev 2021-07-24 02:54:13 +00:00
Ilya Matyukhin
ac11a2e824 Update comments for IBiometricsFingerprint@2.3
This CL adds a comment that discourages use of this interface. The AIDL
interface, IFingerprint, should be used instead.

Bug: 160189286
Test: hidl-gen -L check android.hardware.biometrics.fingerprint@2.3::IBiometricsFingerprint
Change-Id: Ifafb191ac16e03e60d677fce6dc9e41e87bad0c0
2021-07-22 19:39:21 -07:00
Hongguang
87331887db Setting the version explicitly on the face HAL.
Bug: 194348824
Fix: 194348824
Test: make
Change-Id: I35a4778fbd2d64412e4a318ed4a1c356ac68b554
2021-07-22 21:17:30 +00:00
Ilya Matyukhin
14736f1902 Merge changes Ia90c6390,I5b3ed1b8 into sc-dev am: 9581a89057 am: c0d9308881
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15350855

Change-Id: Ia8825424322b14f1c0c48179de0a578422d80986
2021-07-22 19:10:40 +00:00
Ilya Matyukhin
505d154c31 Merge changes Ia90c6390,I5b3ed1b8 into sc-dev am: 9581a89057
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15350855

Change-Id: Ibef116aaaf5d41f5425757c35c579ed0e70c02d7
2021-07-22 19:09:16 +00:00
Ilya Matyukhin
88796f4992 IFace: update VTS test to pass std::nullopt for previewSurface
Bug: 194346408
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I1e945d821d4b91b9a9ea8f74ae6f817ef04a0f85
2021-07-21 22:55:31 -07:00
Ilya Matyukhin
bde61ca1d3 IFace: update default implementation to use optional previewSurface
Bug: 194346408
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I72d3d6d638a1662ebd1a53a7029ea3bf200efe48
2021-07-21 19:01:55 -07:00
Ilya Matyukhin
5beafca660 IFace: annotate the previewSurface as @nullable in enroll
Bug: 194346408
Test: android.hardware.biometrics.face-update-api
Change-Id: Id8809b27f121a738a41abeee66f5c1fd3840cc44
2021-07-21 18:58:15 -07:00
Ilya Matyukhin
9208a09568 IFace: fix default implementation to pass VTS
Bug: 193849101
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: Ia90c639074a6a9ed270f7c499c8816a8c7224b7f
2021-07-21 23:13:43 +00:00
Ilya Matyukhin
61a6d8d72e IFace: fix VTS test to match the interface contract
Bug: 193849101
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I5b3ed1b87244d6265d23c15ef2c2efe4f6155973
2021-07-21 23:12:17 +00:00
Yiming Pan
3f3084890b Add OWNERS for VTS module VtsHalBiometricsFaceV1_0TargetTest
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I0c78fc13402cc43b1f67fbc7eca6bece59b4e268
2021-07-21 15:32:26 -07:00
TreeHugger Robot
c8bef520c4 Merge changes I0b38a98a,I6f8e6ec1 into sc-dev am: 4f53440f87 am: 00487b339f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15193438

Change-Id: I73aaee43e46ffa89be1f4a73b2c3ad88853056b3
2021-07-07 20:50:40 +00:00
TreeHugger Robot
bfe3e8721e Merge changes I0b38a98a,I6f8e6ec1 into sc-dev am: 4f53440f87
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15193438

Change-Id: Ie5cb3aa608b3c16830f13a844608255d31306cb2
2021-07-07 20:37:50 +00:00