• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 The Android Open Source 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 android.content.pm;
18 
19 import android.annotation.SdkConstant;
20 import android.annotation.SdkConstant.SdkConstantType;
21 
22 /** Stub for testing */
23 public class PackageManager {
24     @SdkConstant(SdkConstantType.FEATURE)
25     public static final String FEATURE_AUTO = "automotive";
26 
27     @SdkConstant(SdkConstantType.FEATURE)
28     public static final String FEATURE_PC = "pc";
29 
30     @SdkConstant(SdkConstantType.FEATURE)
31     public static final String FEATURE_VULKAN = "vulkan";
32 
33     @SdkConstant(SdkConstantType.FEATURE)
34     public static final String FEATURE_WATCH = "watch";
35 
36     @SdkConstant(SdkConstantType.FEATURE)
37     public static final String FEATURE_WIFI = "wifi";
38 
39     @SdkConstant(SdkConstantType.FEATURE)
40     public static final String FEATURE_NOT_IN_RO_FEATURE_API = "not_in_ro_feature_api";
41 
42     @SdkConstant(SdkConstantType.INTENT_CATEGORY)
43     public static final String FEATURE_INTENT_CATEGORY = "intent_category_with_feature_name_prefix";
44 
45     public static final String FEATURE_NOT_ANNOTATED = "not_annotated";
46 
47     public static final String NOT_FEATURE = "not_feature";
48 
49     /** @hide */
hasSystemFeature(String featureName, int version)50     public boolean hasSystemFeature(String featureName, int version) {
51         return false;
52     }
53 
54     /** @hide */
hasSystemFeature(String featureName)55     public boolean hasSystemFeature(String featureName) {
56         return hasSystemFeature(featureName, 0);
57     }
58 }
59