Searched refs:modelInfo (Results 1 – 2 of 2) sorted by relevance
155 for (ModelInfo modelInfo : mModelInfoMap.values()) { in getModelUuidFromIntent()156 if (value.equals(modelInfo.name)) { in getModelUuidFromIntent()157 return modelInfo.modelUuid; in getModelUuidFromIntent()202 for (ModelInfo modelInfo : mModelInfoMap.values()) { in stopAllRecognitionsAndUnload()203 Log.e(TAG, "Loop " + modelInfo.modelUuid); in stopAllRecognitionsAndUnload()204 if (modelInfo.detector != null) { in stopAllRecognitionsAndUnload()205 Log.i(TAG, "Stopping recognition for " + modelInfo.name); in stopAllRecognitionsAndUnload()207 modelInfo.detector.stopRecognition(); in stopAllRecognitionsAndUnload()212 mSoundTriggerUtil.deleteSoundModel(modelInfo.modelUuid); in stopAllRecognitionsAndUnload()213 modelInfo.detector = null; in stopAllRecognitionsAndUnload()[all …]
206 ModelInfo modelInfo = new ModelInfo(model, STATUS_UNLOADED); in testFuzzGenericSoundModel() local207 modelInfos.add(modelInfo); in testFuzzGenericSoundModel()221 ModelInfo modelInfo = (ModelInfo) modelInfos.get(modelInfoIndex); in testFuzzGenericSoundModel() local226 if (operation == 0 && modelInfo.status == STATUS_UNLOADED) { in testFuzzGenericSoundModel()228 soundTriggerService.updateSoundModel(modelInfo.model); in testFuzzGenericSoundModel()229 loadedModelUuids.add(modelInfo.model.getUuid()); in testFuzzGenericSoundModel()230 modelInfo.status = STATUS_LOADED; in testFuzzGenericSoundModel()231 } else if (operation == 1 && modelInfo.status == STATUS_LOADED) { in testFuzzGenericSoundModel()234 modelInfo.model.getUuid()), in testFuzzGenericSoundModel()238 modelInfo.status = STATUS_STARTED; in testFuzzGenericSoundModel()[all …]