sm6150-common: fingerprint: Remove local UDFPS extension

Common one from hardware/xiaomi can now be used.

Change-Id: I4e7113c9d54c03d341deea78ab3636e38cad3e66
This commit is contained in:
Bruno Martins 2022-05-28 19:25:35 +01:00 committed by Arian
parent c6daece9b1
commit 2b9128df8a
2 changed files with 0 additions and 43 deletions

View File

@ -35,14 +35,3 @@ cc_binary {
init_rc: ["android.hardware.biometrics.fingerprint@2.3-service.xiaomi_sm6150-udfps.rc"],
cflags: ["-DENABLE_UDFPS"],
}
cc_library_static {
name: "libudfps_extension.xiaomi_sm6150",
srcs: ["UdfpsExtension.cpp"],
include_dirs: [
"frameworks/native/services/surfaceflinger/CompositionEngine/include",
],
header_libs: [
"generated_kernel_headers",
],
}

View File

@ -1,32 +0,0 @@
/*
* Copyright (C) 2020-2021 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.
*/
#include <stdint.h>
#include <drm/sde_drm.h>
#include <compositionengine/UdfpsExtension.h>
uint32_t getUdfpsZOrder(uint32_t z, bool touched) {
if (touched) {
z |= FOD_PRESSED_LAYER_ZORDER;
}
return z;
}
uint64_t getUdfpsUsageBits(uint64_t usageBits, bool touched) {
(void) touched;
return usageBits;
}