Commit Graph

690 Commits

Author SHA1 Message Date
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
Zhao Wei Liew
8f33604af6 cmsdk: Remove launch boost support
AOSP recently introduced a new power hint, POWER_HINT_LAUNCH,
to indicate the start-up of an activity.
We now use that instead of using our own.

Change-Id: I3ed1ae52a67da37e87a46ca5cc5411de95f00926
Issue-Id: LINN-6
2017-02-23 17:11:39 +00:00
Abhisek Devkota
1429c49ce4 Automatic translation import
Change-Id: I5ecaa647d49ab0fcc373ce734df42d94ba7b7604
2017-02-19 15:06:26 -08:00
Zhao Wei Liew
cb1bb042d5 Add a proper description for CM_SETUP_WIZARD_COMPLETED deprecation
Change-Id: I7bf1ee5644b178173941803fccafbbd501289acd
2017-02-19 09:42:44 +00:00
Paul Keith
797a45aa69 cmsdk: Deprecate CM_SETUP_WIZARD_COMPLETED
Change-Id: I1ddf79d8308def2056fa509b64a2ec4af5c39f31
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
2017-02-17 17:47:17 -06:00
Abhisek Devkota
8f0eb557ac Automatic translation import
Change-Id: Ic47d5d629a71bd9820d34a6253793c472f64900b
2017-02-16 10:43:04 -08:00
Danny Baumann
6669674eb6 RemotePreferenceManager: Fix receiver registration issues.
- We might get see attach() calls from multiple prefs, so stop assuming
  there's only one per key. Namely, a new activity might be created and
  attached before the previous one is destroyed
- The passed-in context is likely to be an activity one. As the manager
  instance is static, this can cause leaks and the receiver might be
  attached to a destroyed activity. Just hold onto the application
  context instead, which is a singleton anyway.

Change-Id: Ica17c19ab6e1cdfd402968ce2594d3ed362e23ee
JIRA:LINN-3
2017-02-12 06:52:29 +00:00
Abhisek Devkota
77b94bc5a1 Automatic translation import
Change-Id: I0a2d9102882f87207faf28726585f782282ee4bd
2017-02-11 12:43:33 -08:00
Abhisek Devkota
f3587d3478 Automatic translation import
Change-Id: Ib3173f662e035e1949e40b17d0fd884fba5eed90
2017-02-07 13:44:26 -08:00
Abhisek Devkota
7f3548dccc Automatic translation import
Change-Id: I2eaea006b46102b9c4d751212f8379af2873eb82
2017-02-04 16:21:52 -08: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
ebf0e84848 cmsdk: PerformanceManager: Update POWER_HINT_SET_PROFILE value
We removed POWER_HINT_AUDIO recently, thus moving the value of
POWER_HINT_SET_PROFILE up by 1.

Change-Id: Ib1c4e1b2569064023a7951631ac1de120fcf47ef
2017-02-02 11:28:25 +08:00
Abhisek Devkota
a789a99c7f Automatic translation import
Change-Id: Ibb20a535334674f8d3936009023da86fb9295b29
2017-01-31 21:41:35 -08: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
f1427159ad cmsdk: Add DeviceKeyHandler overlays
As per change Iaaab737f1501a97d7016d8d519ccf127ca059218 in fw/b,
we're now allowing devices to specify an array of DeviceKeyHandlers.

Add the appropriate array overlay for this.

Also, specify CMParts as a DeviceKeyHandler, since almost all devices
with touchscreen gestures will have to use it. The only exceptions
are the devices which register touchscreen gestures through the SensorManager.

Change-Id: Ie8e4901712d03ce4b2d799cf0ee5fc2e1bad6aae
2017-02-01 01:27:19 +00:00
Abhisek Devkota
fd5664d114 Automatic translation import
Change-Id: I1d9c11417f6d35db29ee92a68eaed0dbbb5b636c
2017-01-25 13:49:06 -08: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
jrior001
b99c20a806 Add generic support for Lid Cover Apps
Many new devices have available flip cover cases with some form
of view window or notification options. Currently we support a
dotcase app for HTC and a View window app is under development.
Provide a new Intent to allow a common way to launch a variety
of device specific cover apps.

Change-Id: Ic986b239b75bfc6d76142451826b3f996e242a29
2017-01-18 15:25:08 +01:00
Zhao Wei Liew
cf51b678cd cmsdk: Fix @deprecated annotation mismatch warnings
Change-Id: I0141aa66139ac0fa6089aecd7056e017c4c1132f
2017-01-16 13:23:07 +00:00
Zhao Wei Liew
05f0c4048e cmsdk: Update README references for LineageOS
Change-Id: I924d89da6bc0dab94d8c6dadc26bc5c535db90ce
2017-01-15 13:04:33 +08:00
Christian Morlok
c0254632e1 cmsdk: fix update path for version 7
* Do not break boot if clock position tunable is unset
* Fixes I2412051289a922dfc72cdf266b47f32cf7aaa31a

Change-Id: I8d841f324f5bf8499365ca48cdf6aa4710ccd957
2017-01-08 00:52:37 +01:00
Hendrik Hagendorn
5bb06dccb5 cmsdk: remove 'hide clock' option from clock position tunable
* Hiding the clock is now possible using the icon blacklist.
* Since the the hide option in the clock position tunable
  isn't currently implemented let's remove it

Change-Id: I2412051289a922dfc72cdf266b47f32cf7aaa31a
2017-01-06 12:06:01 +01:00
Simon Shields
8f7ef5dfea cmsdk: rebrand to LineageOS
Change-Id: I5ed247a25db28508d367662e16372e5391c3ae3d
2016-12-29 11:58:58 +08:00
Zhao Wei Liew
79cced08e7 cmsdk: Deprecate STATS_COLLECTION_REPORTED CMSetting
The functionality that uses this setting has been removed.
This setting should no longer be used.

Change-Id: Iff887a711a9f8cac18cf9938280ddc99a5787615
2016-12-29 00:35:36 +00:00
pinky@build01
d6f4389d5c Automatic translation import
Change-Id: If32ee1443dea4972507ee9a03eb65d39ee16f7e6
Ticket: -
2016-12-24 18:46:27 -08:00
clyde@build01
9b8fb749a3 Automatic translation import
Change-Id: Id5bdaabe9eb57cab45064ab172c4656f3379c2ee
Ticket: -
2016-12-21 18:29:16 -08:00
blinky@build01
3d0d6bfd9d Automatic translation import
Change-Id: I992ceb77e65474432e28a543ab312287b40449a2
Ticket: -
2016-12-20 18:05:29 -08:00
inky@build01
a3070bf041 Automatic translation import
Change-Id: I887ce0bc53128c0a7049ab50af822262d25ca332
Ticket: -
2016-12-18 18:47:23 -08:00
pinky@build01
1b312ada8d Automatic translation import
Change-Id: Ib1f74432dca03978441c8fd8a83be4c5891e00b2
Ticket: -
2016-12-17 18:38:47 -08:00
clyde@build01
3fdfa0fea3 Automatic translation import
Change-Id: I06d9c092e73d4f451d688b277bad3e581a572177
Ticket: -
2016-12-13 19:55:00 -08:00
Zhao Wei Liew
5be83e5606 Revert "cmsdk: Add device-specific strings"
These strings have now been commonized in
packages/resources/devicesettings.

This reverts commit 8a259437af.

Change-Id: I45bf82fca38f2712a9ad0aed80723c638502d996
2016-12-13 00:07:40 -08:00
inky@build01
18fbc317ee Automatic translation import
Change-Id: If70675bd58536d9e64ba42ee64b45d44e1cc88d5
Ticket: -
2016-12-11 18:36:29 -08:00
pinky@build01
636867f4fd Automatic translation import
Change-Id: I42b152146515b3fb327f3c394cae8e99e7aa01ff
Ticket: -
2016-12-10 19:08:23 -08:00
Michael Bestas
f6e4623f6f FileUtils: Add util to check if a file exists
Change-Id: I565744821346c90ff670704a13fffc7bf464ff71
2016-12-10 12:27:32 -08:00
Zhao Wei Liew
1c5e5e7006 cmsdk: Add GlobalSettingSwitchPreference class
We need to add toggles for some AOSP global settings,
such as heads up notifications.

Change-Id: I5e3cc8717c639bed4ee99e40c350ef7e7c2d76bd
2016-12-10 01:34:25 -08:00
Ethan Chen
41eab0f81a cmsdk: Use ConnectivityManager to manage tethering
* Hotspot is not assigning DHCP addresses correctly if enabled
  through the profiles codepath using WifiManager.

Change-Id: I9b67748d1b51c873864cf11f9240372e367a0c53
2016-12-09 20:05:41 -08:00
inky@build01
bb4cbde17f Automatic translation import
Change-Id: I27edba2815b88f0bcb41a8cfdde1f41a8b1c5f60
2016-12-08 22:52:40 -08:00
Michael W
8534274f5f cmsdk: utils: Introduce PackageManagerUtils class
Partially based off the PackageManagerHelper class in Launcher3.

Change-Id: I0ed2ea210cb52ac4bd94c7bc5320c24e6d423279
2016-12-08 17:13:07 -08:00
Adrian DC
ecde09bb94 cmsdk: Define a default LED capabilities value
* With the changes introduced by the commit
    If04e19891e778d1203241b03f398022400a531c8,
    the new integer overlay contains the device
    configuration for LEDs in a bit field

 * However if a device does not set this value,
    the build will fail with the following error
     "String types not allowed (... with value '')."

 * Therefore define the overlay to the default
    behaviour LIGHTS_PULSATING_LED = 8

Change-Id: I237cf2c0df856660a06bf45e8aa38a3552c8e901
2016-12-03 19:17:31 +01:00
Zhao Wei Liew
610916b378 cmsdk: Switch to a unified LED capabilities overlay
Add a unified and extensible overlay that encompasses
all the current LED capabilities, while allowing for
new future LED capabilities.

Change-Id: If04e19891e778d1203241b03f398022400a531c8
2016-12-03 09:12:30 +08:00
Zhao Wei Liew
77b34c39ed CMSDK: Add volume answer call CMSetting
Change-Id: Ie7f14b1af053d23876908ec3c99f038e76fe5beb
2016-12-01 20:59:49 -08:00
Steve Kondik
e8aecd3a8a cmsdk: Ensure CMHW feature constants aren't optimized out
* The preferences constraints system uses reflection to look up
   fields via strings, we need to ensure they are not optimized
   out by Proguard. Alternatively we can manually enumerate them,
   but it's yet another list of constants to maintain. We should
   have used a proper enumeration to begin with, but so it goes.
 * The @VisibleForTesting annotation is honored by the platform for
   ensuring that Proguard doesn't stomp fields. The support library
   has an @Keep annotation, but it's only supported by Gradle. If
   it becomes supported by the platform in the future, switch to
   it instead.
 * Also add tests for all of this.

Change-Id: I9f324e003e2a9de5604085b978d5f95bdd098d32
2016-11-22 22:48:35 -08:00
Gabriele M
7f19e742c1 PerformanceManager: Fix power hint values
Sync them with hardware/libhardware/include/hardware/power.h

Change-Id: Id9d454df40625b6fd743dbbb3eb8d10489c7e377
2016-11-08 06:44:31 -07:00
Steve Kondik
f133161814 cmhw: Fix boot handling
* Need to use sendBroadcastAsUser here.

Change-Id: I98eab88c796d6accf3c70f97436e3d7fa781fc1f
2016-11-06 00:34:51 -07:00
Danny Baumann
e01237ee2f Add a CMSystemSettingDropDownPreference.
Change-Id: Ic3b7589fe3a33b62fba3949e968789a3a99cf9f6
2016-11-02 13:28:01 +01:00
Danny Baumann
fbd5dc1b07 Add option definition for vibration during zen mode.
Change-Id: I7398adbaa691bc6ec50b56328190a317bee805eb
2016-11-02 09:21:58 +01:00
Martin Herndl
c7ecd4d8fa cmsdk: Fix non-triggered ON_DISCONNECT + cleanups
* the WifiInfo object may be null if there is no active connection
which should trigger an ON_DISCONNECT
* by using the already existing "getActiveSSID"-method there is no
need to cleanup UTF-8 encoded SSIDs

Change-Id: I69e4db55753ca1e02afde59b186dae822adf7b63
2016-10-31 11:06:09 +01:00
Steve Kondik
97054244ce cm: Fixes for 7.1
Change-Id: Iff5c6aebd704ea71e94f43049cbbca26fdf7421f
2016-10-26 02:41:49 -07:00
Steve Kondik
e721f8cff4 cmsdk: Add support for split screen button behavior
Change-Id: I7289e8abe23d047f909066a9986e8b9d55bec27e
2016-10-18 23:37:02 -07:00