| // 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 { | |
| static boolean isFeatureEnabled(String featureName) { | |
| return SampleFeatureMap.getInstance().isEnabledInNative(featureName); | |
| } | |
| /** {@code foo::kCustomName} */ | |
| public static final class CustomName { | |
| public static final String NAME = "CustomFeatureName"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kDerivedName} */ | |
| public static final class DerivedName { | |
| public static final String NAME = "DerivedName"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kRuntimeMutable} */ | |
| public static final class RuntimeMutable { | |
| public static final String NAME = "RuntimeMutable"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kRuntimeMutableCustomName} */ | |
| public static final class RuntimeMutableCustomName { | |
| public static final String NAME = "RuntimeMutableFeatureName"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kCountryRestricted} */ | |
| public static final class CountryRestricted { | |
| public static final String NAME = "CountryRestricted"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kDefinedByMacro} */ | |
| public static final class DefinedByMacro { | |
| public static final String NAME = "DefinedByMacro"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kPlatformDependent} */ | |
| public static final class PlatformDependent { | |
| public static final String NAME = "PlatformDependent"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kDefinedTwice} */ | |
| public static final class DefinedTwice { | |
| public static final String NAME = "DefinedTwice"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| } |