HomeSort by relevance Sort by last modified time
    Searched refs:keyphrase (Results 1 - 7 of 7) 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 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
    [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")
174 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 257 * 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,
  /prebuilts/sdk/25/
android.jar 
  /prebuilts/sdk/26/
android.jar 

Completed in 146 milliseconds