Home
last modified time | relevance | path

Searched refs:CommandType (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Dcommand_utils.cpp30 /* static */ CommandType CommandUtils::getCommandType(const std::string &commandName) { in getCommandType()
32 return CommandType::Info; in getCommandType()
34 return CommandType::Diff; in getCommandType()
36 return CommandType::Makedict; in getCommandType()
38 return CommandType::Header; in getCommandType()
40 return CommandType::Help; in getCommandType()
42 return CommandType::Unknown; in getCommandType()
53 const CommandType commandType) { in getCommandExecutor()
55 case CommandType::Info: in getCommandExecutor()
57 case CommandType::Diff: in getCommandExecutor()
[all …]
Dcommand_utils.h29 enum class CommandType : int { enum
40 static CommandType getCommandType(const std::string &commandName);
43 static std::function<int(int, char **)> getCommandExecutor(const CommandType commandType);
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/
Dcommand_utils_test.cpp26 EXPECT_EQ(CommandUtils::getCommandType(""), CommandType::Unknown); in TEST()
27 EXPECT_EQ(CommandUtils::getCommandType("abc"), CommandType::Unknown); in TEST()
28 EXPECT_EQ(CommandUtils::getCommandType("info"), CommandType::Info); in TEST()
29 EXPECT_EQ(CommandUtils::getCommandType("diff"), CommandType::Diff); in TEST()
30 EXPECT_EQ(CommandUtils::getCommandType("makedict"), CommandType::Makedict); in TEST()
31 EXPECT_EQ(CommandUtils::getCommandType("header"), CommandType::Header); in TEST()
32 EXPECT_EQ(CommandUtils::getCommandType("help"), CommandType::Help); in TEST()
/packages/inputmethods/LatinIME/native/dicttoolkit/
Ddict_toolkit_main.cpp32 const CommandType commandType = CommandUtils::getCommandType(argv[1]); in main()
33 if (commandType == CommandType::Unknown) { in main()
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java1106 AppInterface.CommandType.DISPLAY_TEXT.value()) in handleCmdResponse()
1127 AppInterface.CommandType.OPEN_CHANNEL.value()) { in handleCmdResponse()
1175 AppInterface.CommandType.GET_INPUT.value() || in cleanUpInstanceStackBySlot()
1177 AppInterface.CommandType.GET_INKEY.value()) { in cleanUpInstanceStackBySlot()
1180 AppInterface.CommandType.SET_UP_MENU.value() || in cleanUpInstanceStackBySlot()
1182 AppInterface.CommandType.SELECT_ITEM.value()) { in cleanUpInstanceStackBySlot()
1201 AppInterface.CommandType cmdType = mStkContext[slotId].mCurrentCmd.getCmdType(); in restoreInstanceFromStackBySlot()