Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DFeatureFlagsClassicRelease.java161 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()
DFlagCommand.java202 return (flag instanceof StringFlag) || (flag instanceof ResourceStringFlag); in isStringFlag()
206 if (flag instanceof StringFlag) { in getStringFlag()
207 return mFeatureFlags.getString((StringFlag) flag); in getStringFlag()
DFeatureFlags.kt55 fun getString(flag: StringFlag): String
DFeatureFlagsClassicDebug.java202 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/
DFlagCommandTest.kt38 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>()
DFeatureFlagsClassicDebugTest.kt211 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()
DFlagDependenciesTest.kt70 override fun getString(flag: StringFlag): String = unsupported
DFakeFeatureFlagsTest.kt33 private val stringFlag = StringFlag("-1002", "test")
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/
DFlag.kt153 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/
DFakeFeatureFlags.kt66 fun set(flag: StringFlag, value: String) { in <lambda>()
123 override fun getString(flag: StringFlag): String = requireStringValue(flag.name) in <lambda>()