Searched refs:circularBuf (Results 1 – 6 of 6) sorted by relevance
28 eventsBuf_.circularBuf = new (std::nothrow) SensorData[CIRCULAR_BUF_LEN]; in ReportDataCallback()29 CHKPL(eventsBuf_.circularBuf); in ReportDataCallback()37 if (eventsBuf_.circularBuf != nullptr) { in ~ReportDataCallback()38 delete[] eventsBuf_.circularBuf; in ~ReportDataCallback()39 eventsBuf_.circularBuf = nullptr; in ~ReportDataCallback()41 eventsBuf_.circularBuf = nullptr; in ~ReportDataCallback()50 if (cb == nullptr || cb->eventsBuf_.circularBuf == nullptr) { in ReportEventCallback()61 cb->eventsBuf_.circularBuf[0] = *sensorData; in ReportEventCallback()64 cb->eventsBuf_.circularBuf[cb->eventsBuf_.writePosition] = *sensorData; in ReportEventCallback()
37 eventsBuf_.circularBuf = new struct SensorEvent[CIRCULAR_BUF_LEN]; in ReportDataCache()45 if (eventsBuf_.circularBuf != nullptr) { in ~ReportDataCache()46 delete[] eventsBuf_.circularBuf; in ~ReportDataCache()48 eventsBuf_.circularBuf = nullptr; in ~ReportDataCache()56 if (cache == nullptr || cache->eventsBuf_.circularBuf == nullptr || event == nullptr) { in CacheData()78 cache->eventsBuf_.circularBuf[0] = eventCopy; in CacheData()81 cache->eventsBuf_.circularBuf[cache->eventsBuf_.writePosition] = eventCopy; in CacheData()
28 struct SensorData *circularBuf; member
30 struct SensorEvent *circularBuf; member
308 uint32_t sensorId = eventsBuf.circularBuf[eventsBuf.readPosition].sensorTypeId; in EventFilter()313 realSensorId = eventsBuf.circularBuf[eventsBuf.readPosition].sensorTypeId; in EventFilter()327 SendEvents(channel.flushChannel, eventsBuf.circularBuf[eventsBuf.readPosition]); in EventFilter()352 SendEvents(channel, eventsBuf.circularBuf[eventsBuf.readPosition]); in EventFilter()375 delete eventsBuf.circularBuf[eventsBuf.readPosition].data; in ProcessEvents()376 eventsBuf.circularBuf[eventsBuf.readPosition].data = nullptr; in ProcessEvents()
245 int32_t sensorId = eventsBuf.circularBuf[eventsBuf.readPos].sensorTypeId; in EventFilter()249 SendEvents(channel, eventsBuf.circularBuf[eventsBuf.readPos]); in EventFilter()