Commit Graph

50 Commits

Author SHA1 Message Date
LineageOS Infra
d58d8728aa Automatic translation import
Change-Id: I06723c2cb0ac2c6d2d6c693eb2927ffd7f9f54a7
2025-07-15 17:08:20 +00:00
LineageOS Infra
df48e72f9c Automatic translation import
Change-Id: I92ebfad3057ce416cbc2f3567d30924b8b634a2d
2025-04-15 13:55:17 +00:00
Mashopy
4cdcb94010 oplus: Run bpfix
Change-Id: Ida4dd24167f0f15b1e67a3ae3f73454caa4e1f6e
2025-04-13 23:45:13 +00:00
LineageOS Infra
93e25021b2 Automatic translation import
Change-Id: Ife02e8ee27d8d656c6a24e28b86ffaab03b762e2
2025-04-07 16:25:24 +00:00
LineageOS Infra
81d0ee9346 Automatic translation import
Change-Id: I2607a25274068809ee540c55b4afd42270b5d96a
2025-02-15 15:47:19 +00:00
LineageOS Infra
566dd12b55 Automatic translation import
Change-Id: Ife9b592c7f9c5cee1c4b6745bacc1b135870ffca
2025-02-01 14:28:34 +00:00
LineageOS Infra
77522b8050 Automatic translation import
Change-Id: Iee296c9cee2dadf859ee0d808824b8e0ecd06224
2024-12-02 02:54:15 +00:00
LineageOS Infra
e347f05c1a Automatic translation import
Change-Id: I6ab49f376f351f05e06dbe011ae8af745f946763
2024-10-16 21:27:36 +00:00
LineageOS Infra
bb91436a21 Automatic translation import
Change-Id: If495588f6fe7648d762e67ac30df1ec5e8d2179a
2024-09-15 16:02:27 +00:00
LineageOS Infra
1e8889a26b Automatic translation import
Change-Id: Id3e4f6639374151aeabcda0f41810195e0b4aa8f
2024-05-15 15:50:24 +00:00
Peter Kalauskas
6526bfaa6a oplus: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
2024-03-20 09:56:06 +00:00
LuK1337
0dbe6a8d62 KeyHandler: Simplify input device name resolution
Change-Id: Ie605e78fa2328e28268d4e80ffee4ddf001d0c53
2023-10-29 12:08:31 +01:00
LineageOS Infra
4f26dde88b Automatic translation import
Change-Id: I3260b932022bd058f9e711fc91a53f306a10b492
2023-10-15 20:43:12 +00:00
LuK1337
c13292b8d7 KeyHandler: Use property access syntax for zen mode
Change-Id: I1f845190534b3be24b4e09156e8fa248e0e4cd2c
2023-08-09 22:43:35 +02:00
LineageOS Infra
7205455693 Automatic translation import
Change-Id: I3cb620050c0827639b698aa8fdac991901b7de5d
2023-07-15 18:07:56 +00:00
LineageOS Infra
1673a14fb8 Automatic translation import
Change-Id: I6b1a46447a0b368885a73fb7fdeb484e2ca0fc1a
2023-07-01 16:12:18 +00:00
LineageOS Infra
169d7fdb1d Automatic translation import
Change-Id: I9ce95ecb775f3caf9fba17aded3178022eb000be
2023-06-20 16:28:03 +00:00
LineageOS Infra
df8133b4ef Automatic translation import
Change-Id: Ifc16a99b355dd7bd6a27b7d3219860c54166c6d2
2023-06-01 12:49:25 +00:00
LineageOS Infra
e2f484e1f1 Automatic translation import
Change-Id: Ic07fa24768deed25e57b18c4d34d8b5fe4520d06
2023-04-24 08:41:30 +00:00
Michael Bestas
5a76738616 Automatic translation import
Change-Id: I57d0ae6b9978bcd2d1afabb520216ba414f974a9
2023-03-23 16:38:23 +02:00
Michael Bestas
ed9abba51b Automatic translation import
Change-Id: Iebb9a21c52f633aa9c6ddd0009a88445a105b8c9
2023-02-13 16:05:21 +02:00
Michael Bestas
9fb26aae02 Automatic translation import
Change-Id: I47fb5adafce6fcfc04925503cd433eebdc4aad3f
2023-01-10 04:41:40 +02:00
Michael Bestas
5c2acd54d9 Automatic translation import
Change-Id: I57a64bdf02fd1e03b0bd709799e475eba4da4084
2022-12-16 20:57:42 +02:00
Bruno Martins
a5332c7fee KeyHandler: Fix compilation for QPR1 merge
Change-Id: Id01559565bbee715f67213c9d4c99dddac4a761c
2022-12-06 18:04:20 +00:00
Michael Bestas
d1930f19ab Automatic translation import
Change-Id: I692f213694a2de3f0b1db87b93f14041bcbaac93
2022-11-25 15:03:28 +02:00
Michael Bestas
d9929c1fdd Automatic translation import
Change-Id: I5f47631908c351b00fec9146d86cffff59e86cac
2022-11-03 01:57:23 +02:00
xchgrbprsp
559c9f3640 KeyHandler: Add 'None' alert slider mode
Change-Id: I460448a0c1dfa6a5e16ecf93e6fbab29ee2de8fd
2022-10-21 14:45:07 +02:00
LuK1337
2a1d632735 KeyHandler: Use VibrationAttributes.USAGE_HARDWARE_FEEDBACK
This fixes vibration when user disabled 'Touch feedback' in settings.

Change-Id: If465f34c86a1e8e1b0f0b2ee3cc74515315e30b4
2022-10-19 20:44:47 +02:00
LuK1337
7d9972f3f4 KeyHandler: Use property access syntax when possible
Change-Id: I270ebbd32ae7de36740171325035555507bcfc7e
2022-10-19 20:42:04 +02:00
LuK1337
feb3dae687 KeyHandler: Null assert on getSystemService()
Change-Id: Ia3e4ce22c6ebf627301efef3fd1e214b05fbfeed
2022-10-19 20:41:14 +02:00
LuK1337
14a43e3d98 KeyHandler: Simplify boolean check
getBooleanExtra() does not return `Boolean?` anymore, or ever?

Change-Id: I8a1987ee1244148dccbf434d424ea1a60f7506cf
2022-10-19 20:38:47 +02:00
LuK1337
45b4b90881 KeyHandler: Remove unused/unnecessary imports
Change-Id: I9395dca4f188894464feb3b20063c27b20855b99
2022-10-19 20:38:16 +02:00
Michael Bestas
1e29f6f777 Automatic translation import
Change-Id: If4cb20654710903d59600cada3fd8bcd281cd77c
2022-10-05 19:31:05 +03:00
LuK1337
7b1294c8b5 KeyHandler: Don't ignore oplus,tri-state-key
As seen on SM8150.

Change-Id: Ie70a075926f51fa80b2dc148859823d705fb757d
2022-10-03 21:21:39 +02:00
LuK1337
6c0ac8d4ca KeyHandler: Wait for zen mode change before setting ringer mode
This makes sure that asynchronous zen mode change does not override our
ringer mode setting.

Change-Id: I8d381d36759108daa3d977d4b78ae438a95f4962
2022-09-10 16:44:34 +02:00
LuK1337
2aa828d7c2 KeyHandler: Remove BootCompletedReceiver
No longer needed.

Change-Id: Ib6d7388dc61b3c807710c77339a8bab0256fbaf4
2022-04-13 09:53:43 +02:00
LuK1337
99f10d3d04 KeyHandler: Adjust for Oplus
Change-Id: Icc5e6583f48756fc765970c9e7a0f27425f37105
2022-04-11 18:17:39 +02:00
Bruno Martins
a446bb68c6 KeyHandler: Update to S
Change-Id: I68c6c0bc4d02f515a75293150e45b5bb083b0b26
2022-04-11 17:55:13 +02:00
LuK1337
10b1f49ea2 KeyHandler: Drop dependency on org.lineageos.platform.internal
Unused.

Change-Id: I4bf43009fb559dc4a5e684fc7492ef5f16b9bb0a
2022-04-11 17:55:13 +02:00
Timi Rautamäki
75ea79851b KeyHandler: Integrate in tri-state-key handling via UEventObserver API
This basically adds required code to support both switch and extcon
based tri-state-key. This also adds tri-state-key-calibrate script for
devices that need to be calibrated on boot (OnePlus7+)

Change-Id: I2e6c5d2861569750bead05edacf6e328a5227077
2022-04-11 17:55:13 +02:00
Timi Rautamäki
acbbb33e8f KeyHandler: Add more modes
* Add DND modes
 * alarms only
 * important interruptions
 * total silence

* Add option to mute media when going to silent mode

Change-Id: Ia59e06f0a0dd3047b3771bb3ac8d5e338d0a75c3
2022-04-11 17:55:13 +02:00
Timi Rautamäki
a9f61a216e KeyHandler: Add customization options
Change-Id: I5f50f5d442342b2082bf47e11b1351e578fa0144
2022-04-11 17:55:13 +02:00
LuK1337
94f6a33159 KeyHandler: Java -> Kotlin
Change-Id: Ia39b3055315cecdf32722c0361f29c042e06a81c
2022-04-11 17:55:13 +02:00
Daniel Jacob Chittoor
49274e4aba KeyHandler: Switch to blueprint
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Change-Id: I7dc50b822bcb7bd0f95193bd96494ec879bd9017
2022-04-11 17:55:13 +02:00
LuK1337
aab3802588 KeyHandler: Use HEAVY_CLICK for MODE_NORMAL_EFFECT
Now that we support OOS style haptics, regular 250ms vibration
feels kinda out of place here.

Change-Id: I392df4c75bbef3f7e3ad1f3cf7f0e1c2bbf447ee
2022-04-11 17:55:13 +02:00
LuK1337
d87417d935 KeyHandler: Do nothing when action != ACTION_DOWN
This makes sure we only change the ringer mode / play haptics once.

Change-Id: Ie5a6050338cee75cd8fe6da6edfae03141263033
2022-04-11 17:55:13 +02:00
LuK1337
645327fe29 KeyHandler: Use mode specific vibration effects
NOTE: This change depends on following SystemUI change:
- https://review.lineageos.org/c/305900
- https://android-review.googlesource.com/c/1648967

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3019
Change-Id: Ifc16a469311c4dd7ce9ef8633ab66546ef4e6ede
2022-04-11 17:55:13 +02:00
Ashwin R C
9426932d60 KeyHandler: Use VibrationEffect
* Also update haptic feedback logic

Change-Id: I722022d014d9e88ef267a5563b43fee87ef02b6b
2022-04-11 17:55:13 +02:00
Anton Hansson
05bd29192f KeyHandler: Set LOCAL_PRIVATE_PLATFORM_APIS
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Bug: 73535841
Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
2022-04-11 17:55:13 +02:00
Luca Stefani
39cb612e84 Add a KeyHandler for tri-state-key events
Change-Id: I22a7ee5b7eec5667b14f1a587a6d0138e77dc0f3
2022-04-11 17:55:13 +02:00