Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DCommandParserTest.kt100 parser.parseAsSubCommand(args) in parseAsSubCommand_singleFlag_present()
109 parser.parseAsSubCommand(args) in parseAsSubCommand_singleFlag_notPresent()
117 parser.parseAsSubCommand(listOf("-p", "123", "--other-arg", "321").listIterator()) in parseAsSubCommand_singleOptionalParam_present()
124 parser.parseAsSubCommand(listOf("--other-arg", "321").listIterator()) in parseAsSubCommand_singleOptionalParam_notPresent()
131 parser.parseAsSubCommand(listOf("-p", "123", "--other-arg", "321").listIterator()) in parseAsSubCommand_singleRequiredParam_present()
138 assertFalse(parser.parseAsSubCommand(listOf("--other-arg", "321").listIterator())) in parseAsSubCommand_singleRequiredParam_notPresent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
DSubCommand.kt65 validationStatus = cmd.parser.parseAsSubCommand(iterator) in parseSubCommandArgs()
97 validationStatus = cmd.parser.parseAsSubCommand(iterator) in parseSubCommandArgs()
DCommandParser.kt127 fun parseAsSubCommand(iter: ListIterator<String>): Boolean { in parseAsSubCommand() method in com.android.systemui.statusbar.commandline.CommandParser