Home
last modified time | relevance | path

Searched refs:aidlModel (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java108 SoundModel aidlModel = new SoundModel(); in api2aidlSoundModel() local
109 aidlModel.type = apiModel.getType(); in api2aidlSoundModel()
110 aidlModel.uuid = api2aidlUuid(apiModel.getUuid()); in api2aidlSoundModel()
111 aidlModel.vendorUuid = api2aidlUuid(apiModel.getVendorUuid()); in api2aidlSoundModel()
112 aidlModel.data = byteArrayToSharedMemory(apiModel.getData(), "SoundTrigger SoundModel"); in api2aidlSoundModel()
113 aidlModel.dataSize = apiModel.getData().length; in api2aidlSoundModel()
114 return aidlModel; in api2aidlSoundModel()
123 PhraseSoundModel aidlModel = new PhraseSoundModel(); in api2aidlPhraseSoundModel() local
124 aidlModel.common = api2aidlSoundModel(apiModel); in api2aidlPhraseSoundModel()
125 aidlModel.phrases = new Phrase[apiModel.getKeyphrases().length]; in api2aidlPhraseSoundModel()
[all …]
DSoundTriggerModule.java105 SoundModel aidlModel = ConversionUtil.api2aidlGenericSoundModel( in loadSoundModel() local
107 soundModelHandle[0] = mService.loadModel(aidlModel); in loadSoundModel()
111 PhraseSoundModel aidlModel = ConversionUtil.api2aidlPhraseSoundModel( in loadSoundModel() local
113 soundModelHandle[0] = mService.loadPhraseModel(aidlModel); in loadSoundModel()
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DConversionUtil.java194 ISoundTriggerHw.SoundModel aidl2hidlSoundModel(@NonNull SoundModel aidlModel) { in aidl2hidlSoundModel() argument
196 hidlModel.header.type = aidl2hidlSoundModelType(aidlModel.type); in aidl2hidlSoundModel()
197 hidlModel.header.uuid = aidl2hidlUuid(aidlModel.uuid); in aidl2hidlSoundModel()
198 hidlModel.header.vendorUuid = aidl2hidlUuid(aidlModel.vendorUuid); in aidl2hidlSoundModel()
199 hidlModel.data = HidlMemoryUtil.fileDescriptorToHidlMemory(aidlModel.data, in aidl2hidlSoundModel()
200 aidlModel.dataSize); in aidl2hidlSoundModel()
206 @NonNull PhraseSoundModel aidlModel) { in aidl2hidlPhraseSoundModel()
208 hidlModel.common = aidl2hidlSoundModel(aidlModel.common); in aidl2hidlPhraseSoundModel()
209 for (Phrase aidlPhrase : aidlModel.phrases) { in aidl2hidlPhraseSoundModel()