Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/src/
Dstats_log_util.cpp107 ProtoOutputStream* protoOutput) { in writeDimensionToProtoHelper() argument
120 uint64_t token = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | in writeDimensionToProtoHelper()
122 protoOutput->write(FIELD_TYPE_INT32 | DIMENSIONS_VALUE_FIELD, fieldNum); in writeDimensionToProtoHelper()
125 protoOutput->write(FIELD_TYPE_INT32 | DIMENSIONS_VALUE_VALUE_INT, in writeDimensionToProtoHelper()
129 protoOutput->write(FIELD_TYPE_INT64 | DIMENSIONS_VALUE_VALUE_LONG, in writeDimensionToProtoHelper()
133 protoOutput->write(FIELD_TYPE_FLOAT | DIMENSIONS_VALUE_VALUE_FLOAT, in writeDimensionToProtoHelper()
138 protoOutput->write(FIELD_TYPE_STRING | DIMENSIONS_VALUE_VALUE_STR, in writeDimensionToProtoHelper()
142 protoOutput->write( in writeDimensionToProtoHelper()
151 protoOutput->end(token); in writeDimensionToProtoHelper()
156 uint64_t dimensionToken = protoOutput->start( in writeDimensionToProtoHelper()
[all …]
Dstats_log_util.h34 ProtoOutputStream* protoOutput);
36 ProtoOutputStream* protoOutput);
41 ProtoOutputStream* protoOutput);
44 ProtoOutputStream* protoOutput);
46 void writeStateToProto(const FieldValue& state, ProtoOutputStream* protoOutput);
82 ProtoOutputStream* protoOutput);
86 ProtoOutputStream* protoOutput);
90 ProtoOutputStream *protoOutput);
93 bool parseProtoOutputStream(ProtoOutputStream& protoOutput, T* message) { in parseProtoOutputStream() argument
95 sp<android::util::ProtoReader> reader = protoOutput.data(); in parseProtoOutputStream()
/packages/modules/StatsD/statsd/src/metrics/
DGaugeMetricProducer.cpp245 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
253 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
254 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
260 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
261 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
266 uint64_t dimenPathToken = protoOutput->start( in onDumpReportLocked()
268 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
269 protoOutput->end(dimenPathToken); in onDumpReportLocked()
273 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_GAUGE_METRICS); in onDumpReportLocked()
277 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_SKIPPED); in onDumpReportLocked()
[all …]
DCountMetricProducer.cpp211 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
217 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
218 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
224 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
225 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
230 uint64_t dimenPathToken = protoOutput->start( in onDumpReportLocked()
232 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
233 protoOutput->end(dimenPathToken); in onDumpReportLocked()
237 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_COUNT_METRICS); in onDumpReportLocked()
244 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_DATA); in onDumpReportLocked()
[all …]
DValueMetricProducer.cpp299 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
319 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
320 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
325 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
326 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
331 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_DIMENSION_PATH_IN_WHAT); in onDumpReportLocked()
332 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
333 protoOutput->end(dimenPathToken); in onDumpReportLocked()
337 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_VALUE_METRICS); in onDumpReportLocked()
341 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_SKIPPED); in onDumpReportLocked()
[all …]
DDurationMetricProducer.cpp493 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
499 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
500 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
507 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
508 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
512 uint64_t dimenPathToken = protoOutput->start( in onDumpReportLocked()
514 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
515 protoOutput->end(dimenPathToken); in onDumpReportLocked()
519 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_DURATION_METRICS); in onDumpReportLocked()
528 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_DATA); in onDumpReportLocked()
[all …]
DEventMetricProducer.cpp137 std::unique_ptr<std::vector<uint8_t>> serializeProtoLocked(ProtoOutputStream& protoOutput) { in serializeProtoLocked() argument
138 size_t bufferSize = protoOutput.size(); in serializeProtoLocked()
143 sp<android::util::ProtoReader> reader = protoOutput.data(); in serializeProtoLocked()
163 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
164 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
165 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
175 protoOutput->write(FIELD_TYPE_MESSAGE | FIELD_ID_EVENT_METRICS, in onDumpReportLocked()
DMetricsManager.cpp412 ProtoOutputStream* protoOutput) { in onDumpReport() argument
417 uint64_t token = protoOutput->start( in onDumpReport()
421 dumpLatency, str_set, protoOutput); in onDumpReport()
424 dumpLatency, nullptr, protoOutput); in onDumpReport()
426 protoOutput->end(token); in onDumpReport()
432 uint64_t token = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | in onDumpReport()
434 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ANNOTATIONS_INT64, in onDumpReport()
436 protoOutput->write(FIELD_TYPE_INT32 | FIELD_ID_ANNOTATIONS_INT32, annotation.second); in onDumpReport()
437 protoOutput->end(token); in onDumpReport()
DMetricProducer.h235 android::util::ProtoOutputStream* protoOutput) { in onDumpReport() argument
238 dumpLatency, str_set, protoOutput); in onDumpReport()
417 android::util::ProtoOutputStream* protoOutput) = 0;
DEventMetricProducer.h63 android::util::ProtoOutputStream* protoOutput) override;
DCountMetricProducer.h77 android::util::ProtoOutputStream* protoOutput) override;
DDurationMetricProducer.h94 android::util::ProtoOutputStream* protoOutput) override;
DGaugeMetricProducer.h116 android::util::ProtoOutputStream* protoOutput) override;
DMetricsManager.h136 android::util::ProtoOutputStream* protoOutput);
DValueMetricProducer.h111 android::util::ProtoOutputStream* protoOutput) override;
/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp490 android::util::ProtoOutputStream protoOutput; in TEST() local
491 writeFieldValueTreeToStream(event.GetTagId(), event.getValues(), &protoOutput); in TEST()
494 outData.resize(protoOutput.size()); in TEST()
496 sp<ProtoReader> reader = protoOutput.data(); in TEST()
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp580 void LogEvent::ToProto(ProtoOutputStream& protoOutput) const { in ToProto()
581 writeFieldValueTreeToStream(mTagId, getValues(), &protoOutput); in ToProto()