Home
last modified time | relevance | path

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

/frameworks/base/cmds/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);
89 bool parseProtoOutputStream(ProtoOutputStream& protoOutput, T* message) { in parseProtoOutputStream() argument
91 sp<android::util::ProtoReader> reader = protoOutput.data(); in parseProtoOutputStream()
/frameworks/base/cmds/statsd/src/metrics/
DCountMetricProducer.cpp164 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
170 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
171 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
177 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
178 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
183 uint64_t dimenPathToken = protoOutput->start( in onDumpReportLocked()
185 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
186 protoOutput->end(dimenPathToken); in onDumpReportLocked()
190 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_COUNT_METRICS); in onDumpReportLocked()
197 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_DATA); in onDumpReportLocked()
[all …]
DGaugeMetricProducer.cpp184 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
192 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
193 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
199 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
200 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
205 uint64_t dimenPathToken = protoOutput->start( in onDumpReportLocked()
207 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
208 protoOutput->end(dimenPathToken); in onDumpReportLocked()
212 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_GAUGE_METRICS); in onDumpReportLocked()
216 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_SKIPPED); in onDumpReportLocked()
[all …]
DDurationMetricProducer.cpp357 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
363 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
364 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
371 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
372 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
376 uint64_t dimenPathToken = protoOutput->start( in onDumpReportLocked()
378 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
379 protoOutput->end(dimenPathToken); in onDumpReportLocked()
383 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_DURATION_METRICS); in onDumpReportLocked()
392 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_DATA); in onDumpReportLocked()
[all …]
DValueMetricProducer.cpp250 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
270 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
271 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
276 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TIME_BASE, (long long)mTimeBaseNs); in onDumpReportLocked()
277 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_BUCKET_SIZE, (long long)mBucketSizeNs); in onDumpReportLocked()
282 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_DIMENSION_PATH_IN_WHAT); in onDumpReportLocked()
283 writeDimensionPathToProto(mDimensionsInWhat, protoOutput); in onDumpReportLocked()
284 protoOutput->end(dimenPathToken); in onDumpReportLocked()
288 uint64_t protoToken = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_ID_VALUE_METRICS); in onDumpReportLocked()
292 protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_SKIPPED); in onDumpReportLocked()
[all …]
DEventMetricProducer.cpp93 std::unique_ptr<std::vector<uint8_t>> serializeProtoLocked(ProtoOutputStream& protoOutput) { in serializeProtoLocked() argument
94 size_t bufferSize = protoOutput.size(); in serializeProtoLocked()
99 sp<android::util::ProtoReader> reader = protoOutput.data(); in serializeProtoLocked()
119 ProtoOutputStream* protoOutput) { in onDumpReportLocked() argument
120 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)mMetricId); in onDumpReportLocked()
121 protoOutput->write(FIELD_TYPE_BOOL | FIELD_ID_IS_ACTIVE, isActiveLocked()); in onDumpReportLocked()
131 protoOutput->write(FIELD_TYPE_MESSAGE | FIELD_ID_EVENT_METRICS, in onDumpReportLocked()
DMetricsManager.cpp335 ProtoOutputStream* protoOutput) { in onDumpReport() argument
340 uint64_t token = protoOutput->start( in onDumpReport()
344 dumpLatency, str_set, protoOutput); in onDumpReport()
347 dumpLatency, nullptr, protoOutput); in onDumpReport()
349 protoOutput->end(token); in onDumpReport()
355 uint64_t token = protoOutput->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | in onDumpReport()
357 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_ANNOTATIONS_INT64, in onDumpReport()
359 protoOutput->write(FIELD_TYPE_INT32 | FIELD_ID_ANNOTATIONS_INT32, annotation.second); in onDumpReport()
360 protoOutput->end(token); in onDumpReport()
DMetricProducer.h199 android::util::ProtoOutputStream* protoOutput) { in onDumpReport() argument
202 dumpLatency, str_set, protoOutput); in onDumpReport()
349 android::util::ProtoOutputStream* protoOutput) = 0;
DEventMetricProducer.h59 android::util::ProtoOutputStream* protoOutput) override;
DCountMetricProducer.h73 android::util::ProtoOutputStream* protoOutput) override;
DDurationMetricProducer.h78 android::util::ProtoOutputStream* protoOutput) override;
DGaugeMetricProducer.h111 android::util::ProtoOutputStream* protoOutput) override;
DMetricsManager.h132 android::util::ProtoOutputStream* protoOutput);
DValueMetricProducer.h108 android::util::ProtoOutputStream* protoOutput) override;
/frameworks/base/cmds/statsd/tests/
DFieldValue_test.cpp496 android::util::ProtoOutputStream protoOutput; in TEST() local
497 writeFieldValueTreeToStream(event.GetTagId(), event.getValues(), &protoOutput); in TEST()
500 outData.resize(protoOutput.size()); in TEST()
502 sp<ProtoReader> reader = protoOutput.data(); in TEST()
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp561 void LogEvent::ToProto(ProtoOutputStream& protoOutput) const { in ToProto()
562 writeFieldValueTreeToStream(mTagId, getValues(), &protoOutput); in ToProto()