Home
last modified time | relevance | path

Searched refs:SoundModel (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/media/aidl/android/media/soundtrigger_middleware/
DISoundTriggerModule.aidl21 import android.media.soundtrigger.SoundModel;
50 int loadModel(in SoundModel model); in loadModel()
DISoundTriggerInjection.aidl20 import android.media.soundtrigger.SoundModel;
107 void onSoundModelLoaded(in SoundModel model, in @nullable Phrase[] phrases, in onSoundModelLoaded()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
DTestUtil.java44 import android.media.soundtrigger.SoundModel;
61 static SoundModel createGenericSoundModel() { in createGenericSoundModel()
65 private static SoundModel createSoundModel(@SoundModelType int type) { in createSoundModel()
66 SoundModel model = new SoundModel(); in createSoundModel()
76 private static void validateSoundModel_2_1(ISoundTriggerHw.SoundModel model, int type) { in validateSoundModel_2_1()
86 static android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel dupModel_2_1( in dupModel_2_1()
87 android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel model) { in dupModel_2_1()
88 android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel dup = in dupModel_2_1()
89 new android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel(); in dupModel_2_1()
100 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel model, int type) { in validateSoundModel_2_0()
[all …]
DSoundTriggerDuplicateModelHandlerTest.java38 import android.media.soundtrigger.SoundModel;
284 private static SoundModel createSoundModelOne() { in createSoundModelOne()
285 SoundModel model = new SoundModel(); in createSoundModelOne()
296 private static SoundModel createSoundModelTwo() { in createSoundModelTwo()
297 SoundModel model = new SoundModel(); in createSoundModelTwo()
DSoundTriggerMiddlewareImplTest.java40 import android.media.soundtrigger.SoundModel;
74 SoundModel model = TestUtil.createGenericSoundModel(); in loadGenericModel()
75 ArgumentCaptor<SoundModel> modelCaptor = ArgumentCaptor.forClass(SoundModel.class); in loadGenericModel()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DValidationUtil.java27 import android.media.soundtrigger.SoundModel;
51 static void validateGenericModel(@Nullable SoundModel model) { in validateGenericModel()
55 static void validateModel(@Nullable SoundModel model, int expectedType) { in validateModel()
DHw2CompatUtil.java30 … static android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel convertSoundModel_2_1_to_2_0( in convertSoundModel_2_1_to_2_0()
31 android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel soundModel) { in convertSoundModel_2_1_to_2_0()
32 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel model_2_0 = soundModel.header; in convertSoundModel_2_1_to_2_0()
DISoundTriggerHal.java26 import android.media.soundtrigger.SoundModel;
75 int loadSoundModel(SoundModel soundModel, ModelCallback callback); in loadSoundModel()
DSoundTriggerHalMaxModelLimiter.java24 import android.media.soundtrigger.SoundModel;
73 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
DSoundTriggerHalWatchdog.java24 import android.media.soundtrigger.SoundModel;
61 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
DSoundTriggerInjection.java22 import android.media.soundtrigger.SoundModel;
160 public void onSoundModelLoaded(SoundModel model, @Nullable Phrase[] phrases, in onSoundModelLoaded()
DSoundTriggerDuplicateModelHandler.java24 import android.media.soundtrigger.SoundModel;
96 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
DConversionUtil.java41 import android.media.soundtrigger.SoundModel;
199 ISoundTriggerHw.SoundModel aidl2hidlSoundModel(@NonNull SoundModel aidlModel) { in aidl2hidlSoundModel()
200 ISoundTriggerHw.SoundModel hidlModel = new ISoundTriggerHw.SoundModel(); in aidl2hidlSoundModel()
DSoundTriggerHw2Compat.java26 import android.media.soundtrigger.SoundModel;
214 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
215 android.hardware.soundtrigger.V2_3.ISoundTriggerHw.SoundModel hidlModel = in loadSoundModel()
447 android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel soundModel, in loadSoundModel_2_0()
451 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel model_2_0 = in loadSoundModel_2_0()
DSoundTriggerModule.java25 import android.media.soundtrigger.SoundModel;
259 public int loadModel(@NonNull SoundModel model) { in loadModel()
410 private int load(@NonNull SoundModel model, in load()
DSoundTriggerHw3Compat.java30 import android.media.soundtrigger.SoundModel;
67 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
DSoundTriggerMiddlewareService.java31 import android.media.soundtrigger.SoundModel;
159 public int loadModel(SoundModel model) throws RemoteException { in loadModel()
DSoundTriggerHalEnforcer.java24 import android.media.soundtrigger.SoundModel;
81 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
DSoundTriggerMiddlewarePermission.java32 import android.media.soundtrigger.SoundModel;
227 public int loadModel(@NonNull SoundModel model) throws RemoteException { in loadModel()
DSoundTriggerHalConcurrentCaptureHandler.java25 import android.media.soundtrigger.SoundModel;
195 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java34 import android.media.soundtrigger.SoundModel;
107 public static SoundModel api2aidlGenericSoundModel(SoundTrigger.GenericSoundModel apiModel) { in api2aidlGenericSoundModel()
111 public static SoundModel api2aidlSoundModel(SoundTrigger.SoundModel apiModel) { in api2aidlSoundModel()
112 SoundModel aidlModel = new SoundModel(); in api2aidlSoundModel()
DSoundTriggerModule.java26 import android.media.soundtrigger.SoundModel;
148 public synchronized int loadSoundModel(@NonNull SoundTrigger.SoundModel model, in loadSoundModel()
152 SoundModel aidlModel = ConversionUtil.api2aidlGenericSoundModel( in loadSoundModel()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java38 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
275 private int startRecognition(SoundModel soundModel, ModelData modelData, in startRecognition()
1382 private int mModelType = SoundModel.TYPE_UNKNOWN;
1400 private SoundModel mSoundModel = null;
1413 return new ModelData(modelId, SoundModel.TYPE_KEYPHRASE); in createKeyphraseModelData()
1417 return new ModelData(modelId, SoundModel.TYPE_GENERIC_SOUND); in createGenericModelData()
1423 return new ModelData(modelId, SoundModel.TYPE_UNKNOWN); in createModelDataOfUnknownType()
1515 synchronized void setSoundModel(SoundModel soundModel) { in setSoundModel()
1519 synchronized SoundModel getSoundModel() { in getSoundModel()
1536 return mModelType == SoundModel.TYPE_KEYPHRASE; in isKeyphraseModel()
[all …]
DSoundTriggerService.java63 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
515 private final TreeMap<UUID, SoundModel> mLoadedModels = new TreeMap<>();
634 SoundModel oldModel = mLoadedModels.get(soundModel.getUuid()); in loadGenericSoundModel()
670 SoundModel oldModel = mLoadedModels.get(soundModel.getUuid()); in loadKeyphraseSoundModel()
705 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in startRecognitionForService()
727 case SoundModel.TYPE_GENERIC_SOUND: in startRecognitionForService()
765 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in stopRecognitionForService()
789 case SoundModel.TYPE_GENERIC_SOUND: in stopRecognitionForService()
828 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in unloadSoundModel()
839 case SoundModel.TYPE_KEYPHRASE: in unloadSoundModel()
[all …]
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java40 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
416 public @NonNull SoundTrigger.SoundModel getSoundModel() { in getSoundModel()
473 public int loadSoundModel(@NonNull SoundModel soundModel) { in loadSoundModel()
480 case SoundModel.TYPE_GENERIC_SOUND: in loadSoundModel()
483 case SoundModel.TYPE_KEYPHRASE: in loadSoundModel()

12