blob: eb7ec63f1d7d709fd4dde9e11b1c2609757c2144 [file] [log] [blame]
Jared Duke2d1a8322024-08-23 22:17:09 +00001// This file is auto-generated. DO NOT MODIFY.
2// Args: com.android.systemfeatures.RwNoFeatures \
3// --readonly=false
4package com.android.systemfeatures;
5
Jared Duke568adec2024-09-20 21:11:17 +00006import android.annotation.NonNull;
Jared Duke2d1a8322024-08-23 22:17:09 +00007import android.annotation.Nullable;
8import android.content.Context;
Jared Duke568adec2024-09-20 21:11:17 +00009import android.content.pm.FeatureInfo;
Jared Duke2a90b8f2024-09-19 23:25:21 +000010import android.util.ArrayMap;
Jared Duke2d1a8322024-08-23 22:17:09 +000011
12/**
13 * @hide
14 */
15public final class RwNoFeatures {
16 private static boolean hasFeatureFallback(Context context, String featureName) {
17 return context.getPackageManager().hasSystemFeature(featureName, 0);
18 }
19
20 /**
21 * @hide
22 */
23 @Nullable
24 public static Boolean maybeHasFeature(String featureName, int version) {
25 return null;
26 }
Jared Duke568adec2024-09-20 21:11:17 +000027
28 /**
29 * Gets features marked as available at compile-time, keyed by name.
30 *
31 * @hide
32 */
33 @NonNull
Jared Duke2a90b8f2024-09-19 23:25:21 +000034 public static ArrayMap<String, FeatureInfo> getReadOnlySystemEnabledFeatures() {
35 ArrayMap<String, FeatureInfo> features = new ArrayMap<>(0);
Jared Duke568adec2024-09-20 21:11:17 +000036 return features;
37 }
Jared Duke2d1a8322024-08-23 22:17:09 +000038}