Commit graph

29 commits

Author SHA1 Message Date
Kevin Chyn
ba8e932d1f implemented enumerate method in fingerprintservice
fixes bug 35358801
Test: ran enumeration in template with
1) more fingerprints in fingerprintd
2) more fingerprints in framework
3) no fingerprints in fingerprintd, but fingerprints in framework
4) no fingerprints in framework, but fingerprints in fingerprintd

Change-Id: Id150f0225d597939cf1af6bac218fe0fdeeca93d
2017-02-14 14:45:04 -08:00
Jim Miller
e392a54071 Add missing lockout code to fingerprint.h
This is already in the framework, but wasn't visible in HAL 2.1. Required to
properly enforce HIDL 2.1 compliance.

Bug: 33199080

Test: Fingerprint enroll, remove, unlock, fingerprint arbitration.
Change-Id: I3400005df57fe6ac0f42f70fa17786876202be1f
2017-01-17 11:45:41 -08:00
Jim Miller
e5697baed8 Revert \\\"Fingerprint: Add an API to support throttling.\\\" am: e453c5212a am: 4a2683f893
am: 0ec9f976ed

Change-Id: Ifd08eb97e1a1ad7776bd877ad56cc667f7a9581a
2016-06-15 02:07:38 +00:00
Jim Miller
e453c5212a Revert "Fingerprint: Add an API to support throttling."
This reverts commit 7e9204a954.

Fixes bug 29248095

Change-Id: I60ce4dd96affbc263a14921cbdda59df7e7a65f4
2016-06-14 23:52:23 +00:00
Sasha Levitskiy
6f80210c30 Fingerprint: Unify enumerate() and remove() messaging.
Change-Id: Iffecf2bc89352ffd6d1e99d058414033f8742e95
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2016-05-16 17:04:04 -07:00
Nick Vaccaro
ea09bc8ac6 Fingerprint: Add include of hardware.h
Add include of hardware.h to fingerprint.h to fix a broken master
build issue.

Bug: 28275278
Change-Id: I460a83f814d4ea9db8dff05bfcc463de19081634
2016-04-19 15:09:39 -07:00
Sasha Levitskiy
7e9204a954 Fingerprint: Add an API to support throttling.
Bug: 22568569
Change-Id: I948ac0f55bc5fbc61d0eacdc5caef0e2bf0746a2
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2016-01-07 15:26:06 -08:00
Sasha Levitskiy
c7ffe16a62 Fingerprint: Change enumerate() to asynchronous mode.
Bug: 25244240
Change-Id: If337241594b8c52737a14d476c1db96930b62a48
2015-10-28 16:55:00 -07:00
Jim Miller
929e0a194e Add better documentation to fingerprint.h
Some vendors are confused by the use of errors vs acquired messages
This adds documentation on how they should be used.

Fixes bug 22728578

Change-Id: I5e6a8f7b159ec331a59202fa64b7320e43661429
2015-07-28 22:01:41 +00:00
Sasha Levitskiy
a36ffbe0bb Fingerprint: Add post_enroll() API, adapt struct for binary compatibility, doc change.
Change-Id: If7e5738f921b0e91e46efc813d9f3c4bd1502832
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-06-26 15:10:20 -07:00
Sasha Levitskiy
d4331fdae5 Fingerprint: Avoid passing structures where simple types should suffice.
Bug: 21282699

Change-Id: I02e13b7da0ad361a95b981f9745aac039151f356
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-06-10 14:10:47 -07:00
Sasha Levitskiy
a70ab95eea Fingerprint: Remove unused API elements.
Change-Id: Iba2f6a5bc7a2923c3e9b92684a2fab2190f14fd5
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-06-08 14:00:39 -07:00
Sasha Levitskiy
0a544125ca Fingerprint: Clean up documentaion for template delete.
Change-Id: Ibe991d5f5e4bb77a859284a8f890a6bccc663448
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-05-15 15:46:47 -07:00
Sasha Levitskiy
e0a2988b82 Fingerprint: Add enumerate function to FP HAL
Change-Id: I4a1da563a96a1e097ea56e0dced8c02820aa8485
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-05-12 16:35:15 -07:00
Sasha Levitskiy
7eb7235c33 Fingerprint: Add storage path to set_active_group()
Change-Id: Ic6e7ad21cd3a253a38a6291bf08517c7e441af2b
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-05-07 19:25:00 -07:00
Sasha Levitskiy
468b567316 Fingerprint: Add an API to get authenticator id
Change-Id: If45ebc228425eaa43bf9abde934f8bb4e7d97e6c
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-04-16 21:52:28 +00:00
Sasha Levitskiy
6eced703e6 Fingerprint: Add auth token to enroll
Change-Id: Ied10a03213b8473b1a625229a75b7af6126d635a
2015-04-14 15:25:08 -07:00
Jim Miller
1e1f7ba5c9 Clean up FingerprintManager API and make it public.
Change-Id: I416dcc42fd70926875cc77e0c2cc958fdfcd9f9d
2015-04-11 09:21:56 -07:00
Jim Miller
1fb1e33454 Update fingerprint.h for new API
This adds vendor-specific messaging capabilities to the
HAL driver to avoid the possibility of vendors clobbering
general-purpose methods. The framework translates these
additional messages as an offset into a custom message array.

Additionally, authenticate() now takes a group id to restrict
authentication to a subset of possible fingerprints.

Bug 16487912

Change-Id: I8a92a6c86b4729af03a5576b4a150b1c73fbc9cc
2015-03-24 19:27:57 -07:00
Sasha Levitskiy
3b7402ef30 hardware: libhardware: introduce new fingerprint HAL 2.0 features.
Change-Id: I4ab0a511417742a4b0b912ebf98a3773ec22bb10
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-02-17 15:57:35 -08:00
Jim Miller
953524b2bd Minor cleanup of HAL fingerprint API
Change-Id: I7a4b1caadfe499d2394c8645e45903759b672e8b
2014-06-16 21:06:13 -07:00
Sasha Levitskiy
ba45e05a6a HAL: Fingerprint: Incremental scan notification.
Change-Id: If943fe6b46a8261ca936e07a36e11c10c7e6d63a
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-06-11 10:17:25 -07:00
Sasha Levitskiy
969466c75b Libhardware: HAL: Fingerprint: Add template collection progress hint; remove match confidence.
Change-Id: I62ce57054b7e0cfda8aa260176e504113677d993
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-05-16 15:48:25 -07:00
Stewart Miles
84d35492b1 Described restrictions for common HAL object methods.
Inheritance of HAL object is performed by composing a child structure of a
single parent structure located at offset 0 followed by new data members
and function pointers in the child structure.

For example,

struct child {
  struct parent common;
  int a_data_member;
  void (*a_method)(struct child *c, int v);
};

HAL code assumes this layout when accessing child structures given a pointer
to a parent structure such that users write code like the following...

void child_method(struct *parent, int v) {
  struct child * c = (struct child*)parent;
  // do stuff with c
}

Code above will break if a member is added before "common" in "struct child".

This change adds comments that describe the restriction on the location of
parent HAL objects within a derived HAL object.  HAL objects that already
have comments that describe the required location of parent objects are not
modified.

Change-Id: Ibe4300275286ef275b2097534c84f1029d761d87
2014-05-12 12:35:37 -07:00
Sasha Levitskiy
0d1cd3fcc2 Hardware: Fingerprint: HAL adds removed notification, normalizes names.
Change-Id: Id0a8e120043c00bf351aa1c9d3f0c06c2e4af947
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-04-30 15:17:31 -07:00
Sasha Levitskiy
cc14f23c97 Hardware: Fingerprint: Fix structure name.
Change-Id: I7a2593837148ad80df970d89950f396c7704e71b
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-04-24 09:52:47 -07:00
Sasha Levitskiy
3b9ee8d82f Hardware: Fingerprint: Fix the remove() argument, typos.
Change-Id: I99e8e2f24f0264c2217d67a75fe437756596053c
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-04-23 10:05:57 -07:00
Sasha Levitskiy
7308284e4e Hardware: Fingerprint: Move the HAL to an async model, add some vendor requested functionality.
Change-Id: Ib99e3edb99579ac4495918eb57d1022d75dccb57
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-04-22 10:50:50 -07:00
Sasha Levitskiy
a747c069c6 Hardware: Fingerprint: Introducing Fingerprint HAL
Change-Id: I4e55c42841c3b6a1327a16bdf6d1d4bb3847c7f3
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2014-04-07 18:14:34 +00:00