Lines Matching refs:event

81     AStatsEvent* event = AStatsEvent_obtain();  in TEST()  local
82 AStatsEvent_setAtomId(event, 100); in TEST()
83 AStatsEvent_writeInt32(event, 10); in TEST()
84 AStatsEvent_writeInt64(event, 0x123456789); in TEST()
85 AStatsEvent_writeFloat(event, 2.0); in TEST()
86 AStatsEvent_writeBool(event, true); in TEST()
87 AStatsEvent_build(event); in TEST()
90 uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST()
127 AStatsEvent_release(event); in TEST()
131 AStatsEvent* event = AStatsEvent_obtain(); in TEST() local
132 AStatsEvent_setAtomId(event, 100); in TEST()
134 AStatsEvent_writeString(event, str.c_str()); in TEST()
135 AStatsEvent_writeByteArray(event, (uint8_t*)str.c_str(), str.length()); in TEST()
136 AStatsEvent_build(event); in TEST()
139 uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST()
165 AStatsEvent_release(event); in TEST()
169 AStatsEvent* event = AStatsEvent_obtain(); in TEST() local
170 AStatsEvent_setAtomId(event, 100); in TEST()
172 AStatsEvent_writeString(event, empty.c_str()); in TEST()
173 AStatsEvent_build(event); in TEST()
176 uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST()
195 AStatsEvent_release(event); in TEST()
199 AStatsEvent* event = AStatsEvent_obtain(); in TEST() local
200 AStatsEvent_setAtomId(event, 100); in TEST()
202 AStatsEvent_writeByteArray(event, message, 5); in TEST()
203 AStatsEvent_build(event); in TEST()
206 uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST()
225 AStatsEvent_release(event); in TEST()
229 AStatsEvent* event = AStatsEvent_obtain(); in TEST() local
230 AStatsEvent_setAtomId(event, 100); in TEST()
238 AStatsEvent_writeAttributionChain(event, uids, tags, 2); in TEST()
239 AStatsEvent_build(event); in TEST()
242 uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST()
285 AStatsEvent_release(event); in TEST()
289 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST() local
290 createIntWithBoolAnnotationLogEvent(&event, ANNOTATION_ID_IS_UID, true); in TEST()
292 const vector<FieldValue>& values = event.getValues(); in TEST()
294 EXPECT_EQ(event.getUidFieldIndex(), 0); in TEST()
298 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST() local
299 createIntWithBoolAnnotationLogEvent(&event, ANNOTATION_ID_STATE_NESTED, true); in TEST()
301 const vector<FieldValue>& values = event.getValues(); in TEST()
307 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST() local
308 createIntWithBoolAnnotationLogEvent(&event, ANNOTATION_ID_PRIMARY_FIELD, true); in TEST()
310 const vector<FieldValue>& values = event.getValues(); in TEST()
316 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST() local
317 createIntWithBoolAnnotationLogEvent(&event, ANNOTATION_ID_EXCLUSIVE_STATE, true); in TEST()
319 const vector<FieldValue>& values = event.getValues(); in TEST()
358 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST() local
359 createIntWithIntAnnotationLogEvent(&event, ANNOTATION_ID_TRIGGER_STATE_RESET, resetState); in TEST()
361 const vector<FieldValue>& values = event.getValues(); in TEST()
363 EXPECT_EQ(event.getResetState(), resetState); in TEST()