| Jared Duke | 2d1a832 | 2024-08-23 22:17:09 +0000 | [diff] [blame] | 1 | // This file is auto-generated. DO NOT MODIFY. |
| 2 | // Args: com.android.systemfeatures.RwNoFeatures \ |
| 3 | // --readonly=false |
| 4 | package com.android.systemfeatures; |
| 5 | |
| Jared Duke | 568adec | 2024-09-20 21:11:17 +0000 | [diff] [blame^] | 6 | import android.annotation.NonNull; |
| Jared Duke | 2d1a832 | 2024-08-23 22:17:09 +0000 | [diff] [blame] | 7 | import android.annotation.Nullable; |
| 8 | import android.content.Context; |
| Jared Duke | 568adec | 2024-09-20 21:11:17 +0000 | [diff] [blame^] | 9 | import android.content.pm.FeatureInfo; |
| 10 | import java.util.HashMap; |
| 11 | import java.util.Map; |
| Jared Duke | 2d1a832 | 2024-08-23 22:17:09 +0000 | [diff] [blame] | 12 | |
| 13 | /** |
| 14 | * @hide |
| 15 | */ |
| 16 | public final class RwNoFeatures { |
| 17 | private static boolean hasFeatureFallback(Context context, String featureName) { |
| 18 | return context.getPackageManager().hasSystemFeature(featureName, 0); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * @hide |
| 23 | */ |
| 24 | @Nullable |
| 25 | public static Boolean maybeHasFeature(String featureName, int version) { |
| 26 | return null; |
| 27 | } |
| Jared Duke | 568adec | 2024-09-20 21:11:17 +0000 | [diff] [blame^] | 28 | |
| 29 | /** |
| 30 | * Gets features marked as available at compile-time, keyed by name. |
| 31 | * |
| 32 | * @hide |
| 33 | */ |
| 34 | @NonNull |
| 35 | public static Map<String, FeatureInfo> getCompileTimeAvailableFeatures() { |
| 36 | Map<String, FeatureInfo> features = new HashMap<>(0); |
| 37 | return features; |
| 38 | } |
| Jared Duke | 2d1a832 | 2024-08-23 22:17:09 +0000 | [diff] [blame] | 39 | } |