Searched refs:modelData (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 152 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() local 153 if (modelData == null) { in startGenericRecognition() 157 return startRecognition(soundModel, modelData, callback, recognitionConfig, in startGenericRecognition() 215 private int cleanUpExistingKeyphraseModelLocked(ModelData modelData) { in cleanUpExistingKeyphraseModelLocked() argument 218 int status = tryStopAndUnloadLocked(modelData, true /* stop */, true /* unload */); in cleanUpExistingKeyphraseModelLocked() 221 modelData.toString()); in cleanUpExistingKeyphraseModelLocked() 239 int startRecognition(SoundModel soundModel, ModelData modelData, in startRecognition() argument 267 if (modelData.getSoundModel() != null) { in startRecognition() 270 if (modelData.getSoundModel().equals(soundModel) && modelData.isModelStarted()) { in startRecognition() 275 } else if (!modelData.getSoundModel().equals(soundModel)) { in startRecognition() [all …]
|
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerTestService.java | 229 public byte modelData[]; field in SoundTriggerTestService.ModelInfo 237 modelInfo.modelData); in createNewSoundModel() 499 modelInfo.modelData = new byte[(int) modelDataFile.length()]; in createModelInfo() 501 input.read(modelInfo.modelData, 0, modelInfo.modelData.length); in createModelInfo() 503 modelInfo.modelData = new byte[1024]; in createModelInfo() 504 mRandom.nextBytes(modelInfo.modelData); in createModelInfo()
|