Home
last modified time | relevance | path

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

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java191 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() local
192 if (modelData == null) { in startGenericRecognition()
196 return startRecognition(soundModel, modelData, callback, recognitionConfig, in startGenericRecognition()
254 private int cleanUpExistingKeyphraseModelLocked(ModelData modelData) { in cleanUpExistingKeyphraseModelLocked() argument
257 int status = tryStopAndUnloadLocked(modelData, true /* stop */, true /* unload */); in cleanUpExistingKeyphraseModelLocked()
260 modelData.toString()); in cleanUpExistingKeyphraseModelLocked()
265 private int prepareForRecognition(ModelData modelData) { in prepareForRecognition() argument
274 if (!modelData.isModelLoaded()) { in prepareForRecognition()
281 int status = mModule.loadSoundModel(modelData.getSoundModel(), handle); in prepareForRecognition()
286 modelData.setHandle(handle[0]); in prepareForRecognition()
[all …]
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java229 public byte modelData[]; field in SoundTriggerTestService.ModelInfo
237 modelInfo.modelData); in createNewSoundModel()
505 modelInfo.modelData = new byte[(int) modelDataFile.length()]; in createModelInfo()
507 input.read(modelInfo.modelData, 0, modelInfo.modelData.length); in createModelInfo()
509 modelInfo.modelData = new byte[1024]; in createModelInfo()
510 mRandom.nextBytes(modelInfo.modelData); in createModelInfo()