blob: abf44df3a27ae73dd9c9a3f26caf0769bc5acd5a [file] [log] [blame]
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include "BiometricsFace.h"
namespace android::hardware::biometrics::face::implementation {
class FaceHalServiceCallback : public BnFaceHalServiceCallback {
public:
FaceHalServiceCallback(sp<IBiometricsFaceClientCallback>);
// Methods from ::aidl::com::libremobileos::faceunlock::client::IFaceHalServiceCallback follow.
::ndk::ScopedAStatus onEnrollResult(int64_t deviceId, int32_t faceId, int32_t userId, int32_t remaining) override;
::ndk::ScopedAStatus onAuthenticated(int64_t deviceId, int32_t faceId, int32_t userId, const ::std::vector<uint8_t> &token) override;
::ndk::ScopedAStatus onAcquired(int64_t deviceId, int32_t userId, int32_t acquiredInfo, int32_t vendorCode) override;
::ndk::ScopedAStatus onError(int64_t deviceId, int32_t userId, int32_t error, int32_t vendorCode) override;
::ndk::ScopedAStatus onRemoved(int64_t deviceId, const ::std::vector<int32_t> &faceIds, int32_t userId) override;
::ndk::ScopedAStatus onEnumerate(int64_t deviceId, const ::std::vector<int32_t> &faceIds, int32_t userId) override;
::ndk::ScopedAStatus onLockoutChanged(int64_t duration) override;
private:
sp<IBiometricsFaceClientCallback> mBiometricsFaceClientCallback;
};
} // namespace android::hardware::biometrics::face::implementation