Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanotool/
Dapptohostevent.cpp102 if (event_data.size() < (sizeof(uint32_t) + sizeof(struct HostHubRawPacket) in IsValid()
104 LOGW("Invalid/short AppToHost event of size %zu", event_data.size()); in IsValid()
114 if (event_data.size() < sizeof(uint32_t) + sizeof(struct HostHubRawPacket)) { in GetTypedData()
115 LOGW("Invalid/short AppToHost event of size %zu", event_data.size()); in GetTypedData()
119 event_data.data() + sizeof(uint32_t)); in GetTypedData()
Dsensorevent.cpp109 if (event_data.size() < (sizeof(struct SensorEventHeader) + in GetNumSamples()
112 event_data.size()); in GetNumSamples()
118 event_data.data() + sizeof(struct SensorEventHeader)); in GetNumSamples()
128 reinterpret_cast<const struct SensorEventHeader *>(event_data.data()); in GetReferenceTime()
166 event_data.data() + offset); in GetSampleAtIndex()
184 if (event_data.size() < min_size) { in SizeIsValid()
186 event_data.size(), min_size); in SizeIsValid()
240 event_data.data() + sizeof(struct SensorEventHeader)); in StringForSample()
266 event_data.data() + sizeof(struct SensorEventHeader)); in StringForSample()
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()
Dnanomessage.cpp133 event_data.resize(buffer.size()); in Populate()
134 std::copy(buffer.begin(), buffer.end(), event_data.begin()); in Populate()
151 return ReadEventResponse::EventTypeFromBuffer(event_data); in GetEventType()
Dnanomessage.h145 std::vector<uint8_t> event_data; variable