/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 107 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 …]
|
D | stats_log_util.h | 34 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/ |
D | CountMetricProducer.cpp | 164 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 …]
|
D | GaugeMetricProducer.cpp | 184 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 …]
|
D | DurationMetricProducer.cpp | 357 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 …]
|
D | ValueMetricProducer.cpp | 250 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 …]
|
D | EventMetricProducer.cpp | 93 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()
|
D | MetricsManager.cpp | 335 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()
|
D | MetricProducer.h | 199 android::util::ProtoOutputStream* protoOutput) { in onDumpReport() argument 202 dumpLatency, str_set, protoOutput); in onDumpReport() 349 android::util::ProtoOutputStream* protoOutput) = 0;
|
D | EventMetricProducer.h | 59 android::util::ProtoOutputStream* protoOutput) override;
|
D | CountMetricProducer.h | 73 android::util::ProtoOutputStream* protoOutput) override;
|
D | DurationMetricProducer.h | 78 android::util::ProtoOutputStream* protoOutput) override;
|
D | GaugeMetricProducer.h | 111 android::util::ProtoOutputStream* protoOutput) override;
|
D | MetricsManager.h | 132 android::util::ProtoOutputStream* protoOutput);
|
D | ValueMetricProducer.h | 108 android::util::ProtoOutputStream* protoOutput) override;
|
/frameworks/base/cmds/statsd/tests/ |
D | FieldValue_test.cpp | 496 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/ |
D | LogEvent.cpp | 561 void LogEvent::ToProto(ProtoOutputStream& protoOutput) const { in ToProto() 562 writeFieldValueTreeToStream(mTagId, getValues(), &protoOutput); in ToProto()
|