Home
last modified time | relevance | path

Searched refs:commandName (Results 1 – 11 of 11) sorted by relevance

/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDicttool.java76 public static void addCommand(final String commandName, final Class<? extends Command> cls) { in addCommand() argument
77 sCommands.put(commandName, cls); in addCommand()
80 private static Command getCommandInstance(final String commandName) { in getCommandInstance() argument
82 return sCommands.get(commandName).newInstance(); in getCommandInstance()
84 throw new RuntimeException(commandName + " is not installed"); in getCommandInstance()
86 throw new RuntimeException(commandName + " is not installed"); in getCommandInstance()
92 for (final String commandName : sCommands.keySet()) { in help()
93 System.out.println("*** " + commandName); in help()
94 System.out.println(getCommandInstance(commandName).getHelp()); in help()
99 private static boolean isCommand(final String commandName) { in isCommand() argument
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/
DNoOpShellCommandTest.java28 String commandName = "test"; in test_success() local
32 new NoOpShellCommand(commandName, expectedCommand, debugFlagName); in test_success()
33 Result actualResult = run(command, commandName); in test_success()
36 String.format(NoOpShellCommand.RESPONSE_MSG, commandName), in test_success()
44 String commandName = "test"; in test_getCommandName() local
47 new NoOpShellCommand(commandName, expectedCommand, debugFlagName); in test_getCommandName()
48 expect.withMessage("getCommandHel").that(command.getCommandName()).isEqualTo(commandName); in test_getCommandName()
54 String commandName = "test"; in test_getCommandHelp() local
57 new NoOpShellCommand(commandName, expectedCommand, debugFlagName); in test_getCommandHelp()
DShellCommandServiceImplTest.java230 String commandName = "cmd"; in testRunShellCommand_offloadsWorkToExecutor() local
255 return commandName; in testRunShellCommand_offloadsWorkToExecutor()
277 MAX_COMMAND_DURATION_MILLIS, commandPrefix, commandName, "param"), in testRunShellCommand_offloadsWorkToExecutor()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/updateprocessors/
DUpdateProcessorUtils.java42 public static JSONArray castToJSONArray(String commandName, Object updates) { in castToJSONArray() argument
45 String.format("Value for \"%s\" must be a JSON array", commandName)); in castToJSONArray()
59 public static JSONObject castToJSONObject(String commandName, Object updates) { in castToJSONObject() argument
62 String.format("Value for \"%s\" must be a JSON object", commandName)); in castToJSONObject()
89 public static ByteBuffer decodeKey(String commandName, String key) { in decodeKey() argument
97 commandName, KEY_SIZE_BYTES)); in decodeKey()
111 public static byte[] decodeValue(String commandName, String value) { in decodeValue() argument
117 String.format("Values in \"%s\" must be valid base 64", commandName)); in decodeValue()
123 commandName, VALUE_MAX_SIZE_BYTES)); in decodeValue()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Dcommand_utils.cpp30 /* static */ CommandType CommandUtils::getCommandType(const std::string &commandName) { in getCommandType() argument
31 if (commandName == InfoExecutor::COMMAND_NAME) { in getCommandType()
33 } else if (commandName == DiffExecutor::COMMAND_NAME) { in getCommandType()
35 } else if (commandName == MakedictExecutor::COMMAND_NAME) { in getCommandType()
37 } else if (commandName == HeaderExecutor::COMMAND_NAME) { in getCommandType()
39 } else if (commandName == HelpExecutor::COMMAND_NAME) { in getCommandType()
47 const std::string &commandName) { in printCommandUnknownMessage() argument
49 commandName.c_str(), programName.c_str(), HelpExecutor::COMMAND_NAME); in printCommandUnknownMessage()
Dcommand_utils.h40 static CommandType getCommandType(const std::string &commandName);
42 const std::string &commandName);
Darguments_parser.cpp49 void ArgumentsParser::printUsage(const std::string &commandName, in printUsage() argument
51 printf("Usage: %s", commandName.c_str()); in printUsage()
Darguments_parser.h107 void printUsage(const std::string &commandName, const std::string &description) const;
/packages/apps/SecureElement/src/com/android/se/internal/
DUtil.java73 public static String createMessage(String commandName, int sw) { in createMessage() argument
75 if (commandName != null) { in createMessage()
76 message.append(commandName).append(" "); in createMessage()
90 public static String createMessage(String commandName, String message) { in createMessage() argument
91 if (commandName == null) { in createMessage()
94 return commandName + " " + message; in createMessage()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/
DNoOpShellCommand.java34 final String commandName, @Command int metricsLoggerCommand, String debugFlagKey) { in NoOpShellCommand() argument
35 mCommandName = commandName; in NoOpShellCommand()
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/
DUtils.java76 final String commandName = commands[0]; in runCommand() local
80 logger.fine("Command " + commandName + " is successful."); in runCommand()
83 "Abnormal " + commandName + " termination for: " + String.join(",", commands)); in runCommand()