interfaces: goodix: Reverse the remaining calls

* Inline with curtana goodix impl

Co-authored-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I05972ba7c023a000c853c96c518aaf82e3c25a92
This commit is contained in:
Giovanni Ricca 2023-12-06 09:38:36 +01:00
parent cf41643853
commit e0d1ecf861
No known key found for this signature in database
GPG Key ID: 61E6552837A234F0
9 changed files with 149 additions and 28 deletions

View File

@ -7,6 +7,12 @@ hidl_interface {
srcs: [
"IGoodixFingerprintDaemon.hal",
"IGoodixFingerprintDaemonCallback.hal",
"IGoodixFingerprintDaemonExt.hal",
"IGoodixFingerprintDaemonExtCallback.hal",
"IGoodixFingerprintDaemonFido.hal",
"IGoodixFingerprintDaemonFidoCallback.hal",
"IGoodixFingerprintDaemonHbd.hal",
"IGoodixFingerprintDaemonHbdCallback.hal",
],
interfaces: [
"android.hidl.base@1.0",

View File

@ -1,24 +1,19 @@
/*
* Copyright (C) 2019-2020 The LineageOS Project
* Copyright (C) 2019-2020, 2024 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.
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
import vendor.goodix.hardware.biometrics.fingerprint@2.1::IGoodixFingerprintDaemonCallback;
import IGoodixFingerprintDaemonCallback;
interface IGoodixFingerprintDaemon {
setNotify(IGoodixFingerprintDaemonCallback Callback);
sendCommand(int32_t cmd, vec<int8_t> data) generates (int32_t resultCode, vec<int8_t> data);
oneway initCallback(IGoodixFingerprintDaemonCallback callback);
oneway setNotify(IGoodixFingerprintDaemonCallback Callback);
testCmd(uint32_t cmdId, vec<uint8_t> param) generates (int32_t debugErrno);
sendCommand(uint32_t cmd, vec<uint8_t> data) generates (int32_t resultCode, vec<int8_t> data);
};

View File

@ -1,21 +1,23 @@
/*
* Copyright (C) 2019-2020 The LineageOS Project
* Copyright (C) 2019-2020, 2024 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.
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
interface IGoodixFingerprintDaemonCallback {
onDaemonMessage(int64_t devId, int32_t msgId, int32_t cmdId, vec<int8_t> msgData);
oneway onEnrollResult(uint64_t devId, uint32_t fingerId, uint32_t groupId, uint32_t rem);
oneway onAcquired(uint64_t devId, uint32_t acquiredInfo);
oneway onAuthenticated(uint64_t devId, uint32_t fingerId, uint32_t groupId, vec<uint8_t> hat);
oneway onError(uint64_t devId, uint32_t error);
oneway onRemoved(uint64_t devId, uint32_t fingerId, uint32_t groupId);
oneway onTestCmd(uint64_t devId, uint32_t cmdId, vec<uint8_t> result);
oneway onDaemonMessage(uint64_t devId, uint32_t msgId, uint32_t cmdId, vec<uint8_t> msgData);
};

View File

@ -0,0 +1,43 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
import IGoodixFingerprintDaemonExtCallback;
interface IGoodixFingerprintDaemonExt {
oneway initCallback(IGoodixFingerprintDaemonExtCallback callback);
setSafeClass(uint32_t safeClass) generates (int32_t debugErrno);
navigate(uint32_t navMode) generates (int32_t debugErrno);
stopNavigation() generates (int32_t debugErrno);
enableFingerprintModule(uint8_t enableFlag) generates (int32_t debugErrno);
cameraCapture() generates (int32_t debugErrno);
stopCameraCapture() generates (int32_t debugErrno);
enableFfFeature(uint8_t enableFlag) generates (int32_t debugErrno);
screenOn() generates (int32_t debugErrno);
screenOff() generates (int32_t debugErrno);
enumerate() generates (int32_t debugErrno);
reset_lockout() generates (int32_t debugErrno);
dumpCmd(uint32_t cmdId, vec<uint8_t> param) generates (int32_t debugErrno);
lockout() generates (int32_t debugErrno);
pauseEnroll() generates (int32_t debugErrno);
resumeEnroll() generates (int32_t debugErrno);
};

View File

@ -0,0 +1,11 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
interface IGoodixFingerprintDaemonExtCallback {
oneway onDump(uint64_t devId, uint32_t cmdId, vec<uint8_t> data);
};

View File

@ -0,0 +1,23 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
import IGoodixFingerprintDaemonFidoCallback;
interface IGoodixFingerprintDaemonFido {
oneway initCallback(IGoodixFingerprintDaemonFidoCallback callback);
authenticateFido(uint32_t groupId, vec<uint8_t> aaid, vec<uint8_t> finalChallenge) generates (int32_t debugErrno);
stopAuthenticateFido() generates (int32_t debugErrno);
isIdValid(uint32_t groupId, uint32_t fingerId) generates (int32_t debugErrno);
getIdList(uint32_t groupId) generates (int32_t debugErrno, vec<int32_t> list);
invokeFidoCommand(vec<uint8_t> in_buf) generates (int32_t out_buf_len, vec<int8_t> out_buf);
};

View File

@ -0,0 +1,11 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
interface IGoodixFingerprintDaemonFidoCallback {
oneway onAuthenticatedFido(uint64_t devId, uint32_t fpId, vec<uint8_t> uvtData);
};

View File

@ -0,0 +1,19 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
import IGoodixFingerprintDaemonHbdCallback;
interface IGoodixFingerprintDaemonHbd {
oneway initCallback(IGoodixFingerprintDaemonHbdCallback callback);
startHbd() generates (int32_t debugErrno);
stopHbd() generates (int32_t debugErrno);
enableBioAssayFeature(uint8_t enableFlag) generates (int32_t debugErrno);
};

View File

@ -0,0 +1,11 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.goodix.hardware.biometrics.fingerprint@2.1;
interface IGoodixFingerprintDaemonHbdCallback {
oneway onHbdData(uint64_t devId, uint32_t heartBeatRate, uint32_t status, vec<uint32_t> displayData, vec<uint32_t> rawData);
};