Lines Matching refs:g2g
47 * <li>Scans contacts and determine if the Grammar g2g file is stale.
130 // generate g2g grammar file name
131 File g2g = mActivity.getFileStreamPath("voicedialer." +
132 Integer.toHexString(contacts.hashCode()) + ".g2g");
134 // rebuild g2g file if current one is out of date
135 if (!g2g.exists()) {
145 mSrecGrammar = mSrec.new Grammar(SREC_DIR + "/grammars/VoiceDialer.g2g");
164 // update g2g file
165 if (false) Log.d(TAG, "start grammar.save " + g2g.getPath());
166 g2g.getParentFile().mkdirs();
167 mSrecGrammar.save(g2g.getPath());
170 // g2g file exists, but is not loaded
172 if (false) Log.d(TAG, "start new Grammar loading " + g2g);
173 mSrecGrammar = mSrec.new Grammar(g2g.getPath());
436 * Delete all g2g files in the directory indicated by {@link File},
438 * There should only be one g2g file at any one time, with a hashcode
441 * @param context fetch directory for the stuffed and compiled g2g file.
447 return name.endsWith(".g2g");
460 * Delete G2G and OpenEntries files, to force regeneration of the g2g file