Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 62) sorted by relevance

123

/device/google/contexthub/util/nanotool/
Dcontexthub.cpp265 auto event_printer = [&limit, continuous](const SensorEvent& event) -> bool { in PrintAllEvents() argument
266 printf("%s", event.ToString().c_str()); in PrintAllEvents()
274 auto event_printer = [type, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents() argument
275 SensorType event_source = event.GetSensorType(); in PrintSensorEvents()
277 printf("%s", event.ToString().c_str()); in PrintSensorEvents()
278 limit -= event.GetNumSamples(); in PrintSensorEvents()
287 auto event_printer = [&sensors, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents() argument
288 SensorType event_source = event.GetSensorType(); in PrintSensorEvents()
292 printf("%s", event.ToString().c_str()); in PrintSensorEvents()
293 limit -= event.GetNumSamples(); in PrintSensorEvents()
[all …]
Dapptohostevent.cpp28 auto event = std::unique_ptr<AppToHostEvent>(new AppToHostEvent()); in FromBytes() local
29 event->Populate(buffer); in FromBytes()
30 if (!event->IsValid()) { in FromBytes()
34 return event; in FromBytes()
Dresetreasonevent.cpp28 auto event = std::unique_ptr<ResetReasonEvent>(new ResetReasonEvent()); in FromBytes() local
29 event->Populate(buffer); in FromBytes()
31 return event; in FromBytes()
/device/google/dragon/sensor_hub/
Dcros_ec_sensors.cpp287 int CrosECSensor::processEvent(sensors_event_t* data, const cros_ec_event *event) in processEvent() argument
289 if (event->flags & CROS_EC_EVENT_FLUSH_FLAG) { in processEvent()
296 data->meta_data.sensor = event->sensor_id; in processEvent()
300 if (event->sensor_id >= mSensorNb) { in processEvent()
303 struct cros_ec_sensor_info *info = &mSensorInfo[event->sensor_id]; in processEvent()
306 ALOGI("Activity: %d - state: %d\n", event->activity, event->state); in processEvent()
307 if (event->activity >= mGestureNb) in processEvent()
310 struct cros_ec_gesture_info *gesture = &mGestureInfo[event->activity]; in processEvent()
315 data->sensor = CROS_EC_MAX_PHYSICAL_SENSOR + event->activity; in processEvent()
325 data->data[0] = (float)event->state; in processEvent()
[all …]
Dcros_ec_sensors.h126 int processEvent(sensors_event_t* data, const cros_ec_event *event);
/device/htc/flounder/audio/soundtrigger/
Dsound_trigger_hw.c179 struct sound_trigger_phrase_recognition_event *event; in sound_trigger_event_alloc() local
186 event = (struct sound_trigger_phrase_recognition_event *)data; in sound_trigger_event_alloc()
187 event->common.status = RECOGNITION_STATUS_SUCCESS; in sound_trigger_event_alloc()
188 event->common.type = SOUND_MODEL_TYPE_KEYPHRASE; in sound_trigger_event_alloc()
189 event->common.model = stdev->model_handle; in sound_trigger_event_alloc()
194 event->num_phrases = stdev->config->num_phrases; in sound_trigger_event_alloc()
195 if (event->num_phrases > SOUND_TRIGGER_MAX_PHRASES) in sound_trigger_event_alloc()
196 event->num_phrases = SOUND_TRIGGER_MAX_PHRASES; in sound_trigger_event_alloc()
197 for (i=0; i < event->num_phrases; i++) in sound_trigger_event_alloc()
198 memcpy(&event->phrase_extras[i], &stdev->config->phrases[i], in sound_trigger_event_alloc()
[all …]
/device/google/dragon/audio/soundtrigger/
Dsound_trigger_hw.c164 struct sound_trigger_phrase_recognition_event *event; in sound_trigger_event_alloc() local
171 event = (struct sound_trigger_phrase_recognition_event *)data; in sound_trigger_event_alloc()
172 event->common.status = RECOGNITION_STATUS_SUCCESS; in sound_trigger_event_alloc()
173 event->common.type = SOUND_MODEL_TYPE_KEYPHRASE; in sound_trigger_event_alloc()
174 event->common.model = stdev->model_handle; in sound_trigger_event_alloc()
179 event->num_phrases = stdev->config->num_phrases; in sound_trigger_event_alloc()
180 if (event->num_phrases > SOUND_TRIGGER_MAX_PHRASES) in sound_trigger_event_alloc()
181 event->num_phrases = SOUND_TRIGGER_MAX_PHRASES; in sound_trigger_event_alloc()
182 for (i=0; i < event->num_phrases; i++) in sound_trigger_event_alloc()
183 memcpy(&event->phrase_extras[i], &stdev->config->phrases[i], in sound_trigger_event_alloc()
[all …]
/device/generic/goldfish/camera/
DEmulatedCameraHotplugThread.cpp164 inotify_event* event = (inotify_event*) &buffer[i]; in threadLoop() local
166 if (event->mask & IN_IGNORED) { in threadLoop()
177 } else if (event->mask & IN_CLOSE_WRITE) { in threadLoop()
178 int cameraId = getCameraId(event->wd); in threadLoop()
182 __FUNCTION__, event->wd); in threadLoop()
207 __FUNCTION__, event->mask); in threadLoop()
210 i += EVENT_SIZE + event->len; in threadLoop()
/device/linaro/hikey/gralloc/
Dgralloc_vsync_report.h33 inline void gralloc_mali_vsync_report(mali_vsync_event event) in gralloc_mali_vsync_report() argument
35 _mali_base_arch_vsync_event_report(event); in gralloc_mali_vsync_report()
/device/asus/fugu/libaudio/
DAudioHotplugThread.cpp343 struct inotify_event *event = in threadLoop() local
346 if ((ret - i) < (int)(sizeof(struct inotify_event) + event->len)) { in threadLoop()
351 char *name = ((char *) event) + in threadLoop()
356 if (event->mask & IN_CREATE) { in threadLoop()
374 } else if (event->mask & IN_DELETE) { in threadLoop()
379 i += sizeof(struct inotify_event) + event->len; in threadLoop()
/device/generic/goldfish/sensors/
Dsensors_qemu.c213 sensors_event_t* event) in sensor_device_pick_pending_event_locked() argument
219 *event = d->sensors[i]; in sensor_device_pick_pending_event_locked()
220 event->sensor = i; in sensor_device_pick_pending_event_locked()
221 event->version = sizeof(*event); in sensor_device_pick_pending_event_locked()
225 event->data[0], in sensor_device_pick_pending_event_locked()
226 event->data[1], in sensor_device_pick_pending_event_locked()
227 event->data[2]); in sensor_device_pick_pending_event_locked()
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DColorWheel.java184 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
185 float x = event.getX() - CENTER_X; in onTouchEvent()
186 float y = event.getY() - CENTER_Y; in onTouchEvent()
189 switch (event.getAction()) { in onTouchEvent()
/device/lge/bullhead/location/loc_api/loc_api_v02/
Dloc_api_v02_log.h41 const char* loc_get_v02_event_name(uint32_t event);
/device/huawei/angler/location/loc_api/loc_api_v02/
Dloc_api_v02_log.h41 const char* loc_get_v02_event_name(uint32_t event);
/device/moto/shamu/location/loc_api/loc_api_v02/
Dloc_api_v02_log.h41 const char* loc_get_v02_event_name(uint32_t event);
Dloc_api_v02_log.c288 const char* loc_get_v02_event_name(uint32_t event) in loc_get_v02_event_name() argument
290 return loc_get_name_from_val(loc_v02_event_name, loc_v02_event_num, (long) event); in loc_get_v02_event_name()
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera.c67 mm_camera_event_t *event);
92 mm_camera_event_t *event = &cmd_cb->u.evt; in mm_camera_dispatch_app_event() local
101 event, in mm_camera_dispatch_app_event()
224 mm_camera_event_t *event) in mm_camera_enqueue_evt() argument
233 memcpy(&node->u.evt, event, sizeof(mm_camera_event_t)); in mm_camera_enqueue_evt()
255 mm_camera_event_t event; in mm_camera_send_ch_event() local
256 event.event_type = MM_CAMERA_EVT_TYPE_CH; in mm_camera_send_ch_event()
257 event.e.ch.evt = evt; in mm_camera_send_ch_event()
259 event.e.ch.ch = stream_id; in mm_camera_send_ch_event()
261 __func__, event.event_type, event.e.ch.ch, event.e.ch.evt); in mm_camera_send_ch_event()
[all …]
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI.cpp1633 mm_camera_ch_event_t *event, app_notify_cb_t *app_cb) in processChannelEvent() argument
1637 switch(event->ch) { in processChannelEvent()
1639 processPreviewChannelEvent(event->evt, app_cb); in processChannelEvent()
1642 processRdiChannelEvent(event->evt, app_cb); in processChannelEvent()
1645 processRecordChannelEvent(event->evt, app_cb); in processChannelEvent()
1649 processSnapshotChannelEvent(event->evt, app_cb); in processChannelEvent()
1658 void QCameraHardwareInterface::processCtrlEvent(mm_camera_ctrl_event_t *event, app_notify_cb_t *app… in processCtrlEvent() argument
1660 ALOGI("processCtrlEvent: %d, E",event->evt); in processCtrlEvent()
1666 switch(event->evt) in processCtrlEvent()
1670 zoomEvent(&event->status, app_cb); in processCtrlEvent()
[all …]
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQCameraMjpegDecode.cpp116 jpeg_event_t event,
549 jpeg_event_t event, in decoder_event_handler() argument
556 ALOGD("%s: Event: %s\n", __func__, event_to_string[event]); in decoder_event_handler()
557 if (event == JPEG_EVENT_DONE) in decoder_event_handler()
564 if (event != JPEG_EVENT_WARNING) in decoder_event_handler()
/device/google/contexthub/firmware/src/
Dtimer.c66 static void timerCallFuncFreeF(void* event) in timerCallFuncFreeF() argument
68 slabAllocatorFree(mInternalEvents, event); in timerCallFuncFreeF()
Dsensors.c205 static void sensorCallFuncPowerEvtFreeF(void* event) in sensorCallFuncPowerEvtFreeF() argument
207 slabAllocatorFree(mInternalEvents, event); in sensorCallFuncPowerEvtFreeF()
256 static void sensorCallFuncExternalEvtFreeF(void* event) in sensorCallFuncExternalEvtFreeF() argument
258 slabAllocatorFree(mInternalEvents, event); in sensorCallFuncExternalEvtFreeF()
/device/huawei/angler/dataservices/sockev/src/
Dsockev_cli.c86 printf("event:\t%s\n", msg->event); in main()
/device/htc/flounder/sensor_hub/libsensors/
DCwMcuSensor.cpp1065 cw_event const* event; in readEvents() local
1070 while (count && mInputReader.readEvent(&event)) { in readEvents()
1072 memcpy(data_temp, event->data, sizeof(data_temp)); in readEvents()
1153 int CwMcuSensor::processEvent(uint8_t *event) { in processEvent() argument
1159 sensorsid = (int)event[0]; in processEvent()
1160 memcpy(data, &event[1], 6); in processEvent()
1161 memcpy(bias, &event[7], 6); in processEvent()
1162 memcpy(&time, &event[13], 8); in processEvent()
DCwMcuSensor.h130 int processEvent(uint8_t *event);
/device/sample/skins/WVGAMedDpi/
Dlayout359 event EV_SW:0:1
395 event EV_SW:0:0

123