Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DParametersTest.kt29 val req by SingleArgParam(longName = "param", valueParser = Type.Boolean) in singleArgRequired_throwsBeforeParse()
35 val param = SingleArgParam(longName = "param", valueParser = Type.Boolean) in singleArgRequired_returnsParsedValue()
44 val reqParam = SingleArgParam(longName = "string2", valueParser = Type.Float) in param_handledAfterParse()
DParseableCommandTest.kt81 val req = params.filter { it is SingleArgParam<*> } in testFactoryMethods()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
DCommandParser.kt196 get() = params.filter { (it is SingleArgParam<*>) && !it.handled } in validateRequiredParams()
231 fun <T : Any> require(old: SingleArgParamOptional<T>): SingleArgParam<T> { in require()
233 SingleArgParam( in require()
246 new: SingleArgParam<T>, in replaceWithRequired()
DParseableCommand.kt219 val (required, optional) = parser.params.partition { it is SingleArgParam<*> } in help()
288 fun <T : Any> SingleArgParamOptional<T>.required(): SingleArgParam<T> = parser.require(this) in subCommand()
DParameters.kt100 class SingleArgParam<out T : Any>( class