Searched refs:BooleanFlag (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/java/android/flags/ |
D | BooleanFlag.java | 28 public class BooleanFlag extends BooleanFlagBase { class 36 BooleanFlag(String namespace, String name, boolean defaultValue) { in BooleanFlag() method in BooleanFlag 48 public BooleanFlag defineMetaData(String label, String description, String categoryName) { in defineMetaData()
|
D | FeatureFlags.java | 126 public static BooleanFlag booleanFlag( in booleanFlag() 128 return getInstance().addFlag(new BooleanFlag(namespace, name, def)); in booleanFlag() 200 public boolean isEnabled(@NonNull BooleanFlag flag) { in isEnabled() 293 if (f instanceof BooleanFlag || f instanceof DynamicBooleanFlag) { in syncInternal() 301 if (f instanceof BooleanFlag) { in syncInternal() 305 ((BooleanFlag) f).getDefault() ? "true" : "false"); in syncInternal()
|
D | FeatureFlagsFake.java | 48 public boolean isEnabled(@NonNull BooleanFlag flag) { in isEnabled()
|
/frameworks/base/core/java/com/android/internal/flags/ |
D | CoreFlags.java | 19 import android.flags.BooleanFlag; 41 public static BooleanFlag BOOL_FLAG = booleanFlag("core", "bool_flag", false); 61 private static BooleanFlag booleanFlag(String namespace, String name, boolean defaultValue) { in booleanFlag() 62 BooleanFlag f = FeatureFlags.booleanFlag(namespace, name, defaultValue); in booleanFlag()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/ |
D | Flag.kt | 58 abstract class BooleanFlag constructor( class 68 val CREATOR = object : Parcelable.Creator<BooleanFlag> { 69 override fun createFromParcel(parcel: Parcel) = object : BooleanFlag(parcel) {} in createFromParcel() 70 override fun newArray(size: Int) = arrayOfNulls<BooleanFlag>(size) in newArray() 112 ) : BooleanFlag(name, namespace, false, teamfood, overridden) 123 ) : BooleanFlag(name, namespace, true, teamfood = false, overridden)
|
/frameworks/base/core/tests/coretests/src/android/flags/ |
D | FeatureFlagsTest.java | 57 BooleanFlag flag = FeatureFlags.booleanFlag("test", "a", false); in testBooleanFlag_DefaultDisabled() 63 BooleanFlag flag = FeatureFlags.booleanFlag("test", "a", true); in testBooleanFlag_DefaultEnabled() 81 BooleanFlag flag = FeatureFlags.booleanFlag("test", "a", false); in testBooleanFlag_OverrideBeforeRead()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | FeatureFlagsClassicRelease.java | 221 if (!(flag instanceof BooleanFlag) in dump() 235 } else if (flag instanceof BooleanFlag) { in dump() 236 BooleanFlag f = (BooleanFlag) flag; in dump()
|
D | FlagCommand.java | 175 return (flag instanceof BooleanFlag) in isBooleanFlag() 181 if (!(flag instanceof BooleanFlag)) { in isTeamfoodFlag()
|
D | FeatureFlagsClassicDebug.java | 162 private boolean isEnabledInternal(@NonNull BooleanFlag flag) { in isEnabledInternal() 386 if (flag instanceof BooleanFlag) { in setBooleanFlagInternal()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/ |
D | FakeFeatureFlags.kt | 48 fun set(flag: BooleanFlag, value: Boolean) { in <lambda>() 88 fun setDefault(flag: BooleanFlag) = booleanFlags.putIfAbsent(flag.name, flag.default) in <lambda>()
|