Home
last modified time | relevance | path

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

12

/frameworks/base/media/java/android/media/soundtrigger_middleware/
DPhraseSoundModel.aidl18 import android.media.soundtrigger_middleware.SoundModel;
29 SoundModel common;
DISoundTriggerModule.aidl20 import android.media.soundtrigger_middleware.SoundModel;
49 int loadModel(in SoundModel model); in loadModel()
DSoundModel.aidl25 parcelable SoundModel {
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DValidationUtil.java27 import android.media.soundtrigger_middleware.SoundModel;
54 static void validateGenericModel(@Nullable SoundModel model) { in validateGenericModel()
58 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()
DSoundTriggerMiddlewareService.java28 import android.media.soundtrigger_middleware.SoundModel;
110 public int loadModel(SoundModel model) throws RemoteException { in loadModel()
DSoundTriggerModule.java32 import android.media.soundtrigger_middleware.SoundModel;
273 public int loadModel(@NonNull SoundModel model) { in loadModel()
464 private int load(@NonNull SoundModel model, in load()
468 ISoundTriggerHw.SoundModel hidlModel = ConversionUtil.aidl2hidlSoundModel(model); in load()
DConversionUtil.java39 import android.media.soundtrigger_middleware.SoundModel;
194 ISoundTriggerHw.SoundModel aidl2hidlSoundModel(@NonNull SoundModel aidlModel) { in aidl2hidlSoundModel()
195 ISoundTriggerHw.SoundModel hidlModel = new ISoundTriggerHw.SoundModel(); in aidl2hidlSoundModel()
DISoundTriggerHw2.java67 android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel soundModel, in loadSoundModel()
DSoundTriggerHw2Compat.java140 android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel soundModel, in loadSoundModel()
335 android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel soundModel, in loadSoundModel_2_0()
339 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel model_2_0 = in loadSoundModel_2_0()
DSoundTriggerMiddlewareValidation.java33 import android.media.soundtrigger_middleware.SoundModel;
317 ModelState(SoundModel model) { in ModelState()
433 public int loadModel(@NonNull SoundModel model) { in loadModel()
DSoundTriggerMiddlewareLogging.java29 import android.media.soundtrigger_middleware.SoundModel;
212 public int loadModel(SoundModel model) throws RemoteException { in loadModel()
DSoundTriggerHw2Enforcer.java60 public int loadSoundModel(ISoundTriggerHw.SoundModel soundModel, Callback callback, in loadSoundModel()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java52 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
108 private final TreeMap<UUID, SoundModel> mLoadedModels;
195 mLoadedModels = new TreeMap<UUID, SoundModel>(); in SoundTriggerService()
380 SoundModel oldModel = mLoadedModels.get(soundModel.getUuid()); in loadGenericSoundModel()
424 SoundModel oldModel = mLoadedModels.get(soundModel.getUuid()); in loadKeyphraseSoundModel()
464 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in startRecognitionForService()
488 case SoundModel.TYPE_GENERIC_SOUND: in startRecognitionForService()
530 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in stopRecognitionForService()
555 case SoundModel.TYPE_GENERIC_SOUND: in stopRecognitionForService()
597 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in unloadSoundModel()
[all …]
DSoundTriggerHelper.java38 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
309 int startRecognition(SoundModel soundModel, ModelData modelData, in startRecognition()
1431 private int mModelType = SoundModel.TYPE_UNKNOWN;
1441 private SoundModel mSoundModel = null;
1451 return new ModelData(modelId, SoundModel.TYPE_KEYPHRASE); in createKeyphraseModelData()
1455 return new ModelData(modelId, SoundModel.TYPE_GENERIC_SOUND); in createGenericModelData()
1461 return new ModelData(modelId, SoundModel.TYPE_UNKNOWN); in createModelDataOfUnknownType()
1536 synchronized void setSoundModel(SoundModel soundModel) { in setSoundModel()
1540 synchronized SoundModel getSoundModel() { in getSoundModel()
1549 return mModelType == SoundModel.TYPE_KEYPHRASE; in isKeyphraseModel()
[all …]
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java35 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
304 public int loadSoundModel(SoundModel soundModel) { in loadSoundModel()
311 case SoundModel.TYPE_GENERIC_SOUND: in loadSoundModel()
314 case SoundModel.TYPE_KEYPHRASE: in loadSoundModel()
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java32 import android.media.soundtrigger_middleware.SoundModel;
103 public static SoundModel api2aidlGenericSoundModel(SoundTrigger.GenericSoundModel apiModel) { in api2aidlGenericSoundModel()
107 public static SoundModel api2aidlSoundModel(SoundTrigger.SoundModel apiModel) { in api2aidlSoundModel()
108 SoundModel aidlModel = new SoundModel(); in api2aidlSoundModel()
DSoundTriggerModule.java28 import android.media.soundtrigger_middleware.SoundModel;
101 public synchronized int loadSoundModel(@NonNull SoundTrigger.SoundModel model, in loadSoundModel()
105 SoundModel aidlModel = ConversionUtil.api2aidlGenericSoundModel( in loadSoundModel()
DSoundTrigger.java429 public static class SoundModel { class in SoundTrigger
466 public SoundModel(@NonNull UUID uuid, @Nullable UUID vendorUuid, @SoundModelType int type, in SoundModel() method in SoundTrigger.SoundModel
524 if (!(obj instanceof SoundModel)) { in equals()
527 SoundModel other = (SoundModel) obj; in equals()
744 public static final class KeyphraseSoundModel extends SoundModel implements Parcelable {
860 public static class GenericSoundModel extends SoundModel implements Parcelable {
/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareImplTest.java54 import android.media.soundtrigger_middleware.SoundModel;
108 private static SoundModel createGenericSoundModel() { in createGenericSoundModel()
123 private static SoundModel createSoundModel(int type) { in createSoundModel()
124 SoundModel model = new SoundModel(); in createSoundModel()
363 SoundModel model = createGenericSoundModel(); in loadGenericModel_2_0()
364 ArgumentCaptor<android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel> modelCaptor = in loadGenericModel_2_0()
366 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel.class); in loadGenericModel_2_0()
400 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.SoundModel hidlModel = in loadGenericModel_2_0()
416 SoundModel model = createGenericSoundModel(); in loadGenericModel_2_1()
417 ArgumentCaptor<android.hardware.soundtrigger.V2_1.ISoundTriggerHw.SoundModel> modelCaptor = in loadGenericModel_2_1()
[all …]
/frameworks/base/media/
DAndroid.bp44 "java/android/media/soundtrigger_middleware/SoundModel.aidl",
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java170 values.put(SoundModelContract.KEY_TYPE, SoundTrigger.SoundModel.TYPE_KEYPHRASE); in updateKeyphraseSoundModel()
271 if (type != SoundTrigger.SoundModel.TYPE_KEYPHRASE) { in getValidKeyphraseSoundModelForUser()
/frameworks/base/api/
Dtest-current.txt1516 …KeyphraseSoundModel extends android.hardware.soundtrigger.SoundTrigger.SoundModel implements andro…
1566 public static class SoundTrigger.SoundModel {
/frameworks/base/config/
Dpreloaded-classes2792 android.hardware.soundtrigger.SoundTrigger$SoundModel
4070 android.media.soundtrigger_middleware.SoundModel$1
4071 android.media.soundtrigger_middleware.SoundModel
/frameworks/base/services/
Dart-profile167 HPLandroid/hardware/soundtrigger/V2_0/ISoundTriggerHw$SoundModel;-><init>()V
168 HPLandroid/hardware/soundtrigger/V2_0/ISoundTriggerHw$SoundModel;->writeEmbeddedToBlob(Landroid/os/…
187 HPLandroid/hardware/soundtrigger/V2_1/ISoundTriggerHw$SoundModel;-><init>()V
188 PLandroid/hardware/soundtrigger/V2_1/ISoundTriggerHw$SoundModel;->writeEmbeddedToBlob(Landroid/os/H…
189 HPLandroid/hardware/soundtrigger/V2_1/ISoundTriggerHw$SoundModel;->writeToParcel(Landroid/os/HwParc…
206 …loadSoundModel_2_1(Landroid/hardware/soundtrigger/V2_1/ISoundTriggerHw$SoundModel;Landroid/hardwar…
216 …loadSoundModel_2_1(Landroid/hardware/soundtrigger/V2_1/ISoundTriggerHw$SoundModel;Landroid/hardwar…
30146 …undTriggerHelper$ModelData;->getSoundModel()Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;
30160 …ndTriggerHelper$ModelData;->setSoundModel(Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;)V
30206 …rHelper;->startRecognition(Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;Lcom/android/ser…
[all …]

12