Commit Graph

738 Commits

Author SHA1 Message Date
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
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
LuK1337
ffe2bb69b3 cmsdk: Run in core apps only for poweroff alarm boot
* Publishing LiveDisplay tile is crashing.

Change-Id: I5b6262958fb40aed2c0915991db97804beaaca45
2017-09-21 11:14:53 -07:00
Gabriele M
62ab051496 Make CMParts a protected component manager
This allows to start protected application from the "Protected apps"
activity without re-inserting the secret code.

Change-Id: Iaf727d741ef8e302b76a566ae9cd6a5031c85079
2017-09-21 17:13:26 +00:00
Abhisek Devkota
bd45c58857 Automatic translation import
Change-Id: I1d10d20647025241f2d98c775ad9e98bc5cc77e5
2017-09-21 17:12:36 +00:00
Gabriele M
2f6500dcc3 cmsdk: Use intent extradata for WiFi triggers
Use the extras of the intent to determine if we are connected to a
WiFi network and, in case we are, to get the SSID. This allows to
trigger profile changes only when the status is either DISCONNECTED
or CONNECTED and it also ensures that we process each event according
to the network status that caused it rather than the current one.

Change-Id: If7598bc9502f94bb2f6f7f274538df346fbb4869
2017-09-07 22:30:36 +02:00
Michael Bestas
621f2292c5 cmsdk: Disable unused services
Change-Id: Ia80b2a50c7c2fab54ca0324e1a573312f61d0e26
2017-08-29 19:05:36 +03:00
Abhisek Devkota
05c689d8c1 Automatic translation import
Change-Id: Ie58546b4167d5c0c656a790dbd24677ebcde4d29
2017-08-03 22:48:23 -07:00
Abhisek Devkota
1319a28536 Automatic translation import
Change-Id: I655803249974caacaa4e7a3bf4470731de03f4f6
2017-07-22 12:42:52 -07:00
Abhisek Devkota
464979de7d Automatic translation import
Change-Id: I272309ef88aa2e31d0ce3b5fa77d4fb7401de40d
2017-07-07 21:20:22 -07:00
Abhisek Devkota
497a8e8ca2 Automatic translation import
Change-Id: If85f3323510bc76ffc708a7b1f14e296eeedb22e
2017-07-03 17:25:12 -07:00
Abhisek Devkota
58c23ed817 Automatic translation import
Change-Id: I44fe242f3cb4d6f9bec53df34d4426698d20adb4
2017-06-30 22:07:10 -07:00
Abhisek Devkota
df15137721 Automatic translation import
Change-Id: I083ee00c1fcdf7d43cc6796cdb9e994464aec0e6
2017-06-22 20:56:47 -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
Abhisek Devkota
f53bcaad82 Automatic translation import
Change-Id: I6b8ccf5b76ddd1f4a58c97631d52189ee12bd009
2017-06-03 02:06:14 +00:00
Matssa56
6a47344386 Double tap to sleep anywhere on lock screen [3/3]
Change-Id: Ie12d8c669da4b023925620f6df73edccce6e87df
2017-06-02 10:11:55 -05:00
Matssa56
062bfa9c4a cmsdk: Disable Lockscreen Media Art [3/3]
* Toggle to choose whether or not to show album art/media art on lockscreen

Change-Id: I4ee401e8e60345a84a636ddcb6cbcd4d6ced2bb1
2017-06-02 10:11:55 -05:00
Matthias Yzusqui
b5e2ea3c77 cmsdk: fix twilight state not updating in live display auto mode
The broadcast receiver filter was missing the action to trigger the
twilight state update for the next day. Therefore the time+date when
to go day and night mode were stuck on a previous day.

BUGBASH-226

Change-Id: I2c87b738b20d5c08dffe4c20e13a990167b5a22b
2017-05-27 10:15:38 +02:00
Abhisek Devkota
a4df9e212c Automatic translation import
Change-Id: I807bae00e945b39c73320bf940c0048c0fbf4a62
2017-05-17 22:23:10 -07:00
Michael Bestas
2b1cf2be14 cmsdk: Add CMSettings option for QS auto brightness
Change-Id: If5782d9b8b3cd9efe530047553a10ac17049d9fa
2017-05-11 05:13:50 +00:00
Abhisek Devkota
e2c64b899d Automatic translation import
Change-Id: I18679d92a0c3f199f42d8309d7c7da258336e97f
2017-04-28 15:17:05 -07:00
Gabriele M
117d242d5d Protect system profiles related broadcasts
System components should only send protected broadcasts.

Change-Id: Ia3f38483270fe131db37559155a259989a837230
2017-04-25 14:53:58 +00:00
Abhisek Devkota
1908152a2f Automatic translation import
Change-Id: Ib32d0b8e15c609689d1272b3f9dabdef19fcbc50
2017-04-20 12:10:41 -07:00
Gabriele M
4b14ba4d18 PerformanceManager: Don't override the user preference
The current code can override the user preference in different ways.
For instance, entering and exiting the powersaving mode will set
the balanced profile, no matter what was the user preference.

mUserProfile is now updated only when the user changes the profile
and not when the profile is changed automatically (e.g. when
enetering the powersaving mode). When mUserProfile is updated,
the value in the database is also updated, except when initialized.
This also includes the case in which the powersave mode is enabled.

Change-Id: Id88e64389ccb877ebee665d90bf081aa94537542
2017-04-09 13:27:48 +00:00
Gabriele M
b19fe20075 PerformanceManager: Don't force powersave mode with powersave profile
Allow to use the powersave profile without enabling the powersave
mode, but force the powersave profile when enabling the powersave
mode. This makes the profile a bit more useful since unlike the
the powersave mode it has no direct UX impact (e.g. animations),
yet it allows to reduce the power consumption.

Change-Id: Ie9312a51d58950b15cf54fb1cd0c2e1d7bcd36b6
2017-04-09 13:27:35 +00:00
Abhisek Devkota
54996d44cd Automatic translation import
Change-Id: Ie4c6d1d04666784b098c99dfb3bc4f964f3ea17a
2017-03-29 14:27:11 -07:00
Abhisek Devkota
f0a3ce950c Automatic translation import
Change-Id: Iafd0f1d0261ed1a6a915adbc6f45af4d3fc0d837
2017-03-22 12:42:20 -07:00
Abhisek Devkota
c0378c8c1f Automatic translation import
Change-Id: I05bc83d83738a4c29afe1d0ce8d16ddd19459851
2017-03-20 13:56:16 -07:00
Abhisek Devkota
b580686a38 Automatic translation import
Change-Id: Ifac48acc5f333311ddc6bbd18433af2ff0a6042c
2017-03-15 13:38:21 -07:00
Abhisek Devkota
9fcf3eb59c Automatic translation import
Change-Id: I3180d5ec27581f1ba2cc93908786519ef32ca644
2017-03-08 14:06:25 -08:00
Michael W
a7e8c17e82 CMSDK: Tests: AIRPLANE_MODE_ON has moved
* Lives in "Global" now

Change-Id: Ib0a53e07af5f6ef2de735a818a5f505906f9d4d4
2017-03-05 15:39:32 +00:00
Michael W
2298aad316 Automatic translation import
Change-Id: Ib76aa6e73a5786299512104c45b0ece6d71d1a7a
2017-03-03 18:55:12 +00:00
Joey Rizzoli
a72790f7b0 [3/3] cmsdk: single hand for hw keys
Change-Id: Id148d4bd075e2795dbd6328f74cdde471903f100
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2017-03-03 14:24:07 +01:00
Gabriele M
3e2e540498 CMPartsPreference: Update PreferenceScreen theme
Use the same base theme used for Settings so that our preference
tiles look like the default ones (e.g. add ripple effect).

Change-Id: I27a5569535d8d614a0c0d26dd5b9fcd12f2af1e4
2017-03-01 15:06:38 +01:00
Abhisek Devkota
d9c544a2b0 Automatic translation import
Change-Id: Id027324e43ba3749fca3ccc206f30408e4c5b104
2017-02-24 18:55:12 -08:00
Abhisek Devkota
24b3566263 Automatic translation import
Change-Id: I160460107f200f984ab6dc1a558969c38755bb5d
2017-02-24 18:13:36 +00:00
Danny Baumann
1dc89feae0 CMSettingsProvider: remove per-user cursor observation
We don't need it because we don't support using the returned cursor
directly, and it can cause deadlocks when being called from platform
code.

Change-Id: I2f85be1152569ba27e4622d310d867e20965faa3
2017-02-24 16:02:06 +00:00