Home
last modified time | relevance | path

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

12345

/device/generic/goldfish/sensors/
Dmultihal_sensors_qemu.cpp97 Event event; in parseQemuSensorEvent() local
98 EventPayload* payload = &event.u; in parseQemuSensorEvent()
106 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()
107 event.sensorHandle = kSensorHandleAccelerometer; in parseQemuSensorEvent()
108 event.sensorType = SensorType::ACCELEROMETER; in parseQemuSensorEvent()
109 postSensorEvent(event); in parseQemuSensorEvent()
116 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()
117 event.sensorHandle = kSensorHandleGyroscope; in parseQemuSensorEvent()
118 event.sensorType = SensorType::GYROSCOPE; in parseQemuSensorEvent()
119 postSensorEvent(event); in parseQemuSensorEvent()
[all …]
Dmultihal_sensors.cpp199 Event event; in flush() local
200 event.sensorHandle = sensorHandle; in flush()
201 event.sensorType = SensorType::META_DATA; in flush()
202 event.u.meta.what = MetaDataEventType::META_DATA_FLUSH_COMPLETE; in flush()
204 doPostSensorEventLocked(*sensor, event); in flush()
208 Return<Result> MultihalSensors::injectSensorData(const Event& event) { in injectSensorData() argument
209 if (!isSensorHandleValid(event.sensorHandle)) { in injectSensorData()
212 if (event.sensorType == SensorType::ADDITIONAL_INFO) { in injectSensorData()
220 const SensorInfo* sensor = getSensorInfoByHandle(event.sensorHandle); in injectSensorData()
222 if (sensor->type != event.sensorType) { in injectSensorData()
[all …]
Dmultihal_sensors.h59 Return<Result> injectSensorData(const Event& event) override;
93 void postSensorEvent(const Event& event);
94 void doPostSensorEventLocked(const SensorInfo& sensor, const Event& event);
128 Event event; member
/device/google/cuttlefish/guest/commands/vsoc_input_service/
Dvsoc_input_service.cpp47 InputEvent event = next_event(); in EventLoop() local
48 device->EmitEvent(event.type, event.code, event.value); in EventLoop()
103 struct virtio_input_event event; in ProcessEvents() local
104 if (touch_fd->Read(&event, sizeof(event)) != sizeof(event)) { in ProcessEvents()
108 .type = event.type, in ProcessEvents()
109 .code = event.code, in ProcessEvents()
110 .value = event.value, in ProcessEvents()
116 struct virtio_input_event event; in ProcessEvents() local
117 if (keyboard_fd->Read(&event, sizeof(event)) != sizeof(event)) { in ProcessEvents()
121 .type = event.type, in ProcessEvents()
[all …]
Dvirtual_device_base.cpp116 struct input_event event {}; in EmitEvent() struct
117 event.type = type; in EmitEvent()
118 event.code = code; in EmitEvent()
119 event.value = value; in EmitEvent()
121 if (write(fd_, &event, sizeof(event)) < static_cast<ssize_t>(sizeof(event))) { in EmitEvent()
/device/google/contexthub/util/nanotool/
Dcontexthub.cpp274 auto event_printer = [&limit, continuous](const SensorEvent& event) -> bool { in PrintAllEvents() argument
275 printf("%s", event.ToString().c_str()); in PrintAllEvents()
291 auto event_handler = [&success](const AppToHostEvent &event) -> bool { in PrintBridgeVersion() argument
293 auto rsp = reinterpret_cast<const BrHostEventData *>(event.GetDataPtr()); in PrintBridgeVersion()
294 if (event.GetAppId() != kAppIdBridge) { in PrintBridgeVersion()
296 } else if (event.GetDataLen() < sizeof(BrHostEventData)) { in PrintBridgeVersion()
298 "at least %zu", event.GetDataLen(), sizeof(BrHostEventData)); in PrintBridgeVersion()
304 } else if (event.GetDataLen() < (sizeof(BrHostEventData) + in PrintBridgeVersion()
307 "length %u, expected at least %zu", event.GetDataLen(), in PrintBridgeVersion()
332 auto event_printer = [type, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents() argument
[all …]
Dresetreasonevent.cpp28 auto event = std::unique_ptr<ResetReasonEvent>(new ResetReasonEvent()); in FromBytes() local
29 event->Populate(buffer); in FromBytes()
31 return event; in FromBytes()
Dlogevent.cpp26 auto event = std::unique_ptr<LogEvent>(new LogEvent()); in FromBytes() local
27 event->Populate(buffer); in FromBytes()
29 return event; in FromBytes()
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()
Dnanomessage.cpp248 auto event = reinterpret_cast<VersionInfoRequestEvent *>(buffer.data()); in GetBytes() local
249 event->event_type = static_cast<uint32_t>(EventType::AppFromHostEvent); in GetBytes()
250 event->event_data.hdr.appId = kAppIdBridge; in GetBytes()
251 event->event_data.hdr.dataLen = sizeof(BrHostEventData); in GetBytes()
252 event->event_data.data.msgId = BRIDGE_HOST_EVENT_MSG_VERSION_INFO; in GetBytes()
/device/google/wahoo/folio_daemon/
Dmain.cpp141 struct input_event event; in main() local
142 event.type = EV_SW; in main()
143 event.code = SW_LID; in main()
144 event.value = isClosed; in main()
145 err = TEMP_FAILURE_RETRY(write(uinputFd, &event, sizeof (event))); in main()
152 event.type = EV_SYN; in main()
153 event.code = SYN_REPORT; in main()
154 event.value = 0; in main()
155 err = TEMP_FAILURE_RETRY(write(uinputFd, &event, sizeof (event))); in main()
/device/amlogic/yukawa/services/src/com/google/android/yukawaservice/
DRemoteSyncReceiver.java36 private static void sendPairingIntent(Context context, KeyEvent event) { in sendPairingIntent() argument
40 if (event != null) { in sendPairingIntent()
42 .putExtra(Intent.EXTRA_KEY_EVENT, event); in sendPairingIntent()
50 KeyEvent event = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT); in onReceive() local
51 int keyCode = event.getKeyCode(); in onReceive()
52 int keyAction = event.getAction(); in onReceive()
56 sendPairingIntent(context, event); in onReceive()
/device/google/cuttlefish/host/frontend/adb_connector/
Dmain.cpp63 monitor::BootEvent event; in WaitForAdbdToBeStarted() local
64 auto bytes_read = evt_shared_fd->Read(&event, sizeof(event)); in WaitForAdbdToBeStarted()
65 if (bytes_read != sizeof(event)) { in WaitForAdbdToBeStarted()
67 << " bytes only instead of the expected " << sizeof(event); in WaitForAdbdToBeStarted()
72 if (event == monitor::BootEvent::AdbdStarted) { in WaitForAdbdToBeStarted()
/device/linaro/poplar/wifi/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c43 union wpa_event_data event; in wpa_driver_notify_country_change() local
45 os_memset(&event, 0, sizeof(event)); in wpa_driver_notify_country_change()
46 event.channel_list_changed.initiator = REGDOM_SET_BY_USER; in wpa_driver_notify_country_change()
48 event.channel_list_changed.type = REGDOM_TYPE_COUNTRY; in wpa_driver_notify_country_change()
50 event.channel_list_changed.alpha2[0] = cmd[8]; in wpa_driver_notify_country_change()
51 event.channel_list_changed.alpha2[1] = cmd[9]; in wpa_driver_notify_country_change()
54 event.channel_list_changed.type = REGDOM_TYPE_UNKNOWN; in wpa_driver_notify_country_change()
56 wpa_supplicant_event(ctx, EVENT_CHANNEL_LIST_CHANGED, &event); in wpa_driver_notify_country_change()
/device/amlogic/yukawa/hal/hdmicec/
Dhdmi_cec.c301 hdmi_event_t event = { }; in event_thread() local
308 if (ev.event == CEC_EVENT_STATE_CHANGE) { in event_thread()
309 event.type = HDMI_EVENT_HOT_PLUG; in event_thread()
310 event.dev = &ctx->device; in event_thread()
311 event.hotplug.port_id = 1; in event_thread()
313 event.hotplug.connected = false; in event_thread()
315 event.hotplug.connected = true; in event_thread()
318 ctx->p_event_cb(&event, ctx->cb_arg); in event_thread()
327 hdmi_event_t event = { }; in event_thread() local
341 event.type = HDMI_EVENT_CEC_MESSAGE; in event_thread()
[all …]
/device/linaro/hikey/gralloc960/
Dgralloc_vsync_report.h34 inline void gralloc_mali_vsync_report(mali_vsync_event event) in gralloc_mali_vsync_report() argument
37 _mali_base_arch_vsync_event_report(event); in gralloc_mali_vsync_report()
39 GRALLOC_UNUSED(event); in gralloc_mali_vsync_report()
/device/amlogic/yukawa/hal/gralloc/
Dgralloc_vsync_report.h34 inline void gralloc_mali_vsync_report(mali_vsync_event event) in gralloc_mali_vsync_report() argument
37 _mali_base_arch_vsync_event_report(event); in gralloc_mali_vsync_report()
39 GRALLOC_UNUSED(event); in gralloc_mali_vsync_report()
/device/generic/goldfish/camera/
DEmulatedCameraHotplugThread.cpp153 inotify_event* event = (inotify_event*) &buffer[i]; in threadLoop() local
155 if (event->mask & IN_IGNORED) { in threadLoop()
166 } else if (event->mask & IN_CLOSE_WRITE) { in threadLoop()
167 int cameraId = getCameraId(event->wd); in threadLoop()
171 __FUNCTION__, event->wd); in threadLoop()
196 __FUNCTION__, event->mask); in threadLoop()
199 i += EVENT_SIZE + event->len; in threadLoop()
/device/google/cuttlefish/guest/hals/camera/
DEmulatedCameraHotplugThread.cpp152 inotify_event* event = (inotify_event*)&buffer[i]; in threadLoop() local
154 if (event->mask & IN_IGNORED) { in threadLoop()
164 } else if (event->mask & IN_CLOSE_WRITE) { in threadLoop()
165 int cameraId = getCameraId(event->wd); in threadLoop()
168 ALOGE("%s: Got bad camera ID from WD '%d", __FUNCTION__, event->wd); in threadLoop()
191 ALOGW("%s: Unknown mask 0x%x", __FUNCTION__, event->mask); in threadLoop()
194 i += EVENT_SIZE + event->len; in threadLoop()
/device/google/contexthub/sensorhal/
Dsensors.cpp208 int SensorContext::inject_sensor_data(const sensors_event_t *event) { in inject_sensor_data() argument
212 if (event == nullptr || event->type != SENSOR_TYPE_ADDITIONAL_INFO) { in inject_sensor_data()
216 if (event->sensor != SENSORS_HANDLE_BASE - 1) { in inject_sensor_data()
220 if (event->additional_info.type == AINFO_BEGIN in inject_sensor_data()
221 || event->additional_info.type == AINFO_END) { in inject_sensor_data()
225 mHubConnection->setOperationParameter(event->additional_info); in inject_sensor_data()
231 const struct sensors_event_t *event) { in InjectSensorDataWrapper() argument
232 return reinterpret_cast<SensorContext *>(dev)->inject_sensor_data(event); in InjectSensorDataWrapper()
/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/generic/goldfish-opengl/system/OpenglSystemCommon/
DQemuPipeStreamFuchsia.cpp97 zx::event event; in connect() local
98 status = zx::event::create(0, &event); in connect()
103 zx::event event_copy; in connect()
104 status = event.duplicate(ZX_RIGHT_SAME_RIGHTS, &event_copy); in connect()
140 m_event = std::move(event); in connect()
/device/linaro/poplar/wifi/wifi_hal/
Dgscan.cpp171 int wifi_handle_full_scan_event(wifi_request_id id, WifiEvent& event,
461 virtual int handleEvent(WifiEvent& event) { in handleEvent() argument
463 return wifi_handle_full_scan_event(id(), event, mHandler); in handleEvent()
668 virtual int handleEvent(WifiEvent& event) { in handleEvent() argument
672 nlattr *vendor_data = event.get_attribute(NL80211_ATTR_VENDOR_DATA); in handleEvent()
673 int len = event.get_vendor_data_len(); in handleEvent()
674 int event_id = event.get_vendor_subcmd(); in handleEvent()
683 evt_type = (wifi_scan_event) event.get_u32(NL80211_ATTR_VENDOR_DATA); in handleEvent()
688 wifi_handle_full_scan_event(id(), event, mHandler); in handleEvent()
769 WifiEvent& event, in wifi_handle_full_scan_event() argument
[all …]
/device/google/cuttlefish/host/commands/modem_simulator/
Dthread_looper.cpp72 void ThreadLooper::Insert(const Event &event) { in Insert() argument
76 while (iter != queue_.end() && *iter <= event) { in Insert()
80 queue_.insert(iter, event); in Insert()
/device/google/wahoo/usb/
DUsbGadget.cpp128 struct inotify_event *event = (struct inotify_event *)p; in monitorFfs() local
129 if (DEBUG) displayInotifyEvent(event); in monitorFfs()
131 p += sizeof(struct inotify_event) + event->len; in monitorFfs()
202 struct epoll_event event; in addEpollFd() local
205 event.data.fd = fd; in addEpollFd()
206 event.events = EPOLLIN; in addEpollFd()
208 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event); in addEpollFd()

12345