From de2610f075e954f5d2ebc040a7c2e21d90dcc199 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Tue, 20 Oct 2020 18:26:50 -0700 Subject: [PATCH] Add default implementation for several methods Test: atest FingerprintServiceTest Bug: 170518383 Change-Id: If724d26e85967a4b3ec07c22c706efca5cfc3f86 --- biometrics/fingerprint/aidl/default/Session.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/biometrics/fingerprint/aidl/default/Session.cpp b/biometrics/fingerprint/aidl/default/Session.cpp index 372066d2d7..96f1e561b0 100644 --- a/biometrics/fingerprint/aidl/default/Session.cpp +++ b/biometrics/fingerprint/aidl/default/Session.cpp @@ -55,15 +55,27 @@ ndk::ScopedAStatus Session::detectInteraction( } ndk::ScopedAStatus Session::enumerateEnrollments(int32_t /*cookie*/) { + if (cb_) { + cb_->onStateChanged(0, SessionState::ENUMERATING_ENROLLMENTS); + cb_->onEnrollmentsEnumerated(std::vector()); + } return ndk::ScopedAStatus::ok(); } ndk::ScopedAStatus Session::removeEnrollments(int32_t /*cookie*/, const std::vector& /*enrollmentIds*/) { + if (cb_) { + cb_->onStateChanged(0, SessionState::REMOVING_ENROLLMENTS); + cb_->onEnrollmentsRemoved(std::vector()); + } return ndk::ScopedAStatus::ok(); } ndk::ScopedAStatus Session::getAuthenticatorId(int32_t /*cookie*/) { + if (cb_) { + cb_->onStateChanged(0, SessionState::GETTING_AUTHENTICATOR_ID); + cb_->onAuthenticatorIdRetrieved(0 /* authenticatorId */); + } return ndk::ScopedAStatus::ok(); }