summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Levitskiy2015-12-03 15:50:53 -0600
committerSasha Levitskiy2015-12-04 12:07:55 -0600
commite270da9421847d54fca11b6595a3c646659751fc (patch)
tree2344ee122c86a8b9441fb474ddcc4146f2b889c8 /fingerprintd/FingerprintDaemonProxy.cpp
parent2089758475031d2689f0d498a54e2681da2cce02 (diff)
downloadplatform-system-core-e270da9421847d54fca11b6595a3c646659751fc.tar.gz
platform-system-core-e270da9421847d54fca11b6595a3c646659751fc.tar.xz
platform-system-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) {
88 msg->data.removed.finger.fid, 88 msg->data.removed.finger.fid,
89 msg->data.removed.finger.gid); 89 msg->data.removed.finger.gid);
90 break; 90 break;
91 case FINGERPRINT_TEMPLATE_ENUMERATING:
92 ALOGD("onEnumerate(fid=%d, gid=%d, rem=%d)",
93 msg->data.enumerated.finger.fid,
94 msg->data.enumerated.finger.gid,
95 msg->data.enumerated.remaining_templates);
96 callback->onEnumerate(device,
97 msg->data.enumerated.finger.fid,
98 msg->data.enumerated.finger.gid,
99 msg->data.enumerated.remaining_templates);
100 break;
91 default: 101 default:
92 ALOGE("invalid msg type: %d", msg->type); 102 ALOGE("invalid msg type: %d", msg->type);
93 return; 103 return;
@@ -158,6 +168,11 @@ int32_t FingerprintDaemonProxy::remove(int32_t fingerId, int32_t groupId) {
158 return mDevice->remove(mDevice, groupId, fingerId); 168 return mDevice->remove(mDevice, groupId, fingerId);
159} 169}
160 170
171int32_t FingerprintDaemonProxy::enumerate() {
172 ALOG(LOG_VERBOSE, LOG_TAG, "enumerate()\n");
173 return mDevice->enumerate(mDevice);
174}
175
161uint64_t FingerprintDaemonProxy::getAuthenticatorId() { 176uint64_t FingerprintDaemonProxy::getAuthenticatorId() {
162 return mDevice->get_authenticator_id(mDevice); 177 return mDevice->get_authenticator_id(mDevice);
163} 178}