Commit Graph

146 Commits

Author SHA1 Message Date
Matt Garnes a3730df179 Reorder new setZenModeWithDuration API in aidl
Previously, a new method was added to IPartnerInterface.aidl in the
middle of other methods. This needs to be added only at the end to
ensure backwards compatibility with older versions. Reorder the methods
to place setZenModeWithDuration at the end.

Change-Id: Ib9f9c7acceb928db5acc76e7351147074b230141
2016-01-05 16:30:13 -08:00
Roman Birg be1678b867 cmsdk: add method for checking dynamic tiles
Change-Id: I946c15a531a5985b51924cbf3a1eb191b2833e51
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-04 08:49:44 -08:00
Adnan Begovic 9734639366 cmsdk: Fix quick pulldown settings, and unhide numerous system settings.
Change-Id: Ibfc41a74ca5e5902ea704919ce076d8442258406
2016-01-02 12:12:37 -08:00
Wilhelm Fitzpatrick 9f62d8aa55 CM-SDK: add PREDISMISSED_STATE constant required by CM13 DeskClock
See http://review.cyanogenmod.org/#/c/125484 which brings the
changes to allow third party components to set and modify alarms,
and which actually makes use of the ClockContract in the SDK. This
flushes out the fact that the ClockContract in CM13 added a new
state.

Change-Id: If6d57727298c0a749055337809b9a66e91078a01
2015-12-23 13:46:56 -08:00
Janet Sun 57dc3b3240 CMSDK: add duration for priority/quiet mode
Add setZenModeWithDuration API call with long durationMills
Use NotificationManager.setZenMode with Condition URI
specifying end time.
Update settings/CMPartnerInterfaceTest
TODO: unit test to be added in:
tests/src/org/cyanogenmod/tests/settings/unit.

FOR-156

Change-Id: I18dd661fc07419a7019b6372e81df430a70f86e9
2015-12-23 11:05:45 -08:00
Adnan Begovic 4497e249d9 cmsdk: Add finalized docs for cantaloupe.
Change-Id: I47ce808dfff83ff2949bbad15121f2d4d7922925
(cherry picked from commit effba2040846da4fce73e58c0094c121f5d947d5)
2015-12-23 09:40:28 -08:00
d34d 8cc5a55f82 ExtViews: Add callbacks for ExtView->Host communication
Adds an interface for the KeyguardExternalViewProviderService to
communicate with the host in SystemUI.  This includes handling
notifying the host when the provider service has died.

Change-Id: Icd185da289913b84da09707f1d8a2f4f4ff86bae
2015-12-22 15:13:17 -08:00
d34d f2741cb04c ExtView: Add keyguard specific interface for KeyguardExternalView
KeyguardExternalView requires extra state callbacks that can be passed
on to the KeyguardExternalViewProvider.  For this reason the
KeyguardExternalViewProvider no longer extends ExternalViewProvider
and instead provides the full implementation needed for ExternalViews
as well as the specific keyguard components.

Change-Id: Icf3589a201bf0ab29ba6e00e2bd6c0149e955e1d
2015-12-22 15:13:05 -08:00
Adnan Begovic 8a79ddbd0c cmsdk: Clean up some provider tests.
Change-Id: I1b09f17a194054bfd0d35da843d0af1405fa4e21
2015-12-21 12:25:15 -08:00
Roman Birg 20bfdd7e3f cmsdk: add keys which to intercept from SettingsProvider
Change-Id: Id5d86cc97eb2411322af5686e6d79fa5fb190891
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-21 10:30:22 -08:00
Roman Birg cb4a990216 Profiles: add isEnabled(); send state changes
Ref: CYNGNOS-1461
Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-21 10:30:15 -08:00
d34d 582ba4c91e ExtView: Allow window type and flags to be overridden
KeyguardExternalViews need to have a different window type
as well as different flags set when creating the window.  this
patch allows those to be overridden when extending the
ExternalViewProviderService.  This patch also makes sure that
the width and height of the external view window is always the
same as the display size.

Change-Id: Ic5fc0d211e9fee0e610d55a3620e6e322defe231
2015-12-18 16:15:29 -08:00
Luis Vidal 637e40fba5 Introduce KeyguardExternalView
For now, this class is used only to expose the category that must be used
by the activity requesting permissions in the keyguard and the name of the
extra argument provided in the intent used to start such activity

Change-Id: Ib978d192110ebab65691c6c3e03f977df2ab47d3
2015-12-18 16:14:13 -08:00
Chris Sarbora b9d7733a67 External views for cm13
Initial ExternalViewProvider

Change-Id: Ib35d79d3ae01d2e1a98020c5e65e4fbe50d2d322

Fill out methods and run everything on main thread

Change-Id: I05dd1bce5c24057101cd85656d28b01e6681434a

Fix aidl

Change-Id: Ie4b9a4463fdea37a0c5d657ffbc8796d51b57303

Add sample provider

Change-Id: I51b73302f85927aba2e9ea30ce47d6958af8e451

Create window and view earlier and only once

Change-Id: I60264b3c2de302f6f628320f436ac2aeb39de42c

visibility

Change-Id: I6ed2d6431c5aec9d4959a51828c42a700aabbd22

Add logging

Change-Id: I224587bcdfd1ff08673a618c5e45fef384041b8b

Add external view

Change-Id: Ic7f1ba96857239ac0fa43777f7d637716b7aead7

Resource fixes

Change-Id: I75324900d36a465575338c8b0ec9cc568ea50b9a

Add view host

Change-Id: Ief57371563feca707f420a509827c78c48bedf9c

Such hacks :\

Change-Id: I11ff460e7e7fed9cb14531ec3fb4699a37021ee0

Use a real window

Change-Id: Ie79f8188beaa871c6b8c96303c3221cdd7352fc6

Make api able to handle multiple instances of provided views

Change-Id: I185a8950aa577f920eaf7582c53f3316b88765c8

Ensure attribute set is passed to constructor

Change-Id: I9ebb4e8b0f7538ea5d0e7da179b1f1df812532b1

Add clip rect support

Change-Id: I23ac08b9e9e1e07e72bbf761ede1de87f4e4b084

Use final clipRect, instead of member

Change-Id: I2fa5f6ff30adf30fc0fe10f9fac1869ab4c03904
2015-12-18 16:13:51 -08:00
d34d 9691d4224c Keyguard: Introduce 3rd party keyguard perms and utils
For CM13, the third party keyguard permission is being added to
the cmsdk rather than frameworks/base.  This patch also introduces
CmLockPatternUtils, a subclass of LockPatternUtils, which allows us
to make use of the new third party keyguard permissions in cmsdk.

Change-Id: I91fadfaae79e3f146e9ae73929cea91294ef8d87
2015-12-18 15:04:07 -08:00
Danesh M 22ec5389be CMSDK : Remove VOLUME_LINK_NOTIFICATION
This is used by SeekBarVolumizer which is in
core which is part of the BootClassPath.

Change-Id: I96bf18b0d239543271e508eff12152af281bb8b0
2015-12-18 13:03:32 -08:00
Roman Birg a61af19bdc cmsdk: add LOCKSCREEN_VISUALIZER_ENABLED
Change-Id: Ia8b11083a54195acfebab76c646987962b798c16
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-16 15:40:32 -08:00
Chirayu Desai ba670bf88f Allow disabling the privacy guard notification - port from cm-12.1 (3/3)
Change-Id: I3233517f9f6ff5a3e438682443b1e1b5907d4bd9
2015-12-16 15:31:39 -08:00
Danesh M cead77aff3 CMSDK : Migrate QS_ADVANCED_LOCATION_SETTINGS
Change-Id: I638f69053eed6b5d6d35ed490071212924b63dca
2015-12-15 17:08:13 -08:00
Danesh M 5acf08c9cf CMSDK : Add live display tile
Change-Id: I27098ed3cd59a58ba7b1dedc5e360ba541086c56
2015-12-14 11:21:53 -08:00
Adnan Begovic baf6723c64 cmsdk: Add AmbientDisplayTile.
Change-Id: Ifc6b7e907fe24821c430192fc544493d5ae1d97e
2015-12-11 16:20:51 -08:00
Adnan Begovic 0cc926de75 cmsdk: Add LockscreenToggleTile.
Change-Id: Ic789c95db7e4c9cca543145bbc74941ddefd68ea
2015-12-11 14:27:48 -08:00
Adnan Begovic 4aae796174 cmsdk: Nuke concept of Dynamic Tiles in available tiles.
Change-Id: Iad95954603271dc42785cd4a1862200b2f8602f4
2015-12-10 18:25:01 -08:00
Adnan Begovic 90bc083815 cmsdk: Uncomment dynamic tiles.
Change-Id: I4bddccac5e9fbc523316fb2b0aa418813c31c667
2015-12-10 18:21:17 -08:00
Danesh M 39559bcfcf CMSDK : Add performance tile
Change-Id: I60c25eaba7fd497b8038b3755896f3e796321bfe
2015-12-10 18:08:30 -08:00
Danesh M ed0f0cec77 CMSDK : Ensure getAvailableTiles clones object
Not doing so results in unwanted modifications
to the underlying array.

Change-Id: I344cb556aea5c7b1ac8b199f496eec0d50dae28c
2015-12-10 15:45:30 -08:00
Danesh M 55eb818adc CMSDK : Add screen timeout tile
Change-Id: I574a9b7d80949e343870684d78330dc8aca83690
2015-12-10 14:52:13 -08:00
Danesh M 66d189a774 CMSDK : Add usb tether tile
Change-Id: I54fd91f0221b5d3506d783d8a0f4a881d1ca0ec6
2015-12-10 14:02:46 -08:00
LuK1337 b5db07a126 CMSDK: Add profiles tile
Change-Id: I2c223657a0c4761d51f4c60bdb8c07049576fd2a
2015-12-10 19:11:54 +01:00
Steve Kondik 066a58e02d cmsdk: Add helper class for working with colors
* A bunch of generally useful algorithms and helpers for performing
   colorspace conversions and other color-related math.

Change-Id: If54ca156fc5473f6c1b39eb53bd871f48c3dc2a1
2015-12-09 21:03:27 -08:00
Steve Kondik 968127f532 cmsdk: Add CMHW method to check if SRE is self managed
Change-Id: Ia5f644ce0b964a965afa47ea08016167c8b20620
2015-12-09 21:02:54 -08:00
Danesh M 8719ebfd17 CMSDK : Add volume tile
Change-Id: I12bdf19dd8b44a2d6eaaae92fd1888266f1a58f9
2015-12-09 17:20:19 -08:00
Danesh M 5cace15e06 CMSDK : Add sync tile
Change-Id: Ic8c7777d7500e4adb9b4ef7e54b880aedd059ef5
2015-12-09 16:23:04 -08:00
Danesh M be217aea3c CMSDK : Add nfc tile
Change-Id: I84681fb643774cc13983ffb4b6af1bf070ca54a7
2015-12-09 13:24:00 -08:00
Danesh M 34ef4e3e04 CMSDK : Add compass tile
Change-Id: I1eae3200f5e8c4cfb1587a641deb541a43e43d81
2015-12-08 18:38:18 -08:00
Adnan Begovic af4d676a93 cmsdk: Add QS utility classes.
Change-Id: I5644f6d9769614d72220ee68a08202e6c69037d9
2015-12-08 17:44:26 -08:00
Yvonne Wong fc97734c06 CMSettings: Add secure validators and relocate protected apps validator
Move validators from CMSettings.System into CMSettings,
add validators for CMSettings.Secure, and move protected apps validator
from CMSettings.System to CMSettings.Secure

Change-Id: I9f4e1bef7ff5be100376d2d03d34483d12938158
2015-12-07 15:17:35 -08:00
Michael Bestas bcc94d1391 utils: Introduce ScreenType class
Change-Id: I6ddb14d6228565331d52069f4d96f93a9d306b45
2015-12-01 14:06:26 -08:00
Vineet Patil 95bb1d5c88 Protected Components: Adding validator. Fixing crash in Trebuchet due to missing validator.
Change-Id: Id79784c82ae2851d4beb54d6c46496b3f3e4d2d7
2015-11-30 17:22:33 -08:00
Adnan Begovic c221959167 cmsdk: Re-enable multiple profiles functions.
Change-Id: I1db0cba6cf107926a25a8e45952813d3c21eb470
2015-11-29 14:55:21 -08:00
Khalid Zubair 4a964c508e perf: Add PerformanceManager.getProfileHasAppProfiles API
Add an API to query PerformanceManager if a perf profile supports
app-profiles.

Change-Id: I51d958343624ab085de0352ac182cb05308e0da4
2015-11-25 12:52:40 -08:00
Vineet Patil 35fdbdab95 Protected apps components
Change-Id: I850d45e9aca6eff8221766830fce45468c8ca549
2015-11-24 12:12:37 -08:00
Roman Birg e4558b7fc3 CMSettings: add reporting status setting
Ref: CYNGNOS-1131

Change-Id: Ic237763bc5900d89a7ad5efb19d7ad3bcc448e33
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 0c0aef6666490e6ec7055dc87503a63edbf66c98)
2015-11-20 15:26:02 -08:00
d34d f7f6d14148 CMSettings: Validate name and value for System settings
Verify that the name and value being inserted/updated are correct.

Change-Id: I0243556701b1d303ca52135178b055c2fd87671c
2015-11-19 18:23:28 -08:00
Danesh M 3ddf435fb4 CMSDK : Add missing settings to LEGACY
Change-Id: Iad4b81523962ce8af28bbf2cef4884168c975c40
2015-11-17 15:30:44 -08:00
Danesh M cdda6a5e18 CMSettings : Remove unused/legacy setting
Change-Id: I690fc127280cb0e53da4b221d87df85e4218b82c
2015-11-17 14:17:47 -08:00
Danesh M 11e8316747 CMSettings : Remove AOSP settings
Change-Id: I73b3e057159113f111303e3fde822a533f8df8ed
2015-11-17 14:11:03 -08:00
Danesh M 68bd8bf3ea CMSettings : Remove BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX WIFI_AUTO_CONNECT_TYPE
These are CAF features.

Change-Id: I28c685a54969619db5e6037462976272fa51012a
2015-11-17 13:26:20 -08:00
Danesh M c25b6157bc CMSDK : Keep track of legacy settings
Change-Id: I192d8033f2cd65cffc88f97089cb2ef2b02a566d
2015-11-16 15:53:56 -08:00
d34d b59538ccd0 CMSettings: Move Global settings to CMSettings
Change-Id: Ib054409d5ad790e011e12ecbc6786bf3562a1b80
2015-11-12 17:23:39 -08:00