| // 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::kOsDependent} */ | |
| public static final class OsDependent { | |
| public static final String NAME = "AndroidName"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kFormFactorDependent} */ | |
| public static final class FormFactorDependent { | |
| public static final String NAME = "NotDesktopName"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kElif} */ | |
| public static final class Elif { | |
| public static final String NAME = "AndroidButNotDesktopName"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kOtherBuildflag} */ | |
| public static final class OtherBuildflag { | |
| public static final String NAME = "FirstBranchName"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kNotDesktopOnly} */ | |
| public static final class NotDesktopOnly { | |
| public static final String NAME = "NotDesktopOnly"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| /** {@code foo::kFormFactorParam} */ | |
| public static final class FormFactorParam { | |
| public static final String NAME = "not_desktop_param"; | |
| public static int getValue() { | |
| return getParamValueAsInt(FormFactorDependent.NAME, NAME); | |
| } | |
| } | |
| } |