Lines Matching refs:mSrecGrammar
96 if (mSrecGrammar != null) {
97 mSrecGrammar.destroy();
98 mSrecGrammar = null;
111 if (mSrecGrammar != null) {
112 mSrecGrammar.destroy();
113 mSrecGrammar = null;
139 if (mSrecGrammar != null) {
140 mSrecGrammar.destroy();
141 mSrecGrammar = null;
146 mSrecGrammar = mSrec.new Grammar(SREC_DIR + "/grammars/VoiceDialer.g2g");
147 mSrecGrammar.setupRecognizer();
151 mSrecGrammar.resetAllSlots();
163 mSrecGrammar.compile();
168 mSrecGrammar.save(g2g.getPath());
172 else if (mSrecGrammar == null) {
174 mSrecGrammar = mSrec.new Grammar(g2g.getPath());
175 mSrecGrammar.setupRecognizer();
209 mSrecGrammar.addWordToSlot("@Names", name, null, 1, sb.toString());
336 mSrecGrammar.addWordToSlot("@Opens", label, null, 1, "V='" + label + "'");