Home
last modified time | relevance | path

Searched refs:eventMemory (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/soundtrigger/
DISoundTriggerClient.cpp43 virtual void onRecognitionEvent(const sp<IMemory>& eventMemory) in onRecognitionEvent() argument
47 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onRecognitionEvent()
53 virtual void onSoundModelEvent(const sp<IMemory>& eventMemory) in onSoundModelEvent() argument
57 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onSoundModelEvent()
62 virtual void onServiceStateChange(const sp<IMemory>& eventMemory) in onServiceStateChange() argument
66 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onServiceStateChange()
84 sp<IMemory> eventMemory = interface_cast<IMemory>( in onTransact() local
86 onRecognitionEvent(eventMemory); in onTransact()
91 sp<IMemory> eventMemory = interface_cast<IMemory>( in onTransact() local
93 onSoundModelEvent(eventMemory); in onTransact()
[all …]
DSoundTrigger.cpp204 void SoundTrigger::onRecognitionEvent(const sp<IMemory>& eventMemory) in onRecognitionEvent() argument
207 if (eventMemory == 0 || eventMemory->pointer() == NULL) { in onRecognitionEvent()
213 (struct sound_trigger_recognition_event *)eventMemory->pointer()); in onRecognitionEvent()
217 void SoundTrigger::onSoundModelEvent(const sp<IMemory>& eventMemory) in onSoundModelEvent() argument
220 if (eventMemory == 0 || eventMemory->pointer() == NULL) { in onSoundModelEvent()
226 (struct sound_trigger_model_event *)eventMemory->pointer()); in onSoundModelEvent()
230 void SoundTrigger::onServiceStateChange(const sp<IMemory>& eventMemory) in onServiceStateChange() argument
233 if (eventMemory == 0 || eventMemory->pointer() == NULL) { in onServiceStateChange()
239 *((sound_trigger_service_state_t *)eventMemory->pointer())); in onServiceStateChange()
/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp232 sp<IMemory> eventMemory; in prepareRecognitionEvent() local
258 return eventMemory; in prepareRecognitionEvent()
262 eventMemory = mMemoryDealer->allocate(size); in prepareRecognitionEvent()
263 if (eventMemory == 0 || eventMemory->pointer() == NULL) { in prepareRecognitionEvent()
264 eventMemory.clear(); in prepareRecognitionEvent()
265 return eventMemory; in prepareRecognitionEvent()
267 memcpy(eventMemory->pointer(), event, size); in prepareRecognitionEvent()
269 return eventMemory; in prepareRecognitionEvent()
278 sp<IMemory> eventMemory = prepareRecognitionEvent(event); in sendRecognitionEvent() local
279 if (eventMemory == 0) { in sendRecognitionEvent()
[all …]
/frameworks/av/include/soundtrigger/
DISoundTriggerClient.h32 virtual void onRecognitionEvent(const sp<IMemory>& eventMemory) = 0;
34 virtual void onSoundModelEvent(const sp<IMemory>& eventMemory) = 0;
36 virtual void onServiceStateChange(const sp<IMemory>& eventMemory) = 0;
DSoundTrigger.h60 virtual void onRecognitionEvent(const sp<IMemory>& eventMemory);
61 virtual void onSoundModelEvent(const sp<IMemory>& eventMemory);
62 virtual void onServiceStateChange(const sp<IMemory>& eventMemory);