Lines Matching defs:keyphrase

62      * This needs to be defined by an activity that supports enrolling users for hotword/keyphrase
77 * Intent extra: The hint text to be shown on the voice keyphrase management UI.
82 * Intent extra: The voice locale to use while managing the keyphrase.
197 String error = "Error parsing keyphrase enrollment meta-data for " + packageName;
201 String error = "Error parsing keyphrase enrollment meta-data for " + packageName;
205 String error = "Error parsing keyphrase enrollment meta-data for " + packageName;
216 // Get the keyphrase ID.
226 // Get the keyphrase text.
293 * Returns an intent to launch an activity that manages the given keyphrase
300 * @param keyphrase The keyphrase that the user needs to be enrolled to.
302 * @return An {@link Intent} to manage the keyphrase. This can be null if managing the
303 * given keyphrase/locale combination isn't possible.
305 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) {
311 KeyphraseMetadata keyphraseMetadata = getKeyphraseMetadata(keyphrase, locale);
315 .putExtra(EXTRA_VOICE_KEYPHRASE_HINT_TEXT, keyphrase)
324 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, null if any metadata
327 * @param keyphrase The keyphrase that the user needs to be enrolled to.
330 * @return The metadata, if the enrollment client supports the given keyphrase
333 public KeyphraseMetadata getKeyphraseMetadata(String keyphrase, Locale locale) {
336 // Check if the given keyphrase is supported in the locale provided by
338 if (keyphraseMetadata.supportsPhrase(keyphrase)
344 Slog.w(TAG, "No enrollment application supports the given keyphrase/locale: '"
345 + keyphrase + "'/" + locale);