/* * Copyright (C) 2024 The LineageOS Project * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include using ::aidl::android::hardware::biometrics::common::ICancellationSignal; using ::aidl::android::hardware::biometrics::common::OperationContext; using ::aidl::android::hardware::biometrics::fingerprint::PointerContext; using ::aidl::android::hardware::keymaster::HardwareAuthToken; namespace aidl { namespace android { namespace hardware { namespace biometrics { namespace fingerprint { class Session : public BnSession { public: ndk::ScopedAStatus generateChallenge() override; ndk::ScopedAStatus revokeChallenge(int64_t challenge) override; ndk::ScopedAStatus enroll(const HardwareAuthToken& hat, std::shared_ptr* out) override; ndk::ScopedAStatus authenticate(int64_t operationId, std::shared_ptr* out) override; ndk::ScopedAStatus detectInteraction( std::shared_ptr* out) override; ndk::ScopedAStatus enumerateEnrollments() override; ndk::ScopedAStatus removeEnrollments(const std::vector& enrollmentIds) override; ndk::ScopedAStatus getAuthenticatorId() override; ndk::ScopedAStatus invalidateAuthenticatorId() override; ndk::ScopedAStatus resetLockout(const HardwareAuthToken& hat) override; ndk::ScopedAStatus close() override; ndk::ScopedAStatus onPointerDown(int32_t pointerId, int32_t x, int32_t y, float minor, float major) override; ndk::ScopedAStatus onPointerUp(int32_t pointerId) override; ndk::ScopedAStatus onUiReady() override; ndk::ScopedAStatus authenticateWithContext( int64_t operationId, const OperationContext& context, std::shared_ptr* out) override; ndk::ScopedAStatus enrollWithContext( const HardwareAuthToken& hat, const OperationContext& context, std::shared_ptr* out) override; ndk::ScopedAStatus detectInteractionWithContext( const OperationContext& context, std::shared_ptr* out) override; ndk::ScopedAStatus onPointerDownWithContext(const PointerContext& context) override; ndk::ScopedAStatus onPointerUpWithContext(const PointerContext& context) override; ndk::ScopedAStatus onContextChanged(const OperationContext& context) override; ndk::ScopedAStatus onPointerCancelWithContext(const PointerContext& context) override; ndk::ScopedAStatus setIgnoreDisplayTouches(bool shouldIgnore) override; }; } // namespace fingerprint } // namespace biometrics } // namespace hardware } // namespace android } // namespace aidl