/packages/modules/StatsD/lib/libstatssocket/include/ |
D | stats_event.h | 53 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/ |
D | stats_event.c | 72 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/ |
D | DbUtils_test.cpp | 41 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/ |
D | stats_event_test.cpp | 143 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 …]
|
D | stats_buffer_writer_queue_test.cpp | 36 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()
|
D | stats_writer_test.cpp | 23 AStatsEvent* event = AStatsEvent_obtain(); in TEST()
|
/packages/modules/StatsD/statsd/tests/ |
D | LogEvent_test.cpp | 52 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 …]
|
D | statsd_test_util.cpp | 715 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 …]
|
D | statsd_test_util.h | 378 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);
|
D | LogEntryMatcher_test.cpp | 47 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()
|
D | SocketListener_test.cpp | 36 AStatsEvent* statsEvent = nullptr;
|
/packages/modules/StatsD/statsd/tests/external/ |
D | StatsPullerManager_test.cpp | 47 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()
|
D | StatsCallbackPuller_test.cpp | 61 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/ |
D | LogEventQueue_test.cpp | 38 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/ |
D | stats_pull_atom_callback.cpp | 40 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/ |
D | log_event_benchmark.cpp | 25 static void writeEventTestFields(AStatsEvent& event) { in writeEventTestFields() 33 AStatsEvent* event = AStatsEvent_obtain(); in createStatsEvent()
|
D | stats_write_benchmark.cpp | 26 AStatsEvent* event = AStatsEvent_obtain(); in BM_StatsEventObtain()
|
D | filter_value_benchmark.cpp | 33 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createLogEventAndMatcher()
|
D | get_dimensions_for_condition_benchmark.cpp | 33 AStatsEvent* statsEvent = AStatsEvent_obtain(); in createLogEventAndLink()
|
/packages/modules/StatsD/lib/libstatspull/include/ |
D | stats_pull_atom_callback.h | 126 AStatsEvent* AStatsEventList_addStatsEvent(AStatsEventList* pull_data);
|
/packages/modules/StatsD/apex/tests/libstatspull/jni/ |
D | stats_pull_helper.cpp | 39 AStatsEvent* event = AStatsEventList_addStatsEvent(data); in pullAtomCallback()
|
/packages/modules/StatsD/lib/libstatssocket/fuzzers/ |
D | stats_event_fuzzer.cpp | 28 AStatsEvent* event = AStatsEvent_obtain(); in LLVMFuzzerTestOneInput()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | RestrictedEventMetric_e2e_test.cpp | 177 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/ |
D | CountMetricProducer_test.cpp | 47 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent() 55 AStatsEvent* statsEvent = AStatsEvent_obtain(); in makeLogEvent()
|
/packages/modules/StatsD/statsd/tests/state/ |
D | StateTracker_test.cpp | 71 AStatsEvent* statsEvent = AStatsEvent_obtain(); in buildIncorrectOverlayEvent() 87 AStatsEvent* statsEvent = AStatsEvent_obtain(); in buildOverlayEventBadStateType()
|