| // 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 kGlobal} */ | |
| public static final class Global { | |
| public static final String NAME = "Global"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code chrome::android::kShadowed} */ | |
| public static final class Shadowed { | |
| public static final String NAME = "InnerShadowed"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code chrome::android::kInInlineNamespace} */ | |
| public static final class InInlineNamespace { | |
| public static final String NAME = "InInlineNamespace"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code chrome::features::kInOuterNamespace} */ | |
| public static final class InOuterNamespace { | |
| public static final String NAME = "InOuterNamespace"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code chrome::android::nested::kInNestedNamespace} */ | |
| public static final class InNestedNamespace { | |
| public static final String NAME = "InNestedNamespace"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code kExplicitlyGlobal} */ | |
| public static final class ExplicitlyGlobal { | |
| public static final String NAME = "GlobalExplicitlyGlobal"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code real::kAliased} */ | |
| public static final class Aliased { | |
| public static final String NAME = "Aliased"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| } |