/packages/modules/StatsD/statsd/src/ |
D | metadata_util.cpp | 26 void writeValueToProto(metadata::FieldValue* metadataFieldValue, const Value& value) { in writeValueToProto() 56 for (const FieldValue& fieldValue : metricKey.getDimensionKeyInWhat().getValues()) { in writeMetricDimensionKeyToMetadataDimensionKey() 57 metadata::FieldValue* metadataFieldValue = metadataMetricKey->add_dimension_key_in_what(); in writeMetricDimensionKeyToMetadataDimensionKey() 64 for (const FieldValue& fieldValue : metricKey.getStateValuesKey().getValues()) { in writeMetricDimensionKeyToMetadataDimensionKey() 65 metadata::FieldValue* metadataFieldValue = metadataMetricKey->add_state_values_key(); in writeMetricDimensionKeyToMetadataDimensionKey() 74 const RepeatedPtrField<metadata::FieldValue>& repeatedFieldValueList, in writeFieldValuesFromMetadata() 75 std::vector<FieldValue>* fieldValues) { in writeFieldValuesFromMetadata() 76 for (const metadata::FieldValue& metadataFieldValue : repeatedFieldValueList) { in writeFieldValuesFromMetadata() 80 case metadata::FieldValue::ValueCase::kValueInt: in writeFieldValuesFromMetadata() 83 case metadata::FieldValue::ValueCase::kValueLong: in writeFieldValuesFromMetadata() [all …]
|
D | HashableDimensionKey.h | 55 explicit HashableDimensionKey(const std::vector<FieldValue>& values) { in HashableDimensionKey() 63 inline void addValue(const FieldValue& value) { in addValue() 67 inline const std::vector<FieldValue>& getValues() const { in getValues() 71 inline std::vector<FieldValue>* mutableValues() { in mutableValues() 75 inline FieldValue* mutableValue(size_t i) { in mutableValue() 95 std::vector<FieldValue> mValues; 171 bool filterValues(const Matcher& matcherField, const std::vector<FieldValue>& values, 172 FieldValue* output); 184 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values, 206 const std::vector<FieldValue>& values, HashableDimensionKey& key, [all …]
|
D | HashableDimensionKey.cpp | 42 const vector<FieldValue>& dims, in populateStatsDimensionsValueParcelChildren() 50 const FieldValue& dim = dims[index]; in populateStatsDimensionsValueParcelChildren() 145 bool filterValues(const Matcher& matcherField, const vector<FieldValue>& values, in filterValues() 146 FieldValue* output) { in filterValues() 156 bool filterValues(const vector<Matcher>& matcherFields, const vector<FieldValue>& values, in filterValues() 175 const vector<Matcher>& valueMatcherFields, const vector<FieldValue>& values, in filterValues() 180 const FieldValue& value = values[i]; in filterValues() 200 bool filterPrimaryKey(const std::vector<FieldValue>& values, HashableDimensionKey* output) { in filterPrimaryKey() 218 const std::vector<FieldValue>& values, std::vector<FieldValue>* output) { in filterGaugeValues() 228 void getDimensionForCondition(const std::vector<FieldValue>& eventValues, in getDimensionForCondition() [all …]
|
D | FieldValue.h | 28 struct FieldValue; 411 struct FieldValue { struct 412 FieldValue() {} in FieldValue() function 413 FieldValue(const Field& field, const Value& value) : mField(field), mValue(value) { in FieldValue() function 415 bool operator==(const FieldValue& that) const { 418 bool operator!=(const FieldValue& that) const { 421 bool operator<(const FieldValue& that) const { 447 bool isAttributionUidField(const FieldValue& value); argument 450 int getUidIfExists(const FieldValue& value); 455 bool isUidField(const FieldValue& fieldValue); [all …]
|
D | statsd_metadata.proto | 31 message FieldValue { message 44 repeated FieldValue dimension_key_in_what = 1; 45 repeated FieldValue state_values_key = 2;
|
D | FieldValue.cpp | 117 bool isAttributionUidField(const FieldValue& value) { in isAttributionUidField() 121 int32_t getUidIfExists(const FieldValue& value) { in getUidIfExists() 136 bool isUidField(const FieldValue& fieldValue) { in isUidField() 516 size_t getSize(const std::vector<FieldValue>& fieldValues) { in getSize() 518 for (const FieldValue& fieldValue : fieldValues) { in getSize()
|
D | stats_log_util.cpp | 105 void writeDimensionToProtoHelper(const std::vector<FieldValue>& dims, size_t* index, int depth, in writeDimensionToProtoHelper() 173 void writeDimensionLeafToProtoHelper(const std::vector<FieldValue>& dims, in writeDimensionLeafToProtoHelper() 338 void writeFieldValueTreeToStreamHelper(int tagId, const std::vector<FieldValue>& dims, in writeFieldValueTreeToStreamHelper() 401 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values, in writeFieldValueTreeToStream() 410 void writeStateToProto(const FieldValue& state, util::ProtoOutputStream* protoOutput) { in writeStateToProto() 619 vector<FieldValue>* fieldValues = event.getMutableValues(); in mapIsolatedUidsToHostUidInLogEvent()
|
D | stats_log_util.h | 34 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values, 47 void writeStateToProto(const FieldValue& state, ProtoOutputStream* protoOutput);
|
/packages/modules/StatsD/statsd/tests/ |
D | LogEvent_test.cpp | 165 const vector<FieldValue>& values = logEvent.getValues(); in TEST() 168 const FieldValue& int32Item = values[0]; in TEST() 174 const FieldValue& int64Item = values[1]; in TEST() 180 const FieldValue& floatItem = values[2]; in TEST() 186 const FieldValue& boolItem = values[3]; in TEST() 214 const vector<FieldValue>& values = logEvent.getValues(); in TEST() 217 const FieldValue& stringItem = values[0]; in TEST() 223 const FieldValue& storageItem = values[1]; in TEST() 251 const vector<FieldValue>& values = logEvent.getValues(); in TEST() 254 const FieldValue& item = values[0]; in TEST() [all …]
|
D | metadata_util_test.cpp | 44 dim.addValue(FieldValue(field1, value1)); in TEST() 45 dim.addValue(FieldValue(field2, value2)); in TEST() 46 dim.addValue(FieldValue(field3, value3)); in TEST() 47 dim.addValue(FieldValue(field4, value4)); in TEST() 49 dim2.addValue(FieldValue(field1, value1)); in TEST() 50 dim2.addValue(FieldValue(field2, value2)); in TEST()
|
D | FieldValue_test.cpp | 249 dim.addValue(FieldValue(field1, value1)); in TEST() 250 dim.addValue(FieldValue(field2, value2)); in TEST() 253 subDim1.addValue(FieldValue(field1, value1)); in TEST() 256 subDim1.addValue(FieldValue(field2, value2)); in TEST() 263 subDim3.addValue(FieldValue(field1, value11)); in TEST() 415 dimensionKey.addValue(FieldValue(field1, value1)); in TEST() 416 dimensionKey.addValue(FieldValue(field2, value2)); in TEST() 417 dimensionKey.addValue(FieldValue(field3, value3)); in TEST() 418 dimensionKey.addValue(FieldValue(field4, value4)); in TEST() 419 dimensionKey.addValue(FieldValue(field5, value5)); in TEST() [all …]
|
/packages/modules/StatsD/statsd/src/state/ |
D | StateTracker.cpp | 38 FieldValue newState; in onLogEvent() 56 const FieldValue resetStateFieldValue(mField, Value(resetState)); in onLogEvent() 74 bool StateTracker::getStateValue(const HashableDimensionKey& queryKey, FieldValue* output) const { in getStateValue() 88 void StateTracker::handleReset(const int64_t eventTimeNs, const FieldValue& newState) { in handleReset() 105 const FieldValue state(mField, Value(kStateUnknown)); in clearStateForPrimaryKey() 115 const FieldValue& newState, const bool nested, in updateStateForPrimaryKey() 117 FieldValue oldState; in updateStateForPrimaryKey() 169 const FieldValue& oldState, const FieldValue& newState) { in notifyListeners() 178 bool getStateFieldValueFromLogEvent(const LogEvent& event, FieldValue* output) { in getStateFieldValueFromLogEvent()
|
D | StateTracker.h | 52 bool getStateValue(const HashableDimensionKey& queryKey, FieldValue* output) const; 75 void handleReset(const int64_t eventTimeNs, const FieldValue& newState); 82 const FieldValue& newState, const bool nested, 87 const FieldValue& oldState, const FieldValue& newState); 90 bool getStateFieldValueFromLogEvent(const LogEvent& event, FieldValue* output);
|
D | StateListener.h | 48 const HashableDimensionKey& primaryKey, const FieldValue& oldState, 49 const FieldValue& newState) = 0;
|
/packages/modules/StatsD/statsd/src/external/ |
D | puller_util.cpp | 70 vector<FieldValue>* const fieldValues = event->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid() 72 FieldValue& fieldValue = fieldValues->at(i); in mapAndMergeIsolatedUidsToHostUid() 89 const std::vector<FieldValue>& lhsValues = lhs->getValues(); in mapAndMergeIsolatedUidsToHostUid() 90 const std::vector<FieldValue>& rhsValues = rhs->getValues(); in mapAndMergeIsolatedUidsToHostUid() 117 vector<FieldValue>* lhsValues = data[i]->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid() 118 vector<FieldValue>* rhsValues = data[i + 1]->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid()
|
/packages/modules/StatsD/statsd/tests/external/ |
D | puller_util_test.cpp | 80 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 107 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 136 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 166 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 200 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 225 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 251 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 277 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 308 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 344 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() [all …]
|
/packages/modules/StatsD/statsd/src/logd/ |
D | LogEvent.cpp | 55 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(1)), Value(trainName))); in LogEvent() 56 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent() 57 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value((int)requiresStaging))); in LogEvent() 58 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value((int)rollbackEnabled))); in LogEvent() 60 FieldValue(Field(mTagId, getSimpleField(5)), Value((int)requiresLowLatencyMonitor))); in LogEvent() 61 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(6)), Value(state))); in LogEvent() 62 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(7)), Value(experimentIds))); in LogEvent() 63 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(8)), Value(userId))); in LogEvent() 73 FieldValue(Field(mTagId, getSimpleField(1)), Value(trainInfo.trainVersionCode))); in LogEvent() 76 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(experimentIdsProto))); in LogEvent() [all …]
|
D | LogEvent.h | 170 const std::vector<FieldValue>& getValues() const { in getValues() 174 std::vector<FieldValue>* getMutableValues() { in getMutableValues() 309 mValues.push_back(FieldValue(f, v)); in addToValues() 317 std::vector<FieldValue> mValues;
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | DurationMetricProducer.h | 63 const HashableDimensionKey& primaryKey, const FieldValue& oldState, 64 const FieldValue& newState) override; 83 const std::vector<FieldValue>& values, 87 const vector<FieldValue>& eventValues);
|
D | MetricProducer.cpp | 158 FieldValue value; in onMatchedLogEventLocked() 307 FieldValue* value) { in queryStateValue() 316 void MetricProducer::mapStateValue(const int32_t atomId, FieldValue* value) { in mapStateValue() 337 FieldValue fieldValue; in getUnknownStateKey()
|
D | GaugeMetricProducer.h | 37 GaugeAtom(std::shared_ptr<vector<FieldValue>> fields, int64_t elapsedTimeNs) in GaugeAtom() 40 std::shared_ptr<vector<FieldValue>> mFields; 202 std::shared_ptr<vector<FieldValue>> getGaugeFields(const LogEvent& event);
|
D | DurationMetricProducer.cpp | 301 const FieldValue& oldState, in onStateChanged() 302 const FieldValue& newState) { in onStateChanged() 305 FieldValue newStateCopy = newState; in onStateChanged() 642 const vector<FieldValue>& eventValues) { in handleStartEvent() 681 const vector<FieldValue>& values, in handleMatchedLogEventValuesLocked() 725 FieldValue value; in handleMatchedLogEventValuesLocked()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | Anomaly_count_e2e_test.cpp | 87 FieldValue fieldValue1(Field(util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST() 92 FieldValue fieldValue2(Field(util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST() 198 FieldValue fieldValue1(Field(util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST() 294 FieldValue fieldValue1(Field(util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST() 326 metadata::FieldValue dimKeyInWhat = metadataDimKey.dimension_key_in_what(0); in TEST() 357 FieldValue fieldValue1(Field(util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | metrics_test_helper.cpp | 24 dimension.addValue(FieldValue(Field(tagId, pos, 0), Value(value))); in getMockedDimensionKey() 32 dimension.addValue(FieldValue(Field(tagId, pos, 0), Value(value))); in getMockedDimensionKeyLongValue()
|
/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.h | 48 const FieldValue& newState) override; 65 void updateCurrentStateKey(const int32_t atomId, const FieldValue& newState);
|