Lines Matching refs:locale

67     /** Locale delimiter used by the old-style 3 char locale string format (like "eng-usa") */
70 /** Locale delimiter used by the new-style locale string format (Locale.toString() results,
324 * Returns the default locale for a given TTS engine. Attempts to read the
326 * default phone locale is returned.
328 * @param engineName the engine to return the locale for.
329 * @return the locale preference for this engine. Will be non null.
337 * Returns the default locale for a given TTS engine from given settings string. */
350 Log.w(TAG, "Failed to parse locale " + localeString + ", returning en_US instead");
361 * True if a given TTS engine uses the default phone locale as a default locale. Attempts to
365 * @param engineName the engine to return the locale for.
374 * Parses a locale encoded as a string, and tries its best to return a valid {@link Locale}
376 * "deu-deu". At the end, we test if the resulting locale can return ISO3 language and
438 * equivalents. If it fails to do so, it keeps the value from the TTS locale.
460 * Return the old-style string form of the locale. It consists of 3 letter codes:
462 * <li>"ISO 639-2/T language code" if the locale has no country entry</li>
464 * if the locale has no variant entry</li>
466 * code{@link #LOCALE_DELIMITER}variant" if the locale has a variant entry</li>
471 static public String[] toOldLocaleStringFormat(Locale locale) {
474 // Note that the default locale might have an empty variant
478 ret[0] = locale.getISO3Language();
479 ret[1] = locale.getISO3Country();
480 ret[2] = locale.getVariant();
484 // Default locale does not have a ISO 3166 and/or ISO 639-2/T codes. Return the
491 * Parses a comma separated list of engine locale preferences. The list is of the
516 * Serialize the locale to a string and store it as a default locale for the given engine. If
517 * the passed locale is null, an empty string will be serialized; that empty string, when