Commit Graph

138 Commits

Author SHA1 Message Date
Michael Bestas
2d0905bd68 lineage-sdk: Remove all code that is marked as Deprecated
Change-Id: I04581d30a5b4ef9d176d17c7aa3baf4b58e8d2af
2021-11-06 12:52:00 +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
Jesse Chan
d649b1d261 Implement hide gestural navigation hint bar [3/5]
Change-Id: Iaf776d9d70b951119134eb31bc44a3a63f468698
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-05-26 22:07:38 +02:00
Bruno Martins
b485a25aa3 profiles: Fix typo in static variable naming
Change-Id: Ic17febc55e6726f0efc18c201223856bbc2798b3
2020-04-21 11:53:28 +02:00
Bruno Martins
bd39ad8c07 profiles: Account for deprecated location API methods
Settings.Secure#setLocationProviderEnabled is deprecated since API level 19.

Change-Id: I7d1d13de3af100fb81d87e957acf89fb7f08cb7d
2020-04-21 00:47:55 +01:00
Nico
c3b5589ccf Implement edge long swipe gesture [2/3]
Set up standard action setting for long swipe gesture.
(KEY_EDGE_LONG_SWIPE_ACTION)

Change-Id: Ida75e768b822542dea944cc719408e192bbb7d7e
2020-03-15 11:48:18 +01:00
Wang Han
06ecc3c168 lineage-sdk: Drop Expanded Desktop API
* This conflicts with AOSP gestures implemention now, and
   the framework part is hard to port.
 * Furthermore the original implementation has the following
   bugs/issues:
   1. Pressing power button or double tap does not wake up the device
   2. No soft-key buttons when opening the keyboard
   3. Probably more

Change-Id: Ia233c3b9d0aa7426f0fd15dffe4da203b4e09b1d
2020-03-09 15:36:50 +01:00
Wang Han
d0702b1288 lineage-sdk: Drop root status of Trust
Change-Id: Iaec0b2a8a781a0e9d301a21a3af5e4362a5d6630
2019-12-08 23:04:18 +01:00
Bruno Martins
4eeac2c95b sdk: Nuke Berry Styles
This is being ditched in favour of ThemePicker.

Change-Id: I00c5faca452164d59b804cb64166edb83611f77d
2019-11-21 02:36:13 +02:00
Sam Mortimer
3533d385d9 lineage-sdk: Migrate to androidx
* Migrate from support library to androidx

* Various improvements and cleanup by @bgcngm

Change-Id: I10bbf5056125e8309f344c3eb18cc628bd7ec34e
2019-09-09 07:09:59 +02:00
LuK1337
9cb69f81bd sdk: Remove VOLUME_KEYS_CONTROL_RING_STREAM
* No longer used since we removed preference from LineageParts.

Change-Id: Iff64a051762fd71a79d1ddfa52b3ca4b14f6a2bb
2019-04-12 10:18:48 -07:00
Paul Keith
b49ed55600 sdk: Add HIDL compat in LineageHardwareManager
* While we're at it, hide the use of getSupportedFeatures(),
  since it only works for lineagehw java features, not hidl
* Cleanup some minor styling/organization issues

Change-Id: I905010bc7c6d7d8578eeca501be23f665127aa27
2019-02-04 14:43:29 +01:00
Paul Keith
7368c8e988 sdk: Deprecate some unused lineagehw features
* DISPLAY_GAMMA_CALIBRATION
* LONG_TERM_ORBITS
* SERIAL_NUMBER
* While we're at it, cleanup tests for removal of other features too

Change-Id: I1a572cf3bcc5298d208a3dc234f9d82da1105bf0
2019-02-04 14:43:29 +01:00
Wang Han
0b12914dbf Revert "[3/3] cmsdk: add burnIn protection setting"
* Our overlay name now confuses people as Google introduced a screen
  burnin protection feature for ambient mode in Oreo. Just re-use AOSP
  one and kill this.

This reverts commit 088ddf5aaf.

Change-Id: Ia76b28444cd7b117559062fbd8230602962616b2
2019-01-18 16:47:09 +01:00
Tim Schumacher
0f4766ffec Regen lineage_current
*) setGrayscale was removed here:
505580e2dd

Change-Id: If075a093e4e00ab845cd817966df041f5dba71d3
2018-08-16 22:47:25 +02:00
Joey
a37b3cd4e5 styles: add support for more dark overlays
Change-Id: If9e08ba8ff28cff7a4061a6b6cea10d5fe38a541
Signed-off-by: Joey <joey@lineageos.org>
2018-07-08 17:02:36 +02:00
Joey
c8a06b9ff7 sdk: Trust: better warnings management
Allow fine-tuned management of trust warnings,
the user is now able to disable specific warnings
instead of blocking everything

Change-Id: I04c7aa5fba76fd7500fd70c0c874fa0c3e59e03a
Signed-off-by: Joey <joey@lineageos.org>
2018-07-06 11:27:11 +02:00
Luca Stefani
55962105cf Regen lineage_current
Change-Id: I47ceb8f40998be70489f61513e3d980fad47e7f4
2018-07-02 10:10:34 +02:00
Tobias Tefke
fa05f27ad7 Trust: warn if build is signed with insecure keys
Change-Id: I1d58e232ed99dfe7e2addb651c114c1068e64105
2018-06-26 00:27:09 +02:00
Joey
c0b21ca8ed sdk: Introduce Trust Interface
Change-Id: I5c3ece3f6035dd03be1ceab01020496c179f2e65
Signed-off-by: Joey <joey@lineageos.org>
2018-06-10 00:45:35 +02:00
Joey
5a72b57502 sdk: Styles API finalization for API9
Changes:

- Added getter for global style and current accent
- Added getter for a list of (available) trusted overlays
- Apps that want to change the global style now MUST specify their
  package name when calling setGlobalStyle().
  LineageParts will expose the name of the app that's currently managing
  the global style
- Improved documentation

Change-Id: Iaa1b106f43684b4120aa0f39023ebfddcb379806
Signed-off-by: Joey <joey@lineageos.org>
2018-03-11 16:22:59 +00:00
Joey
76fc3d3942 sdk: introduce Style API
This API will allow apps to change global style mode and accent.

Global style mode can be
* Automatic (wallpaper)
* Automatic (day of time)
* Light
* Dark

Accent colors are defined in the caller application that will have
to pass the package name.

It's possible for apps to pass a Bitmap and get a suggestion
of a global style + accent color that can be applied.

Restrictions:
* Only one accent can be enabled at time.
* We're not limiting this to system apps, but we're marking
  this as dangerous permissions so apps will have to require
  it at runtime to the user.

Change-Id: I921e8758c3ae093a88e897899612830258c97f8d
Signed-off-by: Joey <joey@lineageos.org>
2018-03-05 13:33:30 +00:00
Joey
6b4410555a sdk: livedisplay: add a method to determine whether night mode is enabled
LiveDisplayManager.getMode() returns MODE_AUTO when night mode is enabled
automatically, so there's no way to determine if night is on when livedisplay
changes automatically

Change-Id: Ia47fc127232c2bb3b6634b55712060a919f8c9c1
Signed-off-by: Joey <joey@lineageos.org>
2018-02-11 20:22:13 +01:00
Luca Stefani
38b21a6648 sdk: Cleanup PerformanceManager
* Remove per-app profiles support
* Remove cpu boost support

Change-Id: I37e7473f8df1d08a69bc9274ae356dc1133811db
2018-02-08 17:33:54 +01:00
Sam Mortimer
c7a8ed54b5 lineage-sdk: DnD light brightness control for battery and notifications
*) Support separate normal and dnd led brightness levels for battery
   and notifications.

*) Move lineage-specific notification bundle extras definitions from fw/b
   to LineageNotification here in the sdk.

*) In addition to the existing bundle extra EXTRA_FORCE_SHOW_LIGHTS, add
   a new extra EXTRA_FORCE_LIGHT_BRIGHTNESS that can be used to override
   the brightness level set by a Lineage system setting brightness level
   on a per notification basis.  This is used by the brightness sliders
   in LineageParts that otherwise would have to juggle changing / restoring
   the system led brightness setting whenever the a slider is on display.

*) Disable all lights in dnd mode when lineage setting ZEN_ALLOW_LIGHTS
   is set to 0.

Change-Id: I917f402a291682b582f68c8324a33c461357dad9
2018-01-25 20:38:10 +00:00
Michael Bestas
d3907794a6 lineage-sdk: Remove MediaRecorder API
* Last used in cm-13.0 for cyngn purposes

Change-Id: Ie5aa8b224c29f2d716489cf7a7eb2dfe2d8a3bbf
2018-01-24 02:43:13 +02:00
Michael Bestas
e54c07d4ed lineage-sdk: Remove alarm clock API
* Last used/implemented in cm-13.0 DeskClock

Change-Id: I9db1a72e29fd2ce232f7cad69ee9b5a6fadfa5de
2018-01-24 02:43:12 +02:00
Michael Bestas
861ba2d874 lineage-sdk: Remove lineage telephony service
* Used for old MSIM API which is non-functional since a while

Change-Id: Ica2b9ae119d5972e425082433df3a7b099ae404a
2018-01-24 02:43:12 +02:00
Michael Bestas
99fba21024 lineage-sdk: Remove lineage status bar service
* Used for CM tiles API which is long dead

Change-Id: I66e8b57c035584aff5a4f5123388a4881e853a8f
2018-01-24 02:43:12 +02:00
Michael Bestas
60aa859cbe lineage-sdk: Remove app suggest feature
Change-Id: I60280aba6694da744e234ff5f2b9fd252da68908
2018-01-24 02:43:12 +02:00
Michael Bestas
dc1731e1dd lineagehw: Remove thermal monitor feature
Change-Id: I8422858634a2518b84efc56b24f2ace37f38724a
2018-01-24 02:43:12 +02:00
Michael Bestas
19d8afb7e6 lineagehw: Remove persistent storage feature
Change-Id: I286735192cf3f688980645efa7c1ba057fa825ca
2018-01-24 02:43:11 +02:00
Michael Bestas
d66c37c8d3 lineagehw: Remove tap to wake feature
Change-Id: I43e505b12b67eaad37a314a754d635988b8dee5e
2018-01-24 02:43:11 +02:00
Michael Bestas
d85907768c lineagehw: Remove unique device ID feature
Change-Id: I99aae7716e1b54e5ee2b6cb59ca75573126ffec4
2018-01-24 02:43:11 +02:00
Michael Bestas
e613b863ec Initial regeneration of Lineage SDK API level 8
Change-Id: I0644c56c6913497521946d5e658fd72aa9df53fa
2018-01-02 19:38:46 +00:00
Sam Mortimer
3c54d58691 lineage-sdk: Support requiresConfig integers and add requiresConfigMask
*) Add support for integer requiresConfig resources (previously supported
   only strings and bools).  Preference is removed if the int is 0.

*) Add a new attribute requiresConfigMask that takes a string decimal int.
   If requiresConfig is an integer then the pref is removed if
   (requiresConfig resource value & requiresConfigMask value) == 0.
   If requiresConfig is not an integer type then requiresConfigMask
   is ignored.

*) Code clean-up for the rest of checking requiresConfig.

Change-Id: Ic2622809c02a94d9cecf6f59ed6e689fdb835458
2017-10-24 22:52:07 -07:00
Adrian DC
af41414b76 Multiple LEDs [2/2]: Remove feature support
* The feature was used only on Huashan since 2015

 * It serves only for a small part of the users
    who wanted to restrict to one light instead
    of three lights from the LEDs bar

 * Due to Oreo's new HIDL interfaces stack,
    the additional data holder would need
    a custom lights interface which is useless
    for a single device and a rare use case

Change-Id: Ie08a1d625c7ce00fefff5bc1159522207be69dbc
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-10-14 14:18:27 +02:00
Sam Mortimer
52fb606687 Remove ThirdPartyKeyguard
Change-Id: Ie3717b9ea7a23988ebd646ed7e2fe8f105a4a693
2017-10-12 21:54:21 +00:00
Sam Mortimer
68d668ef53 Remove KeyguardExternal
Change-Id: I58156b2cd17aac706d1567cbaf650f5c0bad5860
2017-10-12 21:53:42 +00:00
Sam Mortimer
ae2d7e15ce Remove PartnerInterface and LiveLockScreen
Change-Id: I8044de599ef6db8e9a1ff63e43dc2cea9c28d02a
2017-10-12 21:53:02 +00:00
Sam Mortimer
0912ee88c7 Remove theme support
Change-Id: I41f1d0fa1ecc98c2872d2569534e6f2ef686a726
2017-10-11 23:17:36 -07:00
Steve Kondik
987ecb37eb lineage-sdk: Add private copy of Palette
This was in frameworks/base on lineage 14.1 and
earlier (https://review.lineageos.org/#/c/65797/).

Update api/lineage_current.txt to match the new location.

Change-Id: Ib852ab1bc04936828ef00e24f71783e6a41de33c
2017-10-08 21:08:30 -07:00
Sam Mortimer
542742b751 lineage-sdk: rebrand step 2: update file contents
Change-Id: I9881acc57cdc0aeea2b296aac12a8af932d30aea
2017-10-06 09:40:24 -07:00
Sam Mortimer
5ede05bdca lineage-sdk: rebrand step 1: update paths
Change-Id: I4c2135d03d730a313a0638d0f857afa48fb220d3
2017-09-22 17:19:40 -07:00
Joey Rizzoli
088ddf5aaf [3/3] cmsdk: add burnIn protection setting
Change-Id: I3b8007d75a8f17fe7c094e0309e4dbc8f7f9d8c7
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2017-09-22 17:19:40 -07:00
Sam Mortimer
bdea7f59e8 [2/3] Torch long press power: add auto-off function
Change-Id: I1a9566a00a4c427d7088d19c8e4be78485dceebb
2017-06-20 10:41:53 +00:00
Zhao Wei Liew
952645382c CMSDK: Add long-press power for torch CMSetting
This is used to decide whether a user wants
to long-press the power button while the display
is off to activate the torchlight.

Change-Id: I3bfaa4bf5a5452b9af2c412596c6713a151e0ec8
2017-02-04 00:33:21 +00:00
Zhao Wei Liew
cfaf39e73f cmsdk: Add touchscreen gestures support
Add the CMHW implementation for touchscreen gestures.

Change-Id: Iabeee255748fc92376bc861409a7074de570cb0c
2017-02-01 01:31:58 +00:00
Zhao Wei Liew
d73a9322a4 cmsdk: cmhw: Deprecate TAP_TO_WAKE feature
All devices should use the native implementation now.

Change-Id: Ic29472ba28569536a8556f61229a8a8fe783354a
2017-01-24 08:14:53 +00:00