summaryrefslogtreecommitdiffstats
path: root/fingerprintd/FingerprintDaemonProxy.cpp
diff options
context:
space:
mode:
authorSasha Levitskiy <sanek@google.com>2015-12-03 13:50:53 -0800
committerSasha Levitskiy <sanek@google.com>2015-12-04 10:07:55 -0800
commite270da9421847d54fca11b6595a3c646659751fc (patch)
tree2344ee122c86a8b9441fb474ddcc4146f2b889c8 /fingerprintd/FingerprintDaemonProxy.cpp
parent2089758475031d2689f0d498a54e2681da2cce02 (diff)
downloadcore-e270da9421847d54fca11b6595a3c646659751fc.tar.gz
core-e270da9421847d54fca11b6595a3c646659751fc.tar.bz2
core-e270da9421847d54fca11b6595a3c646659751fc.zip
Fingerprint: Plumb enumerate support.
Change-Id: I5794f80404faf68d04f7b3f3b7346b9e28c99881 Signed-off-by: Sasha Levitskiy <sanek@google.com>
Diffstat (limited to 'fingerprintd/FingerprintDaemonProxy.cpp')
-rw-r--r--fingerprintd/FingerprintDaemonProxy.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/fingerprintd/FingerprintDaemonProxy.cpp b/fingerprintd/FingerprintDaemonProxy.cpp
index beb95de73..1c7da30c3 100644
--- a/fingerprintd/FingerprintDaemonProxy.cpp
+++ b/fingerprintd/FingerprintDaemonProxy.cpp
@@ -88,6 +88,16 @@ void FingerprintDaemonProxy::hal_notify_callback(const fingerprint_msg_t *msg) {
msg->data.removed.finger.fid,
msg->data.removed.finger.gid);
break;
+ case FINGERPRINT_TEMPLATE_ENUMERATING:
+ ALOGD("onEnumerate(fid=%d, gid=%d, rem=%d)",
+ msg->data.enumerated.finger.fid,
+ msg->data.enumerated.finger.gid,
+ msg->data.enumerated.remaining_templates);
+ callback->onEnumerate(device,
+ msg->data.enumerated.finger.fid,
+ msg->data.enumerated.finger.gid,
+ msg->data.enumerated.remaining_templates);
+ break;
default:
ALOGE("invalid msg type: %d", msg->type);
return;
@@ -158,6 +168,11 @@ int32_t FingerprintDaemonProxy::remove(int32_t fingerId, int32_t groupId) {
return mDevice->remove(mDevice, groupId, fingerId);
}
+int32_t FingerprintDaemonProxy::enumerate() {
+ ALOG(LOG_VERBOSE, LOG_TAG, "enumerate()\n");
+ return mDevice->enumerate(mDevice);
+}
+
uint64_t FingerprintDaemonProxy::getAuthenticatorId() {
return mDevice->get_authenticator_id(mDevice);
}