hardware_xiaomi/hidl/biometrics/fingerprint/UdfpsExtension.cpp
LuK1337 873c871046
hidl: biometrics: fingerprint: Fix sde_drm.h include path on 5.4+ kernel
Change-Id: Idac59471ae329eabf8484cc1238c35dabaa64827
2022-05-13 18:02:35 +02:00

25 lines
513 B
C++

/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <compositionengine/UdfpsExtension.h>
#if __has_include(<display/drm/sde_drm.h>)
#include <display/drm/sde_drm.h>
#elif __has_include(<drm/sde_drm.h>)
#include <drm/sde_drm.h>
#endif
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 */) {
return usageBits;
}