/* * Copyright (C) 2020 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef VENDOR_LINEAGE_BIOMETRICS_FINGERPRINT_INSCREEN_V1_0_FINGERPRINTINSCREEN_H #define VENDOR_LINEAGE_BIOMETRICS_FINGERPRINT_INSCREEN_V1_0_FINGERPRINTINSCREEN_H #include #include "samsung_fingerprint_inscreen.h" namespace vendor { namespace lineage { namespace biometrics { namespace fingerprint { namespace inscreen { namespace V1_0 { namespace implementation { using ::android::sp; using ::android::hardware::Return; using ::android::hardware::Void; class FingerprintInscreen : public IFingerprintInscreen { public: FingerprintInscreen(); Return onStartEnroll() override; Return onFinishEnroll() override; Return onPress() override; Return onRelease() override; Return onShowFODView() override; Return onHideFODView() override; Return handleAcquired(int32_t acquiredInfo, int32_t vendorCode) override; Return handleError(int32_t error, int32_t vendorCode) override; Return setLongPressEnabled(bool enabled) override; Return getDimAmount(int32_t cur_brightness) override; Return shouldBoostBrightness() override; Return setCallback(const sp& callback) override; Return getPositionX() override; Return getPositionY() override; Return getSize() override; private: std::mutex mCallbackLock; sp mCallback; }; } // namespace implementation } // namespace V1_0 } // namespace inscreen } // namespace fingerprint } // namespace biometrics } // namespace lineage } // namespace vendor #endif // VENDOR_LINEAGE_BIOMETRICS_FINGERPRINT_INSCREEN_V1_0_FINGERPRINTINSCREEN_H