aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/cyanogenmod
Commit message (Collapse)AuthorAgeFilesLines
* cmsdk: Add QS utility classes.Adnan Begovic2015-12-082-0/+425
| | | | Change-Id: I5644f6d9769614d72220ee68a08202e6c69037d9
* utils: Introduce ScreenType classMichael Bestas2015-12-011-0/+66
| | | | Change-Id: I6ddb14d6228565331d52069f4d96f93a9d306b45
* CMSDK: Create Quick Settings Tile API.Adnan Begovic2015-04-262-0/+78
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