Commit Graph

300 Commits

Author SHA1 Message Date
Ramii Ahmed
a7262011d4 Introduce High Touch Polling Rate feature
Change-Id: I6eb65e811f1759806aa89747328ee638c99a44f5
2022-03-19 10:09:50 +01:00
Oliver Scott
fad289124c lineage-sdk: Use new API to access Network Traffic settings
Change-Id: If34674526bc9760eb8577e97eb1e1d9463a3c2d6
2022-03-07 22:42:53 +01:00
Luca Stefani
b0d6dd92e8 sdk: s/UserHandle.USER_OWNER/UserHandle.USER_SYSTEM/g
USER_OWNER has been deprecated and replaced by USER_SYSTEM

Change-Id: I93b057a52dcdcb3760b7c2139bea2e25a624a78f
2022-03-07 22:42:53 +01:00
Luca Stefani
d787f12781 settings: Use proper locking
Change-Id: I0f2c30cb0bb324602738800a8ff81359fa484223
2022-03-07 22:42:53 +01:00
Luca Stefani
2e050a5c98 settings: Move one if check to else if
The map is always empty if the previous check was true

Change-Id: Id1f939d112789ab3c7da711636b40c8a4c23d507
2022-03-07 22:01:43 +01:00
Luca Stefani
ebaa32ef9f settings: Use Id from ContentResolver
Making this change allows to determine 
automatically the proper user ID depending on the
context used to create the resolver

Change-Id: I08021fa56856ef4792da780bca1c0e77526e72a6
2022-03-07 21:51:45 +01:00
LuK1337
d389bf1773 sdk: Add device controls global action
Change-Id: I8be18dfa1fe7807ca2eff13c4c2d477322530af0
2022-02-25 13:39:10 +01:00
LuK1337
21fcbbf2f5 sdk: Move app killed toast message to main application thread
Fixes: Can't toast on a thread that has not called Looper.prepare().

Change-Id: Ia0179ccd4433ac6ceaaa13e03b3e4e6465a6d006
2022-02-23 22:02:26 +01:00
Luca Stefani
67c0daf545 Remove LineageAudioService
Change-Id: I4aea4c62154a0f7d9d6d96e68ddf2bd401458fab
2022-01-31 00:44:33 +02:00
Bruno Martins
9265e4085d sdk: Nuke perf profiles
Change-Id: Ibd32da7cb2feb8fa41bf9804f101167e4d12e33c
2022-01-30 22:33:24 +01:00
Bruno Martins
fb4dfb48cb sdk: Remove LineageContextConstants.Features.FOD
Change-Id: I1196413cc116495c4998e859aa279c0fcf2e16f1
2022-01-26 22:57:16 +01:00
Cédric Bellegarde
c0fde5eacb lineage-sdk: Add support for clock auto-hiding
Change-Id: I9d05188289e334a99baeaa330fb869573e123ea6
2022-01-24 19:39:24 +00:00
Bruno Martins
3c27619fb3 LineageSettings: Remove long dead notification count settings
Change-Id: I4a19cdaf31283da398a46784c4ba5763beb8c658
2022-01-04 00:50:12 +00:00
Bruno Martins
01d0bae938 preference: Introduce {Global,Secure,System}MainSwitchPreference
Change-Id: I04cf71ea60b3ecde3c8be039ab320e8730ca4b3f
2021-12-31 21:03:04 +00:00
Bruno Martins
ea5bec56fd LineageSettings: Deprecate charging sound settings in favor of AOSP ones
There's no need to have our own settings for this when we can simply
override the existing AOSP ones.

Change-Id: I84e1f7286cd6b4ee68c62f17ad104c76031ee0ff
2021-12-31 17:20:56 +01:00
Luca Stefani
9256c6841b settings: Allow validating Global settings
Change-Id: I7648e092b31fdf685ad01577834755cb631fde73
2021-12-23 00:48:11 +01:00
Volodymyr Zhdanov
0ea65ec244 lineage-sdk: Stop using PreferenceScreen styles for preferences
* until it's fixed in androidx

Change-Id: Ia9c1b0edb2066ac91172ab202657b01252c3972d
2021-11-14 16:09:36 +01:00
Michael Bestas
fdd7189e82 Remove leftover LINEAGE_ICON_CACHE_SERVICE
Change-Id: Ia05cb10c51526b76387b563f226a4ec08e720995
2021-11-14 15:05:27 +02:00
Michael Bestas
e9206cc3a3 LineageSettings: Remove "advanced_mode" setting
* This was a CyanogenMod feature that we never forward ported.

Change-Id: Idce22d57784132ff0676bce3e1dd55f9793c1a59
2021-11-07 00:44:32 +02:00
Michael Bestas
83f54dd052 lineage-sdk: Remove DataUsage related code
* Unused

Change-Id: Ifda534617c62de7b7098c2a2ff674cf2159a74b8
2021-11-06 12:52:01 +02:00
Michael Bestas
b1a4f1be15 lineage-sdk: Remove unused protected app/component code
Change-Id: Ie054c1da1381cd9ba0c10405ce50b5c727ad1987
2021-11-06 12:52:01 +02:00
Michael Bestas
eb64e79f86 lineage-sdk: Remove weather related code
* This has been untouched since 2016 and it depends on LockClock
  which has been dropped and was also untouched for years.
  There is no good weather provider without API restrictions,
  so just remove this dead code.

Change-Id: I6540006ce0d7339b7794b6ab207593afb161aa3d
2021-11-06 12:52:00 +02:00
Michael Bestas
b2dc2962cf LineageSettings: Remove leftover Dialer lookup settings
Change-Id: I99e375f37d20c5699aa12b98f5e1d6769a2b1f45
2021-11-06 12:52:00 +02:00
Michael Bestas
2d0905bd68 lineage-sdk: Remove all code that is marked as Deprecated
Change-Id: I04581d30a5b4ef9d176d17c7aa3baf4b58e8d2af
2021-11-06 12:52:00 +02:00
Luca Stefani
530d7e015d LineageSettings: Import Settings changes
This brings us inline with AOSP package

Change-Id: I21991f0a440e171506bebb3e922d0ef9fe5c4210
2021-10-13 12:10:33 +02:00
Luca Stefani
5769464c12 Twelve bringup
Change-Id: I5e54d1763e5cd1dd8ae895f15d4d54887ced3133
2021-10-13 12:10:32 +02:00
Timi Rautamäki
641bc03260 lineage-sdk: add ATV button settings
Change-Id: I7d41e71301e480aef73c32af77c0eb78c9053b6d
2021-09-22 16:17:03 +00:00
Eamon Powell
7a57f52199 fixup! lineage-sdk: Add preference keys for one shot auto-brightness
Fix typo in comments

Change-Id: I13b0673ef6b4b3ec501cfea2b5dbfe9b20df3833
2021-08-29 11:30:06 +10:00
Cédric Bellegarde
6e7936c0ca lineage-sdk: Add preference keys for one shot auto-brightness
Change-Id: Ifde39e542b078c40b2fd33e951b68fabef417921
2021-08-23 18:11:50 +02:00
Bruno Martins
1416383888 LineageSettings: Mark lookup features as deprecated
These are now handled directly in our Dialer app.

Change-Id: I8d1cd0963360a88be21fdda727725cdb7146723f
2021-06-06 00:20:35 +02:00
Gegham Zakaryan
ad4bce40b2 lineage-sdk: Add LineageGlobalActions service
The service will offer updateUserConfig, getUserConfig, and
userConfigContains methods, which will be used from LineageParts and
fwb. The service will also observe Settings.Global.BUGREPORT_IN_POWER_MENU
and Settings.Secure.LOCKDOWN_IN_POWER_MENU to update the GlobalActions
dialog when these are updated.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I46663ab1ffe6f8d8b2a3dc7dbe54a65b7a62046a
2021-05-23 15:17:16 +02:00
Gegham Zakaryan
df05cf8b26 lineage-sdk: Follow AOSP order of PowerMenuConstants
Partially follow the order of config_globalActionsList and bring emergency and lockdown to top. Some of the order isn't followed as some items such as users and airplane don't exist in AOSP's list but are much more frequently used than, say, bugreport.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: Ie49e77fd99ad0f0dee7c6c7956fc7c1d0474ee63
2021-05-23 15:17:16 +02:00
Gegham Zakaryan
8e4a978315 Revert "sdk: Deprecate POWER_MENU_ACTIONS"
This reverts commit d8742f0727.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I4071297652a6cd0a47d6c642909b32f742e60781
2021-05-23 15:17:16 +02:00
LuK1337
feae6f7481 lineage-sdk: Mark DEVICE_HOSTNAME as deprecated and drop code using it
* AOSP feature is now in place, which uses device name
   as DHCP hostname.

Change-Id: I4adbaca2d980017e5cd81e200729f03b245c6a3e
2021-05-20 22:41:51 +02:00
LuK1337
6fe262abf7 lineage-sdk: Disallow KILL_APP action when task is pinned
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3468
Change-Id: I8420d5531422e9ed25588cd6e5198e14472569e5
2021-05-13 19:34:48 +02:00
LuK1337
1167224e01 lineage-sdk: Retire HostnamePreference as net.hostname no longer works
Change-Id: Ibecaccd5f853570fb4e02cba7274429f2bb037b2
2021-05-12 11:22:12 +02:00
LuK1337
7378e73713 lineage-sdk: Add KILL_APP button action
This partially reverts commit 9eca90278d.

Change-Id: I9bfc039540936e4dbd4313c8f368ce3e3e445290
2021-05-04 13:40:17 +02:00
LuK1337
44427ae3ef lineage-sdk: Add preference keys for back key long press customization
Change-Id: I8a5d80ef5f8aa238ad73ba034d275ea1094dffe9
2021-05-04 13:39:13 +02:00
LuK1337
122825fa60 lineage-sdk: Remove single hand mode enum values
Change-Id: I2865d57d5b6e49391898e8de06889b1a26c54970
2021-05-04 11:15:06 +02:00
Bruno Martins
d1461d3451 BatteryLights: Fix disabled lights when fully charged conditions
Make sure that the option has effect ONLY when battery is uh...
fully charged.

Additionally add previously missing logging.

Change-Id: Ib232d0ea6652230a2435be6931f964dc04a30f71
2021-05-03 19:05:45 +01:00
Bruno Martins
c47d955826 BatteryLights: Add ability to turn off LED when fully charged
Change-Id: I01b8c753a1f92838462a797fd97b5f6a3c666158
2021-04-30 19:40:57 +02:00
Arian
5f3ded7d05 Introduce anti flicker mode in LiveDisplay
Change-Id: Iba7387ff16d463d087c9a38bced90b6c1bd503b1
2021-04-06 11:35:41 +02:00
Arian
056187e74f LineageHardwareManager: Introduce keys swap feature support
Change-Id: I789814d780b06b146c1f9ab62293f4d6ca287208
2021-01-07 17:24:01 +00:00
Michael W
54d862cac4 SystemUI: NetworkTraffic: Refactor message handling
* In certain network situations (e.g. while changing from wifi to
  cellular) it can happen, that the HashMap is modified while the stats
  are currently being recalculated
* We can prevent this by moving adding and removing of any network
  to the same handler so the callbacks can happen without breaking the
  flow
* Move the existing code in handleMessage into some little helper
  methods so it stays simple and readable

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/2870
Change-Id: I38c0c27a4f76fab5aeee013beab346c088bbbd59
2021-01-01 14:19:44 +01:00
Alessandro Astone
967b1a8b8f Profile: Don't NPE when service is not started
On FDE we check wether keyguard is enabled before starting non-core
services like ProfileManager.
All method calls are already guarding RemoteException for a binder
fail, so just throw one if getService() fails.

Change-Id: I44a3a5ea56a5277d84d96a0bc2c7135433811e20
2020-12-21 19:25:00 +01:00
Jesse Chan
e588c4aa83 Implement click to take partial screenshot [3/3]
Change-Id: I9de0cd4f1b793119a7dd45a95b040f70d6c151a6
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-11-11 00:10:00 +01:00
ezio84
f90b813374 LineageButtons: Add support for skipping tracks with remote control
For Spotify and other players that allow music controls for
remote devices (PC, PS4) through the media notification

Change-Id: I38887f8b1cff1a0c1e3adadbfe37d5af59b5cdcc
2020-11-09 11:03:21 +01:00
LuK1337
d8742f0727 sdk: Deprecate POWER_MENU_ACTIONS
Change-Id: I35b0d1123a427598e548cf865328a7c9423cbbca
2020-11-07 17:15:09 +01:00
Bruno Martins
88daa87a94 ConstraintsHelper: Allow replacing multiple keys at once
Change-Id: Ic676aaf12abd4d4b7a6a60b66308774a944ffdd8
2020-10-25 20:04:12 +02:00
Bruno Martins
7bf74325e4 sdk: Kill TelephonyExtUtils class
Since Android 10 arrived, the support for manual SIM provisioning
was never ported. In fact, there seems to be a way to do that
using some bits of AOSP code.

This way we get rid of the telephony-ext dependency for good.

Change-Id: Ibe4e430d696782032b7d9840ab36db040c3a4df9
2020-10-12 18:03:11 +02:00