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

  /frameworks/av/services/soundtrigger/
SoundTriggerHalHidl.h 93 class SoundModel : public RefBase {
95 SoundModel(sound_model_handle_t handle, sound_model_callback_t callback,
100 ~SoundModel() {}
127 ISoundTriggerHw::SoundModel *convertSoundModelToHal(
128 const struct sound_trigger_sound_model *soundModel);
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;
SoundTriggerHalHidl.cpp 89 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> model = mSoundModels.valueFor(handle)
    [all...]
  /hardware/interfaces/soundtrigger/2.0/
ISoundTriggerHw.hal 69 struct SoundModel {
103 SoundModel common;
144 * @param soundModel A SoundModel structure describing the sound model to
160 loadSoundModel(SoundModel soundModel,
172 * @param soundModel A PhraseSoundModel structure describing the sound model
188 loadPhraseSoundModel(PhraseSoundModel soundModel,
  /hardware/interfaces/soundtrigger/2.0/default/
SoundTriggerHalImpl.h 45 Return<void> loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
49 Return<void> loadPhraseSoundModel(const ISoundTriggerHw::PhraseSoundModel& soundModel,
96 const ISoundTriggerHw::SoundModel *soundModel);
112 int doLoadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
SoundTriggerHalImpl.cpp 111 int SoundTriggerHalImpl::doLoadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
121 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size());
128 halSoundModel = convertSoundModelToHal(&soundModel);
163 Return<void> SoundTriggerHalImpl::loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
169 int32_t ret = doLoadSoundModel(soundModel, callback, cookie, &modelId);
176 const ISoundTriggerHw::PhraseSoundModel& soundModel,
182 int32_t ret = doLoadSoundModel((const ISoundTriggerHw::SoundModel&)soundModel,
    [all...]
  /frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
SoundTriggerHelper.java 34 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
134 * @param soundModel The generic sound model to use for recognition.
140 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel,
143 if (modelId == null || soundModel == null || callback == null ||
155 return startRecognition(soundModel, modelData, callback, recognitionConfig,
165 * @param soundModel The sound model to use for recognition.
169 int startKeyphraseRecognition(int keyphraseId, KeyphraseSoundModel soundModel,
173 if (soundModel == null || callback == null || recognitionConfig == null) {
179 + " 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...]
  /hardware/interfaces/soundtrigger/2.0/vts/functional/
VtsHalSoundtriggerV2_0TargetTest.cpp 218 ISoundTriggerHw::SoundModel model;
  /frameworks/base/
preloaded-classes     [all...]
compiled-classes-phone     [all...]

Completed in 224 milliseconds