Home
last modified time | relevance | path

Searched refs:fullFlagName (Results 1 – 5 of 5) sorted by relevance

/platform_testing/libraries/flag-helpers/junit/src_util/android/platform/test/flag/util/
DFlag.java54 String fullFlagName = null; in createFlag() local
60 fullFlagName = flagSplits[1]; in createFlag()
61 simpleFlagName = fullFlagName; in createFlag()
63 fullFlagName = flag; in createFlag()
64 if (!fullFlagName.contains(PACKAGE_NAME_SIMPLE_NAME_SEPARATOR)) { in createFlag()
71 int index = fullFlagName.lastIndexOf(PACKAGE_NAME_SIMPLE_NAME_SEPARATOR); in createFlag()
72 packageName = fullFlagName.substring(0, index); in createFlag()
73 simpleFlagName = fullFlagName.substring(index + 1); in createFlag()
76 return new AutoValue_Flag(namespace, fullFlagName, packageName, simpleFlagName); in createFlag()
82 public abstract String fullFlagName(); in fullFlagName() method in Flag
/platform_testing/libraries/flag-helpers/junit/src_base/android/platform/test/flag/junit/
DSetFlagsRule.java158 for (String fullFlagName : fullFlagNames) { in enableFlags()
159 if (mLockedFlagNames.contains(fullFlagName)) { in enableFlags()
160 throw new FlagSetException(fullFlagName, "Not allowed to change locked flags"); in enableFlags()
162 setFlagValue(fullFlagName, true); in enableFlags()
179 for (String fullFlagName : fullFlagNames) { in disableFlags()
180 if (mLockedFlagNames.contains(fullFlagName)) { in disableFlags()
181 throw new FlagSetException(fullFlagName, "Not allowed to change locked flags"); in disableFlags()
183 setFlagValue(fullFlagName, false); in disableFlags()
268 private void setFlagValue(String fullFlagName, boolean value) {
269 if (!fullFlagName.contains(".")) {
[all …]
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/util/
DFlagTest.java36 assertEquals("flag", flag.fullFlagName()); in createFlag_legacyFlag()
55 assertEquals("android.platform.test.flag.junit.flag1", flag.fullFlagName()); in createFlag_aconfigFlagWithoutRepackaging()
67 assertEquals("android.myflag.flag1", flag.fullFlagName()); in createFlag_aconfigFlagWithRepackaging()
/platform_testing/libraries/flag-helpers/junit/src/android/platform/test/flag/junit/
DDeviceFlagsValueProvider.java125 String property = DeviceConfig.getProperty(flag.namespace(), flag.fullFlagName()); in getLegacyFlagBoolean()
127 throw new FlagReadException(flag.fullFlagName(), "Flag does not exist on the device."); in getLegacyFlagBoolean()
133 flag.fullFlagName(), String.format("Value %s is not a valid boolean.", property)); in getLegacyFlagBoolean()
/platform_testing/libraries/flag-helpers/junit/src_host/android/platform/test/flag/junit/host/
DDeviceFlags.java124 String fullFlagName = in getAconfigFlags()
133 fullFlagName); in getAconfigFlags()
134 mFlagNameWithNamespaces.put(fullFlagName, flagWithNamespace); in getAconfigFlags()