Files
hardware_samsung/fingerprint/UdfpsExtension.cpp
Kai Jones 354ca305ca fingerprint: Configurable UDFPS dim layer Z-order
Introduce a build-time configuration for UDFPS dim layer Z-order.
Define `fod_dim_layer_zorder` via Soong, dynamically set using:

  $(call soong_config_set,samsungUdfpsVars,dim_layer_zorder,0x20000001u)

Change-Id: Ie1d5e78894e191150be235eb48e400ea1feab9b2
2025-12-08 15:46:18 +00:00

28 lines
521 B
C++

/*
* Copyright (C) 2022-2025 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <compositionengine/UdfpsExtension.h>
uint32_t getUdfpsDimZOrder(uint32_t z) {
z |= UDFPS_DIM_LAYER_ZORDER;
return z;
}
uint32_t getUdfpsZOrder(uint32_t z, bool touched) {
if (touched) {
z |= UDFPS_PRESSED_LAYER_ZORDER;
}
return z;
}
uint64_t getUdfpsUsageBits(uint64_t usageBits, bool touched) {
if (touched) {
usageBits |= 0x400000000LL;
}
return usageBits;
}