Searched defs:soundModel (Results 1 - 3 of 3) sorted by path
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
H A D | DatabaseHelper.java | 91 public boolean updateKeyphraseSoundModel(KeyphraseSoundModel soundModel) { argument 95 values.put(SoundModelContract.KEY_MODEL_UUID, soundModel.uuid.toString()); 97 values.put(SoundModelContract.KEY_DATA, soundModel.data); 99 if (soundModel.keyphrases != null && soundModel.keyphrases.length == 1) { 100 values.put(SoundModelContract.KEY_KEYPHRASE_ID, soundModel.keyphrases[0].id); 102 soundModel.keyphrases[0].recognitionModes); 104 getCommaSeparatedString(soundModel.keyphrases[0].users)); 105 values.put(SoundModelContract.KEY_LOCALE, soundModel.keyphrases[0].locale); 106 values.put(SoundModelContract.KEY_HINT_TEXT, soundModel [all...] |
H A D | SoundTriggerHelper.java | 114 * @param soundModel The sound model to use for recognition. 119 KeyphraseSoundModel soundModel, 122 if (soundModel == null || listener == null || recognitionConfig == null) { 129 + " soundModel=" + soundModel + ", listener=" + listener.asBinder() 171 && !soundModel.equals(mCurrentSoundModel)) { 198 int status = mModule.loadSoundModel(soundModel, handle); 216 mCurrentSoundModel = soundModel; 118 startRecognition(int keyphraseId, KeyphraseSoundModel soundModel, IRecognitionStatusCallback listener, RecognitionConfig recognitionConfig) argument
|
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
H A D | EnrollmentUtil.java | 86 * @param soundModel The sound model to add/update. 89 public boolean addOrUpdateSoundModel(KeyphraseSoundModel soundModel) { argument 90 if (!verifyKeyphraseSoundModel(soundModel)) { 96 status = mModelManagementService.updateKeyphraseSoundModel(soundModel); 158 private boolean verifyKeyphraseSoundModel(KeyphraseSoundModel soundModel) { argument 159 if (soundModel == null) { 163 if (soundModel.uuid == null) { 167 if (soundModel.data == null) { 171 if (soundModel.keyphrases == null || soundModel [all...] |
Completed in 118 milliseconds