diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-05-19 13:27:17 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-05-19 13:27:17 -0700 |
commit | 8c36c41ff6a99943a28a8280653cb89a6e4978af (patch) | |
tree | acc2701ee3ee2113d982e3e0b320a6c545a2b2ee /src/java | |
parent | 2217bb419785e842c4a60900029db671cbed258c (diff) | |
download | vendor_cmsdk-8c36c41ff6a99943a28a8280653cb89a6e4978af.zip vendor_cmsdk-8c36c41ff6a99943a28a8280653cb89a6e4978af.tar.gz vendor_cmsdk-8c36c41ff6a99943a28a8280653cb89a6e4978af.tar.bz2 |
CMSDK: Update code comments for permission changes.
Change-Id: I1aac7721244a510acb967f5995303ab9d57a11d3
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/cyanogenmod/app/CMStatusBarManager.java | 18 | ||||
-rw-r--r-- | src/java/cyanogenmod/app/CustomTileListenerService.java | 4 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/java/cyanogenmod/app/CMStatusBarManager.java b/src/java/cyanogenmod/app/CMStatusBarManager.java index d5fa68f..481be29 100644 --- a/src/java/cyanogenmod/app/CMStatusBarManager.java +++ b/src/java/cyanogenmod/app/CMStatusBarManager.java @@ -84,7 +84,8 @@ public class CMStatusBarManager { * the same id has already been posted by your application and has not yet been removed, it * will be replaced by the updated information. * - * You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality. + * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE + * to utilize this functionality. * * @param id An identifier for this customTile unique within your * application. @@ -100,7 +101,8 @@ public class CMStatusBarManager { * the same tag and id has already been posted by your application and has not yet been * removed, it will be replaced by the updated information. * - * You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality. + * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE + * to utilize this functionality. * * @param tag A string identifier for this custom tile. May be {@code null}. * @param id An identifier for this custom tile. The pair (tag, id) must be unique @@ -132,7 +134,8 @@ public class CMStatusBarManager { * Similar to {@link cyanogenmod.app.CMStatusBarManager#publishTile(int id, cyanogenmod.app.CustomTile)}, * however lets you specify a {@link android.os.UserHandle} * - * You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality. + * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE + * to utilize this functionality. * * @param tag A string identifier for this custom tile. May be {@code null}. * @param id An identifier for this custom tile. The pair (tag, id) must be unique @@ -164,7 +167,8 @@ public class CMStatusBarManager { /** * Remove a custom tile that's currently published to the StatusBarPanel. * - * You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality. + * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE + * to utilize this functionality. * * @param id The identifier for the custom tile to be removed. */ @@ -175,7 +179,8 @@ public class CMStatusBarManager { /** * Remove a custom tile that's currently published to the StatusBarPanel. * - * You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality. + * You will need the cyanogenmod.platform.PUBLISH_CUSTOM_TILE + * to utilize this functionality. * * @param tag The string identifier for the custom tile to be removed. * @param id The identifier for the custom tile to be removed. @@ -199,7 +204,8 @@ public class CMStatusBarManager { * Similar to {@link cyanogenmod.app.CMStatusBarManager#removeTile(String tag, int id)} * however lets you specific a {@link android.os.UserHandle} * - * You will need the android.permission.PUBLISH_CUSTOM_TILE to utilize this functionality. + * You will need the cyanogenmod.platform.PUBLISH_CUSTOM_TILE + * to utilize this functionality. * * @param tag The string identifier for the custom tile to be removed. * @param id The identifier for the custom tile to be removed. diff --git a/src/java/cyanogenmod/app/CustomTileListenerService.java b/src/java/cyanogenmod/app/CustomTileListenerService.java index 1cd8d2d..9d2929a 100644 --- a/src/java/cyanogenmod/app/CustomTileListenerService.java +++ b/src/java/cyanogenmod/app/CustomTileListenerService.java @@ -35,12 +35,12 @@ import org.cyanogenmod.internal.statusbar.IStatusBarCustomTileHolder; * A service that receives calls from the system when new custom tiles are * posted or removed. * <p>To extend this class, you must declare the service in your manifest file with - * the TODO: add permission + * the cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE * and include an intent filter with the {@link #SERVICE_INTERFACE} action. For example:</p> * <pre> * <service android:name=".CustomTileListener" * android:label="@string/service_name" - * android:permission="TODO: Add me"> + * android:permission="cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE"> * <intent-filter> * <action android:name="cyanogenmod.app.CustomTileListenerService" /> * </intent-filter> |