Searched refs:StringFlag (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | FeatureFlagsClassicRelease.java | 161 public String getString(@NonNull StringFlag flag) { in getString() 248 if (!(flag instanceof StringFlag) in dump() 258 } else if (flag instanceof StringFlag) { in dump() 259 StringFlag f = (StringFlag) flag; in dump()
|
D | FlagCommand.java | 202 return (flag instanceof StringFlag) || (flag instanceof ResourceStringFlag); in isStringFlag() 206 if (flag instanceof StringFlag) { in getStringFlag() 207 return mFeatureFlags.getString((StringFlag) flag); in getStringFlag()
|
D | FeatureFlags.kt | 55 fun getString(flag: StringFlag): String
|
D | FeatureFlagsClassicDebug.java | 202 public String getString(@NonNull StringFlag flag) { in getString() 404 if (flag instanceof StringFlag) { in setStringFlagInternal()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | FlagCommandTest.kt | 38 private val stringFlag = StringFlag("502", "test", "abracadabra") in <lambda>() 49 whenever(featureFlags.getString(any(StringFlag::class.java))).thenAnswer { invocation -> in <lambda>() 50 (invocation.getArgument(0) as StringFlag).default in <lambda>()
|
D | FeatureFlagsClassicDebugTest.kt | 211 assertThat(mFeatureFlagsClassicDebug.getString(StringFlag("1", "test", "biz"))) in readStringFlag() 213 assertThat(mFeatureFlagsClassicDebug.getString(StringFlag("2", "test", "baz"))) in readStringFlag() 215 assertThat(mFeatureFlagsClassicDebug.getString(StringFlag("3", "test", "buz"))) in readStringFlag() 217 assertThat(mFeatureFlagsClassicDebug.getString(StringFlag("4", "test", "buz"))) in readStringFlag() 298 addFlag(StringFlag("3", "test", "flag3")) in broadcastReceiver_IgnoresInvalidData() 354 addFlag(StringFlag("1", "1", "test")) in setStringFlag() 366 val flag1 = addFlag(StringFlag("1", "test", "flag1")) in setFlag_ClearsCache() 446 val flag4 = StringFlag("4", "test", "") in dumpFormat() 447 val flag5 = StringFlag("5", "test", "flag5default") in dumpFormat()
|
D | FlagDependenciesTest.kt | 70 override fun getString(flag: StringFlag): String = unsupported
|
D | FakeFeatureFlagsTest.kt | 33 private val stringFlag = StringFlag("-1002", "test")
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/ |
D | Flag.kt | 153 data class StringFlag constructor( class 162 val CREATOR = object : Parcelable.Creator<StringFlag> { 163 override fun createFromParcel(parcel: Parcel) = StringFlag(parcel) in createFromParcel() 164 override fun newArray(size: Int) = arrayOfNulls<StringFlag>(size) in createFromParcel()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/ |
D | FakeFeatureFlags.kt | 66 fun set(flag: StringFlag, value: String) { in <lambda>() 123 override fun getString(flag: StringFlag): String = requireStringValue(flag.name) in <lambda>()
|