/frameworks/base/media/aidl/android/media/soundtrigger_middleware/ |
D | ISoundTriggerModule.aidl | 21 import android.media.soundtrigger.SoundModel; 50 int loadModel(in SoundModel model); in loadModel()
|
D | ISoundTriggerInjection.aidl | 20 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/ |
D | TestUtil.java | 44 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 …]
|
D | SoundTriggerDuplicateModelHandlerTest.java | 38 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()
|
D | SoundTriggerMiddlewareImplTest.java | 40 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/ |
D | ValidationUtil.java | 27 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()
|
D | Hw2CompatUtil.java | 30 … 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()
|
D | ISoundTriggerHal.java | 26 import android.media.soundtrigger.SoundModel; 75 int loadSoundModel(SoundModel soundModel, ModelCallback callback); in loadSoundModel()
|
D | SoundTriggerHalMaxModelLimiter.java | 24 import android.media.soundtrigger.SoundModel; 73 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
|
D | SoundTriggerHalWatchdog.java | 24 import android.media.soundtrigger.SoundModel; 61 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
|
D | SoundTriggerInjection.java | 22 import android.media.soundtrigger.SoundModel; 160 public void onSoundModelLoaded(SoundModel model, @Nullable Phrase[] phrases, in onSoundModelLoaded()
|
D | SoundTriggerDuplicateModelHandler.java | 24 import android.media.soundtrigger.SoundModel; 96 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
|
D | ConversionUtil.java | 41 import android.media.soundtrigger.SoundModel; 199 ISoundTriggerHw.SoundModel aidl2hidlSoundModel(@NonNull SoundModel aidlModel) { in aidl2hidlSoundModel() 200 ISoundTriggerHw.SoundModel hidlModel = new ISoundTriggerHw.SoundModel(); in aidl2hidlSoundModel()
|
D | SoundTriggerHw2Compat.java | 26 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()
|
D | SoundTriggerModule.java | 25 import android.media.soundtrigger.SoundModel; 259 public int loadModel(@NonNull SoundModel model) { in loadModel() 410 private int load(@NonNull SoundModel model, in load()
|
D | SoundTriggerHw3Compat.java | 30 import android.media.soundtrigger.SoundModel; 67 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
|
D | SoundTriggerMiddlewareService.java | 31 import android.media.soundtrigger.SoundModel; 159 public int loadModel(SoundModel model) throws RemoteException { in loadModel()
|
D | SoundTriggerHalEnforcer.java | 24 import android.media.soundtrigger.SoundModel; 81 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
|
D | SoundTriggerMiddlewarePermission.java | 32 import android.media.soundtrigger.SoundModel; 227 public int loadModel(@NonNull SoundModel model) throws RemoteException { in loadModel()
|
D | SoundTriggerHalConcurrentCaptureHandler.java | 25 import android.media.soundtrigger.SoundModel; 195 public int loadSoundModel(SoundModel soundModel, ModelCallback callback) { in loadSoundModel()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | ConversionUtil.java | 34 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()
|
D | SoundTriggerModule.java | 26 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/ |
D | SoundTriggerHelper.java | 38 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 …]
|
D | SoundTriggerService.java | 63 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/ |
D | SoundTriggerManager.java | 40 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()
|