Commit Graph

169 Commits

Author SHA1 Message Date
Danesh M 2d1d7239a5 CMSettings : Add option to pass swipe-up-to-unlock (3/3)
CYNGNOS-1873

Change-Id: Icdd2505dbc56a77f49a76ea61daf75c5d8a24fd6
2016-02-08 15:06:01 -08:00
Steve Kondik d22b115d33 cmsdk: Improve color distance algorithm
* Use CIE2000 deltaE algorithm (from OpenIMAJ)
 * Try harder to find a good looking color (also try dominant color)
 * Use new Palette API

Change-Id: I0f0be52fe7c3e8376f1aa08c4bfa2751cd0659da
2016-02-08 08:11:57 -08:00
Steve Kondik c30bcacbca cmsdk: Add preference for automatic notification colors
Change-Id: I4bdb430917dac69f397995ea1c2abcacfb62136e
2016-02-08 08:11:25 -08:00
Matt Wagantall eb82dbf050 cmsdk: cmhw: Add UniqueDeviceId support
It's sometimes useful to know what physical device you're using.

CMHW SerialNumber and an "ro.serialno" property already exists, but
are not guaranteed to be unique. Different OEM may use overlapping
numbering schemes, and sometimes placeholder like "012345ABCDE" are
used.

Attempt to work around these shortcomings by defining a new
UniqueDeviceId class that provides a globally unique device ID that
is both deterministic for a given device and designed not to overlap
with IDs of any other devices.

Change-Id: I3f426972558394ba8e78261273ac8521aa603327
2016-02-02 16:37:59 -08:00
LuK1337 559636d8b7 Add left QS quick pulldown (3/3)
Change-Id: I77c8f0eda1b059bc2c0f0dff1d92834f36cd9de9
2016-01-23 17:00:39 -08:00
Adnan Begovic 7ee149d529 cmsdk: Fix hardware service interfaces.
Always add new interfaces to the bottom of the aidl
  or you break backwards compatability.

Change-Id: I376fbe6869d3fb0002822112eb05d9acddd51572
TICKET: CYNGNOS-1699
2016-01-22 17:09:44 -08:00
Scott Mertz 62579b157a cmsdk: add invalid input checking for persistent storage APIs
Some of this exists in the PersistentStorage implementation, but it
was never formally documented in the APIs.  Inherit the cmhw implementation
error checking & move it into the service.

Add tests to validate the new restrictions & a test that was previously
failing.

Change-Id: I3ecda29fdd28bbc4e6d8ccce7511c4644065ea46
2016-01-22 16:24:33 -08:00
d34d fc50f7cef8 ExtViews: Add action and meta-data
Services that extend KeyguardExternalViewProviderService should also
include this newly defined action in an intent-filter within the
<service> tag in their AndroidManifest.xml.  These services can also
include meta-data that defines a configuration xml which will be used
to define a settings activity that can be launched within a yet to
be defined settings/configuration UI.

Change-Id: I0a5ca09cf6f63413d067f89a9757137102dd09f6
TICKET: CYNGNOS-1687
2016-01-22 15:44:34 -08:00
d34d d994fe130a LiveLockScreen: Add setting for enabled/disabled
Change-Id: I6e9269f4ae20370c8c77019057ee276902df4721
TICKET: CYNGNOS-1686
2016-01-22 15:44:25 -08:00
Adnan Begovic 0d9d1ab12e CMSettings: Introduce concept of protected apps managers.
TICKET: CYNGNOS-84
Change-Id: I06245b0a69eea3474c1c093c5843bd59b5c53a80
2016-01-22 15:14:26 -08:00
Adnan Begovic 80001bff72 cmsdk: Fix BuildTests. Bump parcelable version.
Change-Id: I3084acfa25ca6bd6f5a058995906a050e243a4c9
2016-01-19 13:43:16 -08:00
Adnan Begovic 735333ce4a cmsdk: Add new version code to the sdkmap.
Change-Id: I765258f40d8c233df9adb48a20700e92e88f7ad8
2016-01-18 14:27:38 -08:00
Adnan Begovic 24f2bb4235 cmsdk: Introduce Elderberry, api level 5.
Change-Id: I916cb96e86e7dcee04b3b4cd08fec934b1ce5876
2016-01-18 13:43:03 -08:00
Adnan Begovic ebf0f55125 cmsdk: Finalize DragonFruit (api level 4).
TICKET: CYNGNOS-1648
Change-Id: I5844bc0bad9968b2c1d2d9e1ca3d65ae9d2d70c8
2016-01-18 13:36:21 -08:00
Roman Birg 8d4920022f CustomTiles: add a custom long press PendingIntent
Ref: CYNGNOS-1602
Change-Id: Id0cca88fabb091dcf0fbad2ae24416fa1c0af83e
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-18 10:31:08 -08:00
Michael Bestas 5400b2f30e cmsdk: Add battery saver tile (2/2)
Change-Id: I526144a76295d41b5658f9db417f9e6ded62c8d4
2016-01-17 13:49:41 -08:00
Michael Bestas 55cb12360e cmsdk: Add heads up tile (2/2)
Change-Id: Idce96d2db8fb28b0aadae5b9b19c334f22aba12a
2016-01-17 13:28:34 -08:00
Adnan Begovic cf3f38c37c cmsdk: Add CYANOGENMOD_VERSION constant.
Change-Id: I81526ae7d90e453975e2c1e2fc79234f706fb415
2016-01-15 15:49:11 -08:00
Roman Birg bf9cc6dfe1 cmsdk: add lockscreen internal enabled setting
Setting to keep track of whether a QS tile has disabled the keyguard so
we can display this state elsewhere.

Ref: CYNGNOS-1513
Change-Id: If6ecb78a028d9d74d70bc2f1cd584ac9ac83a2d1
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-13 13:02:13 -08:00
Adnan Begovic c7e69dede8 cmsdk: Introduce internal MetricsLogger class.
Contains contants utilized throughout Settings/Systemui
  to log usage of specific fragments, settings, or panels.

  An extension of Androids MetricsLogger.

Change-Id: I44eff06f87313fca8c2ecf78b7bdea9055956e3c
2016-01-11 16:56:37 -08:00
d34d 7622e3c7d6 ExtView: Fix name of dismissAndStartActivity
The method should have been renamed to requestDismissAndStartActivity

Change-Id: I93e00be58dc9c70f0f7a0b6d0bb6ac487af8fe58
2016-01-06 14:26:07 -08:00
d34d ccf16f85ac Keyguard: Broadcast when external keyguard changes
Since the locksettings database is not backed by a provider, we cannot
use a ContentObserver to know when a change to the third party keyguard
component has occurred.  Instead we broadcast that it has changed.

Change-Id: I1384b8ba445dcb8d0c571ded1c68b297182f086a
TICKET: CYNGNOS-1481
2016-01-06 14:12:33 -08:00
d34d dbb87e233d ExtView: Document the keyguard external view APIs
Change-Id: Ia714c8a4afc40abda2448ba4a757ea34af05a65a
2016-01-06 12:07:35 -08:00
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