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

Commit e52cae0f authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Update default HAL with close and reset methods

Bug: 180625923
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: Ie0881ec827a7ab0c277373da36ecdf3502ef0f15
parent 42a10631
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -63,4 +63,8 @@ ndk::ScopedAStatus Face::createSession(int32_t /*sensorId*/, int32_t /*userId*/,
    return ndk::ScopedAStatus::ok();
}

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

}  // namespace aidl::android::hardware::biometrics::face
+2 −0
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@ class Face : public BnFace {
    ndk::ScopedAStatus createSession(int32_t sensorId, int32_t userId,
                                     const std::shared_ptr<ISessionCallback>& cb,
                                     std::shared_ptr<ISession>* _aidl_return) override;

    ndk::ScopedAStatus reset() override;
};

}  // namespace aidl::android::hardware::biometrics::face
+4 −0
Original line number Diff line number Diff line
@@ -142,4 +142,8 @@ ndk::ScopedAStatus Session::resetLockout(int32_t /*cookie*/,
    return ndk::ScopedAStatus::ok();
}

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

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

    ndk::ScopedAStatus close(int32_t cookie) override;

  private:
    std::shared_ptr<ISessionCallback> cb_;
};