diff --git a/fod/FingerprintInscreen.cpp b/fod/FingerprintInscreen.cpp index c541493..cc8e5a7 100644 --- a/fod/FingerprintInscreen.cpp +++ b/fod/FingerprintInscreen.cpp @@ -126,7 +126,7 @@ Return FingerprintInscreen::setLongPressEnabled(bool) { return Void(); } -Return FingerprintInscreen::getDimAmount(int32_t brightness) { +Return FingerprintInscreen::getDimAmount(int32_t /* brightness */) { int realBrightness = get(BRIGHTNESS_PATH, 0); float alpha; @@ -136,8 +136,6 @@ Return FingerprintInscreen::getDimAmount(int32_t brightness) { alpha = 1.0 - pow(realBrightness / 1680.0, 0.455); } - (void) brightness; - return 255 * alpha; } @@ -145,8 +143,7 @@ Return FingerprintInscreen::shouldBoostBrightness() { return false; } -Return FingerprintInscreen::setCallback(const sp<::vendor::lineage::biometrics::fingerprint::inscreen::V1_0::IFingerprintInscreenCallback>& callback) { - (void) callback; +Return FingerprintInscreen::setCallback(const sp& /* callback */) { return Void(); } diff --git a/fod/FingerprintInscreen.h b/fod/FingerprintInscreen.h index 30f362b..9ee8ac4 100644 --- a/fod/FingerprintInscreen.h +++ b/fod/FingerprintInscreen.h @@ -50,7 +50,7 @@ public: Return setLongPressEnabled(bool enabled) override; Return getDimAmount(int32_t brightness) override; Return shouldBoostBrightness() override; - Return setCallback(const sp<::vendor::lineage::biometrics::fingerprint::inscreen::V1_0::IFingerprintInscreenCallback>& callback) override; + Return setCallback(const sp& callback) override; private: sp xiaomiFingerprintService;