Home
last modified time | relevance | path

Searched refs:AStatsEvent (Results 1 – 25 of 28) 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);
80 int AStatsEvent_write(AStatsEvent* event);
87 void AStatsEvent_release(AStatsEvent* event);
95 void AStatsEvent_setAtomId(AStatsEvent* event, uint32_t atomId);
100 void AStatsEvent_writeInt32(AStatsEvent* event, int32_t value);
105 void AStatsEvent_writeInt64(AStatsEvent* event, int64_t value);
110 void AStatsEvent_writeFloat(AStatsEvent* event, float value);
[all …]
/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c69 struct AStatsEvent { struct
90 AStatsEvent* AStatsEvent_obtain() { in AStatsEvent_obtain() argument
91 AStatsEvent* event = malloc(sizeof(AStatsEvent)); in AStatsEvent_obtain()
107 void AStatsEvent_release(AStatsEvent* event) { in AStatsEvent_release()
112 void AStatsEvent_setAtomId(AStatsEvent* event, uint32_t atomId) { in AStatsEvent_setAtomId()
125 void AStatsEvent_overwriteTimestamp(AStatsEvent* event, uint64_t timestampNs) { in AStatsEvent_overwriteTimestamp()
132 static bool overflows(AStatsEvent* event, size_t size) { in overflows()
156 static void append_byte(AStatsEvent* event, uint8_t value) { in append_byte()
163 static void append_bool(AStatsEvent* event, bool value) { in append_bool()
167 static void append_int32(AStatsEvent* event, int32_t value) { in append_int32()
[all …]
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp125 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
166 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
191 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
216 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
242 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
281 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
323 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
368 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
397 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
411 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
[all …]
Dstats_writer_test.cpp23 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp50 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createIntWithBoolAnnotationLogEvent()
65 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createIntWithIntAnnotationLogEvent()
81 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
131 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
169 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
199 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
229 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
334 AStatsEvent* statsEvent = AStatsEvent_obtain(); in TEST()
367 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
397 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
[all …]
Dstatsd_test_util.cpp616 void writeAttribution(AStatsEvent* statsEvent, const vector<int>& attributionUids, in writeAttribution()
628 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent) { in parseStatsEventToLogEvent()
640 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateTwoValueLogEvent()
659 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateThreeValueLogEvent()
679 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateRepeatedValueLogEvent()
696 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateNoValuesLogEvent()
711 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeUidLogEvent()
728 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeAttributionLogEvent()
762 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateScreenStateChangedEvent()
775 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateBatterySaverOnEvent()
[all …]
DLogEntryMatcher_test.cpp46 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeIntLogEvent()
56 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeFloatLogEvent()
66 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeStringLogEvent()
77 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeIntWithBoolAnnotationLogEvent()
88 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeAttributionLogEvent()
100 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeBoolLogEvent()
Dstatsd_test_util.h247 void writeAttribution(AStatsEvent* statsEvent, const vector<int>& attributionUids,
251 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent);
DFieldValue_test.cpp40 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
53 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
/packages/modules/StatsD/statsd/benchmark/
Dmetric_util.cpp250 void writeAttribution(AStatsEvent* statsEvent, const vector<int>& attributionUids, in writeAttribution()
262 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent) { in parseStatsEventToLogEvent()
274 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateScreenStateChangedEvent()
287 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateScheduledJobStateChangedEvent()
322 AStatsEvent* statsEvent = AStatsEvent_obtain(); in CreateSyncStateChangedEvent()
Dmetric_util.h96 void writeAttribution(AStatsEvent* statsEvent, const vector<int>& attributionUids,
99 void parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent);
Dlog_event_benchmark.cpp26 AStatsEvent* event = AStatsEvent_obtain(); in createAndParseStatsEvent()
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/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()
DStatsPuller_test.cpp64 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createSimpleEvent()
/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/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/statsd/tests/log_event/
DLogEventQueue_test.cpp38 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
/packages/modules/StatsD/statsd/tests/metrics/
DCountMetricProducer_test.cpp47 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
55 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
DEventMetricProducer_test.cpp45 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp70 AStatsEvent* statsEvent = AStatsEvent_obtain(); in buildIncorrectOverlayEvent()
86 AStatsEvent* statsEvent = AStatsEvent_obtain(); in buildOverlayEventBadStateType()
/packages/modules/StatsD/statsd/tests/shell/
DShellSubscriber_test.cpp175 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeCpuActiveTimeAtom()

12