mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Update default HAL with close and reset methods
Bug: 180521746 Test: atest VtsHalBiometricsFingerprintTargetTest Change-Id: I3331f8185ff90106a2500fe5ca17836e8127add5
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user