Lines Matching refs:eventMemory

233     sp<IMemory> eventMemory;
252 return eventMemory;
256 eventMemory = mMemoryDealer->allocate(size);
257 if (eventMemory == 0 || eventMemory->pointer() == NULL) {
258 eventMemory.clear();
259 return eventMemory;
261 memcpy(eventMemory->pointer(), event, size);
263 return eventMemory;
273 sp<IMemory> eventMemory = prepareRecognitionEvent_l(event);
274 if (eventMemory == 0) {
289 eventMemory, strongModule));
310 sp<IMemory> eventMemory;
313 eventMemory = mMemoryDealer->allocate(size);
314 if (eventMemory == 0 || eventMemory->pointer() == NULL) {
315 eventMemory.clear();
316 return eventMemory;
318 memcpy(eventMemory->pointer(), event, size);
320 return eventMemory;
327 sp<IMemory> eventMemory = prepareSoundModelEvent_l(event);
328 if (eventMemory == 0) {
342 eventMemory, strongModule));
348 sp<IMemory> eventMemory;
351 eventMemory = mMemoryDealer->allocate(size);
352 if (eventMemory == 0 || eventMemory->pointer() == NULL) {
353 eventMemory.clear();
354 return eventMemory;
356 *((sound_trigger_service_state_t *)eventMemory->pointer()) = state;
357 return eventMemory;
364 sp<IMemory> eventMemory = prepareServiceStateEvent_l(state);
365 if (eventMemory == 0) {
379 eventMemory, strongModule));
656 sp<IMemory> eventMemory = event->mMemory;
658 if (eventMemory == 0 || eventMemory->pointer() == NULL) {
669 (struct sound_trigger_recognition_event *)eventMemory->pointer();
688 client->onRecognitionEvent(eventMemory);
693 (struct sound_trigger_model_event *)eventMemory->pointer();
705 client->onSoundModelEvent(eventMemory);
715 client->onServiceStateChange(eventMemory);
789 sp<IMemory> eventMemory = service->prepareRecognitionEvent_l(&phraseEvent.common);
790 if (eventMemory != 0) {
791 events.add(eventMemory);