| // This file is autogenerated by | |
| // base/android/java_flag_generator/java_flag_generator.py | |
| // From | |
| // //chrome/flags/test_feature_list.cc | |
| // DO NOT EDIT. | |
| package org.chromium.foo; | |
| import org.chromium.build.annotations.NullMarked; | |
| /** Typed accessors for the features in kFeaturesExposedToJava. */ | |
| @NullMarked | |
| public final class SampleFeatures { | |
| // Package-private (not private) to avoid D8 nest-access synthetic accessor. | |
| static boolean isFeatureEnabled(String featureName) { | |
| return SampleFeatureMap.getInstance().isEnabledInNative(featureName); | |
| } | |
| /** {@code bar::kBarFeature} */ | |
| public static final class BarFeature { | |
| public static final String NAME = "BarFeature"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code both::kIncludedFromBothLocations} */ | |
| public static final class IncludedFromBothLocations { | |
| public static final String NAME = "FromSourceRoot"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code both::kListedInBothLocations} */ | |
| public static final class ListedInBothLocations { | |
| public static final String NAME = "FromSourceTree"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kFooFeature} */ | |
| public static final class FooFeature { | |
| public static final String NAME = "FooFeature"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code generated::kGeneratedFeature} */ | |
| public static final class GeneratedFeature { | |
| public static final String NAME = "GeneratedFeature"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code chrome::kLocalFeature} */ | |
| public static final class LocalFeature { | |
| public static final String NAME = "LocalFeature"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| } |