Home
last modified time | relevance | path

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

/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java155 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 …]
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java207 ModelInfo modelInfo = new ModelInfo(model, STATUS_UNLOADED); in testFuzzGenericSoundModel() local
208 modelInfos.add(modelInfo); in testFuzzGenericSoundModel()
222 ModelInfo modelInfo = (ModelInfo) modelInfos.get(modelInfoIndex); in testFuzzGenericSoundModel() local
227 if (operation == 0 && modelInfo.status == STATUS_UNLOADED) { in testFuzzGenericSoundModel()
229 soundTriggerService.updateSoundModel(modelInfo.model); in testFuzzGenericSoundModel()
230 loadedModelUuids.add(modelInfo.model.uuid); in testFuzzGenericSoundModel()
231 modelInfo.status = STATUS_LOADED; in testFuzzGenericSoundModel()
232 } else if (operation == 1 && modelInfo.status == STATUS_LOADED) { in testFuzzGenericSoundModel()
234 int r = soundTriggerService.startRecognition(new ParcelUuid(modelInfo.model.uuid), in testFuzzGenericSoundModel()
238 modelInfo.status = STATUS_STARTED; in testFuzzGenericSoundModel()
[all …]