Searched defs:keyphrase (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/android/hardware/soundtrigger/
H A DKeyphraseMetadata.java30 public final String keyphrase; field in class:KeyphraseMetadata
34 public KeyphraseMetadata(int id, String keyphrase, ArraySet<Locale> supportedLocales, argument
37 this.keyphrase = keyphrase;
44 return "id=" + id + ", keyphrase=" + keyphrase + ", supported-locales=" + supportedLocales
52 return keyphrase.isEmpty() || keyphrase.equalsIgnoreCase(phrase);
H A DKeyphraseEnrollmentInfo.java62 * 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 Th
305 getManageKeyphraseIntent(int action, String keyphrase, Locale locale) argument
333 getKeyphraseMetadata(String keyphrase, Locale locale) argument
[all...]
/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionService.java257 * Creates an {@link AlwaysOnHotwordDetector} for the given keyphrase and locale.
262 * @param keyphrase The keyphrase that's being used, for example "Hello Android".
265 * @return An always-on hotword detector for the given keyphrase and locale.
268 String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) {
275 mHotwordDetector = new AlwaysOnHotwordDetector(keyphrase, locale, callback,
291 * Checks if a given keyphrase and locale are supported to create an
294 * @return true if the keyphrase and locale combination is supported, false otherwise.
297 public final boolean isKeyphraseAndLocaleSupportedForHotword(String keyphrase, Locale locale) { argument
301 return mKeyphraseEnrollmentInfo.getKeyphraseMetadata(keyphrase, local
267 createAlwaysOnHotwordDetector( String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) argument
[all...]

Completed in 85 milliseconds