Searched defs:soundModel (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerInternal.java52 * @param soundModel The sound model to use for recognition.
56 public abstract int startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, argument
H A DSoundTriggerDbHelper.java82 public boolean updateGenericSoundModel(GenericSoundModel soundModel) { argument
86 values.put(GenericSoundModelContract.KEY_MODEL_UUID, soundModel.uuid.toString());
87 values.put(GenericSoundModelContract.KEY_VENDOR_UUID, soundModel.vendorUuid.toString());
88 values.put(GenericSoundModelContract.KEY_DATA, soundModel.data);
130 GenericSoundModel soundModel = getGenericSoundModel(model_uuid);
131 if (soundModel == null) {
137 + "='" + soundModel.uuid.toString() + "'";
H A DSoundTriggerHelper.java135 * @param soundModel The generic sound model to use for recognition.
141 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel, argument
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, argument
174 if (soundModel == null || callback == null || recognitionConfig == null) {
180 + " soundModel=" + soundModel + ", callback=" + callback.asBinder()
193 if (model != null && !model.getModelId().equals(soundModel
238 startRecognition(SoundModel soundModel, ModelData modelData, IRecognitionStatusCallback callback, RecognitionConfig recognitionConfig, int keyphraseId) argument
1318 setSoundModel(SoundModel soundModel) argument
[all...]
H A DSoundTriggerService.java219 public void updateSoundModel(SoundTrigger.GenericSoundModel soundModel) { argument
222 Slog.i(TAG, "updateSoundModel(): model = " + soundModel);
224 mDbHelper.updateGenericSoundModel(soundModel);
239 public int loadGenericSoundModel(GenericSoundModel soundModel) { argument
242 if (soundModel == null || soundModel.uuid == null) {
247 Slog.i(TAG, "loadGenericSoundModel(): id = " + soundModel.uuid);
250 SoundModel oldModel = mLoadedModels.get(soundModel.uuid);
254 if (oldModel != null && !oldModel.equals(soundModel)) {
255 mSoundTriggerHelper.unloadGenericSoundModel(soundModel
266 loadKeyphraseSoundModel(KeyphraseSoundModel soundModel) argument
1202 startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, IRecognitionStatusCallback listener, RecognitionConfig recognitionConfig) argument
[all...]
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
H A DSoundTriggerUtil.java56 * @param soundModel The sound model to add/update.
58 public boolean addOrUpdateSoundModel(GenericSoundModel soundModel) { argument
60 if (soundModel == null) {
63 mSoundTriggerService.updateSoundModel(soundModel);
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
H A DEnrollmentUtil.java86 * @param soundModel The sound model to add/update.
89 public boolean addOrUpdateSoundModel(KeyphraseSoundModel soundModel) { argument
90 if (!verifyKeyphraseSoundModel(soundModel)) {
96 status = mModelManagementService.updateKeyphraseSoundModel(soundModel);
157 private boolean verifyKeyphraseSoundModel(KeyphraseSoundModel soundModel) { argument
158 if (soundModel == null) {
162 if (soundModel.uuid == null) {
166 if (soundModel.data == null) {
170 if (soundModel.keyphrases == null || soundModel
[all...]
/frameworks/base/media/java/android/media/soundtrigger/
H A DSoundTriggerManager.java242 public int loadSoundModel(SoundModel soundModel) { argument
243 if (soundModel == null) {
248 switch (soundModel.type) {
251 (GenericSoundModel) soundModel);
254 (KeyphraseSoundModel) soundModel);
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DDatabaseHelper.java148 public boolean updateKeyphraseSoundModel(KeyphraseSoundModel soundModel) { argument
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());
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);
164 getCommaSeparatedString(soundModel
[all...]
/frameworks/av/services/soundtrigger/
H A DSoundTriggerHalHidl.cpp475 const struct sound_trigger_sound_model *soundModel)
477 halModel->type = (SoundModelType)soundModel->type;
478 convertUuidToHal(&halModel->uuid, &soundModel->uuid);
479 convertUuidToHal(&halModel->vendorUuid, &soundModel->vendor_uuid);
480 halModel->data.setToExternal((uint8_t *)soundModel + soundModel->data_offset, soundModel->data_size);
485 const struct sound_trigger_sound_model *soundModel)
487 convertSoundModelToHal(&halModel->header, soundModel);
493 const struct sound_trigger_sound_model *soundModel)
474 convertSoundModelToHal(ISoundTriggerHw::SoundModel *halModel, const struct sound_trigger_sound_model *soundModel) argument
483 convertSoundModelToHal( V2_1_ISoundTriggerHw::SoundModel *halModel, const struct sound_trigger_sound_model *soundModel) argument
491 convertPhraseSoundModelToHal( ISoundTriggerHw::PhraseSoundModel *halKeyPhraseModel, const struct sound_trigger_sound_model *soundModel) argument
501 convertPhraseSoundModelToHal( V2_1_ISoundTriggerHw::PhraseSoundModel *halKeyPhraseModel, const struct sound_trigger_sound_model *soundModel) argument
[all...]

Completed in 376 milliseconds