Home
last modified time | relevance | path

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

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java142 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel, in startGenericRecognition() argument
145 if (modelId == null || soundModel == null || callback == null || in startGenericRecognition()
152 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition()
346 int stopGenericRecognition(UUID modelId, IRecognitionStatusCallback callback) { in stopGenericRecognition() argument
349 if (callback == null || modelId == null) { in stopGenericRecognition()
351 modelId); in stopGenericRecognition()
355 ModelData modelData = mModelDataMap.get(modelId); in stopGenericRecognition()
357 Slog.w(TAG, "Attempting stopRecognition on invalid model with id:" + modelId); in stopGenericRecognition()
530 int unloadGenericSoundModel(UUID modelId) { in unloadGenericSoundModel() argument
533 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()
/frameworks/av/services/soundtrigger/
DSoundTriggerHalHidl.cpp153 uint32_t modelId; in loadSoundModel() local
157 modelId = nextUniqueId(); in loadSoundModel()
158 ALOGI("loadSoundModel modelId %u", modelId); in loadSoundModel()
159 sp<SoundModel> model = mSoundModels.valueFor(modelId); in loadSoundModel()
161 } while (mSoundModels.valueFor(modelId) != 0 && modelId != 0); in loadSoundModel()
163 LOG_ALWAYS_FATAL_IF(modelId == 0, in loadSoundModel()
180 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel()
194 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel()
207 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel()
219 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel()
[all …]