Home
last modified time | relevance | path

Searched refs:event_data (Results 1 – 8 of 8) sorted by relevance

/device/google/contexthub/util/nanotool/
Dapptohostevent.cpp136 if (event_data.size() < (sizeof(uint32_t) + sizeof(struct HostHubRawPacket) in IsValid()
138 LOGW("Invalid/short AppToHost event of size %zu", event_data.size()); in IsValid()
148 if (event_data.size() < sizeof(uint32_t) + sizeof(struct HostHubRawPacket)) { in GetTypedData()
149 LOGW("Invalid/short AppToHost event of size %zu", event_data.size()); in GetTypedData()
153 event_data.data() + sizeof(uint32_t)); in GetTypedData()
Dresetreasonevent.cpp37 if (event_data.size() < (sizeof(uint32_t) + sizeof(uint32_t))) { in GetReason()
38 LOGW("Invalid/short ResetReason event of size %zu", event_data.size()); in GetReason()
42 event_data.data() + sizeof(uint32_t)); in GetReason()
Dsensorevent.cpp114 if (event_data.size() < (sizeof(struct SensorEventHeader) + in GetNumSamples()
117 event_data.size()); in GetNumSamples()
123 event_data.data() + sizeof(struct SensorEventHeader)); in GetNumSamples()
133 reinterpret_cast<const struct SensorEventHeader *>(event_data.data()); in GetReferenceTime()
171 event_data.data() + offset); in GetSampleAtIndex()
189 if (event_data.size() < min_size) { in SizeIsValid()
191 event_data.size(), min_size); in SizeIsValid()
245 event_data.data() + sizeof(struct SensorEventHeader)); in StringForSample()
272 event_data.data() + sizeof(struct SensorEventHeader)); in StringForSample()
Dlogevent.cpp37 if (event_data.size() < kHeaderSize) { in GetMessage()
38 LOGW("Invalid/short LogEvent event of size %zu", event_data.size()); in GetMessage()
42 event_data.data() + sizeof(uint32_t)); in GetMessage()
Dnanomessage.cpp136 event_data.resize(buffer.size()); in Populate()
137 std::copy(buffer.begin(), buffer.end(), event_data.begin()); in Populate()
158 return ReadEventResponse::EventTypeFromBuffer(event_data); in GetEventType()
242 struct BrHostEventTx event_data; in GetBytes() member
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()
Dnanomessage.h148 std::vector<uint8_t> event_data; variable
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/
Dnano_calibration.cc93 uint16_t event_type, const chreSensorThreeAxisData *event_data) { in HandleSensorSamples() argument
115 const auto &header = event_data->header; in HandleSensorSamples()
116 const auto *data = event_data->readings; in HandleSensorSamples()
126 uint16_t event_type, const chreSensorFloatData *event_data) { in HandleTemperatureSamples() argument
131 event_data->header.readingCount > 0) { in HandleTemperatureSamples()
132 const auto header = event_data->header; in HandleTemperatureSamples()
133 const auto *data = event_data->readings; in HandleTemperatureSamples()
Dnano_calibration.h92 const chreSensorThreeAxisData *event_data);
96 const chreSensorFloatData *event_data);