Commit Graph

61 Commits

Author SHA1 Message Date
Adnan Begovic
9a3035b912 CMSDK: Add a sample showing custom tile toggle.
Change-Id: Icba72a5454b0245d9030e91020609b18ba503ef7
2015-05-01 02:27:34 -07:00
Adnan Begovic
1832e1fd51 CMSDK: Update permission for tests.
Change-Id: I2ab6dd6120cfbb8e24445f3c5f6b49833afdd8b1
2015-04-30 18:03:56 -07:00
Adnan Begovic
e54a96d647 CMSDK: Update implementation for permission declarations.
Change-Id: I9cca55f693ef3f0363bac2f5c8ae1db07adc4f34
2015-04-30 17:26:01 -07:00
Adnan Begovic
fa69d26821 CMSDK: Update README
Change-Id: I1d2d0466a6d89d8dbdfbe2aeb21ffcbdd39d0212
2015-04-30 13:47:01 -07:00
Adnan Begovic
35a6d6c643 CMSDK: Update javadocs for onClick vs onClickUri.
Change-Id: I79c9bcfb757e0c57bbfb5c44331a3a74490c5276
2015-04-30 11:21:58 -07:00
Adnan Begovic
a7d6fc579f CMSDK: Refactor compile, prepare for integration tests.
Also don't build CMPlatformTests unless explicitely called.

Change-Id: I3fd8f884d8815eab9987077766c0ff2fe3f98b4d
2015-04-30 11:10:56 -07:00
Adnan Begovic
104a15a6b0 CMSDK: Introduce preliminary automatable tests.
Change-Id: I27e21f64dee4aa93e5453ce49ec9fcac8f984d11
2015-04-29 17:38:59 -07:00
Adnan Begovic
346b7587b3 CMSDK: Allow for a settings intent to be set by 3rd party.
This onSettingsClick intent will be triggered when the detail
  pane is shown in SystemuI and the user clicks "More Settings".

Change-Id: I3ddb65c64e81cd230718e7e6e56c436e5b05df8c
2015-04-29 11:51:44 -07:00
Adnan Begovic
aa558ade9e CMSDK: Create means of removing tiles via listener interface.
Change-Id: I8934fe5c82963a3aba38ce5eec6e59e50a820d17
2015-04-29 10:46:06 -07: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
Adnan Begovic
42e54529ed Add initial README. 2015-04-22 15:20:17 -07:00