Lines Matching defs:locale
82 * Intent extra: The voice locale to use while managing the keyphrase.
246 // Try adding locales if the locale string is non-empty.
292 * for the locale.
299 * @param locale The locale for which the enrollment needs to be performed.
301 * given keyphrase/locale combination isn't possible.
303 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) {
309 KeyphraseMetadata keyphraseMetadata = getKeyphraseMetadata(keyphrase, locale);
314 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag())
322 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, null if any metadata
326 * @param locale The locale for which the enrollment needs to be performed.
327 * This is a Java locale, for example "en_US".
329 * and locale, null otherwise.
331 public KeyphraseMetadata getKeyphraseMetadata(String keyphrase, Locale locale) {
334 // Check if the given keyphrase is supported in the locale provided by
337 && keyphraseMetadata.supportsLocale(locale)) {
342 Slog.w(TAG, "No Enrollment application supports the given keyphrase/locale");