From 10dfcc14dcab31318db1a73d2788d4e28656e487 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Tue, 25 Apr 2017 14:02:59 -0700 Subject: Add onAcquired log back It was in fingerprintd, which is replaced now Fixes: 37677260 Test: touch FP when enrolling/authenticating and make sure onAcquired log is there Change-Id: Iadecdfa1c18b0aaa083de18dbe7f701c78465ace --- .../fingerprint/2.1/default/BiometricsFingerprint.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'biometrics') diff --git a/biometrics/fingerprint/2.1/default/BiometricsFingerprint.cpp b/biometrics/fingerprint/2.1/default/BiometricsFingerprint.cpp index 16197d793..c6774ca22 100644 --- a/biometrics/fingerprint/2.1/default/BiometricsFingerprint.cpp +++ b/biometrics/fingerprint/2.1/default/BiometricsFingerprint.cpp @@ -268,6 +268,7 @@ void BiometricsFingerprint::notify(const fingerprint_msg_t *msg) { case FINGERPRINT_ERROR: { int32_t vendorCode = 0; FingerprintError result = VendorErrorFilter(msg->data.error, &vendorCode); + ALOGD("onError(%d)", result); if (!thisPtr->mClientCallback->onError(devId, result, vendorCode).isOk()) { ALOGE("failed to invoke fingerprint onError callback"); } @@ -277,12 +278,17 @@ void BiometricsFingerprint::notify(const fingerprint_msg_t *msg) { int32_t vendorCode = 0; FingerprintAcquiredInfo result = VendorAcquiredFilter(msg->data.acquired.acquired_info, &vendorCode); + ALOGD("onAcquired(%d)", result); if (!thisPtr->mClientCallback->onAcquired(devId, result, vendorCode).isOk()) { ALOGE("failed to invoke fingerprint onAcquired callback"); } } break; case FINGERPRINT_TEMPLATE_ENROLLING: + ALOGD("onEnrollResult(fid=%d, gid=%d, rem=%d)", + msg->data.enroll.finger.fid, + msg->data.enroll.finger.gid, + msg->data.enroll.samples_remaining); if (!thisPtr->mClientCallback->onEnrollResult(devId, msg->data.enroll.finger.fid, msg->data.enroll.finger.gid, @@ -291,6 +297,10 @@ void BiometricsFingerprint::notify(const fingerprint_msg_t *msg) { } break; case FINGERPRINT_TEMPLATE_REMOVED: + ALOGD("onRemove(fid=%d, gid=%d, rem=%d)", + msg->data.removed.finger.fid, + msg->data.removed.finger.gid, + msg->data.removed.remaining_templates); if (!thisPtr->mClientCallback->onRemoved(devId, msg->data.removed.finger.fid, msg->data.removed.finger.gid, @@ -300,6 +310,9 @@ void BiometricsFingerprint::notify(const fingerprint_msg_t *msg) { break; case FINGERPRINT_AUTHENTICATED: if (msg->data.authenticated.finger.fid != 0) { + ALOGD("onAuthenticated(fid=%d, gid=%d)", + msg->data.authenticated.finger.fid, + msg->data.authenticated.finger.gid); const uint8_t* hat = reinterpret_cast(&msg->data.authenticated.hat); const hidl_vec token( @@ -321,6 +334,10 @@ void BiometricsFingerprint::notify(const fingerprint_msg_t *msg) { } 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); if (!thisPtr->mClientCallback->onEnumerate(devId, msg->data.enumerated.finger.fid, msg->data.enumerated.finger.gid, -- cgit v1.2.3