Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 1 | package cyanogenmod.app { |
| 2 | |
| 3 | public class CMStatusBarManager { |
| 4 | method public static cyanogenmod.app.CMStatusBarManager getInstance(android.content.Context); |
| 5 | method public void publishTile(int, cyanogenmod.app.CustomTile); |
| 6 | method public void publishTile(java.lang.String, int, cyanogenmod.app.CustomTile); |
| 7 | method public void publishTileAsUser(java.lang.String, int, cyanogenmod.app.CustomTile, android.os.UserHandle); |
| 8 | method public void removeTile(int); |
| 9 | method public void removeTile(java.lang.String, int); |
| 10 | method public void removeTileAsUser(java.lang.String, int, android.os.UserHandle); |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | public class CustomTile implements android.os.Parcelable { |
| 14 | ctor public CustomTile(android.os.Parcel); |
| 15 | ctor public CustomTile(); |
| 16 | method public cyanogenmod.app.CustomTile clone(); |
| 17 | method public int describeContents(); |
| 18 | method public void writeToParcel(android.os.Parcel, int); |
| 19 | field public static final android.os.Parcelable.Creator<cyanogenmod.app.CustomTile> CREATOR; |
| 20 | field public java.lang.String contentDescription; |
Adnan Begovic | 3f7e428 | 2015-06-09 11:03:37 -0700 | [diff] [blame] | 21 | field public cyanogenmod.app.CustomTile.ExpandedStyle expandedStyle; |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 22 | field public int icon; |
| 23 | field public java.lang.String label; |
| 24 | field public android.app.PendingIntent onClick; |
| 25 | field public android.net.Uri onClickUri; |
| 26 | field public android.content.Intent onSettingsClick; |
| 27 | } |
| 28 | |
| 29 | public static class CustomTile.Builder { |
| 30 | ctor public CustomTile.Builder(android.content.Context); |
| 31 | method public cyanogenmod.app.CustomTile build(); |
| 32 | method public cyanogenmod.app.CustomTile.Builder setContentDescription(java.lang.String); |
| 33 | method public cyanogenmod.app.CustomTile.Builder setContentDescription(int); |
Adnan Begovic | 3f7e428 | 2015-06-09 11:03:37 -0700 | [diff] [blame] | 34 | method public cyanogenmod.app.CustomTile.Builder setExpandedStyle(cyanogenmod.app.CustomTile.ExpandedStyle); |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 35 | method public cyanogenmod.app.CustomTile.Builder setIcon(int); |
| 36 | method public cyanogenmod.app.CustomTile.Builder setLabel(java.lang.String); |
| 37 | method public cyanogenmod.app.CustomTile.Builder setLabel(int); |
| 38 | method public cyanogenmod.app.CustomTile.Builder setOnClickIntent(android.app.PendingIntent); |
| 39 | method public cyanogenmod.app.CustomTile.Builder setOnClickUri(android.net.Uri); |
| 40 | method public cyanogenmod.app.CustomTile.Builder setOnSettingsClickIntent(android.content.Intent); |
| 41 | } |
| 42 | |
Adnan Begovic | 3f7e428 | 2015-06-09 11:03:37 -0700 | [diff] [blame] | 43 | public static class CustomTile.ExpandedGridItem extends cyanogenmod.app.CustomTile.ExpandedItem { |
| 44 | ctor public CustomTile.ExpandedGridItem(); |
| 45 | method public void setExpandedGridItemDrawable(int); |
| 46 | method public void setExpandedGridItemOnClickIntent(android.app.PendingIntent); |
| 47 | method public void setExpandedGridItemTitle(java.lang.String); |
| 48 | } |
| 49 | |
| 50 | public static class CustomTile.ExpandedItem implements android.os.Parcelable { |
| 51 | ctor protected CustomTile.ExpandedItem(android.os.Parcel); |
| 52 | method public int describeContents(); |
| 53 | method public void writeToParcel(android.os.Parcel, int); |
| 54 | field public static final android.os.Parcelable.Creator<cyanogenmod.app.CustomTile.ExpandedItem> CREATOR; |
| 55 | field public int itemDrawableResourceId; |
| 56 | field public java.lang.String itemSummary; |
| 57 | field public java.lang.String itemTitle; |
| 58 | field public android.app.PendingIntent onClickPendingIntent; |
| 59 | } |
| 60 | |
| 61 | public static class CustomTile.ExpandedListItem extends cyanogenmod.app.CustomTile.ExpandedItem { |
| 62 | ctor public CustomTile.ExpandedListItem(); |
| 63 | method public void setExpandedListItemDrawable(int); |
| 64 | method public void setExpandedListItemOnClickIntent(android.app.PendingIntent); |
| 65 | method public void setExpandedListItemSummary(java.lang.String); |
| 66 | method public void setExpandedListItemTitle(java.lang.String); |
| 67 | } |
| 68 | |
| 69 | public static class CustomTile.ExpandedStyle implements android.os.Parcelable { |
| 70 | method public int describeContents(); |
| 71 | method public cyanogenmod.app.CustomTile.ExpandedItem[] getExpandedItems(); |
| 72 | method public int getStyle(); |
| 73 | method public void writeToParcel(android.os.Parcel, int); |
| 74 | field public static final android.os.Parcelable.Creator<cyanogenmod.app.CustomTile.ExpandedStyle> CREATOR; |
| 75 | field public static final int GRID_STYLE = 0; // 0x0 |
| 76 | field public static final int LIST_STYLE = 1; // 0x1 |
| 77 | } |
| 78 | |
| 79 | public static class CustomTile.GridExpandedStyle extends cyanogenmod.app.CustomTile.ExpandedStyle { |
| 80 | ctor public CustomTile.GridExpandedStyle(); |
| 81 | method public void setGridItems(java.util.ArrayList<cyanogenmod.app.CustomTile.ExpandedGridItem>); |
| 82 | } |
| 83 | |
| 84 | public static class CustomTile.ListExpandedStyle extends cyanogenmod.app.CustomTile.ExpandedStyle { |
| 85 | ctor public CustomTile.ListExpandedStyle(); |
| 86 | method public void setListItems(java.util.ArrayList<cyanogenmod.app.CustomTile.ExpandedListItem>); |
| 87 | } |
| 88 | |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 89 | public class CustomTileListenerService extends android.app.Service { |
| 90 | ctor public CustomTileListenerService(); |
| 91 | method public android.os.IBinder onBind(android.content.Intent); |
| 92 | method public void onCustomTilePosted(cyanogenmod.app.StatusBarPanelCustomTile); |
| 93 | method public void onCustomTileRemoved(cyanogenmod.app.StatusBarPanelCustomTile); |
| 94 | method public void onListenerConnected(); |
| 95 | method public final void removeCustomTile(java.lang.String, java.lang.String, int); |
| 96 | field public static final java.lang.String SERVICE_INTERFACE = "cyanogenmod.app.CustomTileListenerService"; |
| 97 | } |
| 98 | |
Adnan Begovic | eddb89c | 2015-07-13 14:00:20 -0700 | [diff] [blame^] | 99 | public final class Profile implements android.os.Parcelable { |
| 100 | ctor public Profile(java.lang.String); |
| 101 | method public void addSecondaryUuid(java.util.UUID); |
| 102 | method public int compareTo(java.lang.Object); |
| 103 | method public int describeContents(); |
| 104 | method public cyanogenmod.profiles.AirplaneModeSettings getAirplaneMode(); |
| 105 | method public cyanogenmod.profiles.BrightnessSettings getBrightness(); |
| 106 | method public java.util.Collection<cyanogenmod.profiles.ConnectionSettings> getConnectionSettings(); |
| 107 | method public int getDozeMode(); |
| 108 | method public int getExpandedDesktopMode(); |
| 109 | method public java.lang.String getName(); |
| 110 | method public int getProfileType(); |
| 111 | method public cyanogenmod.profiles.RingModeSettings getRingMode(); |
| 112 | method public int getScreenLockMode(); |
| 113 | method public java.util.UUID[] getSecondaryUuids(); |
| 114 | method public cyanogenmod.profiles.ConnectionSettings getSettingsForConnection(int); |
| 115 | method public cyanogenmod.profiles.StreamSettings getSettingsForStream(int); |
| 116 | method public java.util.Collection<cyanogenmod.profiles.StreamSettings> getStreamSettings(); |
| 117 | method public int getTriggerState(int, java.lang.String); |
| 118 | method public java.util.ArrayList<cyanogenmod.app.Profile.ProfileTrigger> getTriggersFromType(int); |
| 119 | method public java.util.UUID getUuid(); |
| 120 | method public boolean isConditionalType(); |
| 121 | method public void setAirplaneMode(cyanogenmod.profiles.AirplaneModeSettings); |
| 122 | method public void setBrightness(cyanogenmod.profiles.BrightnessSettings); |
| 123 | method public void setConnectionSettings(cyanogenmod.profiles.ConnectionSettings); |
| 124 | method public void setDozeMode(int); |
| 125 | method public void setExpandedDesktopMode(int); |
| 126 | method public void setName(java.lang.String); |
| 127 | method public void setProfileType(int); |
| 128 | method public void setRingMode(cyanogenmod.profiles.RingModeSettings); |
| 129 | method public void setScreenLockMode(int); |
| 130 | method public void setSecondaryUuids(java.util.List<java.util.UUID>); |
| 131 | method public void setStreamSettings(cyanogenmod.profiles.StreamSettings); |
| 132 | method public void setTrigger(cyanogenmod.app.Profile.ProfileTrigger); |
| 133 | method public void writeToParcel(android.os.Parcel, int); |
| 134 | } |
| 135 | |
| 136 | public static class Profile.DozeMode { |
| 137 | ctor public Profile.DozeMode(); |
| 138 | field public static final int DEFAULT = 0; // 0x0 |
| 139 | field public static final int DISABLE = 2; // 0x2 |
| 140 | field public static final int ENABLE = 1; // 0x1 |
| 141 | } |
| 142 | |
| 143 | public static class Profile.ExpandedDesktopMode { |
| 144 | ctor public Profile.ExpandedDesktopMode(); |
| 145 | field public static final int DEFAULT = 0; // 0x0 |
| 146 | field public static final int DISABLE = 2; // 0x2 |
| 147 | field public static final int ENABLE = 1; // 0x1 |
| 148 | } |
| 149 | |
| 150 | public static class Profile.LockMode { |
| 151 | ctor public Profile.LockMode(); |
| 152 | field public static final int DEFAULT = 0; // 0x0 |
| 153 | field public static final int DISABLE = 2; // 0x2 |
| 154 | field public static final int INSECURE = 1; // 0x1 |
| 155 | } |
| 156 | |
| 157 | public static class Profile.ProfileTrigger implements android.os.Parcelable { |
| 158 | method public int describeContents(); |
| 159 | method public java.lang.String getId(); |
| 160 | method public java.lang.String getName(); |
| 161 | method public int getState(); |
| 162 | method public int getType(); |
| 163 | method public void writeToParcel(android.os.Parcel, int); |
| 164 | } |
| 165 | |
| 166 | public static class Profile.TriggerState { |
| 167 | ctor public Profile.TriggerState(); |
| 168 | field public static final int DISABLED = 2; // 0x2 |
| 169 | field public static final int ON_A2DP_CONNECT = 3; // 0x3 |
| 170 | field public static final int ON_A2DP_DISCONNECT = 4; // 0x4 |
| 171 | field public static final int ON_CONNECT = 0; // 0x0 |
| 172 | field public static final int ON_DISCONNECT = 1; // 0x1 |
| 173 | } |
| 174 | |
| 175 | public static class Profile.TriggerType { |
| 176 | ctor public Profile.TriggerType(); |
| 177 | field public static final int BLUETOOTH = 1; // 0x1 |
| 178 | field public static final int WIFI = 0; // 0x0 |
| 179 | } |
| 180 | |
| 181 | public static class Profile.Type { |
| 182 | ctor public Profile.Type(); |
| 183 | field public static final int CONDITIONAL = 1; // 0x1 |
| 184 | field public static final int TOGGLE = 0; // 0x0 |
| 185 | } |
| 186 | |
| 187 | public class ProfileManager { |
| 188 | method public void addProfile(cyanogenmod.app.Profile); |
| 189 | method public cyanogenmod.app.Profile getActiveProfile(); |
| 190 | method public static cyanogenmod.app.ProfileManager getInstance(android.content.Context); |
| 191 | method public deprecated cyanogenmod.app.Profile getProfile(java.lang.String); |
| 192 | method public cyanogenmod.app.Profile getProfile(java.util.UUID); |
| 193 | method public java.lang.String[] getProfileNames(); |
| 194 | method public cyanogenmod.app.Profile[] getProfiles(); |
| 195 | method public boolean profileExists(java.lang.String); |
| 196 | method public boolean profileExists(java.util.UUID); |
| 197 | method public void removeProfile(cyanogenmod.app.Profile); |
| 198 | method public void resetAll(); |
| 199 | method public deprecated void setActiveProfile(java.lang.String); |
| 200 | method public void setActiveProfile(java.util.UUID); |
| 201 | method public void updateProfile(cyanogenmod.app.Profile); |
| 202 | field public static final java.lang.String ACTION_PROFILE_PICKER = "cyanogenmod_platform.intent.action.PROFILE_PICKER"; |
| 203 | field public static final java.lang.String EXTRA_LAST_PROFILE_NAME = "lastName"; |
| 204 | field public static final java.lang.String EXTRA_LAST_PROFILE_UUID = "uuid"; |
| 205 | field public static final java.lang.String EXTRA_PROFILES_STATE = "profile_state"; |
| 206 | field public static final java.lang.String EXTRA_PROFILE_DIALOG_THEME = "cyanogenmod.platform.intent.extra.profile.DIALOG_THEME"; |
| 207 | field public static final java.lang.String EXTRA_PROFILE_EXISTING_UUID = "android.intent.extra.profile.EXISTING_UUID"; |
| 208 | field public static final java.lang.String EXTRA_PROFILE_NAME = "name"; |
| 209 | field public static final java.lang.String EXTRA_PROFILE_PICKED_UUID = "cyanogenmod.platform.intent.extra.profile.PICKED_UUID"; |
| 210 | field public static final java.lang.String EXTRA_PROFILE_SHOW_NONE = "android.intent.extra.profile.SHOW_NONE"; |
| 211 | field public static final java.lang.String EXTRA_PROFILE_TITLE = "cyanogenmod.platform.intent.extra.profile.TITLE"; |
| 212 | field public static final java.lang.String EXTRA_PROFILE_UUID = "uuid"; |
| 213 | field public static final java.lang.String INTENT_ACTION_PROFILE_SELECTED = "cyanogenmod.platform.intent.action.PROFILE_SELECTED"; |
| 214 | field public static final java.lang.String INTENT_ACTION_PROFILE_UPDATED = "cyanogenmod.platform.intent.action.PROFILE_UPDATED"; |
| 215 | field public static final java.util.UUID NO_PROFILE; |
| 216 | field public static final java.lang.String PROFILES_STATE_CHANGED_ACTION = "cyanogenmod.platform.app.profiles.PROFILES_STATE_CHANGED"; |
| 217 | field public static final int PROFILES_STATE_DISABLED = 0; // 0x0 |
| 218 | field public static final int PROFILES_STATE_ENABLED = 1; // 0x1 |
| 219 | } |
| 220 | |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 221 | public class StatusBarPanelCustomTile implements android.os.Parcelable { |
Adnan Begovic | f1f9f25 | 2015-06-22 20:34:55 -0700 | [diff] [blame] | 222 | ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, cyanogenmod.app.CustomTile, android.os.UserHandle); |
| 223 | ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, cyanogenmod.app.CustomTile, android.os.UserHandle, long); |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 224 | ctor public StatusBarPanelCustomTile(android.os.Parcel); |
| 225 | method public cyanogenmod.app.StatusBarPanelCustomTile clone(); |
| 226 | method public int describeContents(); |
| 227 | method public cyanogenmod.app.CustomTile getCustomTile(); |
| 228 | method public int getId(); |
| 229 | method public java.lang.String getKey(); |
| 230 | method public java.lang.String getPackage(); |
| 231 | method public long getPostTime(); |
| 232 | method public java.lang.String getTag(); |
| 233 | method public android.os.UserHandle getUser(); |
| 234 | method public int getUserId(); |
| 235 | method public void writeToParcel(android.os.Parcel, int); |
| 236 | field public static final android.os.Parcelable.Creator<cyanogenmod.app.StatusBarPanelCustomTile> CREATOR; |
| 237 | } |
| 238 | |
| 239 | } |
| 240 | |
Adnan Begovic | 3f7e428 | 2015-06-09 11:03:37 -0700 | [diff] [blame] | 241 | package cyanogenmod.os { |
| 242 | |
| 243 | public class Build { |
| 244 | ctor public Build(); |
| 245 | method public static java.lang.String getNameForSDKInt(int); |
| 246 | field public static final java.lang.String UNKNOWN = "unknown"; |
| 247 | } |
| 248 | |
| 249 | public static class Build.CM_VERSION { |
| 250 | ctor public Build.CM_VERSION(); |
| 251 | field public static final int SDK_INT; |
| 252 | } |
| 253 | |
| 254 | public static class Build.CM_VERSION_CODES { |
| 255 | ctor public Build.CM_VERSION_CODES(); |
| 256 | field public static final int APRICOT = 1; // 0x1 |
| 257 | } |
| 258 | |
| 259 | } |
| 260 | |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 261 | package cyanogenmod.platform { |
| 262 | |
| 263 | public final class Manifest { |
| 264 | ctor public Manifest(); |
| 265 | } |
| 266 | |
| 267 | public static final class Manifest.permission { |
| 268 | ctor public Manifest.permission(); |
| 269 | field public static final java.lang.String PUBLISH_CUSTOM_TILE = "cyanogenmod.permission.PUBLISH_CUSTOM_TILE"; |
| 270 | } |
| 271 | |
| 272 | public final class R { |
| 273 | ctor public R(); |
| 274 | } |
| 275 | |
| 276 | public static final class R.attr { |
| 277 | ctor public R.attr(); |
| 278 | } |
| 279 | |
Adnan Begovic | eddb89c | 2015-07-13 14:00:20 -0700 | [diff] [blame^] | 280 | public static final class R.drawable { |
| 281 | ctor public R.drawable(); |
| 282 | } |
| 283 | |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 284 | public static final class R.string { |
| 285 | ctor public R.string(); |
| 286 | } |
| 287 | |
Adnan Begovic | eddb89c | 2015-07-13 14:00:20 -0700 | [diff] [blame^] | 288 | public static final class R.xml { |
| 289 | ctor public R.xml(); |
| 290 | } |
| 291 | |
| 292 | } |
| 293 | |
| 294 | package cyanogenmod.profiles { |
| 295 | |
| 296 | public final class AirplaneModeSettings implements android.os.Parcelable { |
| 297 | ctor public AirplaneModeSettings(android.os.Parcel); |
| 298 | ctor public AirplaneModeSettings(); |
| 299 | ctor public AirplaneModeSettings(int, boolean); |
| 300 | method public int describeContents(); |
| 301 | method public int getValue(); |
| 302 | method public boolean isOverride(); |
| 303 | method public void setOverride(boolean); |
| 304 | method public void setValue(int); |
| 305 | method public void writeToParcel(android.os.Parcel, int); |
| 306 | } |
| 307 | |
| 308 | public static class AirplaneModeSettings.BooleanState { |
| 309 | ctor public AirplaneModeSettings.BooleanState(); |
| 310 | field public static final int STATE_DISALED = 0; // 0x0 |
| 311 | field public static final int STATE_ENABLED = 1; // 0x1 |
| 312 | } |
| 313 | |
| 314 | public final class BrightnessSettings implements android.os.Parcelable { |
| 315 | ctor public BrightnessSettings(android.os.Parcel); |
| 316 | ctor public BrightnessSettings(); |
| 317 | ctor public BrightnessSettings(int, boolean); |
| 318 | method public int describeContents(); |
| 319 | method public int getValue(); |
| 320 | method public boolean isOverride(); |
| 321 | method public void setOverride(boolean); |
| 322 | method public void setValue(int); |
| 323 | method public void writeToParcel(android.os.Parcel, int); |
| 324 | } |
| 325 | |
| 326 | public final class ConnectionSettings implements android.os.Parcelable { |
| 327 | ctor public ConnectionSettings(android.os.Parcel); |
| 328 | ctor public ConnectionSettings(int); |
| 329 | ctor public ConnectionSettings(int, int, boolean); |
| 330 | method public int describeContents(); |
| 331 | method public int getConnectionId(); |
| 332 | method public int getValue(); |
| 333 | method public boolean isOverride(); |
| 334 | method public void setOverride(boolean); |
| 335 | method public void setValue(int); |
| 336 | method public void writeToParcel(android.os.Parcel, int); |
| 337 | field public static final int PROFILE_CONNECTION_2G3G4G = 9; // 0x9 |
| 338 | field public static final int PROFILE_CONNECTION_BLUETOOTH = 7; // 0x7 |
| 339 | field public static final int PROFILE_CONNECTION_GPS = 4; // 0x4 |
| 340 | field public static final int PROFILE_CONNECTION_MOBILEDATA = 0; // 0x0 |
| 341 | field public static final int PROFILE_CONNECTION_NFC = 8; // 0x8 |
| 342 | field public static final int PROFILE_CONNECTION_SYNC = 5; // 0x5 |
| 343 | field public static final int PROFILE_CONNECTION_WIFI = 1; // 0x1 |
| 344 | field public static final int PROFILE_CONNECTION_WIFIAP = 2; // 0x2 |
| 345 | field public static final int PROFILE_CONNECTION_WIMAX = 3; // 0x3 |
| 346 | } |
| 347 | |
| 348 | public static class ConnectionSettings.BooleanState { |
| 349 | ctor public ConnectionSettings.BooleanState(); |
| 350 | field public static final int STATE_DISALED = 0; // 0x0 |
| 351 | field public static final int STATE_ENABLED = 1; // 0x1 |
| 352 | } |
| 353 | |
| 354 | public final class RingModeSettings implements android.os.Parcelable { |
| 355 | ctor public RingModeSettings(android.os.Parcel); |
| 356 | ctor public RingModeSettings(); |
| 357 | ctor public RingModeSettings(java.lang.String, boolean); |
| 358 | method public int describeContents(); |
| 359 | method public java.lang.String getValue(); |
| 360 | method public boolean isOverride(); |
| 361 | method public void setOverride(boolean); |
| 362 | method public void setValue(java.lang.String); |
| 363 | method public void writeToParcel(android.os.Parcel, int); |
| 364 | field public static final java.lang.String RING_MODE_MUTE = "mute"; |
| 365 | field public static final java.lang.String RING_MODE_NORMAL = "normal"; |
| 366 | field public static final java.lang.String RING_MODE_VIBRATE = "vibrate"; |
| 367 | } |
| 368 | |
| 369 | public final class StreamSettings implements android.os.Parcelable { |
| 370 | ctor public StreamSettings(android.os.Parcel); |
| 371 | ctor public StreamSettings(int); |
| 372 | ctor public StreamSettings(int, int, boolean); |
| 373 | method public int describeContents(); |
| 374 | method public int getStreamId(); |
| 375 | method public int getValue(); |
| 376 | method public boolean isOverride(); |
| 377 | method public void setOverride(boolean); |
| 378 | method public void setValue(int); |
| 379 | method public void writeToParcel(android.os.Parcel, int); |
| 380 | } |
| 381 | |
Adnan Begovic | 273f2db | 2015-05-28 19:47:47 -0700 | [diff] [blame] | 382 | } |
| 383 | |