Commit Graph

40 Commits

Author SHA1 Message Date
Bruno Martins
63127da10c fingerprint: Move shims and UDFPS extension out of HIDL
Change-Id: I29e31088c6380076221ad419a195a460079165d6
2025-02-26 00:22:54 +00:00
Sebastiano Barezzi
ad80010b94 oplus: Keep a single clang-format in rootdir
Change-Id: Iffe5b37c311dc0ed0c9b5c91a2f94e9ff72f4a8a
2025-02-07 19:17:25 +00:00
LuK1337
8b3ffd3d7b livedisplay: Migrate to select()
Change-Id: I5d2d6f351431c13c36bcb7118e3fe5babfbe1872
2024-11-22 21:48:41 +01:00
LuK1337
5acd6429ef touch: Migrate to select()
Change-Id: I92f7a7100c16b133f24c9cc9882093324f64452f
2024-11-22 21:24:49 +01:00
pjgowtham
ecfd5da9fe fingerprint: Set dim layer zOrder
It is only used by SM8450+

Requires: I367b2c395aeb8cb7cb9e3cc38eca98477befe007
Change-Id: I881db78186fa9c7b350e79ac4ef90f53ee4cfbcf
2024-11-11 08:48:35 +00:00
LuK1337
bbf35e6008 livedisplay: Import DisplayModes from OnePlus SM8150
$(call soong_config_set,OPLUS_LINEAGE_LIVEDISPLAY_HAL,ENABLE_DM,false)

Change-Id: I26ef7a7a05a19e640a7937ab34f183978389e47e
2024-09-21 08:23:24 +00:00
LuK1337
f05695c2cc livedisplay: Add soong configuration for features
$(call soong_config_set,OPLUS_LINEAGE_LIVEDISPLAY_HAL,ENABLE_AF,false)
$(call soong_config_set,OPLUS_LINEAGE_LIVEDISPLAY_HAL,ENABLE_PA,true)
$(call soong_config_set,OPLUS_LINEAGE_LIVEDISPLAY_HAL,ENABLE_SE,true)

Change-Id: I3dd38f18892d290815b265cd5c8402dbf4a9d3b6
2024-09-21 08:23:02 +00:00
LuK1337
b764a71a1a Revert "livedisplay: Make ISunlightEnhancement non-mandatory"
This reverts commit 8b78d8531f.

Change-Id: I739b62ee75eea8ddad2d717bca8cd00f30e3f421
2024-09-21 08:23:02 +00:00
LuK1337
2e125b8e6d livedisplay: Enable AntiFlicker fragment
Change-Id: I4452b37ff38a067aebb67c930bb5d92444ecd8c8
2024-09-21 08:23:02 +00:00
pjgowtham
0dee4e5a87 fingerprint: Return Void() on finger press for uff fingerprint HAL
Oplus makes use of onFingerUp() and onFingerDown() for product testing
and it triggers codepaths that writes to the HBM node. Thus,
conditionally return Void() for uff fingerprint HAL.

Change-Id: Ieae48c1b6f4b5ad97e459c48b6535827fbd4b290
2024-08-29 23:42:35 +00:00
LuK1337
7df6ab20dc hidl: fingerprint: Add dummy keylayout for goodix FP
This prevents userspace from processing its events.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/7397
Change-Id: I474cbab8c8fbf14b2defe76d8eb5c69a739a1697
2024-07-11 16:37:53 +02:00
LuK1337
8b78d8531f livedisplay: Make ISunlightEnhancement non-mandatory
Change-Id: Icf8944ce92636be4727cea8be2c26a76c419174c
2023-06-08 12:42:53 +02:00
Albert Tang
bd2d84c295 livedisplay: Check current state before toggling AF/SE
This prevents us from sending unexpected panel commands.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/4790
Change-Id: I97c5a008f242c861cafdec392b19ab9435a5239b
2022-12-05 16:58:45 +01:00
LuK1337
39f46bc3fd fingerprint: Fix sde_drm.h include path on 5.4+ kernel
Change-Id: Idac59471ae329eabf8484cc1238c35dabaa64827
2022-10-01 16:06:20 +02:00
LuK1337
3dacefed22 fingerprint: Add support for TARGET_USES_FOD_ZPOS
Change-Id: Iaf79d5393169b986197be058ac2166d2e448dfa0
2022-10-01 16:06:19 +02:00
LuK1337
aac564e031 fingerprint: Add __system_property_get() shim for certain FOD impls
It seems like OnePlus 7 and 8 series sadly depend on these props.

Change-Id: I728a9ea63ded6c79873dd7350a06cc1f40ca92b7
2022-07-24 11:04:04 +02:00
LuK1337
31aed6913a touch: Let devices opt out of ITouchscreenGesture interface
Change-Id: Ib1fac9d7343798532fc8e6fb900354149b29351f
2022-07-16 22:20:41 +02:00
LuK1337
a39ee49e45 touch: Implement opt-in IHighTouchPollingRate interface
Change-Id: Ia0b45caa224cc9fea38f9b4efacce3287f888baa
2022-07-16 22:20:41 +02:00
LuK1337
0962815d6f touch: Make gestures configurable without TARGET_SPECIFIC_HEADER_PATH
SOONG_CONFIG_NAMESPACES += OPLUS_LINEAGE_TOUCH_HAL
SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL := INCLUDE_DIR
SOONG_CONFIG_OPLUS_LINEAGE_TOUCH_HAL_INCLUDE_DIR := \
    $(DEVICE_PATH)/touch/include

Change-Id: Ib4574926ceb16961e2b435aae4e8921665af4e23
2022-07-12 14:07:22 +02:00
LuK1337
7b65e6e8d9 livedisplay: Migrate to ioctl()
Change-Id: I2039c94eb3239f2d88ab67076b52f58493d9b43e
2022-07-11 11:52:45 -07:00
LuK1337
33b71bd0c3 Relocate oplus_display_panel.h to kernel_headers.oplus
Change-Id: Ib96688b00ced213cf5d3fc5116dbe8dc72992e07
2022-07-11 11:52:45 -07:00
LuK1337
c6356e112c fingerprint: Fix ioctl() return value check
ioctl() returns 0 on success.

Change-Id: I0bbdad6689fc21378d7b0c039c09e7e6288c1dae
2022-07-11 14:39:05 +02:00
jabashque
dfba74a283 fingerprint: Reset dimlayer HBM + fp press state on error
The way the fingerprint service handles FINGERPRINT_ERROR messages
allows for situations where the user can end up turning off the screen
while notify_fppress is set to 1. This results in situations where the
screen backlight does not turn on at all when turning on the panel,
which is not an ideal user experience.

Fix this by calling `setDimlayerHbm(0)` and `setFpPress(0)` when
handling FINGERPRINT_ERROR messages.

Change-Id: Ic2754249083c30a9b3b150b825357d894814fe84
2022-06-10 20:44:28 +02:00
LuK1337
3656dda6cf livedisplay: Fix indentation in vintf manifest
Change-Id: I037758d097b3bac2ab2068eb24c54b98671b7efb
2022-05-04 10:38:28 +02:00
LuK1337
ea3acdaeaa fixup! livedisplay: Implement IAntiFlicker interface fragment
Change-Id: Ic10e593e1628be32221d1b828c6fc33dba774a7c
2022-05-04 10:29:51 +02:00
LuK1337
538a36188f fingerprint: Add libudfps_extension impl
Change-Id: Ic5752c29816e66c6c585069779c8ac3211a0e277
2022-04-19 20:53:23 +02:00
LuK1337
c9225a7db6 fingerprint: Setup dimming & fp press notifications
Change-Id: I0b1df953f11974daf1adb4b88d9b48efd229bcf1
2022-04-19 20:53:23 +02:00
LuK1337
7f4f347c2c hidl: fingerprint: Initial AOSP -> Oplus wrapper
Change-Id: I8729b3920dd52c18416179d4118a4d012fb5b1d3
2022-04-18 22:56:40 +02:00
LuK1337
ce722bdb50 hidl: Setup touchscreen gestures with Lineage touch HIDL HAL
This takes advantage of the touchscreen gesture nodes exposed by Oplus
touchscreen drivers.

Change-Id: I5a43b8f922a8d1c940e367d22d377b7161913d3a
2022-04-17 16:12:09 +02:00
LuK1337
745a264171 livedisplay: Add (and run) clang-format file
Change-Id: Ibb4a56ef02a404717512d7a7f99bc31e2ce442a4
2022-04-17 10:25:28 +02:00
LuK1337
2ee105e951 fixup! livedisplay: Implement IAntiFlicker interface fragment
Change-Id: I8461e18c60d581f87d9fba1fbc0ec85ab14cfdff
2022-04-17 00:18:13 +02:00
Paul Keith
f677f346bc livedisplay: Fix racy init
* It turns out moving this to class main doesn't work as well
  as some had thought it would, so restore the previous logic
  to use class hal, and restart if the backend isn't up yet

Change-Id: Ib8b417d89108dcf80d0d159e8d84e5327944b2a1
2022-04-14 11:03:52 +02:00
Bruno Martins
096e9d9c20 livedisplay: Use pragma once directive everywhere
Change-Id: Ic5ec76210a7d8697945561b2d150f0c1f778dc5c
2022-04-14 11:03:52 +02:00
LuK1337
3334859f4f livedisplay: Implement IAntiFlicker interface fragment
Change-Id: I1dbc6d8989a80fe7b06d4356aeb717417997a793
2022-04-14 11:03:52 +02:00
LuK1337
85fffbdcfa livedisplay: Expose headers and implementations as Soong modules
Change-Id: I335cb98b544fceed1e0d11f0a7dd9cc38860b5aa
2022-04-14 11:03:52 +02:00
LuK1337
9e7b514023 livedisplay: Uprev to 2.1
Change-Id: I98b2ea16ed342339ee652d5cb79dcfd22f8c0a0d
2022-04-14 11:03:52 +02:00
LuK1337
21edb37c1f livedisplay: Implement ISunlightEnhancement interface
Change-Id: I728653099f9a57a85f1ce2ffa93b4e62981208fa
2022-04-14 11:03:52 +02:00
Daniel Jacob Chittoor
ada38b5fed hidl: Import LiveDisplay 2.0 HIDL HAL w/ IPictureAdjustment
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Change-Id: I5065670e7dbf9baa4a69d6ec0f5e4c36d533054d
2022-04-14 11:03:51 +02:00
Bruno Martins
2c82dd85d0 powershare: Use pragma once
Change-Id: I9cfeed5e79c35139f7532c522dad0ca25ed35fe1
2022-04-14 09:27:07 +02:00
LuK1337
cfa39af4d1 hidl: Implement vendor.lineage.powershare@1.0 HAL for Oplus
Change-Id: I8022ac47411369f3ede969417fd46e08fb984e24
2022-04-14 09:27:06 +02:00