| // This file is auto-generated. DO NOT MODIFY. |
| // Args: com.android.systemfeatures.RoNoFeatures \ |
| // --readonly=true \ |
| // --feature-apis=WATCH |
| package com.android.systemfeatures; |
| |
| import android.annotation.NonNull; |
| import android.annotation.Nullable; |
| import android.content.Context; |
| import android.content.pm.FeatureInfo; |
| import android.content.pm.PackageManager; |
| import android.util.ArrayMap; |
| |
| /** |
| * @hide |
| */ |
| public final class RoNoFeatures { |
| /** |
| * Check for FEATURE_WATCH. |
| * |
| * @hide |
| */ |
| public static boolean hasFeatureWatch(Context context) { |
| return hasFeatureFallback(context, PackageManager.FEATURE_WATCH); |
| } |
| |
| private static boolean hasFeatureFallback(Context context, String featureName) { |
| return context.getPackageManager().hasSystemFeature(featureName); |
| } |
| |
| /** |
| * @hide |
| */ |
| @Nullable |
| public static Boolean maybeHasFeature(String featureName, int version) { |
| return null; |
| } |
| |
| /** |
| * Gets features marked as available at compile-time, keyed by name. |
| * |
| * @hide |
| */ |
| @NonNull |
| public static ArrayMap<String, FeatureInfo> getReadOnlySystemEnabledFeatures() { |
| ArrayMap<String, FeatureInfo> features = new ArrayMap<>(0); |
| return features; |
| } |
| } |