Home
last modified time | relevance | path

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

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java181 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel, in startGenericRecognition() argument
184 if (modelId == null || soundModel == null || callback == null || in startGenericRecognition()
191 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition()
398 int stopGenericRecognition(UUID modelId, IRecognitionStatusCallback callback) { in stopGenericRecognition() argument
401 if (callback == null || modelId == null) { in stopGenericRecognition()
403 modelId); in stopGenericRecognition()
407 ModelData modelData = mModelDataMap.get(modelId); in stopGenericRecognition()
409 Slog.w(TAG, "Attempting stopRecognition on invalid model with id:" + modelId); in stopGenericRecognition()
583 int unloadGenericSoundModel(UUID modelId) { in unloadGenericSoundModel() argument
586 if (modelId == null || mModule == null) { in unloadGenericSoundModel()
[all …]
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerUtil.java80 public GenericSoundModel getSoundModel(UUID modelId) { in getSoundModel() argument
83 model = mSoundTriggerService.getSoundModel(new ParcelUuid(modelId)); in getSoundModel()
102 public boolean deleteSoundModel(UUID modelId) { in deleteSoundModel() argument
104 mSoundTriggerService.deleteSoundModel(new ParcelUuid(modelId)); in deleteSoundModel()
112 public SoundTriggerDetector createSoundTriggerDetector(UUID modelId, in createSoundTriggerDetector() argument
114 return mSoundTriggerManager.createSoundTriggerDetector(modelId, callback, null); in createSoundTriggerDetector()