blob: 6f9e3a0628b1f971b5ca3b6ee77bd560979c0156 [file] [log] [blame]
Ilya Matyukhina9a3c852020-08-18 03:09:41 -07001/*
2 * Copyright (C) 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "Fingerprint.h"
18#include "Session.h"
19
20namespace aidl::android::hardware::biometrics::fingerprint {
21
22ndk::ScopedAStatus Fingerprint::getSensorProps(std::vector<SensorProps>* /*return_val*/) {
23 return ndk::ScopedAStatus::ok();
24}
25
26ndk::ScopedAStatus Fingerprint::createSession(int32_t /*sensorId*/, int32_t /*userId*/,
27 const std::shared_ptr<ISessionCallback>& cb,
28 std::shared_ptr<ISession>* return_val) {
29 *return_val = SharedRefBase::make<Session>(cb);
30 return ndk::ScopedAStatus::ok();
31}
32
33ndk::ScopedAStatus Fingerprint::setResetLockoutCallback(
34 const std::shared_ptr<IResetLockoutCallback>& /*cb*/) {
35 return ndk::ScopedAStatus::ok();
36}
37
38ndk::ScopedAStatus Fingerprint::generateChallenge(
39 int32_t /*sensorId*/, int32_t /*userId*/, int64_t /*keystoreOperationId*/,
40 int32_t /*timeoutSec*/, const std::shared_ptr<IGenerateChallengeCallback>& /*cb*/) {
41 return ndk::ScopedAStatus::ok();
42}
43
44ndk::ScopedAStatus Fingerprint::revokeChallenge(
45 int32_t /*sensorId*/, int32_t /*userId*/,
46 const std::shared_ptr<IRevokeChallengeCallback>& /*cb*/) {
47 return ndk::ScopedAStatus::ok();
48}
49
50} // namespace aidl::android::hardware::biometrics::fingerprint