Home
last modified time | relevance | path

Searched refs:modelData (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java166 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() local
167 if (modelData == null) { in startGenericRecognition()
171 return startRecognition(soundModel, modelData, callback, recognitionConfig, in startGenericRecognition()
226 private int cleanUpExistingKeyphraseModelLocked(ModelData modelData) { in cleanUpExistingKeyphraseModelLocked() argument
229 int status = tryStopAndUnloadLocked(modelData, true /* stop */, true /* unload */); in cleanUpExistingKeyphraseModelLocked()
232 modelData.toString()); in cleanUpExistingKeyphraseModelLocked()
237 private int prepareForRecognition(ModelData modelData) { in prepareForRecognition() argument
243 if (!modelData.isModelLoaded()) { in prepareForRecognition()
250 int status = mModule.loadSoundModel(modelData.getSoundModel(), handle); in prepareForRecognition()
255 modelData.setHandle(handle[0]); in prepareForRecognition()
[all …]
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java236 public byte modelData[]; field in SoundTriggerTestService.ModelInfo
244 modelInfo.modelData); in createNewSoundModel()
523 modelInfo.modelData = new byte[(int) modelDataFile.length()]; in createModelInfo()
525 input.read(modelInfo.modelData, 0, modelInfo.modelData.length); in createModelInfo()
527 modelInfo.modelData = new byte[1024]; in createModelInfo()
528 mRandom.nextBytes(modelInfo.modelData); in createModelInfo()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DSoundTriggerDuplicateModelHandler.java120 var modelData = mModelList.remove(i); in unloadSoundModel() local
121 if (modelData.getWasContended()) { in unloadSoundModel()