Home
last modified time | relevance | path

Searched refs:ParseableCommand (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DParseableCommandTest.kt46 object : ParseableCommand("subCommand") { in testFactoryMethods()
52 object : ParseableCommand("subCommand2") { in testFactoryMethods()
59 object : ParseableCommand("testName") { in testFactoryMethods()
97 object : ParseableCommand("test-command") { in factoryMethods_enforceShortNameRules()
106 object : ParseableCommand("test-command") { in factoryMethods_enforceShortNameRules()
119 object : ParseableCommand("test-command") { in factoryMethods_enforceLongNames_notPrefixed()
128 object : ParseableCommand("test-command") { in factoryMethods_enforceLongNames_notPrefixed()
139 object : ParseableCommand("test-command") { in executeDoesNotPropagateExceptions()
156 object : ParseableCommand("test-command") { in executeFailingCommand_callsOnParseFailed()
202 object : ParseableCommand(name) { in commandWithRequiredParam_provided()
[all …]
DCommandParserTest.kt146 object : ParseableCommand("test") { in parseCommandWithSubCommand_required_provided()
164 object : ParseableCommand("test") { in parseCommandWithSubCommand_required_notProvided()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
DSubCommand.kt35 val cmd: ParseableCommand
53 class OptionalSubCommand<T : ParseableCommand>( in parseSubCommandArgs()
55 ) : SubCommand, ReadOnlyProperty<Any?, ParseableCommand?> { in parseSubCommandArgs()
85 class RequiredSubCommand<T : ParseableCommand>(
87 ) : SubCommand, ReadOnlyProperty<Any?, ParseableCommand> {
101 override fun getValue(thisRef: Any?, property: KProperty<*>): ParseableCommand = cmd in getValue()
DParseableCommand.kt90 abstract class ParseableCommand(val name: String, val description: String? = null) : Command { class
153 private fun subCmdsRequestingHelp(): List<ParseableCommand> = in subCmdsRequestingHelp()
283 fun <T : ParseableCommand> subCommand( in subCommand()
291 fun <T : ParseableCommand> OptionalSubCommand<T>.required(): RequiredSubCommand<T> = in subCommand()
DCommandParser.kt216 private fun subCommandContainsSubCommands(cmd: ParseableCommand): Boolean = in subCommandContainsSubCommands()
257 fun <T : ParseableCommand> require(optional: OptionalSubCommand<T>): RequiredSubCommand<T> { in require()
263 private fun <T : ParseableCommand> replaceWithRequired( in replaceWithRequired()
308 internal fun <T : ParseableCommand> subCommand( in subCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DStatusBarInsetsCommand.kt21 import com.android.systemui.statusbar.commandline.ParseableCommand
27 ) : ParseableCommand(NAME) {
44 class BottomMarginCommand : ParseableCommand(NAME) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DScreenDecorCommand.kt22 import com.android.systemui.statusbar.commandline.ParseableCommand
30 ) : ParseableCommand(SCREEN_DECOR_CMD_NAME) {
82 class RoundedCornerSubCommand(name: String) : ParseableCommand(name) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/echo/
DLogcatEchoTrackerCommand.kt23 import com.android.systemui.statusbar.commandline.ParseableCommand
33 ParseableCommand(ECHO_TRACKER_COMMAND_NAME) {