Commit Graph

777 Commits

Author SHA1 Message Date
LuK1337
c6d700a2fa lineage-sdk: Add kill app back button configs and strings
Change-Id: I867de293fc6e160a86a64d96035704d82b270f4e
2018-01-12 13:42:21 +00:00
Roman Birg
de846c64c3 lineage-sdk internal: Import ActionUtils class
Change-Id: Iab14009d7e26064c8c6b732cf22be90da3ef7f04
2018-01-12 13:42:21 +00:00
Simon Shields
322b46a133 lineage-sdk internal: add LineageButtons
This class will be the new home for all the buttons logic currently
in fw/b. Currently, it only implements the "long press volume keys to
skip" feature.

Based on the following commits from cm-14.1:

commit 1296fb316946ca1361b2d32557b6c9e028f509c8
Author: Dark Eyes <dark_eyes_@hotmail.com>
Date:   Sat Nov 5 12:09:31 2016 -0400

    Fix long press volume buttons skip tracks

    Without that patch, the volume changes up or down prior
    to skipping tracks because the sendvolumekeyevent doesn't
    have the mayChangeVolume condition. Also, that part is
    useless cause the mUseTvRouting condition is taken care
    of correctly later.

    Change-Id: I88757315f135f013e7692861d46b3a07fbfc07d5

commit 61cebe2fea95f799b7b4edc540f6c38d3c13fbde
Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Thu Dec 18 14:43:22 2014 +0200

    Fix volume key music controls and wake up

    - Forward port code from cm-11.0 and adjust for 5.0
    - Fix not being able to adjust volume when music control is on
    - Disable screen off volume/music control when wake key is enabled

    Change-Id: Ie0ad83965c41fd33120490c25a4ff3d9b2cbeb37

commit f41ba8af1796b4903dba3d134e56e8148f3b4808
Author: Austin T. Conn <atc3030dev@gmail.com>
Date:   Wed Dec 17 13:28:00 2014 -0500

    Settings: Forward Port Volume Long Press Skip Tracks (1/2)

    Bring Forward Volume Rocker Track Change

    Requires Settings Change
    http://review.cyanogenmod.org/#/c/82222/

    Change-Id: I70b00e08fe48707110725dd1daa56b1e48d15a03

Change-Id: I5c7f733913242bba822cf3f9f7e1e3320c2bedf7
2018-01-12 13:42:13 +00:00
Bruno Martins
7ec01f6171 lineage-sdk: Add config to define camera key type
* To be used for buttons settings

Change-Id: I11ef0333bd98953ce10381d0e338bd25142ca5d8
2018-01-12 12:16:07 +00:00
Bruno Martins
5bcd8016d2 lineage-sdk: Import device keys custom rebinding configs and add helpers
* Used to "live" in fw/b since ever, but will be here from now on.

 * This also brings AOSP configs (config_longPressOnHomeBehavior and
   config_doubleTapOnHomeBehavior) to the SDK since those are being
   extended, putting everything in one place.

 * Long pressing home button will now default to launch assistant
   and menu button to open recent apps, leaving the past behind.

Change-Id: I0ca2b2cf9a565a334c3edf19a978fa6d2c4d2ea3
2018-01-12 11:21:31 +00:00
Bruno Martins
112da99f2a lineage-sdk: Import device hardware keys configs and constants
* Used to "live" in fw/b since ever, but will be here from now on.

Change-Id: I3469a4084590c96f41c6ff128cf008143d315728
2018-01-12 11:21:30 +00: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
0bc9141f54 Android.mk fixups for make update-lineage-api and checkapi-lineage
Change-Id: I25250d93c99e4f42dc481ff4d4362d38dac3dee0
2018-01-02 00:14:34 +02:00
Jeff Sharkey
d15396299e Invoke doclava with new "-android" flag.
Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I970bb2655eb568fd25004636f134c794663a6c33
2018-01-01 22:49:02 +02:00
smain@google.com
8b35643ec6 Use the "referenceonly" flag for a cleaner output and faster build.
Change-Id: Iebd9791305479c5dc406ba3b81eaf076855bc632
2018-01-01 22:48:50 +02:00
Ying Wang
d42a658a5b Using LOCAL_DROIDDOC_STUB_OUT_DIR to specify "-stubs" option.
So that the build system can clean up the stub out dir before
calling doclava.

Bug: 22534021
Change-Id: Iba33cf0a295e4ae32fdcad8bd326c2f52de5f875
2018-01-01 21:44:22 +02:00
Michael Bestas
3031b61c6c lineage-sdk: Introduce API level 8 - Hackberry
Change-Id: Ice54dba2b35e587d4280de6d86a250bc2c46469a
2018-01-01 18:30:14 +02:00
Michael Bestas
0f5b5cc352 Revert "cmsdk: Create brokerablecmsystemservice concept."
* All services have been integrated into Lineage SDK again

This reverts commit b62a4550c3.

Change-Id: I8a86ca387458487029b13850bfa361a5608a9ba6
2017-12-28 01:29:14 +02:00
Michael Bestas
708557f458 Revert "CMSDK: Broker out WeatherManagerService"
This reverts commit c487191476
adapted for LineageOS rebrand.

Change-Id: I959228815939dcfbc0469e61f037780a5adaae40
2017-12-28 01:29:09 +02:00
Michael Bestas
77df5adde0 Revert "cmsdk: Broker out CMAudioService"
This reverts commit 705716fc60
and partially reverts commit 8f33604af6
adapted for LineageOS rebrand.

Change-Id: Ia50f8430113dd54050697bcca9c6f5c337d61363
2017-12-28 00:16:47 +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
Sam Mortimer
211a874c39 lineage-sdk: Hide a pref group if all child prefs are themselves hidden
*) The change https://review.lineageos.org/#/c/193263/ knowingly removed
   the functionality where a pref group itself would be removed if all
   child prefs were removed (see comments around PS8/9).

*) bgcngm discovered cases where this is needed so add this
   functionality back.

Change-Id: Ibe684a6a21a2989623df71b08c2f5241682988ac
2017-12-22 00:23:48 +00:00
Sam Mortimer
0991abb0c3 lineage-sdk self-removing prefs: don't remove from death row until reaped
*) Graveyard is shared by all prefs with a given context.

*) When we reap in onAttached(), there may be prefs that aren't yet
   attached to the hierarchy.  Ensure that summonReaper keeps
   track of them until the last onAttached() is called in the context.

*) Fixes self-removing prefs that weren't being removed on a settings
   page that has at least one least other self-removing pref.

Change-Id: Ic48b86bb6f06aa29c44814a5487e2382349fb363
2017-12-19 01:19:13 +00:00
Sam Mortimer
7ab8aadc8a Revert "Revert "lineage-sdk self-removing prefs: move reap from onBindViewHolder to onAttached""
This reverts commit 9f648b7046.

Change-Id: Ia102cfb55c16eb52e1412e815abd081d504fc96f
2017-12-19 01:18:53 +00:00
Sam Mortimer
34d6da2407 lineage-sdk lights: add battery light isSupported() helper
*) Used by fw/b to prevent making LightsService
   calls when a battery light is not present.

Change-Id: I871a0fd3505e6f0b4db8eb6ba5971680c36a14c3
2017-12-13 12:36:46 -08:00
Christopher N. Hesse
999fed3550 Fix FindEmulator breakage due to missing dir
error: FindEmulator: find: `lineage-sdk/dummy': No such file or directory

Change-Id: I33712fa947432dcb6344ff9ceb1fa82e1e14a142
2017-12-07 15:18:17 -08:00
dianlujitao
2cf37e453c lineage-sdk: Switch droiddoc build to use templates-sdk from doclava
Change-Id: I94032853ea920f8e5abde068b4406173223c8b36
2017-12-07 21:56:02 +08:00
Bruno Martins
9f648b7046 Revert "lineage-sdk self-removing prefs: move reap from onBindViewHolder to onAttached"
This reverts commit 027b615325.

While it served its original purpose, this was causing bad side-effects
when using our constraints (verified at least with requiresConfig and
requiresAction). Moving the reap to onAttached was rendering self-removing
prefs useless because if the view isn't loaded yet, the preference
(which also doesn't yet exists) can't really be hidden.

Change-Id: Ic61fe4b9979412d89c55ea1543c494e69bf6eab7
2017-12-06 12:31:48 +00:00
Harry Youd
8c4872f801 lineage-sdk: Add Lineage updates preference
Adapted from the following in order to fit
into lineage-sdk (LuK1337):

Settings: Add LineageOS Updater
https://review.lineageos.org/191270

Change-Id: Ifce9da06b82075f1152d939f77a455f003879501
2017-11-28 15:21:59 +01:00
Harry Youd
ab0f5c54ab lineage-sdk: Add Lineage version, API and build date preferences
Adapted from the following in order to fit
into lineage-sdk (sam3000):

Settings: Add LineageOS version to device info
https://review.lineageos.org/191065
Settings: Add Lineage SDK API version to device info
https://review.lineageos.org/191086
Settings: Add build date to device info
https://review.lineageos.org/191087

Change-Id: I8f41d16733f7b0fadb47e6940c4140c039626423
2017-11-25 11:02:12 +00:00
Abhisek Devkota
7ac8299f23 Automatic translation import
Change-Id: I6aa82384a994eeeb08b1219599c2492eb8e5d3e0
2017-11-20 22:04:23 -08:00
Michael Bestas
0e540883cf Remove obsolete values-be translations
* values-be-rBY is used now

Change-Id: I1bfa7ec55606af83e92013dea6a907aa1fa3f6cc
2017-11-20 22:03:26 -08:00
Sam Mortimer
d38ce5064c lineage-sdk internal: Add LineageBatteryLights
Migrate frameworks/base lineage feature
code handling to lineage-sdk.

*) Settings observation and most lineage lights
   feature specific code has been moved to the
   lineage-sdk.

*) Battery frameworks services call out to the
   sdk to allow our features to make changes to
   lights values.

Based on the commits:

    Author: DvTonder <david.vantonder@gmail.com>
    Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
    Date:   Mon Nov 4 00:57:51 2013 +0000
    Framework: Port CM9 features to CM10
    Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb

    Author: Pawit Pornkitprasan <p.pawit@gmail.com>
    Date:   Sun Dec 8 15:24:41 2013 +0700
    BatteryService: fix FC on boot until battery stat is present
    updateLightsLocked() can be called from CM's added SettingsObserver
    when battery stat is not present, causing an FC and a loop until
    battery stat is present.
    Change-Id: Ic4438fe50e98f1aa05ae1d0d26240bf9410fd92f

    Author: Sam Mortimer <sam@mortimer.me.uk>
    Date:   Tue Dec 31 16:22:05 2013 -0800
    [2/2] Framework: instant led test
    Adds support a new notification extra boolean
    EXTRA_FORCE_SHOW_LIGHTS.  Used by settings
    notification light picker to force lights on
    when the screen is on.
    Change-Id: If0a42d32b28fe8c02ef5f7dd148db7eb478fac17

    Author: Michael Bestas <mikeioannina@gmail.com>
    Date:   Mon Aug 18 04:56:28 2014 +0300
    Add support for single color notification LED (1/2)
    Change-Id: I367af77036da9e87c6dd0df552ce4c56d945a44d

    Author: Danesh M <daneshm90@gmail.com>
    Date:   Thu, 12 Nov 2015 10:52:11 -0800
    Framework : Move System settings to CMSettings
    Change-Id: I4e9fb06db7b9ba05e4a7bbe11916bb2271af4727

    Author: Adnan Begovic <adnan@cyngn.com>
    Date:   Mon, 9 Nov 2015 16:26:00 -0800
    fw: Move battery light settings to CMSettings.
    Change-Id: I28e60473356b2a9af152df82d34ad7abc9918682

    Author: Steve Kondik <steve@cyngn.com>
    Date:   Thu Sep 24 11:27:59 2015 -0700
    lights: Automatically generate an LED color for notifications
    Change-Id: I7288e52499819a6a6c75ed9d9ba7cfa1b13c5669
    nms: Only generate LED colors if the device has a multicolored LED
    * Check the overlay value before doing any of this stuff.
    Change-Id: Iedfceba6bfc86b2761d8af57ecab51026bfa4c19
    Change-Id: I7288e52499819a6a6c75ed9d9ba7cfa1b13c5669

    Author: Adrian DC <radian.dc@gmail.com>
    Date:   Sat Oct 14 23:08:47 2017 +0200
    fw: Rebrand to LineageOS and cleanup for Android Oreo
    Change-Id: I21d424433bb52a17eea7974c4ea29a3a16fe1be5

    Author: AdrianDC <radian.dc@gmail.com>
    Date:   Sat Jul 18 12:20:51 2015 +0200
    Lights with Screen On [1/2]: Optional allowment of lights
    Change-Id: I2071147d8ddab80ba0e1e7310e785ac3e03b3c7c
    Lights with screen on: Don't disable leds after the lockscreen
    Change-Id: If8f5b867a34be09fb061bb7ad040b16730f4e263
    Framework : Move System settings to CMSettings
    Change-Id: I4e9fb06db7b9ba05e4a7bbe11916bb2271af4727
    fw: Rebrand to LineageOS and port for Android Oreo
    Change-Id: I65cfeb659fe516ef43aa84b1c6d2eb6876df202a
    Change-Id: If8f5b867a34be09fb061bb7ad040b16730f4e263

    Author: Michael W <baddaemon87@gmail.com>
    Date:   Mon Oct 9 22:04:00 2017 +0200
    Core: Battery warning levels are inclusive, not exclusive
    Change-Id: Ib35b154b6117f7e26b4a3a5aee9254dda3adda12

    Author: Adrian DC <radian.dc@gmail.com>
    Date:   Sat Oct 14 23:08:47 2017 +0200
    fw: Rebrand to LineageOS and cleanup for Android Oreo
    Change-Id: I845f866891386aee808a4e7e80f4ab7c3ad48830

Change-Id: I13fcb1e16756a8008d0850050e0b09ab0b92a56f
2017-11-21 04:01:26 +00:00
Sam Mortimer
fdb387454b lineage-sdk internal: Add LineageNotificationLights
Migrate frameworks/base lineage feature
    code handling to lineage-sdk.

    *) Settings observation and most lineage lights
       feature specific code has been moved to the
       lineage-sdk.

    *) Battery frameworks services call out to the
       sdk to allow our features to make changes to
       lights values.

    Based on the commits:

    Author: DvTonder <david.vantonder@gmail.com>
    Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
    Date:   Mon Nov 4 00:57:51 2013 +0000
    Framework: Port CM9 features to CM10
    Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb

    Author: Pawit Pornkitprasan <p.pawit@gmail.com>
    Date:   Sun Dec 8 15:24:41 2013 +0700
    BatteryService: fix FC on boot until battery stat is present
    updateLightsLocked() can be called from CM's added SettingsObserver
    when battery stat is not present, causing an FC and a loop until
    battery stat is present.
    Change-Id: Ic4438fe50e98f1aa05ae1d0d26240bf9410fd92f

    Author: Sam Mortimer <sam@mortimer.me.uk>
    Date:   Tue Dec 31 16:22:05 2013 -0800
    [2/2] Framework: instant led test
    Adds support a new notification extra boolean
    EXTRA_FORCE_SHOW_LIGHTS.  Used by settings
    notification light picker to force lights on
    when the screen is on.
    Change-Id: If0a42d32b28fe8c02ef5f7dd148db7eb478fac17

    Author: Michael Bestas <mikeioannina@gmail.com>
    Date:   Mon Aug 18 04:56:28 2014 +0300
    Add support for single color notification LED (1/2)
    Change-Id: I367af77036da9e87c6dd0df552ce4c56d945a44d

    Author: Danesh M <daneshm90@gmail.com>
    Date:   Thu, 12 Nov 2015 10:52:11 -0800
    Framework : Move System settings to CMSettings
    Change-Id: I4e9fb06db7b9ba05e4a7bbe11916bb2271af4727

    Author: Adnan Begovic <adnan@cyngn.com>
    Date:   Mon, 9 Nov 2015 16:26:00 -0800
    fw: Move battery light settings to CMSettings.
    Change-Id: I28e60473356b2a9af152df82d34ad7abc9918682

    Author: Steve Kondik <steve@cyngn.com>
    Date:   Thu Sep 24 11:27:59 2015 -0700
    lights: Automatically generate an LED color for notifications
    Change-Id: I7288e52499819a6a6c75ed9d9ba7cfa1b13c5669
    nms: Only generate LED colors if the device has a multicolored LED
    * Check the overlay value before doing any of this stuff.
    Change-Id: Iedfceba6bfc86b2761d8af57ecab51026bfa4c19
    Change-Id: I7288e52499819a6a6c75ed9d9ba7cfa1b13c5669

    Author: Adrian DC <radian.dc@gmail.com>
    Date:   Sat Oct 14 23:08:47 2017 +0200
    fw: Rebrand to LineageOS and cleanup for Android Oreo
    Change-Id: I21d424433bb52a17eea7974c4ea29a3a16fe1be5

    Author: AdrianDC <radian.dc@gmail.com>
    Date:   Sat Jul 18 12:20:51 2015 +0200
    Lights with Screen On [1/2]: Optional allowment of lights
    Change-Id: I2071147d8ddab80ba0e1e7310e785ac3e03b3c7c
    Lights with screen on: Don't disable leds after the lockscreen
    Change-Id: If8f5b867a34be09fb061bb7ad040b16730f4e263
    Framework : Move System settings to CMSettings
    Change-Id: I4e9fb06db7b9ba05e4a7bbe11916bb2271af4727
    fw: Rebrand to LineageOS and port for Android Oreo
    Change-Id: I65cfeb659fe516ef43aa84b1c6d2eb6876df202a
    Change-Id: If8f5b867a34be09fb061bb7ad040b16730f4e263

    Author: Michael W <baddaemon87@gmail.com>
    Date:   Mon Oct 9 22:04:00 2017 +0200
    Core: Battery warning levels are inclusive, not exclusive
    Change-Id: Ib35b154b6117f7e26b4a3a5aee9254dda3adda12

    Author: Adrian DC <radian.dc@gmail.com>
    Date:   Sat Oct 14 23:08:47 2017 +0200
    fw: Rebrand to LineageOS and cleanup for Android Oreo
    Change-Id: I845f866891386aee808a4e7e80f4ab7c3ad48830

Change-Id: Ic4c9c5f5602515ccbc2c6b8b10bcf3d2c6e34b4b
2017-11-21 04:01:19 +00:00
Sam Mortimer
cef20e4e1f lineage-sdk internal: Add LightsCapabilities
*) Moved lights capabilities from frameworks/base
   NotificationManager to the lineage-sdk.

*) Add device has a battery light LIGHTS_BATTERY_LED capability.

Adapted from the original frameworks/base commits:

   Author: Ricardo Cerqueira <android@cerqueira.org>
   Date:   Thu Nov 10 12:15:00 2016 +0000

       NotificationManager: Concentrate LED light capabilities in a single location

       We have a bunch of individual boolean toggles for various LED behaviors
       and combinations, which end up getting used as a similarly sprawling bunch
       of getResource() calls across various locations. And they keep piling up...

       So... create a new overlayable bit field of LED capabilities,
       config_deviceLightCapabilities, where we can throw everything
       and expand in the future. Remove the obsolete overlays so that
       everyone uses the new overlay moving forward.

       Change-Id: I7d627914b058861048071fc15776031c4152157f

   Author: Adrian DC <radian.dc@gmail.com>
   Date:   Sat Oct 14 23:08:47 2017 +0200

       fw: Rebrand to LineageOS and cleanup for Android Oreo

       Change-Id: If7468759925d1636adad1c253d68b5adbc6dfb26

Change-Id: Ib14badcc0a2ad165610dd7d0e90388170e1cd548
2017-11-21 04:01:11 +00:00
Sam Mortimer
814a9f5fa3 lineage-sdk internal: Add LedValues helper class
Change-Id: Ib609676ae3678f4f49810b3e1aaf50aba8f97c5d
2017-11-17 14:31:12 -08:00
Sam Mortimer
027b615325 lineage-sdk self-removing prefs: move reap from onBindViewHolder to onAttached
*) Eliminates visibility of the pref removal. You could previously
   see vertical movement of text during initial display of replaced
   prefs.

*) In addition, when reaping, use setVisible(false) instead of
   removePreference.  Otherwise, array out of bounds index exceptions
   occur in frameworks pref support libraries (as a result of moving
   from onBindViewHolder to onAttached).

Change-Id: I1a0045552572a590f89715f8d94156eddaaec469
2017-11-09 14:42:55 +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
Colin Cross
3276a6baa3 Fix missing dependency on R.java
Compiling frameworks source is missing a dependency on the R.stamp file
generated by the frameworks-res aapt rule, likely caused by the switch
to jack.  Use LOCAL_ADDITONAL_DEPENDENCIES to insert the dependency
instead of directly using build system internals.

Change-Id: I897aec39957918a787df904d3093d91580de6fc4
2017-10-15 06:04:38 +00:00
Sam Mortimer
f0a4544b5e LineageSettings: Add back option to pass swipe-up-to-unlock
This got removed unintentionally by:
  Author: Sam Mortimer <sam@mortimer.me.uk>
  Date:   Wed Oct 11 23:00:18 2017 -0700
      Remove ThirdPartyKeyguard
      Change-Id: Ie3717b9ea7a23988ebd646ed7e2fe8f105a4a693

Add back the lock util methods from the original commit:
  Author: Danesh M <daneshm90@gmail.com>
  Date:   Mon Feb 8 14:57:31 2016 -0800
      CMSettings : Add option to pass swipe-up-to-unlock (3/3)
      CYNGNOS-1873
      Change-Id: Icdd2505dbc56a77f49a76ea61daf75c5d8a24fd6

Change-Id: I6177700be955f42505dbd5fbb23461f8e151e1b4
2017-10-15 03:04:35 +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
0c7a703730 lineage-sdk: Comment out currently unbuildable code to allow graceful bringup
*) Insert /* */ on new lines around code that depends on
   missing framework code.

*) When the comments are later removed, the original git
   history will be intact.

Change-Id: I653e947afabbd29ead17a9685162cc6380799d53
2017-10-12 21:55:20 +00: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
68ed16aece lineage-sdk internal: remove deviceSupportsLte()
It's no longer used anywhere and has a dependency
on frameworks code that we don't want to add to
lineage-15.0.

Change-Id: Ib25bc214df658e7576e63c73a9c23b7e87ea71d8
2017-10-12 21:08:17 +00:00
Sam Mortimer
0912ee88c7 Remove theme support
Change-Id: I41f1d0fa1ecc98c2872d2569534e6f2ef686a726
2017-10-11 23:17:36 -07:00
Sam Mortimer
6904e77152 lineage-sdk internal: Add StopMotionVectorDrawable from uicommon
*) Move it here so that external/uicommon can be
   deprecated.

Origial uicommon StopMotionVectorDrawable.java history:

Author: Adrian DC <radian.dc@gmail.com>
Date:   Fri Oct 28 10:55:25 2016 +0200
    uicommon: Fix getAnimatorSetViaReflection UI usage
     * The receiver can be an instance of VectorDrawableAnimatorRT
        instead of VectorDrawableAnimatorUI since AOSP 7.x,
        therefore call the forceAnimationOnUI method to ensure
        mAnimatorSet is an instance of VectorDrawableAnimatorUI
     * Change introduced in "Support running AVD on UI thread",
        frameworks_base: I372ecd3dc52e3fa0bdce3a1e9c19443f9b199027
    Change-Id: Ie00c86474f38600b4f10889e292b20a8f7e6531e
    Signed-off-by: Adrian DC <radian.dc@gmail.com>

Author: Steve Kondik <steve@cyngn.com>
Date:   Wed Oct 12 17:02:17 2016 -0700
    uicommon: Fix StopMotionVectorDrawable for N
     * The guts of AVD have changed in N, adjust hacks accordingly.
    Change-Id: Ia28c3099389252a3fd57373e02800fee9d467f64

Author: d34d <clark@cyngn.com>
Date:   Wed May 4 08:59:27 2016 -0700
    Add StopMotionVectorDrawable to uicommon
    The StopMotionVectorDrawable provides control over the position
    within an animation set of the warpped AnimatedVectorDrawable.
    Change-Id: I586c54c7dbd5c9f6f373a87e544bc0669f4ba8f1

Change-Id: I868a852e6c5f6f1ab7926deeb109fc68ad4449da
2017-10-11 11:55:46 -07:00
Sam Mortimer
7659e2f4c4 lineage-sdk: Update getLowPower* calls to use the new android 8.0.0 API
AOSP change:
455e90add2

Change-Id: I7aba0f8732fc6e0f974bd6ded9dc712f27ff4c75
2017-10-09 16:52:05 +00:00
Sam Mortimer
d68052b829 LineageTelephonyManagerService: change SlotIdx to SlotIndex
As per AOSP change:
7e46025199

Change-Id: I96d75bd751cacd673dea6c78ffcc6539ed3fda77
2017-10-09 16:50:44 +00:00
Sam Mortimer
2041fae2c5 Remove dependency on framework settings getDelimitedStringAsList()
The *DelimitedString* settings methods that we patched into
frameworks/base in <= 14.1 aren't used by anything else so move
the minimum code needed here thereby allowing us not to have to
add the frameworks commit to 15.0.

Link to previous code that was in 14.1:
https://review.lineageos.org/#/c/65703/

Change-Id: I3ec10e406e642ee90f5c2dbd89e598ea97682f67
2017-10-09 16:50:05 +00:00
Sam Mortimer
83a7945dd5 Revert "cmsdk: Reenable permissions"
Remove allowViaWhitelist attributes. They're
no longer needed.

Author: Steve Kondik <steve@cyngn.com>
Date:   Sun Sep 4 04:19:45 2016 -0700
    cmsdk: Reenable permissions
    Change-Id: I59057f5661cd2db6c4555f4d4b855ad4a903abc9

This reverts commit fe3b9f0842.

Change-Id: If1be5d3cc0f06e759e6090226312ea719625e0d2
2017-10-09 16:49:20 +00: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
80afa3feef Add missing method override to UserContentObserver
Change-Id: If629a2d321fc63987f3556c3ddd6ba1f181354b6
2017-10-08 21:08:37 -07:00
Sam Mortimer
22e9319f65 sdk ColorUtils: use lineage platform palette
Change-Id: Ifaff718e2504dd19b98071fe552f1b1c52181533
2017-10-08 21:08:37 -07:00