Home
last modified time | relevance | path

Searched refs:toEndLen (Results 1 – 2 of 2) sorted by relevance

/base/sensors/sensor/utils/src/
Dreport_data_callback.cpp59 int32_t toEndLen = CIRCULAR_BUF_LEN - cb->eventsBuf_.writePosition; in ReportEventCallback() local
60 if (leftSize < 0 || toEndLen < 0) { in ReportEventCallback()
68 if (toEndLen == 0) { in ReportEventCallback()
70 cb->eventsBuf_.writePosition = 1 - toEndLen; in ReportEventCallback()
/base/sensors/medical_sensor/utils/src/
Dreport_data_cache.cpp76 int32_t toEndLen = CIRCULAR_BUF_LEN - cache->eventsBuf_.writePosition; in CacheData() local
77 if (toEndLen == 0) { in CacheData()
79 cache->eventsBuf_.writePosition = 1 - toEndLen; in CacheData()