Home | History | Annotate | Download | only in voicedialer

Lines Matching refs:Grammar

47  * <li>Scans contacts and determine if the Grammar g2g file is stale.
48 * <li>If so, create and rebuild the Grammar,
49 * <li>Else create and load the Grammar from the file.
94 // if we change the contacts file, then we need to recreate the grammar.
109 // if we change this setting, then we need to recreate the grammar.
130 // generate g2g grammar file name
136 // clean up existing Grammar and old file
143 // load the empty Grammar
144 if (false) Log.d(TAG, "start new Grammar");
145 mSrecGrammar = mSrec.new Grammar(SREC_DIR + "/grammars/VoiceDialer.g2g");
149 if (false) Log.d(TAG, "start grammar.resetAllSlots");
152 // add names to the grammar
156 // add open entries to the grammar
160 // compile the grammar
161 if (false) Log.d(TAG, "start grammar.compile");
165 if (false) Log.d(TAG, "start grammar.save " + g2g.getPath());
172 if (false) Log.d(TAG, "start new Grammar loading " + g2g);
173 mSrecGrammar = mSrec.new Grammar(g2g.getPath());
189 * Add a list of names to the grammar
227 * add a list of application labels to the 'open x' grammar
326 // add list of 'open' entries to the grammar
334 // add the word to the grammar
336 // We used to store the entire list of components into the grammar.
340 // names, and the entries in the grammar have the same value
384 * {@link Recognizer.Grammar} can digest.
1144 "formed URI in grammar" + e);