Commit Graph

27 Commits

Author SHA1 Message Date
Luis Vidal 4195a1cf89 Add Weather Content Provider [4/5]
Introduce CM Weather Manager and Weather Provider Services API.
The CM Weather Manager can be used by apps to request weather
updates.

The Weather Provider Services API allows a third party developer to
implement a weather service to process weather update requests and
update the CM Weather Content Provider data which can be consumed by
any other app holding the required permission.

Change-Id: Idcc80712ba92715109d3577d120f7fea85d6c996
2016-03-31 17:36:53 -07:00
d34d b3ea2859fd Themes: Refactor themes to CMSDK [2/6]
First attempt at moving as much as possible out of F/B
and into cmsdk

Change-Id: I9e53d1c32e01e88fc3918663dabe0001df922bc2
TICKET: CYNGNOS-2126
2016-03-04 13:59:33 -08:00
Keith Mok 5c7be898cb CMSDK : Add caffeine tile (2/2)
Change-Id: I6c3d5cdc0dc2cce06f1c00c6ffbb96d5f376dc46
2016-02-11 17:06:40 -08:00
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
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 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 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
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
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 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
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
Michael Bestas bcc94d1391 utils: Introduce ScreenType class
Change-Id: I6ddb14d6228565331d52069f4d96f93a9d306b45
2015-12-01 14:06:26 -08:00
Adnan Begovic aa8614e39b CMSDK: Create Quick Settings Tile API.
Create a simple CustomTile object with builder which lets a 3rd party
  application publish a quick settings tile to the status bar panel.

  An example CustomTile build:

      CustomTile customTile = new CustomTile.Builder(mContext)
             .setLabel("custom label")
             .setContentDescription("custom description")
             .setOnClickIntent(pendingIntent)
             .setOnClickUri(Uri.parse("custom uri"))
             .setIcon(R.drawable.ic_launcher)
             .build();

  Which can be published to the status bar panel via CMStatusBarManager#publishTile.

  The CustomTile contains a click intent and click uri which can be
  sent or broadcasted when the CustomQSTile's handleClick is fired.

  This implementation closely mirrors that of NotificationManager#notify for
  notifications. In that each CMStatusBarManager#publishTile can have an appended
  id which can be kept by the 3rd party application to either update the tile with,
  or to remove the tile via CMStatusBarManager#removeTile.

Change-Id: I4b8a50e4e53ef2ececc9c7fc9c8d0ec6acfd0c0e
2015-04-26 16:55:08 -07:00