Searched refs:SoundModel (Results 1 – 12 of 12) sorted by relevance
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHalHidl.h | 120 class SoundModel : public RefBase { 122 SoundModel(sound_model_handle_t handle, sound_model_callback_t callback, in SoundModel() function 127 ~SoundModel() {} in ~SoundModel() 157 void convertSoundModelToHal(ISoundTriggerHw::SoundModel *halModel, 160 V2_1_ISoundTriggerHw::SoundModel *halModel, 197 sp<SoundModel> getModel(sound_model_handle_t handle); 198 sp<SoundModel> removeModel(sound_model_handle_t handle); 208 DefaultKeyedVector< sound_model_handle_t , sp<SoundModel> > mSoundModels;
|
D | SoundTriggerHalHidl.cpp | 159 sp<SoundModel> model = mSoundModels.valueFor(modelId); in loadSoundModel() 214 V2_2_ISoundTriggerHw::SoundModel halSoundModel; in loadSoundModel() 227 V2_1_ISoundTriggerHw::SoundModel halSoundModel; in loadSoundModel() 240 ISoundTriggerHw::SoundModel halSoundModel; in loadSoundModel() 255 sp<SoundModel> model = new SoundModel(*handle, callback, cookie, halHandle); in loadSoundModel() 273 sp<SoundModel> model = removeModel(handle); in unloadSoundModel() 303 sp<SoundModel> model = getModel(handle); in startRecognition() 359 sp<SoundModel> model = getModel(handle); in stopRecognition() 411 sp<SoundModel> model = getModel(handle); in getModelState() 468 sp<SoundTriggerHalHidl::SoundModel> SoundTriggerHalHidl::getModel(sound_model_handle_t handle) in getModel() [all …]
|
/frameworks/base/media/java/android/media/soundtrigger/ |
D | SoundTriggerManager.java | 33 import android.hardware.soundtrigger.SoundTrigger.SoundModel; 243 public int loadSoundModel(SoundModel soundModel) { in loadSoundModel() 250 case SoundModel.TYPE_GENERIC_SOUND: in loadSoundModel() 253 case SoundModel.TYPE_KEYPHRASE: in loadSoundModel()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerHelper.java | 34 import android.hardware.soundtrigger.SoundTrigger.SoundModel; 239 int startRecognition(SoundModel soundModel, ModelData modelData, in startRecognition() 1277 private int mModelType = SoundModel.TYPE_UNKNOWN; 1287 private SoundModel mSoundModel = null; 1297 return new ModelData(modelId, SoundModel.TYPE_KEYPHRASE); in createKeyphraseModelData() 1301 return new ModelData(modelId, SoundModel.TYPE_GENERIC_SOUND); in createGenericModelData() 1307 return new ModelData(modelId, SoundModel.TYPE_UNKNOWN); in createModelDataOfUnknownType() 1383 synchronized void setSoundModel(SoundModel soundModel) { in setSoundModel() 1387 synchronized SoundModel getSoundModel() { in getSoundModel() 1396 return mModelType == SoundModel.TYPE_KEYPHRASE; in isKeyphraseModel() [all …]
|
D | SoundTriggerService.java | 47 import android.hardware.soundtrigger.SoundTrigger.SoundModel; 103 private final TreeMap<UUID, SoundModel> mLoadedModels; 190 mLoadedModels = new TreeMap<UUID, SoundModel>(); in SoundTriggerService() 366 SoundModel oldModel = mLoadedModels.get(soundModel.uuid); in loadGenericSoundModel() 410 SoundModel oldModel = mLoadedModels.get(soundModel.uuid); in loadKeyphraseSoundModel() 447 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in startRecognitionForService() 471 case SoundModel.TYPE_GENERIC_SOUND: in startRecognitionForService() 513 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in stopRecognitionForService() 538 case SoundModel.TYPE_GENERIC_SOUND: in stopRecognitionForService() 579 SoundModel soundModel = mLoadedModels.get(soundModelId.getUuid()); in unloadSoundModel() [all …]
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 221 public static class SoundModel { class in SoundTrigger 249 public SoundModel(UUID uuid, UUID vendorUuid, int type, byte[] data) { in SoundModel() method in SoundTrigger.SoundModel 273 if (!(obj instanceof SoundModel)) in equals() 275 SoundModel other = (SoundModel) obj; in equals() 429 public static class KeyphraseSoundModel extends SoundModel implements Parcelable { 519 public static class GenericSoundModel extends SoundModel implements Parcelable {
|
D | SoundTriggerModule.java | 83 public native int loadSoundModel(SoundTrigger.SoundModel model, int[] soundModelHandle); in loadSoundModel()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 156 values.put(SoundModelContract.KEY_TYPE, SoundTrigger.SoundModel.TYPE_KEYPHRASE); in updateKeyphraseSoundModel() 225 if (type != SoundTrigger.SoundModel.TYPE_KEYPHRASE) { in getKeyphraseSoundModel()
|
/frameworks/base/config/ |
D | preloaded-classes | 1660 android.hardware.soundtrigger.SoundTrigger$SoundModel
|
D | boot-image-profile.txt | 7584 HPLandroid/hardware/soundtrigger/SoundTrigger$SoundModel;->equals(Ljava/lang/Object;)Z 33927 Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;
|
D | hiddenapi-greylist-max-o.txt | 24962 Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;-><init>(Ljava/util/UUID;Ljava/util/UUID;I[B… 24963 Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;->type:I 24964 Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;->TYPE_GENERIC_SOUND:I 24965 Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;->TYPE_KEYPHRASE:I 24966 Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;->TYPE_UNKNOWN:I
|
/frameworks/base/services/ |
D | art-profile | 13054 …undTriggerHelper$ModelData;->getSoundModel()Landroid/hardware/soundtrigger/SoundTrigger$SoundModel; 13066 …ndTriggerHelper$ModelData;->setSoundModel(Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;)V 13088 …rHelper;->startRecognition(Landroid/hardware/soundtrigger/SoundTrigger$SoundModel;Lcom/android/ser…
|