Lines Matching refs:index
137 uint64_t TimestampedSensorEvent::GetSampleTime(uint8_t index) const { in GetSampleTime()
143 for (uint8_t i = 1; i <= index; i++) { in GetSampleTime()
144 sample = GetSampleAtIndex(index); in GetSampleTime()
151 std::string TimestampedSensorEvent::GetSampleTimeStr(uint8_t index) const { in GetSampleTimeStr()
152 uint64_t sample_time = GetSampleTime(index); in GetSampleTimeStr()
162 uint8_t index) const { in GetSampleAtIndex()
163 if (index >= GetNumSamples()) { in GetSampleAtIndex()
164 LOGW("Requested sample at invalid index %u", index); in GetSampleAtIndex()
169 index * GetSampleDataSize()); in GetSampleAtIndex()
208 std::string SingleAxisSensorEvent::StringForSample(uint8_t index) const { in StringForSample()
210 reinterpret_cast<const SingleAxisDataPoint *>(GetSampleAtIndex(index)); in StringForSample()
214 sample->fdata, GetSampleTimeStr(index).c_str()); in StringForSample()
225 std::string SingleAxisIntSensorEvent::StringForSample(uint8_t index) const { in StringForSample()
227 reinterpret_cast<const SingleAxisDataPoint *>(GetSampleAtIndex(index)); in StringForSample()
231 sample->idata, GetSampleTimeStr(index).c_str()); in StringForSample()
238 std::string TripleAxisSensorEvent::StringForSample(uint8_t index) const { in StringForSample()
241 GetSampleAtIndex(index)); in StringForSample()
247 && first_sample->biasSample == index; in StringForSample()
251 sample->x, sample->y, sample->z, GetSampleTimeStr(index).c_str(), in StringForSample()
264 uint8_t index) const { in StringForSample()
268 GetSampleAtIndex(index)); in StringForSample()
274 && first_sample->biasSample == index; in StringForSample()
295 x, y, z, GetSampleTimeStr(index).c_str(), in StringForSample()