Commit Graph

644 Commits

Author SHA1 Message Date
Michael Bestas 853240ece1 Automatic translation import
Change-Id: I3ec69dfc486ec5b10461c3a8e8cf6ce60a24fa0b
2015-06-09 20:36:55 +03:00
Adnan Begovic 5024f16809 CMSDK: Utilize a SparseArray instead of Map, avoid autoboxing.
Change-Id: I207c4d323968f3491b0635859a52402215cdc599
2015-06-08 16:39:58 -07:00
Adnan Begovic 757d564a12 CMSDK: Update for versioning tests.
Change-Id: I0dfd4a9a158b08fc556ddf9c20e0167f99827d17
2015-06-08 16:20:06 -07:00
Adnan Begovic e08be735a4 CMSDK: Create versioning for platform SDK.
Introduce Apricot, the first version for the
  platform sdk.

Change-Id: I4963650cb861725508aa71276977ac6157f248fc
2015-06-08 16:19:57 -07:00
Adnan Begovic 16cd8dd48f CMSDK: Update tests for ExpandedStyles
Change-Id: Ie1dd9a4d02a71845bfdc9c2096a570e3ba75fee9
2015-06-04 17:33:03 -07:00
Adnan Begovic 1299f2b0e5 CMSDK: Document the capabilities of ExpandedStyles for CustomTile.
Change-Id: I4e609a9ad7ec17d18271334dfb087a51eb5d5bd6
2015-06-04 17:33:03 -07:00
Adnan Begovic ee4e8f9bea CMSDK: Update samples for expanded styles.
Change-Id: I2421ce3f2cf349acf726554f22108bbfcf895bfb
2015-06-04 17:33:03 -07:00
Adnan Begovic eac6272970 CMSDK: Create support for ExpandedStyles in CustomTiles.
Applications can now set and expanded style for either a
  gridview layout or a listview layout when providing content
  to be shown in the details panel.

  The mechanism is shown below

  mCustomTile = new CustomTile.Builder(this)
        ...
        .setExpandedStyle(new CustomTile.ListExpandedStyle())
        .build()

  Within SystemUI, if your application states that it wants an expanded
  view, the expanded view onclick will take priority over both
  the onClick intent as well as the onClickUri.

Change-Id: Ib181dab32d1792b6b778fd1ea2f0531bdf407c5f
2015-06-04 17:33:02 -07:00
Adnan Begovic 2c6734a167 CMSDK: Actually hide ThemeVersion.
Change-Id: If30819b969719f8af5693e37eb825d615c555131
2015-06-05 00:32:21 +00:00
Adnan Begovic 273f2dbd6e CMSDK: Add check-api generated texts.
Change-Id: I3742459a49795860cf91368b356850ae65b8eeae
2015-06-01 10:11:30 -07:00
Adnan Begovic 62c951ef68 CMSDK: Setup initial check-api mechanism.
Change-Id: I05b6dc7bde4037fbbe1b41ebb3ade8226d274199
2015-06-01 10:11:30 -07:00
Andy Mast 25410f2426 Introduce Theme Versioning [2/2]
See also frameworks/base

Change-Id: I17fd6bfa39ce04fcfb344d14a6af1a6a09ed3f2f
2015-06-01 17:10:07 +00:00
Michael Bestas cbc19f5cf2 Automatic translation import
Change-Id: I7456865cffd86c885403e4406dbfa405f477e86d
2015-05-31 16:59:52 +03:00
Adnan Begovic 064eda25fa Merge "CMSDK: Hide CMContextConstants from docs." into cm-12.1 2015-05-28 21:41:16 +00:00
Adnan Begovic e2feecb3f1 CMSDK: Hide CMContextConstants from docs.
Until we can reference these managers through the current context,
  we should hide the constants that are utilized to retrieve them.
  Current implementations should stick to the singleton getInstance
  pattern.

Change-Id: I6c084a3a5b0745b0b6c5d10e000a40f5e61117ea
2015-05-27 15:34:34 -07:00
Michael Bestas 0b75e32039 Improve strings
Change-Id: I65995f20e00b9b6068b3f93ae87da963e648d7fa
2015-05-25 22:48:37 +03:00
Michael Bestas 38afe8dca2 Automatic translation import
Change-Id: I4ff725cb306ba6371233bb7c3d3991e344821511
2015-05-24 23:38:27 +03:00
Adnan Begovic 0f8bcd7bff Merge "CMSDK: Make sure to hide internal package from docs." into cm-12.1 2015-05-19 23:20:19 +00:00
Adnan Begovic fb07983c0f CMSDK: Point to vendor/cm cmsdk templates for web.
Change-Id: I2d9c266b129a918b9315cf797d82ad07c181b4a1
2015-05-19 15:56:13 -07:00
Adnan Begovic 93891909c6 CMSDK: Make sure to hide internal package from docs.
Change-Id: Ia12c04af7106113aadd3a822bd2b3f1606331726
2015-05-19 13:46:39 -07:00
Adnan Begovic 8c36c41ff6 CMSDK: Update code comments for permission changes.
Change-Id: I1aac7721244a510acb967f5995303ab9d57a11d3
2015-05-19 13:27:17 -07:00
Adnan Begovic 2217bb4197 CMSDK: Remove dead code.
Change-Id: If08729e64271ed72545eddc8da3147f23c6f2d75
2015-05-18 16:35:01 -07:00
Michael Bestas 1fa41bb9f3 Automatic translation import
Change-Id: Icc92eb3452257cb6c4bbfc7c6558ba4708731a21
2015-05-16 00:04:34 +03:00
Michael Bestas 7d8eb9f2cc Merge "Rename resource files" into cm-12.1 2015-05-13 15:56:28 +00:00
Michael Bestas 5a08354a29 Rename resource files
No need for the cm_ prefix on non-AOSP projects

Change-Id: I27360c49792093c90207950687ea4a61a9d8f3a3
2015-05-13 17:23:39 +03:00
Adnan Begovic 37c4b96e0b CMSDK: Don't share a namespace with the library.
Otherwise PackageParser will skip you.

  W/ResourceType( 3077): ResTable_typeSpec entry count inconsistent: given 6, previously 1003
  I/PackageManager( 3077): /system/framework/org.cyanogenmod.platform-res.apk changed; collecting certs
  W/PackageManager( 3077): Failed to parse /system/framework/org.cyanogenmod.platform-res.apk:
  Application package org.cyanogenmod.platform already installed.  Skipping duplicate.

Change-Id: Iddea111f4c9bbe69939266ce5c6902d176407b14
2015-05-13 04:54:40 -07:00
Danny Baumann 7267e32ca4 Fix package name.
Package names must contain at least one period if they're not 'android'.

Change-Id: I43658b30837efcaf099e8c02454154e9a57e1a91
2015-05-13 04:27:47 -07:00
Adnan Begovic 3f13414fde CMSDK: Make sure we're binding the correct permission for enforcement.
Change-Id: Ie58b11cfa972f449bfc20b05f4b52b7cd28ab7d5
2015-05-13 01:39:34 -07:00
Adnan Begovic 4f0c2c38ae CMSDK: Update tests for new permissions.
Change-Id: I77d2cc332c453cfbd8aad375c482358039f13d03
2015-05-13 02:43:46 +00:00
Adnan Begovic 2383b607c4 CMSDK: Update sample for new declared permission.
Change-Id: I0ddc4808c24f21d9a0c604059dd86200329c77b3
2015-05-13 02:43:29 +00:00
Adnan Begovic 6bcee3fc68 CMSDK: Ignore subdir layer for resource package.
Change-Id: Id31db92d222e2edb7cf4725b4fcc58a154db0d69
2015-05-12 17:40:55 -07:00
Adnan Begovic 37fc76fe96 CMSDK: Create cyanogenmod platform resource package.
org.cyanogenmod.platform-res provides resources that,
  if public, are globally accessible.

  This allows us to declare public and internal permissions as
  well as reference permissions declared by the android framework
  core

Change-Id: Ia7d541f4b403585f7479ecd87895987b8471005b
2015-05-12 17:40:49 -07:00
Adnan Begovic 8206b1352b CMSDK: Don't cancel pendingintent, update instead.
Change-Id: I557b50fe024feb48c79f71d0ee8882ebaaa80f9f
2015-05-04 16:22:42 -07:00
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