/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerMiddlewareLogging.java | 140 public void onRecognition(int modelHandle, RecognitionEvent event) throws RemoteException { in onRecognition() argument 142 mDelegate.onRecognition(modelHandle, event); in onRecognition() 143 logVoidReturn("onRecognition", modelHandle, event); in onRecognition() 145 logException("onRecognition", e, modelHandle, event); in onRecognition() 151 public void onPhraseRecognition(int modelHandle, PhraseRecognitionEvent event) in onPhraseRecognition() argument 154 mDelegate.onPhraseRecognition(modelHandle, event); in onPhraseRecognition() 155 logVoidReturn("onPhraseRecognition", modelHandle, event); in onPhraseRecognition() 157 logException("onPhraseRecognition", e, modelHandle, event); in onPhraseRecognition() 236 public void unloadModel(int modelHandle) throws RemoteException { in unloadModel() argument 238 mDelegate.unloadModel(modelHandle); in unloadModel() [all …]
|
D | SoundTriggerMiddlewareService.java | 120 public void unloadModel(int modelHandle) throws RemoteException { in unloadModel() argument 121 mDelegate.unloadModel(modelHandle); in unloadModel() 125 public void startRecognition(int modelHandle, RecognitionConfig config) in startRecognition() argument 127 mDelegate.startRecognition(modelHandle, config); in startRecognition() 131 public void stopRecognition(int modelHandle) throws RemoteException { in stopRecognition() argument 132 mDelegate.stopRecognition(modelHandle); in stopRecognition() 136 public void forceRecognitionEvent(int modelHandle) throws RemoteException { in forceRecognitionEvent() argument 137 mDelegate.forceRecognitionEvent(modelHandle); in forceRecognitionEvent() 141 public void setModelParameter(int modelHandle, int modelParam, int value) in setModelParameter() argument 143 mDelegate.setModelParameter(modelHandle, modelParam, value); in setModelParameter() [all …]
|
D | SoundTriggerHw2Enforcer.java | 91 public void unloadSoundModel(int modelHandle) { in unloadSoundModel() argument 93 mUnderlying.unloadSoundModel(modelHandle); in unloadSoundModel() 95 mModelStates.remove(modelHandle); in unloadSoundModel() 103 public void stopRecognition(int modelHandle) { in stopRecognition() argument 105 mUnderlying.stopRecognition(modelHandle); in stopRecognition() 107 mModelStates.replace(modelHandle, false); in stopRecognition() 129 public void startRecognition(int modelHandle, RecognitionConfig config, Callback callback, in startRecognition() argument 132 mUnderlying.startRecognition(modelHandle, config, new CallbackEnforcer(callback), in startRecognition() 135 mModelStates.replace(modelHandle, true); in startRecognition() 143 public void getModelState(int modelHandle) { in getModelState() argument [all …]
|
D | SoundTriggerMiddlewareValidation.java | 481 public void unloadModel(int modelHandle) { in unloadModel() argument 492 modelHandle); in unloadModel() 494 throw new IllegalStateException("Invalid handle: " + modelHandle); in unloadModel() 497 throw new IllegalStateException("Model with handle: " + modelHandle in unloadModel() 503 mDelegate.unloadModel(modelHandle); in unloadModel() 504 mLoadedModels.remove(modelHandle); in unloadModel() 512 public void startRecognition(int modelHandle, @NonNull RecognitionConfig config) { in startRecognition() argument 524 modelHandle); in startRecognition() 526 throw new IllegalStateException("Invalid handle: " + modelHandle); in startRecognition() 529 throw new IllegalStateException("Model with handle: " + modelHandle in startRecognition() [all …]
|
D | ISoundTriggerHw2.java | 82 void unloadSoundModel(int modelHandle); in unloadSoundModel() argument 87 void stopRecognition(int modelHandle); in stopRecognition() argument 99 void startRecognition(int modelHandle, in startRecognition() argument 106 void getModelState(int modelHandle); in getModelState() argument 112 int getModelParameter(int modelHandle, int param); in getModelParameter() argument 117 void setModelParameter(int modelHandle, int param, int value); in setModelParameter() argument 124 ModelParameterRange queryParameter(int modelHandle, int param); in queryParameter() argument
|
D | SoundTriggerHw2Compat.java | 188 public void unloadSoundModel(int modelHandle) { in unloadSoundModel() argument 190 int retval = as2_0().unloadSoundModel(modelHandle); in unloadSoundModel() 198 public void stopRecognition(int modelHandle) { in stopRecognition() argument 200 int retval = as2_0().stopRecognition(modelHandle); in stopRecognition() 219 public void startRecognition(int modelHandle, in startRecognition() argument 224 int retval = as2_3().startRecognition_2_3(modelHandle, config); in startRecognition() 228 startRecognition_2_1(modelHandle, config, callback, cookie); in startRecognition() 236 public void getModelState(int modelHandle) { in getModelState() argument 238 int retval = as2_2().getModelState(modelHandle); in getModelState() 248 public int getModelParameter(int modelHandle, int param) { in getModelParameter() argument [all …]
|
D | SoundTriggerModule.java | 328 public void unloadModel(int modelHandle) { in unloadModel() argument 332 sessionId = mLoadedModels.get(modelHandle).unload(); in unloadModel() 342 public void startRecognition(int modelHandle, @NonNull RecognitionConfig config) { in startRecognition() argument 350 mLoadedModels.get(modelHandle).startRecognition(config, callbacks); in startRecognition() 359 public void stopRecognition(int modelHandle) { in stopRecognition() argument 361 mLoadedModels.get(modelHandle).stopRecognition(); in stopRecognition() 366 public void forceRecognitionEvent(int modelHandle) { in forceRecognitionEvent() argument 369 mLoadedModels.get(modelHandle).forceRecognitionEvent(); in forceRecognitionEvent() 374 public void setModelParameter(int modelHandle, int modelParam, int value) { in setModelParameter() argument 377 mLoadedModels.get(modelHandle).setParameter(modelParam, value); in setModelParameter() [all …]
|
/frameworks/base/media/java/android/media/soundtrigger_middleware/ |
D | ISoundTriggerModule.aidl | 68 void unloadModel(int modelHandle); in unloadModel() argument 79 void startRecognition(int modelHandle, in RecognitionConfig config); in startRecognition() argument 86 void stopRecognition(int modelHandle); in stopRecognition() argument 99 void forceRecognitionEvent(int modelHandle); in forceRecognitionEvent() argument 113 void setModelParameter(int modelHandle, ModelParameter modelParam, int value); in setModelParameter() argument 128 int getModelParameter(int modelHandle, ModelParameter modelParam); in getModelParameter() argument 139 @nullable ModelParameterRange queryModelParameterSupport(int modelHandle, in queryModelParameterSupport() argument
|
D | ISoundTriggerCallback.aidl | 32 void onRecognition(int modelHandle, in RecognitionEvent event); in onRecognition() argument 38 void onPhraseRecognition(int modelHandle, in PhraseRecognitionEvent event); in onPhraseRecognition() argument
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | ConversionUtil.java | 197 int modelHandle, RecognitionEvent aidlEvent) { in aidl2apiRecognitionEvent() argument 203 modelHandle, aidlEvent.captureAvailable, aidlEvent.captureSession, in aidl2apiRecognitionEvent() 209 int modelHandle, in aidl2apiPhraseRecognitionEvent() argument 219 return new SoundTrigger.KeyphraseRecognitionEvent(aidlEvent.common.status, modelHandle, in aidl2apiPhraseRecognitionEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerMiddlewareImplTest.java | 1286 int modelHandle = loadGenericModel(module, hwHandle).first; in testParameterSupported() local 1302 ModelParameterRange range = module.queryModelParameterSupport(modelHandle, in testParameterSupported() 1322 int modelHandle = loadGenericModel(module, hwHandle).first; in testParameterNotSupportedOld() local 1324 ModelParameterRange range = module.queryModelParameterSupport(modelHandle, in testParameterNotSupportedOld() 1343 int modelHandle = loadGenericModel(module, hwHandle).first; in testParameterNotSupported() local 1354 ModelParameterRange range = module.queryModelParameterSupport(modelHandle, in testParameterNotSupported() 1376 int modelHandle = loadGenericModel(module, hwHandle).first; in testGetParameter() local 1387 int value = module.getModelParameter(modelHandle, ModelParameter.THRESHOLD_FACTOR); in testGetParameter() 1408 int modelHandle = loadGenericModel(module, hwHandle).first; in testSetParameter() local 1414 module.setModelParameter(modelHandle, ModelParameter.THRESHOLD_FACTOR, 456); in testSetParameter()
|
/frameworks/ml/nn/runtime/test/ |
D | TestIntrospectionControl.cpp | 167 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in isSupportedOpListExpected() local 170 modelHandle, mDevices.data(), mDevices.size(), supported), in isSupportedOpListExpected() 176 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in prepareForExecution() local 177 int result = ANeuralNetworksCompilation_createForDevices(modelHandle, mDevices.data(), in prepareForExecution() 1229 ANeuralNetworksModel* modelHandle = mModel.getHandle(); in TEST_F() local 1230 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(modelHandle, mDevices.data(), in TEST_F()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 1251 private ModelData getModelDataForLocked(int modelHandle) { in getModelDataForLocked() argument 1254 if (model.getHandle() == modelHandle) { in getModelDataForLocked()
|