/frameworks/base/cmds/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 | 46 explicit HashableDimensionKey(const std::vector<FieldValue>& values) { in HashableDimensionKey() 54 inline void addValue(const FieldValue& value) { in addValue() 58 inline const std::vector<FieldValue>& getValues() const { in getValues() 62 inline std::vector<FieldValue>* mutableValues() { in mutableValues() 66 inline FieldValue* mutableValue(size_t i) { in mutableValue() 86 std::vector<FieldValue> mValues; 140 bool filterValues(const Matcher& matcherField, const std::vector<FieldValue>& values, 141 FieldValue* output); 153 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values, 166 bool filterPrimaryKey(const std::vector<FieldValue>& values, HashableDimensionKey* output); [all …]
|
D | HashableDimensionKey.cpp | 51 const vector<FieldValue>& dims, in populateStatsDimensionsValueParcelChildren() 59 const FieldValue& dim = dims[index]; in populateStatsDimensionsValueParcelChildren() 154 bool filterValues(const Matcher& matcherField, const vector<FieldValue>& values, in filterValues() 155 FieldValue* output) { in filterValues() 165 bool filterValues(const vector<Matcher>& matcherFields, const vector<FieldValue>& values, in filterValues() 183 bool filterPrimaryKey(const std::vector<FieldValue>& values, HashableDimensionKey* output) { in filterPrimaryKey() 201 const std::vector<FieldValue>& values, std::vector<FieldValue>* output) { in filterGaugeValues() 211 void getDimensionForCondition(const std::vector<FieldValue>& eventValues, in getDimensionForCondition() 230 void getDimensionForState(const std::vector<FieldValue>& eventValues, const Metric2State& link, in getDimensionForState() 291 bool LessThan(const vector<FieldValue>& s1, const vector<FieldValue>& s2) { in LessThan()
|
D | FieldValue.h | 28 struct FieldValue; 414 struct FieldValue { struct 415 FieldValue() {} in FieldValue() argument 416 FieldValue(const Field& field, const Value& value) : mField(field), mValue(value) { in FieldValue() argument 418 bool operator==(const FieldValue& that) const { 421 bool operator!=(const FieldValue& that) const { 424 bool operator<(const FieldValue& that) const { 444 bool isAttributionUidField(const FieldValue& value); argument 447 int getUidIfExists(const FieldValue& value); 452 bool isUidField(const FieldValue& fieldValue);
|
D | statsd_metadata.proto | 31 message FieldValue { message 44 repeated FieldValue dimension_key_in_what = 1; 45 repeated FieldValue state_values_key = 2;
|
D | stats_log_util.h | 33 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values, 46 void writeStateToProto(const FieldValue& state, ProtoOutputStream* protoOutput);
|
/frameworks/base/cmds/statsd/tests/ |
D | LogEvent_test.cpp | 100 const vector<FieldValue>& values = logEvent.getValues(); in TEST() 103 const FieldValue& int32Item = values[0]; in TEST() 109 const FieldValue& int64Item = values[1]; in TEST() 115 const FieldValue& floatItem = values[2]; in TEST() 121 const FieldValue& boolItem = values[3]; in TEST() 149 const vector<FieldValue>& values = logEvent.getValues(); in TEST() 152 const FieldValue& stringItem = values[0]; in TEST() 158 const FieldValue& storageItem = values[1]; in TEST() 186 const vector<FieldValue>& values = logEvent.getValues(); in TEST() 189 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 | 176 dim.addValue(FieldValue(field1, value1)); in TEST() 177 dim.addValue(FieldValue(field2, value2)); in TEST() 180 subDim1.addValue(FieldValue(field1, value1)); in TEST() 183 subDim1.addValue(FieldValue(field2, value2)); in TEST() 190 subDim3.addValue(FieldValue(field1, value11)); in TEST() 341 dimensionKey.addValue(FieldValue(field1, value1)); in TEST() 342 dimensionKey.addValue(FieldValue(field2, value2)); in TEST() 343 dimensionKey.addValue(FieldValue(field3, value3)); in TEST() 344 dimensionKey.addValue(FieldValue(field4, value4)); in TEST() 345 dimensionKey.addValue(FieldValue(field5, value5)); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/state/ |
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 | 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() 87 void StateTracker::handleReset(const int64_t eventTimeNs, const FieldValue& newState) { in handleReset() 104 const FieldValue state(mField, Value(kStateUnknown)); in clearStateForPrimaryKey() 114 const FieldValue& newState, const bool nested, in updateStateForPrimaryKey() 116 FieldValue oldState; in updateStateForPrimaryKey() 168 const FieldValue& oldState, const FieldValue& newState) { in notifyListeners() 177 bool getStateFieldValueFromLogEvent(const LogEvent& event, FieldValue* output) { in getStateFieldValueFromLogEvent()
|
D | StateListener.h | 48 const HashableDimensionKey& primaryKey, const FieldValue& oldState, 49 const FieldValue& newState) = 0;
|
/frameworks/base/cmds/statsd/src/external/ |
D | puller_util.cpp | 69 vector<FieldValue>* const fieldValues = event->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid() 71 FieldValue& fieldValue = fieldValues->at(i); in mapAndMergeIsolatedUidsToHostUid() 95 const std::vector<FieldValue>& lhsValues = lhs->getValues(); in mapAndMergeIsolatedUidsToHostUid() 96 const std::vector<FieldValue>& rhsValues = rhs->getValues(); in mapAndMergeIsolatedUidsToHostUid() 120 vector<FieldValue>* lhsValues = data[i]->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid() 121 vector<FieldValue>* rhsValues = data[i + 1]->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid()
|
/frameworks/base/cmds/statsd/tests/external/ |
D | puller_util_test.cpp | 76 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 103 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 132 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 162 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 196 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 221 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 247 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 278 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 314 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() 351 const vector<FieldValue>* actualFieldValues = &data[0]->getValues(); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEvent.cpp | 82 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(1)), Value(trainName))); in LogEvent() 83 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent() 84 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value((int)requiresStaging))); in LogEvent() 85 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value((int)rollbackEnabled))); in LogEvent() 87 FieldValue(Field(mTagId, getSimpleField(5)), Value((int)requiresLowLatencyMonitor))); in LogEvent() 88 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(6)), Value(state))); in LogEvent() 89 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(7)), Value(experimentIds))); in LogEvent() 90 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(8)), Value(userId))); in LogEvent() 100 FieldValue(Field(mTagId, getSimpleField(1)), Value(trainInfo.trainVersionCode))); in LogEvent() 103 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(experimentIdsProto))); in LogEvent() [all …]
|
D | LogEvent.h | 139 const std::vector<FieldValue>& getValues() const { in getValues() 143 std::vector<FieldValue>* getMutableValues() { in getMutableValues() 289 mValues.push_back(FieldValue(f, v)); in addToValues() 297 std::vector<FieldValue> mValues;
|
/frameworks/base/cmds/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()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | GaugeMetricProducer.h | 37 GaugeAtom(std::shared_ptr<vector<FieldValue>> fields, int64_t elapsedTimeNs) in GaugeAtom() 40 std::shared_ptr<vector<FieldValue>> mFields; 181 std::shared_ptr<vector<FieldValue>> getGaugeFields(const LogEvent& event);
|
D | MetricProducer.cpp | 121 FieldValue value; in onMatchedLogEventLocked() 270 FieldValue* value) { in queryStateValue() 279 void MetricProducer::mapStateValue(const int32_t atomId, FieldValue* value) { in mapStateValue() 300 FieldValue fieldValue; in getUnknownStateKey()
|
D | CountMetricProducer.h | 57 const HashableDimensionKey& primaryKey, const FieldValue& oldState, 58 const FieldValue& newState) override;
|
D | MetricProducer.h | 189 const HashableDimensionKey& primaryKey, const FieldValue& oldState, in onStateChanged() 190 const FieldValue& newState){}; in onStateChanged() 384 FieldValue* value); 389 void mapStateValue(const int32_t atomId, FieldValue* value);
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | OringDurationTracker.h | 48 const FieldValue& newState) override; 65 void updateCurrentStateKey(const int32_t atomId, const FieldValue& newState);
|
D | MaxDurationTracker.h | 58 const FieldValue& newState) override; 68 void updateCurrentStateKey(const int32_t atomId, const FieldValue& newState);
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | ConfigTtl_e2e_test.cpp | 77 FieldValue fieldValue1(Field(util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST() 82 FieldValue fieldValue2(Field(util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
|
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()
|