Home
last modified time | relevance | path

Searched refs:circularBuf (Results 1 – 6 of 6) sorted by relevance

/base/sensors/sensor/utils/common/src/
Dreport_data_callback.cpp28 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()
/base/sensors/medical_sensor/utils/src/
Dreport_data_cache.cpp37 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()
/base/sensors/sensor/utils/common/include/
Dreport_data_callback.h28 struct SensorData *circularBuf; member
/base/sensors/medical_sensor/utils/include/
Dreport_data_cache.h30 struct SensorEvent *circularBuf; member
/base/sensors/medical_sensor/services/medical_sensor/src/
Dmedical_data_processer.cpp308 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()
/base/sensors/sensor/services/sensor/src/
Dsensor_data_processer.cpp245 int32_t sensorId = eventsBuf.circularBuf[eventsBuf.readPos].sensorTypeId; in EventFilter()
249 SendEvents(channel, eventsBuf.circularBuf[eventsBuf.readPos]); in EventFilter()