| // 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 and the params in | |
| * k*ParamsExposedToJava. | |
| */ | |
| @NullMarked | |
| public final class SampleFeatures { | |
| static boolean isFeatureEnabled(String featureName) { | |
| return SampleFeatureMap.getInstance().isEnabledInNative(featureName); | |
| } | |
| static int getParamValueAsInt(String featureName, String paramName) { | |
| return SampleFeatureMap.getInstance().getParamValueAsInt(featureName, paramName); | |
| } | |
| /** {@code foo::kFooFeature} */ | |
| public static final class FooFeature { | |
| public static final String NAME = "FooFeature"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code bar::kBarParam} */ | |
| public static final class BarParam { | |
| public static final String NAME = "bar_param"; | |
| public static int getValue() { | |
| return getParamValueAsInt(FooFeature.NAME, NAME); | |
| } | |
| } | |
| /** {@code foo::kFooParam} */ | |
| public static final class FooParam { | |
| public static final String NAME = "FooParam"; | |
| public static int getValue() { | |
| return getParamValueAsInt(FooFeature.NAME, NAME); | |
| } | |
| } | |
| /** {@code generated::kGeneratedParam} */ | |
| public static final class GeneratedParam { | |
| public static final String NAME = "GeneratedParam"; | |
| public static int getValue() { | |
| return getParamValueAsInt("GeneratedFeature", NAME); | |
| } | |
| } | |
| /** {@code chrome::kOfBazFeature} */ | |
| public static final class OfBazFeature { | |
| public static final String NAME = "OfBazFeature"; | |
| public static int getValue() { | |
| return getParamValueAsInt("BazFeature", NAME); | |
| } | |
| } | |
| } |