blob: bf7a00679fa6c8f8c789208ae5f434be2d3ba422 [file] [log] [blame]
Jared Duke2d1a8322024-08-23 22:17:09 +00001// This file is auto-generated. DO NOT MODIFY.
2// Args: com.android.systemfeatures.RoNoFeatures \
3// --readonly=true \
4// --feature-apis=WATCH
5package com.android.systemfeatures;
6
Jared Duke568adec2024-09-20 21:11:17 +00007import android.annotation.NonNull;
Jared Duke2d1a8322024-08-23 22:17:09 +00008import android.annotation.Nullable;
9import android.content.Context;
Jared Duke568adec2024-09-20 21:11:17 +000010import android.content.pm.FeatureInfo;
Jared Duke2d1a8322024-08-23 22:17:09 +000011import android.content.pm.PackageManager;
Jared Duke568adec2024-09-20 21:11:17 +000012import java.util.HashMap;
13import java.util.Map;
Jared Duke2d1a8322024-08-23 22:17:09 +000014
15/**
16 * @hide
17 */
18public final class RoNoFeatures {
19 /**
20 * Check for FEATURE_WATCH.
21 *
22 * @hide
23 */
24 public static boolean hasFeatureWatch(Context context) {
25 return hasFeatureFallback(context, PackageManager.FEATURE_WATCH);
26 }
27
28 private static boolean hasFeatureFallback(Context context, String featureName) {
29 return context.getPackageManager().hasSystemFeature(featureName, 0);
30 }
31
32 /**
33 * @hide
34 */
35 @Nullable
36 public static Boolean maybeHasFeature(String featureName, int version) {
37 return null;
38 }
Jared Duke568adec2024-09-20 21:11:17 +000039
40 /**
41 * Gets features marked as available at compile-time, keyed by name.
42 *
43 * @hide
44 */
45 @NonNull
46 public static Map<String, FeatureInfo> getCompileTimeAvailableFeatures() {
47 Map<String, FeatureInfo> features = new HashMap<>(0);
48 return features;
49 }
Jared Duke2d1a8322024-08-23 22:17:09 +000050}