Home
last modified time | relevance | path

Searched refs:modelParam (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareValidation.java294 void checkSupported(int modelParam) { in checkSupported() argument
295 if (!parameterSupport.containsKey(modelParam)) { in checkSupported()
298 ModelParameterRange range = parameterSupport.get(modelParam); in checkSupported()
311 void checkSupported(int modelParam, int value) { in checkSupported() argument
312 if (!parameterSupport.containsKey(modelParam)) { in checkSupported()
315 ModelParameterRange range = parameterSupport.get(modelParam); in checkSupported()
532 public void setModelParameter(int modelHandle, int modelParam, int value) { in setModelParameter() argument
534 ValidationUtil.validateModelParameter(modelParam); in setModelParameter()
546 modelState.checkSupported(modelParam, value); in setModelParameter()
550 mDelegate.setModelParameter(modelHandle, modelParam, value); in setModelParameter()
[all …]
DSoundTriggerModule.java341 public void setModelParameter(int modelHandle, int modelParam, int value) { in setModelParameter() argument
344 mLoadedModels.get(modelHandle).setParameter(modelParam, value); in setModelParameter()
349 public int getModelParameter(int modelHandle, int modelParam) { in getModelParameter() argument
352 return mLoadedModels.get(modelHandle).getParameter(modelParam); in getModelParameter()
358 public ModelParameterRange queryModelParameterSupport(int modelHandle, int modelParam) { in queryModelParameterSupport() argument
361 return mLoadedModels.get(modelHandle).queryModelParameterSupport(modelParam); in queryModelParameterSupport()
476 private void setParameter(int modelParam, int value) { in setParameter() argument
478 ConversionUtil.aidl2hidlModelParameter(modelParam), value); in setParameter()
481 private int getParameter(int modelParam) { in getParameter() argument
483 ConversionUtil.aidl2hidlModelParameter(modelParam)); in getParameter()
[all …]
DSoundTriggerMiddlewareService.java202 public void setModelParameter(int modelHandle, int modelParam, int value) in setModelParameter() argument
205 mDelegate.setModelParameter(modelHandle, modelParam, value); in setModelParameter()
210 public int getModelParameter(int modelHandle, int modelParam) throws RemoteException { in getModelParameter() argument
212 return mDelegate.getModelParameter(modelHandle, modelParam); in getModelParameter()
217 public ModelParameterRange queryModelParameterSupport(int modelHandle, int modelParam) in queryModelParameterSupport() argument
220 return mDelegate.queryModelParameterSupport(modelHandle, modelParam); in queryModelParameterSupport()
DSoundTriggerMiddlewarePermission.java267 public void setModelParameter(int modelHandle, int modelParam, int value) in setModelParameter() argument
270 mDelegate.setModelParameter(modelHandle, modelParam, value); in setModelParameter()
274 public int getModelParameter(int modelHandle, int modelParam) throws RemoteException { in getModelParameter() argument
276 return mDelegate.getModelParameter(modelHandle, modelParam); in getModelParameter()
281 public ModelParameterRange queryModelParameterSupport(int modelHandle, int modelParam) in queryModelParameterSupport() argument
285 modelParam); in queryModelParameterSupport()
DSoundTriggerMiddlewareLogging.java291 public void setModelParameter(int modelHandle, int modelParam, int value) in setModelParameter() argument
294 mDelegate.setModelParameter(modelHandle, modelParam, value); in setModelParameter()
296 SET_MODEL_PARAMETER, modelHandle, modelParam, value) in setModelParameter()
300 SET_MODEL_PARAMETER, e, modelHandle, modelParam, value) in setModelParameter()
307 public int getModelParameter(int modelHandle, int modelParam) throws RemoteException { in getModelParameter() argument
309 int result = mDelegate.getModelParameter(modelHandle, modelParam); in getModelParameter()
311 GET_MODEL_PARAMETER, result, modelHandle, modelParam) in getModelParameter()
316 GET_MODEL_PARAMETER, e, modelHandle, modelParam) in getModelParameter()
323 public ModelParameterRange queryModelParameterSupport(int modelHandle, int modelParam) in queryModelParameterSupport() argument
327 modelParam); in queryModelParameterSupport()
[all …]
DFakeSoundTriggerHal.java534 /** ModelParameter **/ int modelParam) throws RemoteException { in queryParameter() argument
542 if (modelParam == ModelParameter.THRESHOLD_FACTOR) { in queryParameter()
554 /** ModelParameter **/ int modelParam) throws RemoteException { in getParameter() argument
561 if (modelParam != ModelParameter.THRESHOLD_FACTOR) { in getParameter()
570 /** ModelParameter **/ int modelParam, int value) throws RemoteException { in setParameter() argument
577 if ((modelParam == ModelParameter.THRESHOLD_FACTOR) in setParameter()
584 cb.onParamSet(modelParam, value, session)); in setParameter()
DValidationUtil.java108 static void validateModelParameter(int modelParam) { in validateModelParameter() argument
109 switch (modelParam) { in validateModelParameter()
DSoundTriggerInjection.java173 public void onParamSet(/** ModelParameter **/ int modelParam, int value, in onParamSet() argument
178 mClient.onParamSet(modelParam, value, modelSession); in onParamSet()
/frameworks/base/core/java/com/android/internal/app/
DIVoiceInteractionSoundTriggerSession.aidl70 int setParameter(int keyphraseId, in ModelParams modelParam, int value); in setParameter() argument
84 int getParameter(int keyphraseId, in ModelParams modelParam); in getParameter() argument
96 in ModelParams modelParam); in queryParameter() argument
DISoundTriggerSession.aidl62 int setParameter(in ParcelUuid soundModelId, in ModelParams modelParam, in setParameter() argument
65 int getParameter(in ParcelUuid soundModelId, in ModelParams modelParam); in getParameter() argument
68 in ModelParams modelParam); in queryParameter() argument
/frameworks/base/media/aidl/android/media/soundtrigger_middleware/
DISoundTriggerModule.aidl118 void setModelParameter(int modelHandle, ModelParameter modelParam, int value); in setModelParameter() argument
133 int getModelParameter(int modelHandle, ModelParameter modelParam); in getModelParameter() argument
145 ModelParameter modelParam); in queryModelParameterSupport() argument
DISoundTriggerInjection.aidl120 void onParamSet(int modelParam, int value, IInjectModelEvent modelSession); in onParamSet() argument
/frameworks/base/services/core/java/com/android/server/
DSoundTriggerInternal.java111 int setParameter(int keyphraseId, @ModelParams int modelParam, int value); in setParameter() argument
130 int getParameter(int keyphraseId, @ModelParams int modelParam); in getParameter() argument
144 @ModelParams int modelParam); in queryParameter() argument
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTriggerModule.java326 public synchronized int setParameter(int soundModelHandle, @ModelParams int modelParam, in setParameter() argument
330 ConversionUtil.api2aidlModelParameter(modelParam), value); in setParameter()
349 public synchronized int getParameter(int soundModelHandle, @ModelParams int modelParam) { in getParameter() argument
352 ConversionUtil.api2aidlModelParameter(modelParam)); in getParameter()
368 @ModelParams int modelParam) { in queryParameter() argument
372 ConversionUtil.api2aidlModelParameter(modelParam))); in queryParameter()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java657 public int setParameter(UUID modelId, @ModelParams int modelParam, int value) { in setParameter() argument
662 return setParameterLocked(mModelDataMap.get(modelId), modelParam, value); in setParameter()
666 public int setKeyphraseParameter(int keyphraseId, @ModelParams int modelParam, int value) { in setKeyphraseParameter() argument
671 return setParameterLocked(getKeyphraseModelDataLocked(keyphraseId), modelParam, value); in setKeyphraseParameter()
675 private int setParameterLocked(@Nullable ModelData modelData, @ModelParams int modelParam, in setParameterLocked() argument
686 return mModule.setParameter(modelData.getHandle(), modelParam, value); in setParameterLocked()
689 public int getParameter(@NonNull UUID modelId, @ModelParams int modelParam) { in getParameter() argument
694 return getParameterLocked(mModelDataMap.get(modelId), modelParam); in getParameter()
698 public int getKeyphraseParameter(int keyphraseId, @ModelParams int modelParam) { in getKeyphraseParameter() argument
703 return getParameterLocked(getKeyphraseModelDataLocked(keyphraseId), modelParam); in getKeyphraseParameter()
[all …]
DSoundTriggerService.java932 @ModelParams int modelParam, int value) { in setParameter() argument
947 soundModel.getUuid(), modelParam, value); in setParameter()
954 @ModelParams int modelParam) in getParameter() argument
963 return mSoundTriggerHelper.getParameter(soundModel.getUuid(), modelParam); in getParameter()
971 @ModelParams int modelParam) { in queryParameter() argument
979 return mSoundTriggerHelper.queryParameter(soundModel.getUuid(), modelParam); in queryParameter()
1756 public int setParameter(int keyphraseId, @ModelParams int modelParam, int value) { in setParameter() argument
1759 return mSoundTriggerHelper.setKeyphraseParameter(keyphraseId, modelParam, value); in setParameter()
1763 public int getParameter(int keyphraseId, @ModelParams int modelParam) { in getParameter() argument
1764 return mSoundTriggerHelper.getKeyphraseParameter(keyphraseId, modelParam); in getParameter()
[all …]
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java1238 public int setParameter(@ModelParams int modelParam, int value) { in setParameter() argument
1240 Slog.d(TAG, "setParameter(" + modelParam + ", " + value + ")"); in setParameter()
1249 return setParameterLocked(modelParam, value); in setParameter()
1270 public int getParameter(@ModelParams int modelParam) { in getParameter() argument
1272 Slog.d(TAG, "getParameter(" + modelParam + ")"); in getParameter()
1281 return getParameterLocked(modelParam); in getParameter()
1300 public ModelParamRange queryParameter(@ModelParams int modelParam) { in queryParameter() argument
1302 Slog.d(TAG, "queryParameter(" + modelParam + ")"); in queryParameter()
1311 return queryParameterLocked(modelParam); in queryParameter()
1568 private int setParameterLocked(@ModelParams int modelParam, int value) { in setParameterLocked() argument
[all …]
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java659 @ModelParams int modelParam, int value) { in setParameter() argument
666 new ParcelUuid(Objects.requireNonNull(soundModelId)), modelParam, in setParameter()
687 @ModelParams int modelParam) { in getParameter() argument
693 new ParcelUuid(Objects.requireNonNull(soundModelId)), modelParam); in getParameter()
711 @ModelParams int modelParam) { in queryParameter() argument
717 new ParcelUuid(Objects.requireNonNull(soundModelId)), modelParam); in queryParameter()
DSoundTriggerInstrumentation.java505 public void onParamSet(int modelParam, int value, IInjectModelEvent modelSession) { in onParamSet() argument
509 clientModelSession.wrap((ModelCallback cb) -> cb.onParamSet(modelParam, value)); in onParamSet()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java1935 public int setParameter(int keyphraseId, @ModelParams int modelParam, int value) { in setParameter() argument
1943 return mSession.setParameter(keyphraseId, modelParam, value); in setParameter()
1950 public int getParameter(int keyphraseId, @ModelParams int modelParam) { in getParameter() argument
1958 return mSession.getParameter(keyphraseId, modelParam); in getParameter()
1966 public ModelParamRange queryParameter(int keyphraseId, @ModelParams int modelParam) { in queryParameter() argument
1974 return mSession.queryParameter(keyphraseId, modelParam); in queryParameter()