Searched refs:modelId (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerUtil.java | 93 public SoundTriggerManager.Model getSoundModel(UUID modelId) { in getSoundModel() argument 95 model = mSoundTriggerManager.getModel(modelId); in getSoundModel() 111 public boolean deleteSoundModel(UUID modelId) { in deleteSoundModel() argument 112 mSoundTriggerManager.deleteModel(modelId); in deleteSoundModel() 122 public int getModelState(UUID modelId) { in getModelState() argument 123 return mSoundTriggerManager.getModelState(modelId); in getModelState() 126 public SoundTriggerDetector createSoundTriggerDetector(UUID modelId, in createSoundTriggerDetector() argument 128 return mSoundTriggerManager.createSoundTriggerDetector(modelId, callback, null); in createSoundTriggerDetector()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 152 public int startGenericRecognition(UUID modelId, GenericSoundModel soundModel, in startGenericRecognition() argument 156 if (modelId == null || soundModel == null || callback == null || in startGenericRecognition() 166 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition() 367 public int stopGenericRecognition(UUID modelId, IRecognitionStatusCallback callback) { in stopGenericRecognition() argument 370 if (callback == null || modelId == null) { in stopGenericRecognition() 372 modelId); in stopGenericRecognition() 378 ModelData modelData = mModelDataMap.get(modelId); in stopGenericRecognition() 380 Slog.w(TAG, "Attempting stopRecognition on invalid model with id:" + modelId); in stopGenericRecognition() 555 public int unloadGenericSoundModel(UUID modelId) { in unloadGenericSoundModel() argument 558 if (modelId == null || mModule == null) { in unloadGenericSoundModel() [all …]
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerDuplicateModelHandlerTest.java | 241 int modelId = 5; in testDelegation() local 245 mComponent.startRecognition(modelId, deviceHandle, ioHandle, config); in testDelegation() 247 .startRecognition(eq(modelId), eq(deviceHandle), eq(ioHandle), eq(config)); in testDelegation() 249 mComponent.stopRecognition(modelId); in testDelegation() 250 inOrder.verify(mUnderlying).stopRecognition(eq(modelId)); in testDelegation() 251 mComponent.forceRecognitionEvent(modelId); in testDelegation() 252 inOrder.verify(mUnderlying).forceRecognitionEvent(eq(modelId)); in testDelegation() 260 assertEquals(mComponent.getModelParameter(modelId, param), value); in testDelegation() 261 inOrder.verify(mUnderlying).getModelParameter(eq(modelId), eq(param)); in testDelegation() 262 mComponent.setModelParameter(modelId, param, value); in testDelegation() [all …]
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerDuplicateModelHandler.java | 44 ModelData(int modelId, String uuid) { in ModelData() argument 45 mModelId = modelId; in ModelData()
|