Lines Matching defs:locale
79 * Intent extra: The voice locale to use while managing the keyphrase.
206 // Try adding locales if the locale string is non-empty.
250 * for the locale.
257 * @param locale The locale for which the enrollment needs to be performed.
259 * given keyphrase/locale combination isn't possible.
261 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) {
267 if (getKeyphraseMetadata(keyphrase, locale) != null) {
271 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag())
279 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, null if any metadata
283 * @param locale The locale for which the enrollment needs to be performed.
284 * This is a Java locale, for example "en_US".
286 * and locale, null otherwise.
288 public KeyphraseMetadata getKeyphraseMetadata(String keyphrase, Locale locale) {
294 // Check if the given keyphrase is supported in the locale provided by
297 && keyphraseMetadata.supportsLocale(locale)) {
301 Slog.w(TAG, "Enrollment application doesn't support the given keyphrase/locale");