Home
last modified time | relevance | path

Searched refs:soundModel (Results 1 – 17 of 17) sorted by relevance

/hardware/knowles/athletico/sound_trigger_hal/tests/
Doslo_sound_model_control.cpp83 ISoundTriggerHw::SoundModel soundModel; in osloLoadSoundModel() local
84 soundModel.type = SoundModelType::GENERIC; in osloLoadSoundModel()
85 soundModel.vendorUuid.timeLow = uuid.timeLow; in osloLoadSoundModel()
86 soundModel.vendorUuid.timeMid = uuid.timeMid; in osloLoadSoundModel()
87 soundModel.vendorUuid.versionAndTimeHigh = uuid.timeHiAndVersion; in osloLoadSoundModel()
88 soundModel.vendorUuid.variantAndClockSeqHigh = uuid.clockSeq; in osloLoadSoundModel()
90 memcpy(&soundModel.vendorUuid.node[0], &uuid.node[0], sizeof(uuid.node)); in osloLoadSoundModel()
91 soundModel.data.resize(1); // Insert an unused byte to bypass HAL NULL checks. in osloLoadSoundModel()
99 Return<void> hidlResult = stHal->loadSoundModel(soundModel, NULL, 0, in osloLoadSoundModel()
/hardware/interfaces/soundtrigger/2.1/default/
DSoundTriggerHw.h43 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel,
48 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel,
62 Return<void> loadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel()
65 return mImpl->loadSoundModel(soundModel, callback, cookie, _hidl_cb); in loadSoundModel()
67 Return<void> loadPhraseSoundModel(const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel()
71 return mImpl->loadPhraseSoundModel(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel()
88 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel_2_1()
91 return mImpl->loadSoundModel_2_1(soundModel, callback, cookie, _hidl_cb); in loadSoundModel_2_1()
94 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel_2_1()
97 return mImpl->loadPhraseSoundModel_2_1(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel_2_1()
DSoundTriggerHw.cpp101 const V2_1::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel_2_1() argument
105 V2_0::ISoundTriggerHw::SoundModel soundModel_2_0(soundModel.header); in loadSoundModel_2_1()
106 auto result = memoryAsVector(soundModel.data, &soundModel_2_0.data); in loadSoundModel_2_1()
118 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel_2_1() argument
123 soundModel_2_0.common = soundModel.common.header; in loadPhraseSoundModel_2_1()
126 const_cast<V2_0::ISoundTriggerHw::Phrase*>(soundModel.phrases.data()), in loadPhraseSoundModel_2_1()
127 soundModel.phrases.size()); in loadPhraseSoundModel_2_1()
128 auto result = memoryAsVector(soundModel.common.data, &soundModel_2_0.common.data); in loadPhraseSoundModel_2_1()
/hardware/interfaces/soundtrigger/2.0/default/
DSoundTriggerHalImpl.h75 Return<void> loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
79 Return<void> loadPhraseSoundModel(const ISoundTriggerHw::PhraseSoundModel& soundModel,
90 int doLoadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
104 Return<void> loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel()
108 return mImpl->loadSoundModel(soundModel, callback, cookie, _hidl_cb); in loadSoundModel()
110 Return<void> loadPhraseSoundModel(const ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel()
114 return mImpl->loadPhraseSoundModel(soundModel, callback, cookie, _hidl_cb); in loadPhraseSoundModel()
155 const ISoundTriggerHw::SoundModel* soundModel);
DSoundTriggerHalImpl.cpp91 int SoundTriggerHalImpl::doLoadSoundModel(const ISoundTriggerHw::SoundModel& soundModel, in doLoadSoundModel() argument
96 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size()); in doLoadSoundModel()
103 halSoundModel = convertSoundModelToHal(&soundModel); in doLoadSoundModel()
129 Return<void> SoundTriggerHalImpl::loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel() argument
134 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
139 const ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel() argument
143 _hidl_cb(doLoadSoundModel((const ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
350 const ISoundTriggerHw::SoundModel* soundModel) { in convertSoundModelToHal() argument
352 if (soundModel->type == SoundModelType::KEYPHRASE) { in convertSoundModelToHal()
354 sizeof(struct sound_trigger_phrase_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
[all …]
/hardware/interfaces/soundtrigger/2.2/default/
DSoundTriggerHw.cpp109 int SoundTriggerHw::doLoadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel, in doLoadSoundModel() argument
114 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size()); in doLoadSoundModel()
121 halSoundModel = convertSoundModelToHal(&soundModel); in doLoadSoundModel()
147 Return<void> SoundTriggerHw::loadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel() argument
153 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
158 const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel() argument
164 _hidl_cb(doLoadSoundModel((const V2_0::ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
372 const V2_0::ISoundTriggerHw::SoundModel* soundModel) { in convertSoundModelToHal() argument
374 if (soundModel->type == V2_0::SoundModelType::KEYPHRASE) { in convertSoundModelToHal()
376 sizeof(struct sound_trigger_phrase_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
[all …]
DSoundTriggerHw.h57 Return<void> loadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel,
60 Return<void> loadPhraseSoundModel(const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel,
72 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel,
75 Return<void> loadPhraseSoundModel_2_1(const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel,
122 int doLoadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel,
150 const V2_0::ISoundTriggerHw::SoundModel* soundModel);
/hardware/interfaces/soundtrigger/2.3/default/
DSoundTriggerHw.cpp110 int SoundTriggerHw::doLoadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel, in doLoadSoundModel() argument
115 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size()); in doLoadSoundModel()
122 halSoundModel = convertSoundModelToHal(&soundModel); in doLoadSoundModel()
148 Return<void> SoundTriggerHw::loadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel, in loadSoundModel() argument
154 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId()); in loadSoundModel()
159 const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel, in loadPhraseSoundModel() argument
165 _hidl_cb(doLoadSoundModel((const V2_0::ISoundTriggerHw::SoundModel&)soundModel, client), in loadPhraseSoundModel()
380 const V2_0::ISoundTriggerHw::SoundModel* soundModel) { in convertSoundModelToHal() argument
382 if (soundModel->type == V2_0::SoundModelType::KEYPHRASE) { in convertSoundModelToHal()
384 sizeof(struct sound_trigger_phrase_sound_model) + soundModel->data.size(); in convertSoundModelToHal()
[all …]
DSoundTriggerHw.h57 Return<void> loadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel,
60 Return<void> loadPhraseSoundModel(const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel,
72 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel,
75 Return<void> loadPhraseSoundModel_2_1(const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel,
139 int doLoadSoundModel(const V2_0::ISoundTriggerHw::SoundModel& soundModel,
169 const V2_0::ISoundTriggerHw::SoundModel* soundModel);
/hardware/interfaces/soundtrigger/2.3/cli/java/android/hardware/soundtrigger/V2_3/cli/
DSthalCli.java207 public void loadSoundModel_2_1(SoundModel soundModel, in loadSoundModel_2_1() argument
211 System.out.printf("loadSoundModel_2_1(soundModel=%s) -> %d%n", soundModel, handle); in loadSoundModel_2_1()
212 mLoadedModels.put(handle, new Model(callback, soundModel)); in loadSoundModel_2_1()
217 public void loadPhraseSoundModel_2_1(PhraseSoundModel soundModel, in loadPhraseSoundModel_2_1() argument
221 System.out.printf("loadPhraseSoundModel_2_1(soundModel=%s) -> %d%n", soundModel, in loadPhraseSoundModel_2_1()
223 mLoadedModels.put(handle, new Model(callback, soundModel)); in loadPhraseSoundModel_2_1()
318 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel soundModel, in loadSoundModel() argument
326 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.PhraseSoundModel soundModel, in loadPhraseSoundModel() argument
/hardware/interfaces/soundtrigger/aidl/android/hardware/soundtrigger3/
DISoundTriggerHw.aidl157 int loadSoundModel(in SoundModel soundModel, in ISoundTriggerHwCallback callback); in loadSoundModel() argument
172 int loadPhraseSoundModel(in PhraseSoundModel soundModel, in ISoundTriggerHwCallback callback); in loadPhraseSoundModel() argument
/hardware/interfaces/soundtrigger/aidl/aidl_api/android.hardware.soundtrigger3/1/android/hardware/soundtrigger3/
DISoundTriggerHw.aidl39 …int loadSoundModel(in android.media.soundtrigger.SoundModel soundModel, in android.hardware.soundt… in loadSoundModel() argument
40 …int loadPhraseSoundModel(in android.media.soundtrigger.PhraseSoundModel soundModel, in android.har… in loadPhraseSoundModel() argument
/hardware/interfaces/soundtrigger/aidl/aidl_api/android.hardware.soundtrigger3/2/android/hardware/soundtrigger3/
DISoundTriggerHw.aidl39 …int loadSoundModel(in android.media.soundtrigger.SoundModel soundModel, in android.hardware.soundt… in loadSoundModel() argument
40 …int loadPhraseSoundModel(in android.media.soundtrigger.PhraseSoundModel soundModel, in android.har… in loadPhraseSoundModel() argument
/hardware/interfaces/soundtrigger/aidl/aidl_api/android.hardware.soundtrigger3/current/android/hardware/soundtrigger3/
DISoundTriggerHw.aidl39 …int loadSoundModel(in android.media.soundtrigger.SoundModel soundModel, in android.hardware.soundt… in loadSoundModel() argument
40 …int loadPhraseSoundModel(in android.media.soundtrigger.PhraseSoundModel soundModel, in android.har… in loadPhraseSoundModel() argument
/hardware/interfaces/soundtrigger/aidl/cli/java/android/hardware/soundtrigger3/cli/
DSthalCli.java259 public int loadSoundModel(SoundModel soundModel, ISoundTriggerHwCallback callback) { in loadSoundModel() argument
261 System.out.printf("loadSoundModel(soundModel=%s) -> %d%n", soundModel, handle); in loadSoundModel()
262 mLoadedModels.put(handle, new Model(callback, soundModel)); in loadSoundModel()
267 public int loadPhraseSoundModel(PhraseSoundModel soundModel, in loadPhraseSoundModel() argument
270 System.out.printf("loadPhraseSoundModel(soundModel=%s) -> %d%n", soundModel, handle); in loadPhraseSoundModel()
271 mLoadedModels.put(handle, new Model(callback, soundModel)); in loadPhraseSoundModel()
/hardware/interfaces/soundtrigger/2.1/
DISoundTriggerHw.hal79 * @param soundModel A SoundModel structure describing the sound model
96 loadSoundModel_2_1(SoundModel soundModel,
113 * @param soundModel A PhraseSoundModel structure describing the sound model
130 loadPhraseSoundModel_2_1(PhraseSoundModel soundModel,
/hardware/interfaces/soundtrigger/2.0/
DISoundTriggerHw.hal144 * @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,