Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71005c54 authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Update default HAL with close and reset methods

Bug: 180521746
Test: atest VtsHalBiometricsFingerprintTargetTest
Change-Id: I3331f8185ff90106a2500fe5ca17836e8127add5
parent 4ae95d73
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -58,4 +58,9 @@ ndk::ScopedAStatus Fingerprint::createSession(int32_t /*sensorId*/, int32_t /*us
    *out = SharedRefBase::make<Session>(cb);
    return ndk::ScopedAStatus::ok();
}

ndk::ScopedAStatus Fingerprint::reset() {
    return ndk::ScopedAStatus::ok();
}

}  // namespace aidl::android::hardware::biometrics::fingerprint
+5 −0
Original line number Diff line number Diff line
@@ -99,6 +99,11 @@ ndk::ScopedAStatus Session::resetLockout(int32_t /*cookie*/,
    return ndk::ScopedAStatus::ok();
}

ndk::ScopedAStatus Session::close(int32_t /*cookie*/) {
    LOG(INFO) << "close";
    return ndk::ScopedAStatus::ok();
}

ndk::ScopedAStatus Session::onPointerDown(int32_t /*pointerId*/, int32_t /*x*/, int32_t /*y*/,
                                          float /*minor*/, float /*major*/) {
    LOG(INFO) << "onPointerDown";
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ class Fingerprint final : public BnFingerprint {
    ndk::ScopedAStatus createSession(int32_t sensorId, int32_t userId,
                                     const std::shared_ptr<ISessionCallback>& cb,
                                     std::shared_ptr<ISession>* out) override;

    ndk::ScopedAStatus reset() override;
};

}  // namespace aidl::android::hardware::biometrics::fingerprint
+2 −0
Original line number Diff line number Diff line
@@ -53,6 +53,8 @@ class Session : public BnSession {
    ndk::ScopedAStatus resetLockout(int32_t cookie,
                                    const keymaster::HardwareAuthToken& hat) override;

    ndk::ScopedAStatus close(int32_t cookie) override;

    ndk::ScopedAStatus onPointerDown(int32_t pointerId, int32_t x, int32_t y, float minor,
                                     float major) override;