Loading biometrics/fingerprint/2.1/default/BiometricsFingerprint.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -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"); } Loading @@ -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, Loading @@ -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, Loading @@ -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<const uint8_t *>(&msg->data.authenticated.hat); const hidl_vec<uint8_t> token( Loading @@ -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, Loading Loading
biometrics/fingerprint/2.1/default/BiometricsFingerprint.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -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"); } Loading @@ -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, Loading @@ -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, Loading @@ -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<const uint8_t *>(&msg->data.authenticated.hat); const hidl_vec<uint8_t> token( Loading @@ -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, Loading