Commit Graph

20 Commits

Author SHA1 Message Date
Sam Mortimer
55db77b688 lineage-sdk: Move force show navbar to lineage system settings
*) Mild cleanup of DEV_FORCE_SHOW_NAVBAR in the process.

Change-Id: I519245ffb350c172bb1eef2b0d507089fc87907c
2018-09-27 23:09:04 -07: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
Jesse Chan
5bfb5fafa6 sdk: Add an option to force pre-O apps to use full screen aspect ratio
When an app target pre-O releases, the default max aspect ratio
is 1.86:1 which leads to ugly black areas on devices that have
screens with higher aspect ratio (for example Galaxy S8/S9).

This change adds an option to allow users to change aspect ratio
for pre-O apps to full screen aspect ratio.

Change-Id: I2531542f736ee7b809ef7faffd72e5963e7d20d6
2018-06-12 00:45:46 -07: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
Rashed Abdel-Tawab
18fd692bbd lineage-sdk: Add backend for reading enhancement
Change-Id: Ibd1c9e057ddf8e9d21657aef0ebeeaa9a253e92d
2018-05-24 21:39:00 +02:00
LuK1337
bd83e97381 lineage-sdk: Update validators for button settings
* Fixes ArrayIndexOutOfBoundsException when accessing
  button settings after update from 14.1 when user had
  one hand selected before.

Change-Id: I3a8663211cfc5dd7ee22dbb6fa85a8eafb746790
2018-03-18 13:43:17 +00: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
Bruno Martins
945545d8b9 LineageSettings: Add a setting for button backlight only when pressed
Change-Id: I1a914a5f0dab22376f2a86d58be4e4a0c233f6ac
2018-03-07 09:26:16 +00:00
Joey
157a7c1cde sdk: add berry global style and accent settings
Change-Id: If4b2d913713c7e5d2dab8dd43a41a7d0db3c6cb2
Signed-off-by: Joey <joey@lineageos.org>
2018-02-11 20:22:13 +01:00
Jon Haus
7ea84eb2f9 lineage-sdk: Add Network Traffic [2/3]
Changes made since the original implementation from older branches:

*) Forward-ported to Oreo and adapted to Lineage SDK (bgcngm).

*) Implement LineageStatusBarItem interfaces to receive visibility
   and color tint information (bgcngm / sam3000).

*) Move from fw/b to lineage-sdk (sam3000).

*) Increase refresh interval from 1s to 2s (sam3000).

*) Don't generate messages when the statusbar isn't visible (sam3000).

*) Allow for choice of unit to be kb/s or Mb/s (and kB/s and MB/s). This
   deprecates threshold selection for autohide (sam3000).

*) Add an option for whether units should be shown in the
   statusbar (sam3000).

*) Various other simplifications (sam3000).

*) Added vector drawables (courtesy of kover).

Change-Id: Ia5aadc3f03a7b434a047accbd7d53f4aa44c77fb
2018-01-28 03:52:35 +00: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
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
LuK1337
2f9375f4bc lineage-sdk: Add ACCELEROMETER_ROTATION_ANGLES to system settings
* Also add it to legacy settings so it migrates from
  AOSP SettingsProvider.

Change-Id: Ide6ebb2205af743b8ebd03548b622fd1502c5297
2017-12-23 18:09:14 +00: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
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
Sam Mortimer
a89f672e48 LineageSettings: Fixup ContentProvider query arguments
As per similar changes made in
frameworks/base/core/java/android/provider/Settings.java

Whilst not strictly necessary, also renamed
SELECT_VALUE to SELECT_VALUE_PROJECTION
as it is now named in frameworks.

Original AOSP change here:
ea93fe7539

Change-Id: Ib79bdc9a9c1f45d5f8405c7ecea30f68652f2839
2017-10-09 16:48:20 +00: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