|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
#define LOG_TAG "UdfpsHandler.xiaomi_sm8450"
|
|
|
|
|
|
+#include <aidl/android/hardware/biometrics/fingerprint/BnFingerprint.h>
|
|
|
#include <android-base/logging.h>
|
|
|
#include <android-base/properties.h>
|
|
|
#include <android-base/unique_fd.h>
|
|
@@ -38,6 +39,8 @@
|
|
|
|
|
|
#define FOD_PRESS_STATUS_PATH "/sys/class/touch/touch_dev/fod_press_status"
|
|
|
|
|
|
+using ::aidl::android::hardware::biometrics::fingerprint::AcquiredInfo;
|
|
|
+
|
|
|
namespace {
|
|
|
|
|
|
static bool readBool(int fd) {
|
|
@@ -203,7 +206,7 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
|
|
|
|
|
|
void onAcquired(int32_t result, int32_t vendorCode) {
|
|
|
LOG(DEBUG) << __func__ << " result: " << result << " vendorCode: " << vendorCode;
|
|
|
- if (result == FINGERPRINT_ACQUIRED_GOOD) {
|
|
|
+ if (static_cast<AcquiredInfo>(result) == AcquiredInfo::GOOD) {
|
|
|
setFingerDown(false);
|
|
|
}
|
|
|
}
|