blob: 98171b8cb4cd20a76e7d47a6f0f3c86061770b86 [file] [log] [blame]
Adnan Begovicaa8614e2015-04-23 23:16:27 -07001/**
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
17package cyanogenmod.app;
18
Adnan Begovica335ba32016-03-14 08:13:57 -070019import android.annotation.SdkConstant;
20
Adnan Begovicaa8614e2015-04-23 23:16:27 -070021/**
Adnan Begovice2feecb2015-05-27 15:05:11 -070022 * @hide
23 * TODO: We need to somehow make these managers accessible via getSystemService
Adnan Begovicaa8614e2015-04-23 23:16:27 -070024 */
Adnan Begovice2feecb2015-05-27 15:05:11 -070025public final class CMContextConstants {
Adnan Begovicaa8614e2015-04-23 23:16:27 -070026
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 Begovic4334b3d2015-06-25 12:54:38 -070044 /**
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 Garnes0cdb1d52015-07-14 16:29:56 -070055
56 /**
57 * Use with {@link android.content.Context#getSystemService} to retrieve a
Matt Garneseabd5752015-09-05 14:25:07 -070058 * {@link cyanogenmod.app.PartnerInterface} interact with system settings.
Matt Garnes0cdb1d52015-07-14 16:29:56 -070059 *
60 * @see android.content.Context#getSystemService
Matt Garneseabd5752015-09-05 14:25:07 -070061 * @see cyanogenmod.app.PartnerInterface
Matt Garnes0cdb1d52015-07-14 16:29:56 -070062 *
63 * @hide
64 */
Matt Garneseabd5752015-09-05 14:25:07 -070065 public static final String CM_PARTNER_INTERFACE = "cmpartnerinterface";
Joao Figueiredo7f503352015-08-06 23:59:02 +010066
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 Kondik5ee87cb2015-08-16 22:33:30 -070078
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";
herriojre78ca4d2015-09-08 13:59:20 -070090
91 /**
92 * @hide
93 */
94 public static final String CM_APP_SUGGEST_SERVICE = "cmappsuggest";
Steve Kondik620c35b2015-11-02 17:43:44 -080095
96 /**
97 * Control device power profile and characteristics.
98 *
99 * @hide
100 */
101 public static final String CM_PERFORMANCE_SERVICE = "cmperformance";
d34db3ea2852016-02-23 09:58:53 -0800102
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 Begovica335ba32016-03-14 08:13:57 -0700116
117 /**
d34dbfa500d2016-03-08 09:14:34 -0800118 * @hide
119 */
120 public static final String CM_LIVE_LOCK_SCREEN_SERVICE = "cmlivelockscreen";
121
122 /**
Luis Vidal4195a1c2016-03-21 11:56:40 -0700123 * 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 Begovica335ba32016-03-14 08:13:57 -0700135 * 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 Begoviccdf85ad2016-03-15 11:29:41 -0700145
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 Begovic21a56742016-03-15 16:40:06 -0700153
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 Begovicfe7fd1d2016-03-24 17:25:13 -0700161
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 Begovicc4062112016-03-24 17:34:54 -0700169
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 Begovicccdb2922016-03-24 17:55:10 -0700177
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 Begovic279ce422016-03-25 12:37:26 -0700185
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 Begovicb271dcf2016-03-25 12:43:22 -0700193
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";
d34dbfa500d2016-03-08 09:14:34 -0800201
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 Vidal4195a1c2016-03-21 11:56:40 -0700209
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 Begovica335ba32016-03-14 08:13:57 -0700217 }
Adnan Begovicaa8614e2015-04-23 23:16:27 -0700218}