Searched refs:SoundModel (Results 1 - 8 of 8) sorted by relevance

/frameworks/av/services/soundtrigger/
H A DSoundTriggerHalHidl.h93 class SoundModel : public RefBase { class in class:android::SoundTriggerHalHidl
95 SoundModel(sound_model_handle_t handle, sound_model_callback_t callback, function in class:android::SoundTriggerHalHidl::SoundModel
100 ~SoundModel() {}
127 ISoundTriggerHw::SoundModel *convertSoundModelToHal(
146 sp<SoundModel> getModel(sound_model_handle_t handle);
147 sp<SoundModel> removeModel(sound_model_handle_t handle);
157 DefaultKeyedVector< sound_model_handle_t , sp<SoundModel> > mSoundModels;
H A DSoundTriggerHalHidl.cpp89 sp<SoundModel> model = mSoundModels.valueFor(modelId);
97 ISoundTriggerHw::SoundModel *halSoundModel =
131 sp<SoundModel> model = new SoundModel(*handle, callback, cookie, halHandle);
149 sp<SoundModel> model = removeModel(handle);
179 sp<SoundModel> model = getModel(handle);
213 sp<SoundModel> model = getModel(handle);
278 sp<SoundTriggerHalHidl::SoundModel> SoundTriggerHalHidl::getModel(sound_model_handle_t handle)
284 sp<SoundTriggerHalHidl::SoundModel> SoundTriggerHalHidl::removeModel(sound_model_handle_t handle)
287 sp<SoundModel> mode
[all...]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerHelper.java34 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
237 int startRecognition(SoundModel soundModel, ModelData modelData,
258 // If the existing SoundModel is different (for the same UUID for Generic and same
1145 // One of SoundModel.TYPE_GENERIC or SoundModel.TYPE_KEYPHRASE. Initially set
1146 // to SoundModel.TYPE_UNKNOWN;
1147 private int mModelType = SoundModel.TYPE_UNKNOWN;
1156 // The SoundModel instance, one of KeyphraseSoundModel or GenericSoundModel.
1157 private SoundModel mSoundModel = null;
1167 return new ModelData(modelId, SoundModel
[all...]
/frameworks/base/core/java/android/hardware/soundtrigger/
H A DSoundTriggerModule.java62 * 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}
H A DSoundTrigger.java186 * A SoundModel describes the attributes and contains the binary data used by the hardware
191 public static class SoundModel { class in class:SoundTrigger
216 public SoundModel(UUID uuid, UUID vendorUuid, int type, byte[] data) { method in class:SoundTrigger.SoundModel
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 implement
[all...]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DDatabaseHelper.java156 values.put(SoundModelContract.KEY_TYPE, SoundTrigger.SoundModel.TYPE_KEYPHRASE);
225 if (type != SoundTrigger.SoundModel.TYPE_KEYPHRASE) {
227 Slog.w(TAG, "Ignoring SoundModel since it's type is incorrect");
235 Slog.w(TAG, "Ignoring SoundModel since it doesn't specify an ID");
257 Slog.w(TAG, "Ignoring SoundModel since it doesn't specify users");
270 Slog.w(TAG, "Ignoring SoundModel since user handles don't match");
274 if (DBG) Slog.d(TAG, "Found a SoundModel for user: " + userHandle);
287 Slog.d(TAG, "Found SoundModel for the given keyphrase/locale/user: "
293 Slog.w(TAG, "No SoundModel available for the given keyphrase");
/frameworks/base/
H A Dpreloaded-classes1297 android.hardware.soundtrigger.SoundTrigger$SoundModel
H A Dcompiled-classes-phone1875 android.hardware.soundtrigger.SoundTrigger$SoundModel

Completed in 140 milliseconds