Home
last modified time | relevance | path

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

/system/core/libstats/socket/
Dstats_event.c42 size_t lastFieldPos; // location of last field within the buf member
73 event->lastFieldPos = 0; // 0 since we haven't written a field yet in stats_event_obtain()
154 event->lastFieldPos = event->size; in start_field()
251 uint8_t fieldType = event->buf[event->lastFieldPos] & 0x0F; in increment_annotation_count()
252 uint32_t oldAnnotationCount = (event->buf[event->lastFieldPos] & 0xF0) >> 4; in increment_annotation_count()
260 event->buf[event->lastFieldPos] = (((uint8_t)newAnnotationCount << 4) & 0xF0) | fieldType; in increment_annotation_count()
264 if (event->lastFieldPos == 0) event->errors |= ERROR_ANNOTATION_DOES_NOT_FOLLOW_FIELD; in stats_event_add_bool_annotation()
276 if (event->lastFieldPos == 0) event->errors |= ERROR_ANNOTATION_DOES_NOT_FOLLOW_FIELD; in stats_event_add_int32_annotation()