Searched refs:modelData (Results 1 – 2 of 2) sorted by relevance
191 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() local192 if (modelData == null) { in startGenericRecognition()196 return startRecognition(soundModel, modelData, callback, recognitionConfig, in startGenericRecognition()254 private int cleanUpExistingKeyphraseModelLocked(ModelData modelData) { in cleanUpExistingKeyphraseModelLocked() argument257 int status = tryStopAndUnloadLocked(modelData, true /* stop */, true /* unload */); in cleanUpExistingKeyphraseModelLocked()260 modelData.toString()); in cleanUpExistingKeyphraseModelLocked()265 private int prepareForRecognition(ModelData modelData) { in prepareForRecognition() argument274 if (!modelData.isModelLoaded()) { in prepareForRecognition()281 int status = mModule.loadSoundModel(modelData.getSoundModel(), handle); in prepareForRecognition()286 modelData.setHandle(handle[0]); in prepareForRecognition()[all …]
229 public byte modelData[]; field in SoundTriggerTestService.ModelInfo237 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()