Home
last modified time | relevance | path

Searched refs:AStatsEvent (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/StatsD/lib/libstatssocket/include/
Dstats_event.h53 struct AStatsEvent;
54 typedef struct AStatsEvent AStatsEvent; typedef
60 AStatsEvent* AStatsEvent_obtain();
72 void AStatsEvent_build(AStatsEvent* event);
84 int AStatsEvent_write(AStatsEvent* event);
91 void AStatsEvent_release(AStatsEvent* event);
99 void AStatsEvent_setAtomId(AStatsEvent* event, uint32_t atomId);
104 void AStatsEvent_writeInt32(AStatsEvent* event, int32_t value);
109 void AStatsEvent_writeInt64(AStatsEvent* event, int64_t value);
114 void AStatsEvent_writeFloat(AStatsEvent* event, float value);
[all …]
/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c72 struct AStatsEvent { struct
86 AStatsEvent* AStatsEvent_obtain() { in AStatsEvent_obtain() argument
87 AStatsEvent* event = malloc(sizeof(AStatsEvent)); in AStatsEvent_obtain()
103 void AStatsEvent_release(AStatsEvent* event) { in AStatsEvent_release()
108 void AStatsEvent_setAtomId(AStatsEvent* event, uint32_t atomId) { in AStatsEvent_setAtomId()
121 void AStatsEvent_overwriteTimestamp(AStatsEvent* event, uint64_t timestampNs) { in AStatsEvent_overwriteTimestamp()
128 static bool overflows(AStatsEvent* event, size_t size) { in overflows()
152 static void append_byte(AStatsEvent* event, uint8_t value) { in append_byte()
159 static void append_bool(AStatsEvent* event, bool value) { in append_bool()
163 static void append_int32(AStatsEvent* event, int32_t value) { in append_int32()
[all …]
/packages/modules/StatsD/statsd/tests/utils/
DDbUtils_test.cpp41 AStatsEvent* makeAStatsEvent(int32_t atomId, int64_t timestampNs) { in makeAStatsEvent()
42 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeAStatsEvent()
48 LogEvent makeLogEvent(AStatsEvent* statsEvent) { in makeLogEvent()
73 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
99 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
127 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
153 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
180 AStatsEvent* statsEvent = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
207 AStatsEvent* statsEvent1 = makeAStatsEvent(tagId, eventElapsedTimeNs + 10); in TEST_F()
211 AStatsEvent* statsEvent2 = makeAStatsEvent(tagId, eventElapsedTimeNs + 20); in TEST_F()
[all …]
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp143 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
184 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
209 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
234 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
260 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
296 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
354 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
396 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
443 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
478 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
[all …]
Dstats_buffer_writer_queue_test.cpp36 static AStatsEvent* generateTestEvent() { in generateTestEvent()
37 AStatsEvent* event = AStatsEvent_obtain(); in generateTestEvent()
55 AStatsEvent* event = generateTestEvent(); in TEST()
78 AStatsEvent* event = generateTestEvent(); in TEST()
106 AStatsEvent* event = generateTestEvent(); in TEST()
150 AStatsEvent* event = generateTestEvent(); in TEST()
Dstats_writer_test.cpp23 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp52 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createFieldWithBoolAnnotationLogEvent()
73 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createFieldWithIntAnnotationLogEvent()
94 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createAtomLevelIntAnnotationLogEvent()
116 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createAtomLevelBoolAnnotationLogEvent()
202 AStatsEvent* event = AStatsEvent_obtain(); in TEST_P()
252 AStatsEvent* event = AStatsEvent_obtain(); in TEST_P()
278 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
304 AStatsEvent* event = AStatsEvent_obtain(); in TEST_P()
342 AStatsEvent* event = AStatsEvent_obtain(); in TEST_P()
372 AStatsEvent* event = AStatsEvent_obtain(); in TEST_P()
[all …]
Dstatsd_test_util.cpp715 void writeAttribution(AStatsEvent* statsEvent, const vector<int>& attributionUids, in writeAttribution()
727 bool parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent) { in parseStatsEventToLogEvent()
741 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateTwoValueLogEvent()
760 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateThreeValueLogEvent()
780 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateRepeatedValueLogEvent()
797 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateNoValuesLogEvent()
810 AStatsEvent* makeUidStatsEvent(int atomId, int64_t eventTimeNs, int uid, int data1, int data2) { in makeUidStatsEvent()
811 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeUidStatsEvent()
823 AStatsEvent* makeUidStatsEvent(int atomId, int64_t eventTimeNs, int uid, int data1, in makeUidStatsEvent()
825 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeUidStatsEvent()
[all …]
Dstatsd_test_util.h378 void writeAttribution(AStatsEvent* statsEvent, const vector<int>& attributionUids,
382 bool parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent);
409 AStatsEvent* makeUidStatsEvent(int atomId, int64_t eventTimeNs, int uid, int data1, int data2);
411 AStatsEvent* makeUidStatsEvent(int atomId, int64_t eventTimeNs, int uid, int data1,
570 void createStatsEvent(AStatsEvent* statsEvent, uint8_t typeId, uint32_t atomId);
572 void fillStatsEventWithSampleValue(AStatsEvent* statsEvent, uint8_t typeId);
DLogEntryMatcher_test.cpp47 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeIntLogEvent()
57 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeFloatLogEvent()
67 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeStringLogEvent()
78 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeIntWithBoolAnnotationLogEvent()
89 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeAttributionLogEvent()
101 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeBoolLogEvent()
113 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeRepeatedIntLogEvent()
121 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeRepeatedUidLogEvent()
135 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeRepeatedStringLogEvent()
DSocketListener_test.cpp36 AStatsEvent* statsEvent = nullptr;
/packages/modules/StatsD/statsd/tests/external/
DStatsPullerManager_test.cpp47 AStatsEvent* createSimpleEvent(int32_t atomId, int32_t value) { in createSimpleEvent()
48 AStatsEvent* event = AStatsEvent_obtain(); in createSimpleEvent()
61 AStatsEvent* event = createSimpleEvent(atomTag, mUid); in onPullAtom()
DStatsCallbackPuller_test.cpp61 AStatsEvent* createSimpleEvent(int64_t value) { in createSimpleEvent()
62 AStatsEvent* event = AStatsEvent_obtain(); in createSimpleEvent()
73 AStatsEvent* event = createSimpleEvent(values[i]); in executePull()
/packages/modules/StatsD/statsd/tests/log_event/
DLogEventQueue_test.cpp38 AStatsEvent* makeStatsEvent(uint64_t timestampNs) { in makeStatsEvent()
39 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeStatsEvent()
47 AStatsEvent* statsEvent = makeStatsEvent(timestampNs); in makeLogEvent()
/packages/modules/StatsD/lib/libstatspull/
Dstats_pull_atom_callback.cpp40 std::vector<AStatsEvent*> data;
43 AStatsEvent* AStatsEventList_addStatsEvent(AStatsEventList* pull_data) { in AStatsEventList_addStatsEvent()
44 AStatsEvent* event = AStatsEvent_obtain(); in AStatsEventList_addStatsEvent()
/packages/modules/StatsD/statsd/benchmark/
Dlog_event_benchmark.cpp25 static void writeEventTestFields(AStatsEvent& event) { in writeEventTestFields()
33 AStatsEvent* event = AStatsEvent_obtain(); in createStatsEvent()
Dstats_write_benchmark.cpp26 AStatsEvent* event = AStatsEvent_obtain(); in BM_StatsEventObtain()
Dfilter_value_benchmark.cpp33 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createLogEventAndMatcher()
Dget_dimensions_for_condition_benchmark.cpp33 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createLogEventAndLink()
/packages/modules/StatsD/lib/libstatspull/include/
Dstats_pull_atom_callback.h126 AStatsEvent* AStatsEventList_addStatsEvent(AStatsEventList* pull_data);
/packages/modules/StatsD/apex/tests/libstatspull/jni/
Dstats_pull_helper.cpp39 AStatsEvent* event = AStatsEventList_addStatsEvent(data); in pullAtomCallback()
/packages/modules/StatsD/lib/libstatssocket/fuzzers/
Dstats_event_fuzzer.cpp28 AStatsEvent* event = AStatsEvent_obtain(); in LLVMFuzzerTestOneInput()
/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp177 AStatsEvent* statsEvent = AStatsEvent_obtain(); in TEST_F()
224 AStatsEvent* statsEvent = AStatsEvent_obtain(); in TEST_F()
271 AStatsEvent* statsEvent = AStatsEvent_obtain(); in TEST_F()
340 AStatsEvent* statsEvent = AStatsEvent_obtain(); in TEST_F()
/packages/modules/StatsD/statsd/tests/metrics/
DCountMetricProducer_test.cpp47 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
55 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp71 AStatsEvent* statsEvent = AStatsEvent_obtain(); in buildIncorrectOverlayEvent()
87 AStatsEvent* statsEvent = AStatsEvent_obtain(); in buildOverlayEventBadStateType()

12