Searched refs:event_data (Results 1 – 5 of 5) sorted by relevance
102 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()
109 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()
37 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()
133 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()
145 std::vector<uint8_t> event_data; variable