Searched refs:eventMemory (Results 1 – 5 of 5) sorted by relevance
43 virtual void onRecognitionEvent(const sp<IMemory>& eventMemory) in onRecognitionEvent() argument47 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onRecognitionEvent()53 virtual void onSoundModelEvent(const sp<IMemory>& eventMemory) in onSoundModelEvent() argument57 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onSoundModelEvent()62 virtual void onServiceStateChange(const sp<IMemory>& eventMemory) in onServiceStateChange() argument66 data.writeStrongBinder(IInterface::asBinder(eventMemory)); in onServiceStateChange()84 sp<IMemory> eventMemory = interface_cast<IMemory>( in onTransact() local86 onRecognitionEvent(eventMemory); in onTransact()91 sp<IMemory> eventMemory = interface_cast<IMemory>( in onTransact() local93 onSoundModelEvent(eventMemory); in onTransact()[all …]
204 void SoundTrigger::onRecognitionEvent(const sp<IMemory>& eventMemory) in onRecognitionEvent() argument207 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() argument220 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() argument233 if (eventMemory == 0 || eventMemory->pointer() == NULL) { in onServiceStateChange()239 *((sound_trigger_service_state_t *)eventMemory->pointer())); in onServiceStateChange()
232 sp<IMemory> eventMemory; in prepareRecognitionEvent() local258 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() local279 if (eventMemory == 0) { in sendRecognitionEvent()[all …]
32 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;
60 virtual void onRecognitionEvent(const sp<IMemory>& eventMemory);61 virtual void onSoundModelEvent(const sp<IMemory>& eventMemory);62 virtual void onServiceStateChange(const sp<IMemory>& eventMemory);