Searched refs:mLoadedModels (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerMiddlewareValidation.java | 330 private final @NonNull Map<Integer, ModelState> mLoadedModels = new HashMap<>(); field in SoundTriggerMiddlewareValidation.Session 365 mLoadedModels.put(handle, new ModelState(model)); in loadModel() 387 mLoadedModels.put(handle, new ModelState(model)); in loadPhraseModel() 403 ModelState modelState = mLoadedModels.get( in unloadModel() 425 mLoadedModels.remove(modelHandle); in unloadModel() 439 ModelState modelState = mLoadedModels.get( in startRecognition() 473 ModelState modelState = mLoadedModels.get( in stopRecognition() 489 ModelState modelState = mLoadedModels.get(modelHandle); in stopRecognition() 511 ModelState modelState = mLoadedModels.get( in forceRecognitionEvent() 541 ModelState modelState = mLoadedModels.get( in setModelParameter() [all …]
|
D | SoundTriggerModule.java | 234 private final Map<Integer, Model> mLoadedModels = new HashMap<>(); field in SoundTriggerModule.Session 309 sessionId = mLoadedModels.get(modelHandle).unload(); in unloadModel() 318 return mLoadedModels.get(modelHandle).startRecognition(config); in startRecognition() 327 model = mLoadedModels.get(modelHandle); in stopRecognition() 336 mLoadedModels.get(modelHandle).forceRecognitionEvent(); in forceRecognitionEvent() 344 mLoadedModels.get(modelHandle).setParameter(modelParam, value); in setModelParameter() 352 return mLoadedModels.get(modelHandle).getParameter(modelParam); in getModelParameter() 361 return mLoadedModels.get(modelHandle).queryModelParameterSupport(modelParam); in queryModelParameterSupport() 415 mLoadedModels.put(mHandle, this); in load() 425 mLoadedModels.put(mHandle, this); in load() [all …]
|
D | SoundTriggerHalConcurrentCaptureHandler.java | 93 @NonNull private final Map<Integer, LoadedModel> mLoadedModels = new ConcurrentHashMap<>(); field in SoundTriggerHalConcurrentCaptureHandler 188 LoadedModel model = mLoadedModels.get(toStop); in abortAllActiveModels() 197 mLoadedModels.put(handle, new LoadedModel(SoundModelType.GENERIC, callback)); in loadSoundModel() 205 mLoadedModels.put(handle, new LoadedModel(SoundModelType.KEYPHRASE, callback)); in loadPhraseSoundModel() 211 mLoadedModels.remove(modelHandle); in unloadSoundModel()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerService.java | 515 private final TreeMap<UUID, SoundModel> mLoadedModels = new TreeMap<>(); field in SoundTriggerService.SoundTriggerSessionStub 634 SoundModel oldModel = mLoadedModels.get(soundModel.getUuid()); in loadGenericSoundModel() 644 mLoadedModels.put(soundModel.getUuid(), soundModel); in loadGenericSoundModel() 670 SoundModel oldModel = mLoadedModels.get(soundModel.getUuid()); in loadKeyphraseSoundModel() 681 mLoadedModels.put(soundModel.getUuid(), soundModel); in loadKeyphraseSoundModel() 705 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in startRecognitionForService() 765 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in stopRecognitionForService() 828 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in unloadSoundModel() 862 mLoadedModels.remove(soundModelId.getUuid()); in unloadSoundModel() 890 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in getModelState() [all …]
|