/device/generic/goldfish/sensors/ |
D | multihal_sensors_qemu.cpp | 125 Event event; in parseQemuSensorEventLocked() local 126 EventPayload* payload = &event.u; in parseQemuSensorEventLocked() 133 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked() 134 event.sensorHandle = kSensorHandleAccelerometer; in parseQemuSensorEventLocked() 135 event.sensorType = SensorType::ACCELEROMETER; in parseQemuSensorEventLocked() 136 postSensorEventLocked(event); in parseQemuSensorEventLocked() 146 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked() 147 event.sensorHandle = kSensorHandleAccelerometerUncalibrated; in parseQemuSensorEventLocked() 148 event.sensorType = SensorType::ACCELEROMETER_UNCALIBRATED; in parseQemuSensorEventLocked() 149 postSensorEventLocked(event); in parseQemuSensorEventLocked() [all …]
|
D | multihal_sensors.cpp | 181 Event event; in activationOnChangeSensorEvent() local 182 EventPayload* payload = &event.u; in activationOnChangeSensorEvent() 235 event.sensorHandle = sensorHandle; in activationOnChangeSensorEvent() 236 event.sensorType = sensor.type; in activationOnChangeSensorEvent() 237 event.timestamp = ::android::elapsedRealtimeNano(); in activationOnChangeSensorEvent() 239 return event; in activationOnChangeSensorEvent() 298 Event event; in flush() local 299 event.sensorHandle = sensorHandle; in flush() 300 event.sensorType = SensorType::META_DATA; in flush() 301 event.u.meta.what = MetaDataEventType::META_DATA_FLUSH_COMPLETE; in flush() [all …]
|
/device/google/cuttlefish/guest/commands/sensor_injection/ |
D | main.cpp | 82 Event event; in InjectOrientation() local 83 event.sensorHandle = handle; in InjectOrientation() 84 event.sensorType = SensorType::ACCELEROMETER; in InjectOrientation() 93 event.payload.set<Event::EventPayload::Tag::vec3>(vec3); in InjectOrientation() 99 event.timestamp = android::elapsedRealtimeNano(); in InjectOrientation() 100 auto result = sensors->injectSensorData(event); in InjectOrientation() 113 Event event; in InjectAccelerometer() local 114 event.sensorHandle = handle; in InjectAccelerometer() 115 event.sensorType = SensorType::ACCELEROMETER; in InjectAccelerometer() 122 event.payload.set<Event::EventPayload::Tag::vec3>(vec3); in InjectAccelerometer() [all …]
|
/device/google/contexthub/util/nanotool/ |
D | contexthub.cpp | 274 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 …]
|
D | apptohostevent.cpp | 28 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()
|
/device/google/cuttlefish/host/commands/metrics/proto/ |
D | cf_metrics_event.proto | 25 // High level event types for this message. This is the broadest 30 // An unspecified, unhandled event. 36 // The event type is the time the VM instance is instantiated. 39 // The event type is the time the device boot process is started. 42 // The event type is the time the device lock screen is available. 45 // The event type is the time the virtual device was stopped. 50 // This may not be the same OS which uploaded the log event. 53 // The log event was sourced from an unspecified os type. 56 // The log event was sourced from Linux x86 os type. 59 // The log event was sourced from Linux x86_64 os type. [all …]
|
D | cf_log.proto | 27 // This may not be the same device which uploaded the log event. 30 // The log event was sourced from an unspecified device type. 31 //TODO(moelsherif) : This event is not converted yet in the code 34 // A log event that was sourced from a Cuttlefish host device. 37 // A log event that was sent by an Cuttlefish guest device. 38 //TODO(moelsherif) : This event is not converted yet in the code 42 // Local time on the event source device of when this event occurred. 45 // The type of device this log event originated from. 51 // The version of Cuttlefish that's sending the log event. 54 // An event encompassing metrics data
|
/device/google/cuttlefish/common/libs/fs/ |
D | epoll.cpp | 78 epoll_event event; in Add() local 79 event.events = events; in Add() 80 event.data.fd = fd->fd_; in Add() 81 int success = epoll_ctl(epoll_fd_->fd_, EPOLL_CTL_ADD, fd->fd_, &event); in Add() 98 epoll_event event; in AddOrModify() local 99 event.events = events; in AddOrModify() 100 event.data.fd = fd->fd_; in AddOrModify() 102 int success = epoll_ctl(epoll_fd_->fd_, operation, fd->fd_, &event); in AddOrModify() 120 epoll_event event; in Modify() local 121 event.events = events; in Modify() [all …]
|
/device/google/cuttlefish/host/frontend/webrtc/ |
D | kernel_log_events_handler.cpp | 73 if (read_result->event == monitor::Event::BootStarted) { in ReadLoop() 78 if (read_result->event == monitor::Event::BootCompleted) { in ReadLoop() 83 if (read_result->event == monitor::Event::ScreenChanged) { in ReadLoop() 89 if (read_result->event == monitor::Event::DisplayPowerModeChanged) { in ReadLoop() 102 for (const auto& event : last_events_) { in AddSubscriber() local 105 subscriber(event); in AddSubscriber() 116 void KernelLogEventsHandler::DeliverEvent(const Json::Value& event) { in DeliverEvent() argument 124 if ((*it)["event"].asString() == event["event"].asString()) { in DeliverEvent() 129 last_events_.push_back(event); in DeliverEvent() 131 entry.second(event); in DeliverEvent()
|
/device/amlogic/yukawa/hal/hdmicec/ |
D | hdmi_cec.c | 365 hdmi_event_t event = { }; in event_thread() local 379 if (ev.event == CEC_EVENT_STATE_CHANGE) { in event_thread() 380 event.type = HDMI_EVENT_HOT_PLUG; in event_thread() 381 event.dev = &ctx->device; in event_thread() 382 event.hotplug.port_id = 1; in event_thread() 384 event.hotplug.connected = false; in event_thread() 386 event.hotplug.connected = true; in event_thread() 389 ctx->p_event_cb(&event, ctx->cb_arg); in event_thread() 398 hdmi_event_t event = { }; in event_thread() local 427 event.type = HDMI_EVENT_CEC_MESSAGE; in event_thread() [all …]
|
/device/amlogic/yukawa/services/remotesyncreceiver/src/com/google/android/yukawaservice/ |
D | RemoteSyncReceiver.java | 36 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/linaro/poplar/wifi/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 43 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/google/trout/tools/tracing/tooling/ |
D | update_trace.py | 27 for event in trace_dict['traceEvents']: 28 if 'ts' in event: 29 event['ts'] += time_offset 39 for event in trace_dict['traceEvents']: 40 if 'pid' in event: 41 old_pid = event['pid'] 50 event['pid'] = new_pid
|
/device/linaro/poplar/wifi/wifi_hal/ |
D | gscan.cpp | 171 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/zuma/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 178 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 180 &mDeviceState.states, &mDeviceState.timestamps, &event); in reportUsbDataSessionMetrics() 181 events.push_back(event); in reportUsbDataSessionMetrics() 190 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 193 &event); in reportUsbDataSessionMetrics() 194 events.push_back(event); in reportUsbDataSessionMetrics() 200 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 202 &mHost1State.states, &mHost1State.timestamps, &event); in reportUsbDataSessionMetrics() 203 events.push_back(event); in reportUsbDataSessionMetrics() 215 for (auto &event : events) { in reportUsbDataSessionMetrics() local [all …]
|
/device/google/zumapro/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 178 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 180 &mDeviceState.states, &mDeviceState.timestamps, &event); in reportUsbDataSessionMetrics() 181 events.push_back(event); in reportUsbDataSessionMetrics() 190 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 193 &event); in reportUsbDataSessionMetrics() 194 events.push_back(event); in reportUsbDataSessionMetrics() 200 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 202 &mHost1State.states, &mHost1State.timestamps, &event); in reportUsbDataSessionMetrics() 203 events.push_back(event); in reportUsbDataSessionMetrics() 215 for (auto &event : events) { in reportUsbDataSessionMetrics() local [all …]
|
/device/google/gs201/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 178 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 180 &mDeviceState.states, &mDeviceState.timestamps, &event); in reportUsbDataSessionMetrics() 181 events.push_back(event); in reportUsbDataSessionMetrics() 190 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 193 &event); in reportUsbDataSessionMetrics() 194 events.push_back(event); in reportUsbDataSessionMetrics() 200 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 202 &mHost1State.states, &mHost1State.timestamps, &event); in reportUsbDataSessionMetrics() 203 events.push_back(event); in reportUsbDataSessionMetrics() 215 for (auto &event : events) { in reportUsbDataSessionMetrics() local [all …]
|
/device/google/gs101/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 178 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 180 &mDeviceState.states, &mDeviceState.timestamps, &event); in reportUsbDataSessionMetrics() 181 events.push_back(event); in reportUsbDataSessionMetrics() 190 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 193 &event); in reportUsbDataSessionMetrics() 194 events.push_back(event); in reportUsbDataSessionMetrics() 200 VendorUsbDataSessionEvent event; in reportUsbDataSessionMetrics() local 202 &mHost1State.states, &mHost1State.timestamps, &event); in reportUsbDataSessionMetrics() 203 events.push_back(event); in reportUsbDataSessionMetrics() 215 for (auto &event : events) { in reportUsbDataSessionMetrics() local [all …]
|
/device/google/contexthub/sensorhal/ |
D | sensors.cpp | 208 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/google/comet/sensors/ |
D | sensors_dummy.c | 182 sensors_event_t* event) in sensor_device_pick_pending_event_locked() argument 191 *event = d->sensors[i]; in sensor_device_pick_pending_event_locked() 192 event->sensor = i; in sensor_device_pick_pending_event_locked() 193 event->version = sizeof(*event); in sensor_device_pick_pending_event_locked() 197 event->data[0], in sensor_device_pick_pending_event_locked() 198 event->data[1], in sensor_device_pick_pending_event_locked() 199 event->data[2]); in sensor_device_pick_pending_event_locked()
|
/device/google/akita/sensors/ |
D | sensors_dummy.c | 182 sensors_event_t* event) in sensor_device_pick_pending_event_locked() argument 191 *event = d->sensors[i]; in sensor_device_pick_pending_event_locked() 192 event->sensor = i; in sensor_device_pick_pending_event_locked() 193 event->version = sizeof(*event); in sensor_device_pick_pending_event_locked() 197 event->data[0], in sensor_device_pick_pending_event_locked() 198 event->data[1], in sensor_device_pick_pending_event_locked() 199 event->data[2]); in sensor_device_pick_pending_event_locked()
|
/device/google/cuttlefish/common/libs/utils/ |
D | inotify.cpp | 53 struct inotify_event* event = in GetFileListFromInotifyFd() local 55 bytes_parsed += sizeof(struct inotify_event) + event->len; in GetFileListFromInotifyFd() 58 if (event->len == 0) { in GetFileListFromInotifyFd() 62 if (!(event->mask & mask)) { in GetFileListFromInotifyFd() 67 result.push_back(std::string(event->name)); in GetFileListFromInotifyFd()
|
/device/google/cuttlefish/host/libs/wayland/ |
D | wayland_surfaces.cpp | 62 const DisplayEvent event{DisplayCreatedEvent{ in HandleSurfaceCreated() local 70 (event_callback_.value())(event); in HandleSurfaceCreated() 75 const DisplayEvent event{DisplayDestroyedEvent{ in HandleSurfaceDestroyed() local 81 (event_callback_.value())(event); in HandleSurfaceDestroyed()
|
/device/google/cuttlefish/host/commands/metrics/ |
D | events.cc | 197 cuttlefish::CuttlefishLogEvent* event = new cuttlefish::CuttlefishLogEvent(); in sampleEvent() local 198 event->set_device_type( in sampleEvent() 200 return event; in sampleEvent() 204 std::string ProtoToString(LogEvent* event) { in ProtoToString() argument 206 if (!event->SerializeToString(&output)) { in ProtoToString()
|
/device/generic/goldfish-opengl/system/hwc3/ |
D | DrmEventListener.cpp | 86 char* event = buffer + i; in threadLoop() local 87 if (strcmp(event, "DEVTYPE=drm_minor")) { in threadLoop() 89 } else if (strcmp(event, "HOTPLUG=1")) { in threadLoop() 93 i += strlen(event) + 1; in threadLoop()
|