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

  /frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
SoundTriggerHelper.java 36 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
132 * @param soundModel The generic sound model to use for recognition.
138 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel,
141 if (modelId == null || soundModel == null || callback == null ||
153 return startRecognition(soundModel, modelData, callback, recognitionConfig,
163 * @param soundModel The sound model to use for recognition.
167 int startKeyphraseRecognition(int keyphraseId, KeyphraseSoundModel soundModel,
171 if (soundModel == null || callback == null || recognitionConfig == null) {
177 + " soundModel=" + soundModel + ", callback=" + callback.asBinder(
    [all...]
  /frameworks/base/core/java/android/hardware/soundtrigger/
SoundTriggerModule.java 62 * Load a {@link SoundTrigger.SoundModel} to the hardware. A sound model must be loaded in
76 public native int loadSoundModel(SoundTrigger.SoundModel model, int[] soundModelHandle);
79 * Unload a {@link SoundTrigger.SoundModel} and abort any pendiong recognition
93 * Start listening to all key phrases in a {@link SoundTrigger.SoundModel}.
112 * Stop listening to all key phrases in a {@link SoundTrigger.SoundModel}
SoundTrigger.java 186 * A SoundModel describes the attributes and contains the binary data used by the hardware
191 public static class SoundModel {
216 public SoundModel(UUID uuid, UUID vendorUuid, int type, byte[] data) {
240 if (!(obj instanceof SoundModel))
242 SoundModel other = (SoundModel) obj;
382 * A KeyphraseSoundModel is a specialized {@link SoundModel} for key phrases.
386 public static class KeyphraseSoundModel extends SoundModel implements Parcelable {
469 * A GenericSoundModel is a specialized {@link SoundModel} for non-voice sound
472 public static class GenericSoundModel extends SoundModel implements Parcelable
    [all...]
  /frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DatabaseHelper.java 148 public boolean updateKeyphraseSoundModel(KeyphraseSoundModel soundModel) {
152 values.put(SoundModelContract.KEY_MODEL_UUID, soundModel.uuid.toString());
153 if (soundModel.vendorUuid != null) {
154 values.put(SoundModelContract.KEY_VENDOR_UUID, soundModel.vendorUuid.toString());
156 values.put(SoundModelContract.KEY_TYPE, SoundTrigger.SoundModel.TYPE_KEYPHRASE);
157 values.put(SoundModelContract.KEY_DATA, soundModel.data);
159 if (soundModel.keyphrases != null && soundModel.keyphrases.length == 1) {
160 values.put(SoundModelContract.KEY_KEYPHRASE_ID, soundModel.keyphrases[0].id);
162 soundModel.keyphrases[0].recognitionModes)
    [all...]
  /frameworks/base/
compiled-classes-phone     [all...]

Completed in 136 milliseconds