Searched refs:modelId (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerUtil.java | 80 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/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 141 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel, in startGenericRecognition() argument 144 if (modelId == null || soundModel == null || callback == null || in startGenericRecognition() 151 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() 343 int stopGenericRecognition(UUID modelId, IRecognitionStatusCallback callback) { in stopGenericRecognition() argument 346 if (callback == null || modelId == null) { in stopGenericRecognition() 348 modelId); in stopGenericRecognition() 352 ModelData modelData = mModelDataMap.get(modelId); in stopGenericRecognition() 354 Slog.w(TAG, "Attempting stopRecognition on invalid model with id:" + modelId); in stopGenericRecognition() 524 int unloadGenericSoundModel(UUID modelId) { in unloadGenericSoundModel() argument 527 if (modelId == null || mModule == null) { in unloadGenericSoundModel() [all …]
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHalHidl.cpp | 153 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() 178 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() 189 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() 203 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() 213 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() [all …]
|