Home | History | Annotate | Download | only in voicedialer

Lines Matching defs:commands

43  * This is a RecognizerEngine that processes commands to make phone calls and
52 * the {@RecognizerClient}. It will accept the following types of commands:
970 String[] commands = semantic.trim().split(" ");
975 if ("DIAL".equalsIgnoreCase(commands[0])) {
976 Uri uri = Uri.fromParts("tel", commands[1], null);
977 String num = formatNumber(commands[1]);
985 // commands should become ["CALL", id, id, ..] reflecting addNameEntriesToGrammar().
986 else if ("CALL".equalsIgnoreCase(commands[0])
987 && commands.length >= PHONE_ID_COUNT + 1) {
989 long contactId = Long.parseLong(commands[1]); // people table
990 long primaryId = Long.parseLong(commands[2]); // phones table
991 long homeId = Long.parseLong(commands[3]); // phones table
992 long mobileId = Long.parseLong(commands[4]); // phones table
993 long workId = Long.parseLong(commands[5]); // phones table
994 long otherId = Long.parseLong(commands[6]); // phones table
995 long fallbackId = Long.parseLong(commands[7]); // phones table
1005 if (commands.length == PHONE_ID_COUNT + 2) {
1007 final String spokenPhoneIdCommand = commands[PHONE_ID_COUNT + 1];
1023 else if (commands.length == PHONE_ID_COUNT + 1) {
1057 if (commands.length == PHONE_ID_COUNT + 2) {
1110 else if ("X".equalsIgnoreCase(commands[0])) {
1118 else if ("voicemail".equalsIgnoreCase(commands[0]) && commands.length == 1) {
1124 else if ("redial".equalsIgnoreCase(commands[0]) && commands.length == 1) {
1133 else if ("Intent".equalsIgnoreCase(commands[0])) {
1134 for (int i = 1; i < commands.length; i++) {
1136 Intent intent = Intent.getIntent(commands[i]);
1151 else if ("OPEN".equalsIgnoreCase(commands[0]) && mAllowOpenEntries) {
1153 if (commands.length > 1 & mOpenEntries != null) {
1160 String meaning = mOpenEntries.get(commands[1]);