/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/util/ |
D | FlagTest.java | 17 package android.platform.test.flag.util; 33 Flag flag = Flag.createFlag(legacyFlag); in createFlag_legacyFlag() local 35 assertEquals("namespace", flag.namespace()); in createFlag_legacyFlag() 36 assertEquals("flag", flag.fullFlagName()); in createFlag_legacyFlag() 37 assertEquals("flag", flag.simpleFlagName()); in createFlag_legacyFlag() 38 assertNull(flag.packageName()); in createFlag_legacyFlag() 39 assertNull(flag.flagsClassName()); in createFlag_legacyFlag() 52 Flag flag = Flag.createFlag(aconfigFlagWithoutNamespace); in createFlag_aconfigFlagWithoutRepackaging() local 54 assertNull(flag.namespace()); in createFlag_aconfigFlagWithoutRepackaging() 55 assertEquals("android.platform.test.flag.junit.flag1", flag.fullFlagName()); in createFlag_aconfigFlagWithoutRepackaging() [all …]
|
/platform_testing/libraries/flag-helpers/junit/src_util/android/platform/test/flag/util/ |
D | FlagSetException.java | 17 package android.platform.test.flag.util; 21 public FlagSetException(String flag, String msg) { in FlagSetException() argument 22 super(String.format("Flag %s set error: %s", flag, msg)); in FlagSetException() 25 public FlagSetException(String flag, Throwable cause) { in FlagSetException() argument 26 super(String.format("Flag %s set error", flag), cause); in FlagSetException() 29 public FlagSetException(String flag, String msg, Throwable cause) { in FlagSetException() argument 30 super(String.format("Flag %s set error: %s", flag, msg), cause); in FlagSetException()
|
D | FlagReadException.java | 17 package android.platform.test.flag.util; 21 public FlagReadException(String flag, String msg) { in FlagReadException() argument 22 super(String.format("Flag %s read error: %s", flag, msg)); in FlagReadException() 25 public FlagReadException(String flag, String msg, Throwable cause) { in FlagReadException() argument 26 super(String.format("Flag %s read error: %s", flag, msg), cause); in FlagReadException() 29 public FlagReadException(String flag, Throwable cause) { in FlagReadException() argument 30 super(String.format("Flag %s read error", flag), cause); in FlagReadException()
|
D | Flag.java | 17 package android.platform.test.flag.util; 52 public static Flag createFlag(String flag) { in createFlag() argument 57 if (flag.contains(NAMESPACE_FLAG_SEPARATOR)) { in createFlag() 58 String[] flagSplits = flag.split(NAMESPACE_FLAG_SEPARATOR, /* limit= */ 2); in createFlag() 63 fullFlagName = flag; in createFlag() 69 flag)); in createFlag()
|
/platform_testing/libraries/flag-helpers/junit/src/android/platform/test/flag/junit/ |
D | DeviceFlagsValueProvider.java | 17 package android.platform.test.flag.junit; 21 import android.platform.test.flag.util.Flag; 22 import android.platform.test.flag.util.FlagReadException; 71 public boolean getBoolean(String flag) throws FlagReadException { in getBoolean() argument 72 Flag parsedFlag = Flag.createFlag(flag); in getBoolean() 76 flag, "You can not specify the namespace for aconfig flags."); in getBoolean() 82 flag, "Flag name is not the expected format {packageName}.{flagName}."); in getBoolean() 98 flag, in getBoolean() 103 flag, in getBoolean() 112 flag, in getBoolean() [all …]
|
/platform_testing/libraries/flag-helpers/libflagtest/include/ |
D | flag_macros.h | 32 #define _FLAG_NAME(namespace, flag) namespace::flag argument 47 for (const std::pair<bool, std::string> flag : unsatisfied_flags) { \ 49 << flag.second << ")=" \ 50 << (flag.first ? "true":"false"); \ 58 android::test::flag::GetFlagsNotMetRequirements({flags}); \ 73 #define ACONFIG_FLAG(package, flag) \ argument 75 static_cast<bool (*)()>(_FLAG_NAME(package, flag)), \ 76 _FLAG_STRINGFY(package, flag)) 88 #define LEGACY_FLAG(namespace, package, flag) \ argument 90 nullptr, _FLAG_STRINGFY(namespace, package, flag))
|
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/example/ |
D | ExampleCheckFlagsRuleTest.java | 17 package android.platform.test.flag.junit.example; 23 import android.platform.test.flag.junit.CheckFlagsRule; 24 import android.platform.test.flag.junit.IFlagsValueProvider; 25 import android.platform.test.flag.util.FlagReadException; 45 public boolean getBoolean(String flag) throws FlagReadException { 46 switch (flag) { 52 throw new FlagReadException(flag, "unknown flag");
|
D | ExampleFlagsParameterizedTest.java | 17 package android.platform.test.flag.junit.example; 19 import static android.platform.test.flag.junit.SetFlagsRule.DefaultInitValueType.NULL_DEFAULT; 27 import android.platform.test.flag.junit.Flags; 28 import android.platform.test.flag.junit.FlagsParameterization; 29 import android.platform.test.flag.junit.SetFlagsRule;
|
D | ExampleSetFlagsRuleTest.java | 17 package android.platform.test.flag.junit.example; 24 import android.platform.test.flag.junit.Flags; 25 import android.platform.test.flag.junit.SetFlagsRule;
|
/platform_testing/libraries/flag-helpers/libflagtest/ |
D | android.test.myflags.aconfig | 3 flag { 6 description: "testing flag that is always enabled" 10 flag { 13 description: "another testing flag that is always disabled"
|
D | flag_checker_test.cpp | 26 using android::test::flag::CheckFlagCondition; 27 using android::test::flag::GetFlagsNotMetRequirements;
|
/platform_testing/libraries/flag-helpers/junit/ |
D | Android.bp | 20 name: "flag-util", 32 name: "flag-junit-base", 35 "flag-util", 46 name: "flag-junit", 50 "flag-junit-base", 59 name: "flag-junit-host", 62 "flag-junit-base", 63 "flag-util",
|
/platform_testing/libraries/flag-helpers/junit/src_base/android/platform/test/flag/junit/ |
D | IFlagsValueProvider.java | 17 package android.platform.test.flag.junit; 19 import android.platform.test.flag.util.FlagReadException; 34 boolean getBoolean(String flag) throws FlagReadException; in getBoolean() argument
|
D | SetFlagsRule.java | 17 package android.platform.test.flag.junit; 21 import android.platform.test.flag.util.FlagReadException; 22 import android.platform.test.flag.util.FlagSetException; 316 private void setFlagValue(Flag flag, boolean value) { 318 mListener.onBeforeSetFlag(flag, value); 323 Class<?> flagsClass = getFlagClassFromFlag(flag); 340 boolean isOptimized = verifyFlagReadOnlyAndOptimized(fakeFlagsImplInstance, flag); 346 flag.fullFlagName()), 350 setFlagValueInFakeFeatureFlagsImpl(fakeFlagsImplInstance, flag, value); 353 private static Class<?> getFlagClassFromFlag(Flag flag) { [all …]
|
D | AnnotationsRetriever.java | 17 package android.platform.test.flag.junit; 156 flag -> in getMergedFlagValues() 158 classFlagValues.get(flag), in getMergedFlagValues() 159 methodFlagValues.get(flag))) in getMergedFlagValues() 251 final String flag = required.getKey(); in assumeAllRequiredFlagsMatchProvider() local 254 String.format("Flag %s required to be enabled, but is disabled", flag), in assumeAllRequiredFlagsMatchProvider() 255 valueProvider.getBoolean(flag)); in assumeAllRequiredFlagsMatchProvider() 258 String.format("Flag %s required to be disabled, but is enabled", flag), in assumeAllRequiredFlagsMatchProvider() 259 valueProvider.getBoolean(flag)); in assumeAllRequiredFlagsMatchProvider() 274 final String flag = toSet.getKey(); in assumeAllSetFlagsMatchParameterization() local [all …]
|
/platform_testing/libraries/flag-helpers/junit/src_host/android/platform/test/flag/junit/host/ |
D | HostFlagsValueProvider.java | 17 package android.platform.test.flag.junit.host; 19 import android.platform.test.flag.junit.CheckFlagsRule; 20 import android.platform.test.flag.junit.IFlagsValueProvider; 21 import android.platform.test.flag.util.FlagReadException; 94 public boolean getBoolean(String flag) throws FlagReadException { in getBoolean() argument 95 String value = mDeviceFlags.getFlagValue(flag); in getBoolean() 98 throw new FlagReadException(flag, "Flag does not exist."); in getBoolean() 103 flag, String.format("Flag value %s is not a boolean", value)); in getBoolean()
|
D | DeviceFlags.java | 17 package android.platform.test.flag.junit.host; 22 import android.platform.test.flag.util.Flag; 23 import android.platform.test.flag.util.FlagReadException; 84 public String getFlagValue(String flag) { in getFlagValue() argument 86 flag.contains(Flag.NAMESPACE_FLAG_SEPARATOR) in getFlagValue() 87 ? flag in getFlagValue() 88 : mFlagNameWithNamespaces.get(flag); in getFlagValue()
|
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/ |
D | SetFlagsRuleAnnotationsTest.java | 17 package android.platform.test.flag.junit; 19 import static android.platform.test.flag.junit.SetFlagsRule.DefaultInitValueType.DEVICE_DEFAULT; 20 import static android.platform.test.flag.junit.SetFlagsRule.DefaultInitValueType.NULL_DEFAULT;
|
D | CheckFlagsRuleTest.java | 17 package android.platform.test.flag.junit; 25 import android.platform.test.flag.util.FlagReadException; 38 public boolean getBoolean(String flag) throws FlagReadException { 39 switch (flag) { 46 throw new FlagReadException(flag, "flag not defined");
|
D | FeatureFlags.java | 17 package android.platform.test.flag.junit;
|
D | DeviceFlagsValueProviderTest.java | 17 package android.platform.test.flag.junit; 22 import android.platform.test.flag.util.FlagReadException;
|
D | FeatureFlagsImpl.java | 17 package android.platform.test.flag.junit;
|
/platform_testing/libraries/flag-helpers/ |
D | OWNERS | 4 per-file junit/test/src/android/platform/test/flag/junit/Flags.java = wenshan@google.com, opg@googl… 5 per-file junit/test/src/android/platform/test/flag/junit/FeatureFlags.java = wenshan@google.com, op… 6 per-file junit/test/src/android/platform/test/flag/junit/FakeFeatureFlagsImpl.java = wenshan@google… 7 per-file junit/test/src/android/platform/test/flag/junit/CustomFeatureFlags.java = wenshan@google.c…
|
/platform_testing/tools/automotive/proxy/ |
D | libProxyConfig.cpp | 28 std::once_flag flag; variable 64 std::call_once(flag, [](){ in lazyLoadConfig()
|
/platform_testing/tests/featureflag/src/android/test/featureflag/ |
D | FeatureFlagTest.java | 57 private String getFlagValue(String namespace, String flag) throws DeviceNotAvailableException { in getFlagValue() argument 60 String.format("device_config get %s %s", namespace, flag)); in getFlagValue()
|