Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (c) 2015, The CyanogenMod Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package cyanogenmod.app; |
| 18 | |
Adnan Begovic | a335ba3 | 2016-03-14 08:13:57 -0700 | [diff] [blame] | 19 | import android.annotation.SdkConstant; |
| 20 | |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 21 | /** |
Adnan Begovic | e2feecb | 2015-05-27 15:05:11 -0700 | [diff] [blame] | 22 | * @hide |
| 23 | * TODO: We need to somehow make these managers accessible via getSystemService |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 24 | */ |
Adnan Begovic | e2feecb | 2015-05-27 15:05:11 -0700 | [diff] [blame] | 25 | public final class CMContextConstants { |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 26 | |
| 27 | /** |
| 28 | * @hide |
| 29 | */ |
| 30 | private CMContextConstants() { |
| 31 | // Empty constructor |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Use with {@link android.content.Context#getSystemService} to retrieve a |
| 36 | * {@link cyanogenmod.app.CMStatusBarManager} for informing the user of |
| 37 | * background events. |
| 38 | * |
| 39 | * @see android.content.Context#getSystemService |
| 40 | * @see cyanogenmod.app.CMStatusBarManager |
| 41 | */ |
| 42 | public static final String CM_STATUS_BAR_SERVICE = "cmstatusbar"; |
| 43 | |
Adnan Begovic | 4334b3d | 2015-06-25 12:54:38 -0700 | [diff] [blame] | 44 | /** |
| 45 | * Use with {@link android.content.Context#getSystemService} to retrieve a |
| 46 | * {@link cyanogenmod.app.ProfileManager} for informing the user of |
| 47 | * background events. |
| 48 | * |
| 49 | * @see android.content.Context#getSystemService |
| 50 | * @see cyanogenmod.app.ProfileManager |
| 51 | * |
| 52 | * @hide |
| 53 | */ |
| 54 | public static final String CM_PROFILE_SERVICE = "profile"; |
Matt Garnes | 0cdb1d5 | 2015-07-14 16:29:56 -0700 | [diff] [blame] | 55 | |
| 56 | /** |
| 57 | * Use with {@link android.content.Context#getSystemService} to retrieve a |
Matt Garnes | eabd575 | 2015-09-05 14:25:07 -0700 | [diff] [blame] | 58 | * {@link cyanogenmod.app.PartnerInterface} interact with system settings. |
Matt Garnes | 0cdb1d5 | 2015-07-14 16:29:56 -0700 | [diff] [blame] | 59 | * |
| 60 | * @see android.content.Context#getSystemService |
Matt Garnes | eabd575 | 2015-09-05 14:25:07 -0700 | [diff] [blame] | 61 | * @see cyanogenmod.app.PartnerInterface |
Matt Garnes | 0cdb1d5 | 2015-07-14 16:29:56 -0700 | [diff] [blame] | 62 | * |
| 63 | * @hide |
| 64 | */ |
Matt Garnes | eabd575 | 2015-09-05 14:25:07 -0700 | [diff] [blame] | 65 | public static final String CM_PARTNER_INTERFACE = "cmpartnerinterface"; |
Joao Figueiredo | 7f50335 | 2015-08-06 23:59:02 +0100 | [diff] [blame] | 66 | |
| 67 | /** |
| 68 | * Use with {@link android.content.Context#getSystemService} to retrieve a |
| 69 | * {@link cyanogenmod.app.CMTelephonyManager} to manage the phone and |
| 70 | * data connection. |
| 71 | * |
| 72 | * @see android.content.Context#getSystemService |
| 73 | * @see cyanogenmod.app.CMTelephonyManager |
| 74 | * |
| 75 | * @hide |
| 76 | */ |
| 77 | public static final String CM_TELEPHONY_MANAGER_SERVICE = "cmtelephonymanager"; |
Steve Kondik | 5ee87cb | 2015-08-16 22:33:30 -0700 | [diff] [blame] | 78 | |
| 79 | /** |
| 80 | * Use with {@link android.content.Context#getSystemService} to retrieve a |
| 81 | * {@link cyanogenmod.hardware.CMHardwareManager} to manage the extended |
| 82 | * hardware features of the device. |
| 83 | * |
| 84 | * @see android.content.Context#getSystemService |
| 85 | * @see cyanogenmod.hardware.CMHardwareManager |
| 86 | * |
| 87 | * @hide |
| 88 | */ |
| 89 | public static final String CM_HARDWARE_SERVICE = "cmhardware"; |
herriojr | e78ca4d | 2015-09-08 13:59:20 -0700 | [diff] [blame] | 90 | |
| 91 | /** |
| 92 | * @hide |
| 93 | */ |
| 94 | public static final String CM_APP_SUGGEST_SERVICE = "cmappsuggest"; |
Steve Kondik | 620c35b | 2015-11-02 17:43:44 -0800 | [diff] [blame] | 95 | |
| 96 | /** |
| 97 | * Control device power profile and characteristics. |
| 98 | * |
| 99 | * @hide |
| 100 | */ |
| 101 | public static final String CM_PERFORMANCE_SERVICE = "cmperformance"; |
d34d | b3ea285 | 2016-02-23 09:58:53 -0800 | [diff] [blame] | 102 | |
| 103 | /** |
| 104 | * Controls changing and applying themes |
| 105 | * |
| 106 | * @hide |
| 107 | */ |
| 108 | public static final String CM_THEME_SERVICE = "cmthemes"; |
| 109 | |
| 110 | /** |
| 111 | * Manages composed icons |
| 112 | * |
| 113 | * @hide |
| 114 | */ |
| 115 | public static final String CM_ICON_CACHE_SERVICE = "cmiconcache"; |
Adnan Begovic | a335ba3 | 2016-03-14 08:13:57 -0700 | [diff] [blame] | 116 | |
| 117 | /** |
d34d | bfa500d | 2016-03-08 09:14:34 -0800 | [diff] [blame] | 118 | * @hide |
| 119 | */ |
| 120 | public static final String CM_LIVE_LOCK_SCREEN_SERVICE = "cmlivelockscreen"; |
| 121 | |
| 122 | /** |
Luis Vidal | 4195a1c | 2016-03-21 11:56:40 -0700 | [diff] [blame^] | 123 | * Use with {@link android.content.Context#getSystemService} to retrieve a |
| 124 | * {@link cyanogenmod.weather.CMWeatherManager} to manage the weather service |
| 125 | * settings and request weather updates |
| 126 | * |
| 127 | * @see android.content.Context#getSystemService |
| 128 | * @see cyanogenmod.weather.CMWeatherManager |
| 129 | * |
| 130 | * @hide |
| 131 | */ |
| 132 | public static final String CM_WEATHER_SERVICE = "cmweather"; |
| 133 | |
| 134 | /** |
Adnan Begovic | a335ba3 | 2016-03-14 08:13:57 -0700 | [diff] [blame] | 135 | * Features supported by the CMSDK. |
| 136 | */ |
| 137 | public static class Features { |
| 138 | /** |
| 139 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 140 | * {@link PackageManager#hasSystemFeature}: The device includes the hardware abstraction |
| 141 | * framework service utilized by the cmsdk. |
| 142 | */ |
| 143 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 144 | public static final String HARDWARE_ABSTRACTION = "org.cyanogenmod.hardware"; |
Adnan Begovic | cdf85ad | 2016-03-15 11:29:41 -0700 | [diff] [blame] | 145 | |
| 146 | /** |
| 147 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 148 | * {@link PackageManager#hasSystemFeature}: The device includes the cm status bar service |
| 149 | * utilzed by the cmsdk. |
| 150 | */ |
| 151 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 152 | public static final String STATUSBAR = "org.cyanogenmod.statusbar"; |
Adnan Begovic | 21a5674 | 2016-03-15 16:40:06 -0700 | [diff] [blame] | 153 | |
| 154 | /** |
| 155 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 156 | * {@link PackageManager#hasSystemFeature}: The device includes the cm profiles service |
| 157 | * utilized by the cmsdk. |
| 158 | */ |
| 159 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 160 | public static final String PROFILES = "org.cyanogenmod.profiles"; |
Adnan Begovic | fe7fd1d | 2016-03-24 17:25:13 -0700 | [diff] [blame] | 161 | |
| 162 | /** |
| 163 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 164 | * {@link PackageManager#hasSystemFeature}: The device includes the cm app suggest service |
| 165 | * utilized by the cmsdk. |
| 166 | */ |
| 167 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 168 | public static final String APP_SUGGEST = "org.cyanogenmod.appsuggest"; |
Adnan Begovic | c406211 | 2016-03-24 17:34:54 -0700 | [diff] [blame] | 169 | |
| 170 | /** |
| 171 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 172 | * {@link PackageManager#hasSystemFeature}: The device includes the cm telephony service |
| 173 | * utilized by the cmsdk. |
| 174 | */ |
| 175 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 176 | public static final String TELEPHONY = "org.cyanogenmod.telephony"; |
Adnan Begovic | ccdb292 | 2016-03-24 17:55:10 -0700 | [diff] [blame] | 177 | |
| 178 | /** |
| 179 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 180 | * {@link PackageManager#hasSystemFeature}: The device includes the cm theme service |
| 181 | * utilized by the cmsdk. |
| 182 | */ |
| 183 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 184 | public static final String THEMES = "org.cyanogenmod.theme"; |
Adnan Begovic | 279ce42 | 2016-03-25 12:37:26 -0700 | [diff] [blame] | 185 | |
| 186 | /** |
| 187 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 188 | * {@link PackageManager#hasSystemFeature}: The device includes the cm performance service |
| 189 | * utilized by the cmsdk. |
| 190 | */ |
| 191 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 192 | public static final String PERFORMANCE = "org.cyanogenmod.performance"; |
Adnan Begovic | b271dcf | 2016-03-25 12:43:22 -0700 | [diff] [blame] | 193 | |
| 194 | /** |
| 195 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 196 | * {@link PackageManager#hasSystemFeature}: The device includes the cm partner service |
| 197 | * utilized by the cmsdk. |
| 198 | */ |
| 199 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 200 | public static final String PARTNER = "org.cyanogenmod.partner"; |
d34d | bfa500d | 2016-03-08 09:14:34 -0800 | [diff] [blame] | 201 | |
| 202 | /* |
| 203 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 204 | * {@link PackageManager#hasSystemFeature}: The device includes the Live lock screen |
| 205 | * feature. |
| 206 | */ |
| 207 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 208 | public static final String LIVE_LOCK_SCREEN = "org.cyanogenmod.livelockscreen"; |
Luis Vidal | 4195a1c | 2016-03-21 11:56:40 -0700 | [diff] [blame^] | 209 | |
| 210 | /** |
| 211 | * Feature for {@link PackageManager#getSystemAvailableFeatures} and |
| 212 | * {@link PackageManager#hasSystemFeature}: The device includes the cm weather weather |
| 213 | * service utilized by the cmsdk. |
| 214 | */ |
| 215 | @SdkConstant(SdkConstant.SdkConstantType.FEATURE) |
| 216 | public static final String WEATHER_SERVICES = "org.cyanogenmod.weather"; |
Adnan Begovic | a335ba3 | 2016-03-14 08:13:57 -0700 | [diff] [blame] | 217 | } |
Adnan Begovic | aa8614e | 2015-04-23 23:16:27 -0700 | [diff] [blame] | 218 | } |