Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/
DFakeFeatureFlags.kt35 private val booleanFlags = mutableMapOf<String, Boolean>() in <lambda>() constant
49 if (booleanFlags.put(flag.name, value)?.let { value != it } != false) { in <lambda>()
55 if (booleanFlags.put(flag.name, value)?.let { value != it } != false) { in <lambda>()
61 if (booleanFlags.put(flag.name, value)?.let { value != it } != false) { in <lambda>()
88 fun setDefault(flag: BooleanFlag) = booleanFlags.putIfAbsent(flag.name, flag.default) in <lambda>()
100 fun setDefault(flag: SysPropBooleanFlag) = booleanFlags.putIfAbsent(flag.name, flag.default) in <lambda>()
151 return booleanFlags[flagName] in <lambda>()