blob: 5bc69a071964523946d5599381f3b5e917a571be [file] [log] [blame]
Kevin Chyn22a57202020-12-02 17:39:53 -08001/*
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#define LOG_TAG "android.hardware.biometrics.fingerprint@2.2-service"
18
19#include <android/log.h>
20#include <hidl/HidlSupport.h>
21#include <hidl/HidlTransportSupport.h>
22#include <android/hardware/biometrics/fingerprint/2.2/IBiometricsFingerprint.h>
23#include <android/hardware/biometrics/fingerprint/2.2/types.h>
24#include "BiometricsFingerprint.h"
25
26using android::hardware::biometrics::fingerprint::V2_2::IBiometricsFingerprint;
27using android::hardware::biometrics::fingerprint::V2_2::implementation::BiometricsFingerprint;
28using android::hardware::configureRpcThreadpool;
29using android::hardware::joinRpcThreadpool;
30using android::sp;
31
32int main() {
33 android::sp<IBiometricsFingerprint> bio = new BiometricsFingerprint();
34
35 configureRpcThreadpool(1, true /*callerWillJoin*/);
36
37 if (::android::OK != bio->registerAsService()) {
38 return 1;
39 }
40
41 joinRpcThreadpool();
42
43 return 0; // should never get here
44}