HomeSort by relevance Sort by last modified time
    Searched refs:keyphrase (Results 1 - 5 of 5) sorted by null

  /frameworks/base/core/java/android/hardware/soundtrigger/
KeyphraseMetadata.java 24 * A Voice Keyphrase metadata read from the enrollment application.
30 public final String keyphrase; field in class:KeyphraseMetadata
34 public KeyphraseMetadata(int id, String keyphrase, ArraySet<Locale> supportedLocales,
37 this.keyphrase = keyphrase;
44 return "id=" + id + ", keyphrase=" + keyphrase + ", supported-locales=" + supportedLocales
52 return keyphrase.isEmpty() || keyphrase.equalsIgnoreCase(phrase);
KeyphraseEnrollmentInfo.java 59 * This needs to be defined by an activity that supports enrolling users for hotword/keyphrase
74 * Intent extra: The hint text to be shown on the voice keyphrase management UI.
79 * Intent extra: The voice locale to use while managing the keyphrase.
161 mParseError = "Error parsing keyphrase enrollment meta-data: " + e;
162 Slog.w(TAG, "error parsing keyphrase enrollment meta-data", e);
165 mParseError = "Error parsing keyphrase enrollment meta-data: " + e;
166 Slog.w(TAG, "error parsing keyphrase enrollment meta-data", e);
169 mParseError = "Error parsing keyphrase enrollment meta-data: " + e;
170 Slog.w(TAG, "error parsing keyphrase enrollment meta-data", e);
178 // Get the keyphrase ID
    [all...]
  /frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
EnrollmentUtil.java 23 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
40 * This needs to be defined by an activity that supports enrolling users for hotword/keyphrase
56 * Intent extra: The hint text to be shown on the voice keyphrase management UI.
61 * Intent extra: The voice locale to use while managing the keyphrase.
83 * exactly 1 keyphrase,
84 * and users for which the keyphrase is valid - typically the current user.
104 * Gets the sound model for the given keyphrase, null if none exists.
106 * If a sound model for a given keyphrase exists, and it needs to be updated,
110 * @param keyphraseId The keyphrase ID to look-up the sound model for.
117 Log.e(TAG, "Keyphrase must have a valid ID")
175 Keyphrase keyphrase = soundModel.keyphrases[0]; local
    [all...]
  /frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
SoundTriggerTest.java 21 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
41 Keyphrase keyphrase = new Keyphrase(1, 0, "en-US", "hello", null); local
45 keyphrase.writeToParcel(parcel, 0);
49 Keyphrase unparceled = Keyphrase.CREATOR.createFromParcel(parcel);
52 assertEquals(keyphrase.id, unparceled.id);
54 assertEquals(keyphrase.locale, unparceled.locale);
55 assertEquals(keyphrase.text, unparceled.text)
60 Keyphrase keyphrase = new Keyphrase(1, 0, "en-US", "hello", new int[0]); local
79 Keyphrase keyphrase = new Keyphrase(1, 0, "en-US", "hello", new int[] {1, 2, 3, 4, 5}); local
    [all...]
  /frameworks/base/core/java/android/service/voice/
VoiceInteractionService.java 203 * Creates an {@link AlwaysOnHotwordDetector} for the given keyphrase and locale.
208 * @param keyphrase The keyphrase that's being used, for example "Hello Android".
211 * @return An always-on hotword detector for the given keyphrase and locale.
214 String keyphrase, Locale locale, AlwaysOnHotwordDetector.Callback callback) {
221 mHotwordDetector = new AlwaysOnHotwordDetector(keyphrase, locale, callback,

Completed in 175 milliseconds