Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/commandline/
DParseableCommandTest.kt49 object : ParseableCommand("subCommand") { in testFactoryMethods()
56 object : ParseableCommand("subCommand2") { in testFactoryMethods()
64 object : ParseableCommand("testName") { in testFactoryMethods()
102 object : ParseableCommand("test-command") { in factoryMethods_enforceShortNameRules()
111 object : ParseableCommand("test-command") { in factoryMethods_enforceShortNameRules()
124 object : ParseableCommand("test-command") { in factoryMethods_enforceLongNames_notPrefixed()
133 object : ParseableCommand("test-command") { in factoryMethods_enforceLongNames_notPrefixed()
144 object : ParseableCommand("test-command") { in executeDoesNotPropagateExceptions()
162 object : ParseableCommand("test-command") { in executeFailingCommand_callsOnParseFailed()
209 object : ParseableCommand(name) { in commandWithRequiredParam_provided()
[all …]
/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.kt217 private fun subCommandContainsSubCommands(cmd: ParseableCommand): Boolean = in subCommandContainsSubCommands()
258 fun <T : ParseableCommand> require(optional: OptionalSubCommand<T>): RequiredSubCommand<T> { in require()
264 private fun <T : ParseableCommand> replaceWithRequired( in replaceWithRequired()
305 internal fun <T : ParseableCommand> subCommand(command: T): OptionalSubCommand<T> { in subCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/compose/
DComposeTracingStartable.kt30 import com.android.systemui.statusbar.commandline.ParseableCommand
58 private class CompositionTracingCommand : ParseableCommand(COMMAND_NAME) {
72 private class EnableCommand : ParseableCommand(SUBCOMMAND_ENABLE) {
95 private class DisableCommand : ParseableCommand(SUBCOMMAND_DISABLE) {
/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) {
91 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) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DCommandParserTest.kt149 object : ParseableCommand("test") { in parseCommandWithSubCommand_required_provided()
167 object : ParseableCommand("test") { in parseCommandWithSubCommand_required_notProvided()