Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareValidation.java351 void checkSupported(int modelParam) { in checkSupported() argument
352 if (!parameterSupport.containsKey(modelParam)) { in checkSupported()
355 ModelParameterRange range = parameterSupport.get(modelParam); in checkSupported()
368 void checkSupported(int modelParam, int value) { in checkSupported() argument
369 if (!parameterSupport.containsKey(modelParam)) { in checkSupported()
372 ModelParameterRange range = parameterSupport.get(modelParam); in checkSupported()
386 void updateParameterSupport(int modelParam, @Nullable ModelParameterRange range) { in updateParameterSupport() argument
387 parameterSupport.put(modelParam, range); in updateParameterSupport()
604 public void setModelParameter(int modelHandle, int modelParam, int value) { in setModelParameter() argument
608 ValidationUtil.validateModelParameter(modelParam); in setModelParameter()
[all …]
DSoundTriggerMiddlewareService.java141 public void setModelParameter(int modelHandle, int modelParam, int value) in setModelParameter() argument
143 mDelegate.setModelParameter(modelHandle, modelParam, value); in setModelParameter()
147 public int getModelParameter(int modelHandle, int modelParam) throws RemoteException { in getModelParameter() argument
148 return mDelegate.getModelParameter(modelHandle, modelParam); in getModelParameter()
152 public ModelParameterRange queryModelParameterSupport(int modelHandle, int modelParam) in queryModelParameterSupport() argument
154 return mDelegate.queryModelParameterSupport(modelHandle, modelParam); in queryModelParameterSupport()
DSoundTriggerMiddlewareLogging.java281 public void setModelParameter(int modelHandle, int modelParam, int value) in setModelParameter() argument
284 mDelegate.setModelParameter(modelHandle, modelParam, value); in setModelParameter()
285 logVoidReturn("setModelParameter", modelHandle, modelParam, value); in setModelParameter()
287 logException("setModelParameter", e, modelHandle, modelParam, value); in setModelParameter()
293 public int getModelParameter(int modelHandle, int modelParam) throws RemoteException { in getModelParameter() argument
295 int result = mDelegate.getModelParameter(modelHandle, modelParam); in getModelParameter()
296 logReturn("getModelParameter", result, modelHandle, modelParam); in getModelParameter()
299 logException("getModelParameter", e, modelHandle, modelParam); in getModelParameter()
305 public ModelParameterRange queryModelParameterSupport(int modelHandle, int modelParam) in queryModelParameterSupport() argument
309 modelParam); in queryModelParameterSupport()
[all …]
DSoundTriggerModule.java374 public void setModelParameter(int modelHandle, int modelParam, int value) { in setModelParameter() argument
377 mLoadedModels.get(modelHandle).setParameter(modelParam, value); in setModelParameter()
382 public int getModelParameter(int modelHandle, int modelParam) { in getModelParameter() argument
385 return mLoadedModels.get(modelHandle).getParameter(modelParam); in getModelParameter()
391 public ModelParameterRange queryModelParameterSupport(int modelHandle, int modelParam) { in queryModelParameterSupport() argument
394 return mLoadedModels.get(modelHandle).queryModelParameterSupport(modelParam); in queryModelParameterSupport()
534 private void setParameter(int modelParam, int value) { in setParameter() argument
536 ConversionUtil.aidl2hidlModelParameter(modelParam), value); in setParameter()
539 private int getParameter(int modelParam) { in getParameter() argument
541 ConversionUtil.aidl2hidlModelParameter(modelParam)); in getParameter()
[all …]
DValidationUtil.java109 static void validateModelParameter(int modelParam) { in validateModelParameter() argument
110 switch (modelParam) { in validateModelParameter()
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java580 public int setParameter(@ModelParams int modelParam, int value) { in setParameter() argument
582 Slog.d(TAG, "setParameter(" + modelParam + ", " + value + ")"); in setParameter()
590 return setParameterLocked(modelParam, value); in setParameter()
607 public int getParameter(@ModelParams int modelParam) { in getParameter() argument
609 Slog.d(TAG, "getParameter(" + modelParam + ")"); in getParameter()
617 return getParameterLocked(modelParam); in getParameter()
632 public ModelParamRange queryParameter(@ModelParams int modelParam) { in queryParameter() argument
634 Slog.d(TAG, "queryParameter(" + modelParam + ")"); in queryParameter()
642 return queryParameterLocked(modelParam); in queryParameter()
814 private int setParameterLocked(@ModelParams int modelParam, int value) { in setParameterLocked() argument
[all …]
/frameworks/base/media/java/android/media/soundtrigger_middleware/
DISoundTriggerModule.aidl113 void setModelParameter(int modelHandle, ModelParameter modelParam, int value); in setModelParameter() argument
128 int getModelParameter(int modelHandle, ModelParameter modelParam); in getModelParameter() argument
140 ModelParameter modelParam); in queryModelParameterSupport() argument
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerInternal.java90 public abstract int setParameter(int keyphraseId, @ModelParams int modelParam, int value); in setParameter() argument
109 public abstract int getParameter(int keyphraseId, @ModelParams int modelParam); in getParameter() argument
123 @ModelParams int modelParam); in queryParameter() argument
DSoundTriggerHelper.java661 int setParameter(UUID modelId, @ModelParams int modelParam, int value) { in setParameter() argument
663 return setParameterLocked(mModelDataMap.get(modelId), modelParam, value); in setParameter()
667 int setKeyphraseParameter(int keyphraseId, @ModelParams int modelParam, int value) { in setKeyphraseParameter() argument
669 return setParameterLocked(getKeyphraseModelDataLocked(keyphraseId), modelParam, value); in setKeyphraseParameter()
673 private int setParameterLocked(@Nullable ModelData modelData, @ModelParams int modelParam, in setParameterLocked() argument
684 return mModule.setParameter(modelData.getHandle(), modelParam, value); in setParameterLocked()
687 int getParameter(@NonNull UUID modelId, @ModelParams int modelParam) { in getParameter() argument
689 return getParameterLocked(mModelDataMap.get(modelId), modelParam); in getParameter()
693 int getKeyphraseParameter(int keyphraseId, @ModelParams int modelParam) { in getKeyphraseParameter() argument
695 return getParameterLocked(getKeyphraseModelDataLocked(keyphraseId), modelParam); in getKeyphraseParameter()
[all …]
DSoundTriggerService.java707 @ModelParams int modelParam, int value) { in setParameter() argument
712 + ", param=" + modelParam in setParameter()
718 + ", param=" + modelParam in setParameter()
733 return mSoundTriggerHelper.setParameter(soundModel.getUuid(), modelParam, value); in setParameter()
739 @ModelParams int modelParam) in getParameter() argument
747 + ", param=" + modelParam); in getParameter()
752 + ", param=" + modelParam)); in getParameter()
765 return mSoundTriggerHelper.getParameter(soundModel.getUuid(), modelParam); in getParameter()
772 @ModelParams int modelParam) { in queryParameter() argument
777 + ", param=" + modelParam); in queryParameter()
[all …]
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTriggerModule.java236 public synchronized int setParameter(int soundModelHandle, @ModelParams int modelParam, in setParameter() argument
240 ConversionUtil.api2aidlModelParameter(modelParam), value); in setParameter()
259 public synchronized int getParameter(int soundModelHandle, @ModelParams int modelParam) { in getParameter() argument
262 ConversionUtil.api2aidlModelParameter(modelParam)); in getParameter()
278 @ModelParams int modelParam) { in queryParameter() argument
282 ConversionUtil.api2aidlModelParameter(modelParam))); in queryParameter()
/frameworks/base/core/java/com/android/internal/app/
DISoundTriggerService.aidl61 int setParameter(in ParcelUuid soundModelId, in ModelParams modelParam, in setParameter() argument
64 int getParameter(in ParcelUuid soundModelId, in ModelParams modelParam); in getParameter() argument
67 in ModelParams modelParam); in queryParameter() argument
DIVoiceInteractionManagerService.aidl149 int setParameter(int keyphraseId, in ModelParams modelParam, int value); in setParameter() argument
163 int getParameter(int keyphraseId, in ModelParams modelParam); in getParameter() argument
175 in ModelParams modelParam); in queryParameter() argument
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java482 @ModelParams int modelParam, int value) { in setParameter() argument
484 return mSoundTriggerService.setParameter(new ParcelUuid(soundModelId), modelParam, in setParameter()
505 @ModelParams int modelParam) { in getParameter() argument
507 return mSoundTriggerService.getParameter(new ParcelUuid(soundModelId), modelParam); in getParameter()
525 @ModelParams int modelParam) { in queryParameter() argument
527 return mSoundTriggerService.queryParameter(new ParcelUuid(soundModelId), modelParam); in queryParameter()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java1161 public int setParameter(int keyphraseId, @ModelParams int modelParam, int value) { in setParameter() argument
1169 return mSoundTriggerInternal.setParameter(keyphraseId, modelParam, value); in setParameter()
1176 public int getParameter(int keyphraseId, @ModelParams int modelParam) { in getParameter() argument
1184 return mSoundTriggerInternal.getParameter(keyphraseId, modelParam); in getParameter()
1192 public ModelParamRange queryParameter(int keyphraseId, @ModelParams int modelParam) { in queryParameter() argument
1200 return mSoundTriggerInternal.queryParameter(keyphraseId, modelParam); in queryParameter()