Home
last modified time | relevance | path

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

/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DTestEnrollmentActivity.java65 KeyphraseSoundModel soundModel = new KeyphraseSoundModel(modelUuid, null, data, in onEnrollButtonClicked() local
67 boolean status = mEnrollmentUtil.addOrUpdateSoundModel(soundModel); in onEnrollButtonClicked()
82 KeyphraseSoundModel soundModel = mEnrollmentUtil.getSoundModel(KEYPHRASE_ID, BCP47_LOCALE); in onUnEnrollButtonClicked() local
83 if (soundModel == null) { in onUnEnrollButtonClicked()
89 Toast.makeText(this, "Successfully un-enrolled, model UUID=" + soundModel.uuid, in onUnEnrollButtonClicked()
102 KeyphraseSoundModel soundModel = mEnrollmentUtil.getSoundModel(KEYPHRASE_ID, BCP47_LOCALE); in onReEnrollButtonClicked() local
103 if (soundModel == null) { in onReEnrollButtonClicked()
110 KeyphraseSoundModel updated = new KeyphraseSoundModel(soundModel.uuid, in onReEnrollButtonClicked()
111 soundModel.vendorUuid, data, soundModel.keyphrases); in onReEnrollButtonClicked()
DEnrollmentUtil.java89 public boolean addOrUpdateSoundModel(KeyphraseSoundModel soundModel) { in addOrUpdateSoundModel() argument
90 if (!verifyKeyphraseSoundModel(soundModel)) { in addOrUpdateSoundModel()
96 status = mModelManagementService.updateKeyphraseSoundModel(soundModel); in addOrUpdateSoundModel()
158 private boolean verifyKeyphraseSoundModel(KeyphraseSoundModel soundModel) { in verifyKeyphraseSoundModel() argument
159 if (soundModel == null) { in verifyKeyphraseSoundModel()
163 if (soundModel.uuid == null) { in verifyKeyphraseSoundModel()
167 if (soundModel.data == null) { in verifyKeyphraseSoundModel()
171 if (soundModel.keyphrases == null || soundModel.keyphrases.length != 1) { in verifyKeyphraseSoundModel()
175 Keyphrase keyphrase = soundModel.keyphrases[0]; in verifyKeyphraseSoundModel()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java91 public boolean updateKeyphraseSoundModel(KeyphraseSoundModel soundModel) { in updateKeyphraseSoundModel() argument
95 values.put(SoundModelContract.KEY_MODEL_UUID, soundModel.uuid.toString()); in updateKeyphraseSoundModel()
97 values.put(SoundModelContract.KEY_DATA, soundModel.data); in updateKeyphraseSoundModel()
99 if (soundModel.keyphrases != null && soundModel.keyphrases.length == 1) { in updateKeyphraseSoundModel()
100 values.put(SoundModelContract.KEY_KEYPHRASE_ID, soundModel.keyphrases[0].id); in updateKeyphraseSoundModel()
102 soundModel.keyphrases[0].recognitionModes); in updateKeyphraseSoundModel()
104 getCommaSeparatedString(soundModel.keyphrases[0].users)); in updateKeyphraseSoundModel()
105 values.put(SoundModelContract.KEY_LOCALE, soundModel.keyphrases[0].locale); in updateKeyphraseSoundModel()
106 values.put(SoundModelContract.KEY_HINT_TEXT, soundModel.keyphrases[0].text); in updateKeyphraseSoundModel()
125 KeyphraseSoundModel soundModel = getKeyphraseSoundModel(keyphraseId, userHandle, in deleteKeyphraseSoundModel() local
[all …]
DSoundTriggerHelper.java119 KeyphraseSoundModel soundModel, in startRecognition() argument
122 if (soundModel == null || listener == null || recognitionConfig == null) { in startRecognition()
129 + " soundModel=" + soundModel + ", listener=" + listener.asBinder() in startRecognition()
171 && !soundModel.equals(mCurrentSoundModel)) { in startRecognition()
198 int status = mModule.loadSoundModel(soundModel, handle); in startRecognition()
216 mCurrentSoundModel = soundModel; in startRecognition()
DVoiceInteractionManagerService.java615 KeyphraseSoundModel soundModel = in startRecognition() local
617 if (soundModel == null in startRecognition()
618 || soundModel.uuid == null in startRecognition()
619 || soundModel.keyphrases == null) { in startRecognition()
624 keyphraseId, soundModel, callback, recognitionConfig); in startRecognition()