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

  /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/hardware/soundtrigger/
SoundTrigger.aidl 20 parcelable SoundTrigger.Keyphrase;
SoundTrigger.java 218 /** Keyphrase sound model */
222 * A generic sound model. Use this type only for non-keyphrase sound models such as
285 * A Keyphrase describes a key phrase that can be detected by a
290 public static class Keyphrase implements Parcelable {
291 /** Unique identifier for this keyphrase */
297 /** Locale of the keyphrase. JAVA Locale string e.g en_US */
307 public Keyphrase(int id, int recognitionModes, String locale, String text, int[] users) {
315 public static final Parcelable.Creator<Keyphrase> CREATOR
316 = new Parcelable.Creator<Keyphrase>() {
317 public Keyphrase createFromParcel(Parcel in)
    [all...]
  /frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
TestEnrollmentActivity.java 24 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
36 /** Keyphrase related constants, must match those defined in enrollment_application.xml */
59 Keyphrase kp = new Keyphrase(KEYPHRASE_ID, RECOGNITION_MODES, BCP47_LOCALE, TEXT,
66 new Keyphrase[] { kp });
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/services/voiceinteraction/java/com/android/server/soundtrigger/
SoundTriggerInternal.java 21 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
50 * @param keyphraseId The identifier of the keyphrase for which
53 * @param listener The listener for the recognition events related to the given keyphrase.
60 * Stops recognition for the given {@link Keyphrase} if a recognition is
63 * @param keyphraseId The identifier of the keyphrase for which
65 * @param listener The listener for the recognition events related to the given keyphrase.
SoundTriggerHelper.java 27 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
91 // keyphrase. We store the ModelData here in a hashmap.
94 // An index of keyphrase sound models so that we can reach them easily. We support indexing
95 // keyphrase sound models with a keyphrase ID. Sound model with the same keyphrase ID will
96 // replace an existing model, thus there is a 1:1 mapping from keyphrase ID to a voice
106 // Whether we have ANY recognition (keyphrase or generic) running.
136 * @param callback Callack for the recognition events related to the given keyphrase.
164 * @param keyphraseId The identifier of the keyphrase for whic
    [all...]
  /frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DatabaseHelper.java 25 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
105 // keyphrase id, locale, and users are unique. We have to first pull
144 * Updates the given keyphrase model, adds it, if it doesn't already exist.
146 * TODO: We only support one keyphrase currently.
191 // Delete all sound models for the given keyphrase and specified user.
204 * Returns a matching {@link KeyphraseSoundModel} for the keyphrase ID.
207 * TODO: We only support one keyphrase currently.
214 // Find the corresponding sound model ID for the keyphrase.
256 // No users present in the keyphrase.
277 Keyphrase[] keyphrases = new Keyphrase[1]
    [all...]
  /frameworks/base/config/
boot-image-profile.txt     [all...]
preloaded-classes     [all...]

Completed in 1159 milliseconds