Searched refs:ModelState (Results 1 – 4 of 4) sorted by relevance
252 static class ModelState { class in SoundTriggerMiddlewareValidation253 ModelState(SoundModel model) { in ModelState() method in SoundTriggerMiddlewareValidation.ModelState257 ModelState(PhraseSoundModel model) { in ModelState() method in SoundTriggerMiddlewareValidation.ModelState403 ModelState modelState = mLoadedModels.get( in unloadModel()439 ModelState modelState = mLoadedModels.get( in startRecognition()473 ModelState modelState = mLoadedModels.get( in stopRecognition()511 ModelState modelState = mLoadedModels.get( in forceRecognitionEvent()541 ModelState modelState = mLoadedModels.get( in setModelParameter()567 ModelState modelState = mLoadedModels.get( in getModelParameter()594 ModelState modelState = mLoadedModels.get( in queryModelParameterSupport()[all …]
46 private enum ModelState { enum in SoundTriggerHalEnforcer86 mModelStates.put(handle, ModelState.INACTIVE); in loadSoundModel()100 mModelStates.put(handle, ModelState.INACTIVE); in loadPhraseSoundModel()138 mModelStates.replace(modelHandle, ModelState.INACTIVE); in stopRecognition()151 mModelStates.replace(modelHandle, ModelState.ACTIVE); in startRecognition()258 ModelState state = mModelStates.get(model); in recognitionCallback()274 mModelStates.replace(model, ModelState.INACTIVE); in recognitionCallback()284 ModelState state = mModelStates.get(model); in phraseRecognitionCallback()300 mModelStates.replace(model, ModelState.INACTIVE); in phraseRecognitionCallback()310 ModelState state = mModelStates.get(modelHandle); in modelUnloaded()[all …]
217 private enum ModelState { enum in SoundTriggerModule395 private ModelState mState = ModelState.INIT;401 ModelState getState() { in getState()414 setState(ModelState.LOADED); in load()424 setState(ModelState.LOADED); in load()446 setState(ModelState.ACTIVE); in startRecognition()452 if (getState() == ModelState.LOADED) { in stopRecognition()462 setState(ModelState.LOADED); in stopRecognition()468 if (getState() != ModelState.ACTIVE) { in forceRecognitionEvent()501 setState(ModelState.LOADED); in recognitionCallback()[all …]
46 public static final @ModelState int STATE_AVAILABLE_TO_DOWNLOAD = 1;51 public static final @ModelState int STATE_DOWNLOADING = 2;56 public static final @ModelState int STATE_ON_DEVICE = 3;66 public static final @ModelState int STATE_NOT_AVAILABLE = 4;73 public static final @ModelState int STATE_REMOVED_AND_AVAILABLE = 1000;78 private final @ModelState int mState;114 public TranslationCapability(@ModelState int state, @NonNull TranslationSpec sourceSpec, in TranslationCapability()152 public @interface ModelState {} annotation in TranslationCapability156 public static String modelStateToString(@ModelState int value) { in modelStateToString()176 public @ModelState int getState() { in getState()