common: Import goodix HAL definitions

Change-Id: I989ed3920057728192536eeddde94e964692a4b6
This commit is contained in:
XiNGRZ 2019-12-28 01:47:21 +08:00 committed by PIPIPIG233666
parent feecb1ae36
commit b78b8dc49d
No known key found for this signature in database
GPG Key ID: 5DA814344B80B947
4 changed files with 63 additions and 0 deletions

View File

@ -2,3 +2,8 @@ hidl_package_root {
name: "vendor.xiaomi",
path: "device/xiaomi/common/interfaces",
}
hidl_package_root {
name: "vendor.goodix",
path: "device/xiaomi/common/interfaces",
}

View File

@ -0,0 +1,13 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "vendor.goodix.hardware.biometrics.fingerprint@2.1",
root: "vendor.goodix",
srcs: [
"IGoodixFingerprintDaemon.hal",
"IGoodixFingerprintDaemonCallback.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
}

View File

@ -0,0 +1,24 @@
/*
* Copyright (C) 2019-2020 The LineageOS 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.
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
import vendor.goodix.hardware.biometrics.fingerprint@2.1::IGoodixFingerprintDaemonCallback;
interface IGoodixFingerprintDaemon {
setNotify(IGoodixFingerprintDaemonCallback Callback);
sendCommand(int32_t cmd, vec<int8_t> data) generates (int32_t resultCode, vec<int8_t> data);
};

View File

@ -0,0 +1,21 @@
/*
* Copyright (C) 2019-2020 The LineageOS 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.
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
interface IGoodixFingerprintDaemonCallback {
onDaemonMessage(int64_t devId, int32_t msgId, int32_t cmdId, vec<int8_t> msgData);
};