Home
last modified time | relevance | path

Searched refs:ModelState (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
H A DSoundTriggerMiddlewareValidation.java252 static class ModelState { class in SoundTriggerMiddlewareValidation
253 ModelState(SoundModel model) { in ModelState() method in SoundTriggerMiddlewareValidation.ModelState
257 ModelState(PhraseSoundModel model) { in ModelState() method in SoundTriggerMiddlewareValidation.ModelState
403 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 …]
H A DSoundTriggerHalEnforcer.java46 private enum ModelState { enum in SoundTriggerHalEnforcer
86 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 …]
H A DSoundTriggerModule.java217 private enum ModelState { enum in SoundTriggerModule
395 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 …]
/aosp14/frameworks/base/core/java/android/view/translation/
H A DTranslationCapability.java46 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 TranslationCapability
156 public static String modelStateToString(@ModelState int value) { in modelStateToString()
176 public @ModelState int getState() { in getState()