dubai: Add UDFPS extension library
* Mark the pressed fingerprint layer. Change-Id: I49891f89350839ff93ff1a762a83996bfd56ec18
This commit is contained in:
parent
e96c195166
commit
7e37c47aff
3 changed files with 33 additions and 0 deletions
|
@ -25,6 +25,9 @@ TARGET_BOOTLOADER_BOARD_NAME := dubai
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
|
||||||
|
|
||||||
|
# Fingerprint
|
||||||
|
TARGET_SURFACEFLINGER_UDFPS_LIB := //$(DEVICE_PATH):libudfps_extension.dubai
|
||||||
|
|
||||||
# HIDL
|
# HIDL
|
||||||
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += $(DEVICE_PATH)/device_framework_matrix_dubai.xml
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += $(DEVICE_PATH)/device_framework_matrix_dubai.xml
|
||||||
DEVICE_MANIFEST_YUPIK_FILES += $(DEVICE_PATH)/manifest_dubai.xml
|
DEVICE_MANIFEST_YUPIK_FILES += $(DEVICE_PATH)/manifest_dubai.xml
|
||||||
|
|
|
@ -19,3 +19,14 @@ cc_binary {
|
||||||
"android.hardware.biometrics.fingerprint@2.3",
|
"android.hardware.biometrics.fingerprint@2.3",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cc_library_static {
|
||||||
|
name: "libudfps_extension.dubai",
|
||||||
|
srcs: ["UdfpsExtension.cpp"],
|
||||||
|
include_dirs: [
|
||||||
|
"frameworks/native/services/surfaceflinger/CompositionEngine/include"
|
||||||
|
],
|
||||||
|
header_libs: [
|
||||||
|
"generated_kernel_headers",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
19
fingerprint/UdfpsExtension.cpp
Normal file
19
fingerprint/UdfpsExtension.cpp
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2022 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <compositionengine/UdfpsExtension.h>
|
||||||
|
#include <display/drm/sde_drm.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) {
|
||||||
|
return usageBits;
|
||||||
|
}
|
Loading…
Reference in a new issue