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

  /hardware/interfaces/soundtrigger/2.1/
ISoundTriggerHw.hal 35 struct SoundModel {
38 @2.0::ISoundTriggerHw.SoundModel header;
50 SoundModel common;
76 * ISoundTriggerHw@2.0 except that the SoundModel uses shared memory
79 * @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,
    [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,
  /frameworks/av/services/soundtrigger/
SoundTriggerHalHidl.h 109 class SoundModel : public RefBase {
111 SoundModel(sound_model_handle_t handle, sound_model_callback_t callback,
116 ~SoundModel() {}
146 void convertSoundModelToHal(ISoundTriggerHw::SoundModel *halModel,
147 const struct sound_trigger_sound_model *soundModel);
149 V2_1_ISoundTriggerHw::SoundModel *halModel,
150 const struct sound_trigger_sound_model *soundModel)
153 const struct sound_trigger_sound_model *soundModel);
156 const struct sound_trigger_sound_model *soundModel)
185 sp<SoundModel> getModel(sound_model_handle_t handle)
    [all...]
SoundTriggerHalHidl.cpp 159 sp<SoundModel> model = mSoundModels.valueFor(modelId);
199 ISoundTriggerHw::SoundModel halSoundModel;
208 V2_1_ISoundTriggerHw::SoundModel halSoundModel;
227 sp<SoundModel> model = new SoundModel(*handle, callback, cookie, halHandle);
245 sp<SoundModel> model = removeModel(handle);
275 sp<SoundModel> model = getModel(handle);
320 sp<SoundModel> model = getModel(handle);
391 sp<SoundTriggerHalHidl::SoundModel> SoundTriggerHalHidl::getModel(sound_model_handle_t handle)
397 sp<SoundTriggerHalHidl::SoundModel> SoundTriggerHalHidl::removeModel(sound_model_handle_t handle
    [all...]
  /hardware/interfaces/soundtrigger/2.1/default/
SoundTriggerHw.h 43 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,
65 return mImpl->loadSoundModel(soundModel, callback, cookie, _hidl_cb);
67 Return<void> loadPhraseSoundModel(const V2_0::ISoundTriggerHw::PhraseSoundModel& soundModel,
71 return mImpl->loadPhraseSoundModel(soundModel, callback, cookie, _hidl_cb);
88 Return<void> loadSoundModel_2_1(const V2_1::ISoundTriggerHw::SoundModel& soundModel,
    [all...]
SoundTriggerHw.cpp 101 const V2_1::ISoundTriggerHw::SoundModel& soundModel,
105 V2_0::ISoundTriggerHw::SoundModel soundModel_2_0(soundModel.header);
106 auto result = memoryAsVector(soundModel.data, &soundModel_2_0.data);
118 const V2_1::ISoundTriggerHw::PhraseSoundModel& soundModel,
123 soundModel_2_0.common = soundModel.common.header;
126 const_cast<V2_0::ISoundTriggerHw::Phrase*>(soundModel.phrases.data()),
127 soundModel.phrases.size());
128 auto result = memoryAsVector(soundModel.common.data, &soundModel_2_0.common.data)
    [all...]
  /frameworks/base/media/java/android/media/soundtrigger/
SoundTriggerManager.java 33 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
165 * Factory constructor to create a SoundModel instance for use with methods in this
242 public int loadSoundModel(SoundModel soundModel) {
243 if (soundModel == null) {
248 switch (soundModel.type) {
249 case SoundModel.TYPE_GENERIC_SOUND:
251 (GenericSoundModel) soundModel);
252 case SoundModel.TYPE_KEYPHRASE:
254 (KeyphraseSoundModel) soundModel);
    [all...]
  /hardware/interfaces/soundtrigger/2.0/default/
SoundTriggerHalImpl.h 75 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,
108 return mImpl->loadSoundModel(soundModel, callback, cookie, _hidl_cb);
110 Return<void> loadPhraseSoundModel(const ISoundTriggerHw::PhraseSoundModel& soundModel,
114 return mImpl->loadPhraseSoundModel(soundModel, callback, cookie, _hidl_cb)
    [all...]
SoundTriggerHalImpl.cpp 91 int SoundTriggerHalImpl::doLoadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
96 ALOGV("doLoadSoundModel() data size %zu", soundModel.data.size());
103 halSoundModel = convertSoundModelToHal(&soundModel);
129 Return<void> SoundTriggerHalImpl::loadSoundModel(const ISoundTriggerHw::SoundModel& soundModel,
134 _hidl_cb(doLoadSoundModel(soundModel, client), client->getId());
139 const ISoundTriggerHw::PhraseSoundModel& soundModel,
143 _hidl_cb(doLoadSoundModel((const ISoundTriggerHw::SoundModel&)soundModel, client)
    [all...]
  /frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
SoundTriggerHelper.java 34 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
135 * @param soundModel The generic sound model to use for recognition.
141 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel,
144 if (modelId == null || soundModel == null || callback == null ||
156 return startRecognition(soundModel, modelData, callback, recognitionConfig,
166 * @param soundModel The sound model to use for recognition.
170 int startKeyphraseRecognition(int keyphraseId, KeyphraseSoundModel soundModel,
174 if (soundModel == null || callback == null || recognitionConfig == null) {
180 + " soundModel=" + soundModel + ", callback=" + callback.asBinder(
    [all...]
SoundTriggerService.java 48 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
104 private final TreeMap<UUID, SoundModel> mLoadedModels;
118 mLoadedModels = new TreeMap<UUID, SoundModel>();
219 public void updateSoundModel(SoundTrigger.GenericSoundModel soundModel) {
222 Slog.i(TAG, "updateSoundModel(): model = " + soundModel);
224 mDbHelper.updateGenericSoundModel(soundModel);
239 public int loadGenericSoundModel(GenericSoundModel soundModel) {
242 if (soundModel == null || soundModel.uuid == null) {
247 Slog.i(TAG, "loadGenericSoundModel(): id = " + soundModel.uuid)
    [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 207 * A SoundModel describes the attributes and contains the binary data used by the hardware
214 public static class SoundModel {
239 public SoundModel(UUID uuid, UUID vendorUuid, int type, byte[] data) {
263 if (!(obj instanceof SoundModel))
265 SoundModel other = (SoundModel) obj;
407 * A KeyphraseSoundModel is a specialized {@link SoundModel} for key phrases.
413 public static class KeyphraseSoundModel extends SoundModel implements Parcelable {
496 * A GenericSoundModel is a specialized {@link SoundModel} for non-voice sound
501 public static class GenericSoundModel extends SoundModel implements Parcelable
    [all...]
  /hardware/interfaces/soundtrigger/2.1/vts/functional/
VtsHalSoundtriggerV2_1TargetTest.cpp 282 V2_0_ISoundTriggerHw::SoundModel model;
306 V2_0_ISoundTriggerHw::SoundModel model;
334 ISoundTriggerHw::SoundModel model;
358 ISoundTriggerHw::SoundModel model;
  /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 225 ISoundTriggerHw::SoundModel model;
  /system/chre/host/msm/daemon/
chre_daemon.cc 355 ISoundTriggerHw::SoundModel soundModel;
356 soundModel.type = SoundModelType::GENERIC;
357 soundModel.vendorUuid.timeLow = 0x57CADDB1;
358 soundModel.vendorUuid.timeMid = 0xACDB;
359 soundModel.vendorUuid.versionAndTimeHigh = 0x4DCE;
360 soundModel.vendorUuid.variantAndClockSeqHigh = 0x8CB0;
363 memcpy(&soundModel.vendorUuid.node[0], uuidNode, sizeof(uuidNode));
364 soundModel.data.resize(1); // Insert a dummy byte to bypass HAL NULL checks.
372 Return<void> hidlResult = stHal->loadSoundModel(soundModel, NULL, 0
    [all...]
  /frameworks/base/config/
preloaded-classes     [all...]
boot-image-profile.txt     [all...]

Completed in 285 milliseconds