Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DCommandParserTest.kt59 val param by parser.param("-p", valueParser = Type.Int) in parseSingleOptionalParam_present()
66 val param by parser.param("-p", valueParser = Type.Int) in parseSingleOptionalParam_notPresent()
73 val param by parser.param("-p", valueParser = Type.Int) in parseSingleOptionalParam_missingArg_throws()
79 val param by parser.require(parser.param("-p", valueParser = Type.Int)) in parseSingleRequiredParam_present()
86 val param by parser.require(parser.param("-p", valueParser = Type.Int)) in parseSingleRequiredParam_notPresent_failsValidation()
92 val param by parser.require(parser.param("-p", valueParser = Type.Int)) in parseSingleRequiredParam_missingArg_throws()
116 val param by parser.param("-p", valueParser = Type.Int) in parseAsSubCommand_singleOptionalParam_present()
123 val param by parser.param("-p", valueParser = Type.Int) in parseAsSubCommand_singleOptionalParam_notPresent()
130 val param by parser.require(parser.param("-p", valueParser = Type.Int)) in parseAsSubCommand_singleRequiredParam_present()
137 parser.require(parser.param("-p", valueParser = Type.Int)) in parseAsSubCommand_singleRequiredParam_notPresent()
[all …]
DParametersTest.kt15 val optional by SingleArgParamOptional(longName = "longName", valueParser = Type.Int) in singleArgOptional_returnsNullBeforeParse()
21 val param = SingleArgParamOptional(longName = "longName", valueParser = Type.Int) in singleArgOptional_returnsParsedValue()
29 val req by SingleArgParam(longName = "param", valueParser = Type.Boolean) in singleArgRequired_throwsBeforeParse()
35 val param = SingleArgParam(longName = "param", valueParser = Type.Boolean) in singleArgRequired_returnsParsedValue()
43 val optParam = SingleArgParamOptional(longName = "string1", valueParser = Type.String) in param_handledAfterParse()
44 val reqParam = SingleArgParam(longName = "string2", valueParser = Type.Float) in param_handledAfterParse()
DParseableCommandTest.kt62 param(longName = "required-param", shortName = "r", valueParser = Type.String) in testFactoryMethods()
65 param(longName = "optional-param", shortName = "o", valueParser = Type.Boolean) in testFactoryMethods()
107 val param by param("longName", "invalidShortName", valueParser = Type.String) in factoryMethods_enforceShortNameRules()
129 val param by param("-invalid", valueParser = Type.String) in factoryMethods_enforceLongNames_notPrefixed()
207 valueParser = Type.String, in commandWithRequiredParam_provided()
225 param(shortName = "p", longName = "param1", valueParser = Type.String) in commandWithRequiredParam_not_provided_throws()
245 val singleOptionalParam: String? by param("param", valueParser = Type.String) in commandWithSubCommand()
268 val param1: String? by param("param1", shortName = "p", valueParser = Type.String) in complexCommandWithSubCommands_reusedNames()
276 val param1 by param("param1", shortName = "p", valueParser = Type.String).required() in complexCommandWithSubCommands_reusedNames()
277 val param2: String? by param(longName = "param2", valueParser = Type.String) in complexCommandWithSubCommands_reusedNames()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DScreenDecorCommand.kt38 valueParser = Type.Boolean,
48 valueParser = Type.String.map { it.toColorIntOrNull() } in <lambda>()
87 valueParser = Type.Int,
96 valueParser = Type.Int,
108 valueParser = Type.String.map { it.toPathOrNull() } in <lambda>()
118 valueParser = Type.Float,
130 valueParser = Type.Float,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
DParameters.kt90 when (wrapped.valueParser) { in parseArgsFromIter()
104 val valueParser: ValueParser<T>, constant in com.android.systemui.statusbar.commandline.SingleArgParam
112 valueParser,
136 val valueParser: ValueParser<T>, constant in com.android.systemui.statusbar.commandline.SingleArgParamOptional
144 valueParser,
172 val valueParser: ValueParser<TParsed>, constant in com.android.systemui.statusbar.commandline.MultipleArgParam
188 valueParser in getValue()
DCommandParser.kt237 valueParser = old.valueParser, in require()
290 valueParser: ValueParser<T>, in param()
302 valueParser = valueParser, in param()
DParseableCommand.kt265 valueParser: ValueParser<T>, in param()
280 return parser.param(long, short, description, valueParser) in param()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DStatusBarInsetsCommand.kt51 valueParser = Type.Int,
63 valueParser = Type.Float,
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/echo/
DLogcatEchoTrackerCommand.kt43 valueParser = Type.String,
54 valueParser = Type.String