blob: 33a3694402737d99792272205c1c9db1e0558adb [file] [log] [blame]
Luofan Chen120a40d2023-03-01 19:12:53 +08001/**
2 * Copyright (C) 2015, The CyanogenMod Project
3 * 2017-2023 The LineageOS Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18package omnirom.app;
19
20import android.annotation.SdkConstant;
21
22/**
23 * @hide
24 * TODO: We need to somehow make these managers accessible via getSystemService
25 */
26public final class OmniRomContextConstants {
27
28 /**
29 * @hide
30 */
31 private OmniRomContextConstants() {
32 // Empty constructor
33 }
34
35 /**
36 * Use with {@link android.content.Context#getSystemService} to retrieve a
37 * {@link lineageos.health.HealthInterface} to access the Health interface.
38 *
39 * @see android.content.Context#getSystemService
40 * @see lineageos.health.HealthInterface
41 *
42 * @hide
43 */
44 public static final String LINEAGE_HEALTH_INTERFACE = "lineagehealth";
45
46 /**
47 * Features supported by the Lineage SDK.
48 */
49 public static class Features {
50 /**
51 * Feature for {@link PackageManager#getSystemAvailableFeatures} and
52 * {@link PackageManager#hasSystemFeature}: The device includes the lineage health
53 * service utilized by the omnirom sdk and Omnirom Control.
54 */
55 @SdkConstant(SdkConstant.SdkConstantType.FEATURE)
56 public static final String HEALTH = "org.lineageos.health";
57 }
58}