Home
last modified time | relevance | path

Searched refs:FieldValue (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/cmds/statsd/tests/
DLogEvent_test.cpp57 const FieldValue& item0 = event1.getValues()[0]; in TEST()
62 const FieldValue& item1 = event1.getValues()[1]; in TEST()
67 const FieldValue& item2 = event1.getValues()[2]; in TEST()
72 const FieldValue& item3 = event1.getValues()[3]; in TEST()
77 const FieldValue& item4 = event1.getValues()[4]; in TEST()
82 const FieldValue& item5 = event1.getValues()[5]; in TEST()
87 const FieldValue& item6 = event1.getValues()[6]; in TEST()
92 const FieldValue& item7 = event1.getValues()[7]; in TEST()
128 const FieldValue& item0 = event1.getValues()[0]; in TEST()
133 const FieldValue& item1 = event1.getValues()[1]; in TEST()
[all …]
DFieldValue_test.cpp154 dim.addValue(FieldValue(field1, value1)); in TEST()
155 dim.addValue(FieldValue(field2, value2)); in TEST()
158 subDim1.addValue(FieldValue(field1, value1)); in TEST()
161 subDim1.addValue(FieldValue(field2, value2)); in TEST()
168 subDim3.addValue(FieldValue(field1, value11)); in TEST()
311 dim.addValue(FieldValue(field1, value1)); in TEST()
312 dim.addValue(FieldValue(field2, value2)); in TEST()
313 dim.addValue(FieldValue(field3, value3)); in TEST()
314 dim.addValue(FieldValue(field4, value4)); in TEST()
337 dim.addValue(FieldValue(field1, value1)); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp70 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.uids[i]))); in LogEvent()
72 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.tags[i]))); in LogEvent()
83 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].int_value))); in LogEvent()
87 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].long_value))); in LogEvent()
90 mValues.push_back(FieldValue( in LogEvent()
94 mValues.push_back(FieldValue( in LogEvent()
99 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].str_value))); in LogEvent()
102 mValues.push_back(FieldValue( in LogEvent()
147 mValues.push_back(FieldValue(Field(mTagId, pos, 0 /* depth */), Value(uid))); in LogEvent()
151 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.first))); in LogEvent()
[all …]
DLogEvent.h192 const std::vector<FieldValue>& getValues() const { in getValues()
196 std::vector<FieldValue>* getMutableValues() { in getMutableValues()
217 std::vector<FieldValue> mValues;
/frameworks/base/cmds/statsd/src/
DHashableDimensionKey.h39 explicit HashableDimensionKey(const std::vector<FieldValue>& values) { in HashableDimensionKey()
47 inline void addValue(const FieldValue& value) { in addValue()
51 inline const std::vector<FieldValue>& getValues() const { in getValues()
55 inline std::vector<FieldValue>* mutableValues() { in mutableValues()
59 inline FieldValue* mutableValue(size_t i) { in mutableValue()
75 std::vector<FieldValue> mValues;
132 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values,
141 void filterGaugeValues(const std::vector<Matcher>& matchers, const std::vector<FieldValue>& values,
142 std::vector<FieldValue>* output);
144 void getDimensionForCondition(const std::vector<FieldValue>& eventValues,
DFieldValue.h27 struct FieldValue;
358 struct FieldValue { struct
359 FieldValue() {} in FieldValue() function
360 FieldValue(const Field& field, const Value& value) : mField(field), mValue(value) { in FieldValue() function
362 bool operator==(const FieldValue& that) const {
365 bool operator!=(const FieldValue& that) const {
368 bool operator<(const FieldValue& that) const {
387 bool isAttributionUidField(const FieldValue& value); argument
390 int getUidIfExists(const FieldValue& value);
DHashableDimensionKey.cpp60 bool filterValues(const vector<Matcher>& matcherFields, const vector<FieldValue>& values, in filterValues()
79 const std::vector<FieldValue>& values, std::vector<FieldValue>* output) { in filterGaugeValues()
89 void getDimensionForCondition(const std::vector<FieldValue>& eventValues, in getDimensionForCondition()
109 bool LessThan(const vector<FieldValue>& s1, const vector<FieldValue>& s2) { in LessThan()
Dstats_log_util.cpp88 void writeDimensionToProtoHelper(const std::vector<FieldValue>& dims, size_t* index, int depth, in writeDimensionToProtoHelper()
155 void writeDimensionLeafToProtoHelper(const std::vector<FieldValue>& dims, in writeDimensionLeafToProtoHelper()
321 void writeFieldValueTreeToStreamHelper(int tagId, const std::vector<FieldValue>& dims, in writeFieldValueTreeToStreamHelper()
406 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values, in writeFieldValueTreeToStream()
Dstats_log_util.h30 void writeFieldValueTreeToStream(int tagId, const std::vector<FieldValue>& values,
DFieldValue.cpp118 bool isAttributionUidField(const FieldValue& value) { in isAttributionUidField()
126 int32_t getUidIfExists(const FieldValue& value) { in getUidIfExists()
/frameworks/base/cmds/statsd/src/external/
Dpuller_util.cpp112 const std::vector<FieldValue>& lhsValues = lhs->getValues(); in mapAndMergeIsolatedUidsToHostUid()
113 const std::vector<FieldValue>& rhsValues = rhs->getValues(); in mapAndMergeIsolatedUidsToHostUid()
139 vector<FieldValue>* lhsValues = data[i]->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid()
140 vector<FieldValue>* rhsValues = data[i + 1]->getMutableValues(); in mapAndMergeIsolatedUidsToHostUid()
/frameworks/base/cmds/statsd/src/metrics/
DGaugeMetricProducer.h37 GaugeAtom(std::shared_ptr<vector<FieldValue>> fields, int64_t elapsedTimeNs) in GaugeAtom()
40 std::shared_ptr<vector<FieldValue>> mFields;
176 std::shared_ptr<vector<FieldValue>> getGaugeFields(const LogEvent& event);
DGaugeMetricProducer.cpp403 std::shared_ptr<vector<FieldValue>> GaugeMetricProducer::getGaugeFields(const LogEvent& event) { in getGaugeFields()
404 std::shared_ptr<vector<FieldValue>> gaugeFields; in getGaugeFields()
406 gaugeFields = std::make_shared<vector<FieldValue>>(); in getGaugeFields()
409 gaugeFields = std::make_shared<vector<FieldValue>>(event.getValues()); in getGaugeFields()
607 totalSize += atom.mFields->size() * sizeof(FieldValue); in byteSizeLocked()
DValueMetricProducer.cpp640 for (const FieldValue& value : event.getValues()) { in getDoubleOrLong()
/frameworks/base/cmds/statsd/tests/e2e/
DAnomaly_count_e2e_test.cpp86 FieldValue fieldValue1(Field(android::util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
91 FieldValue fieldValue2(Field(android::util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
189 FieldValue fieldValue1(Field(android::util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
194 FieldValue fieldValue2(Field(android::util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
DConfigTtl_e2e_test.cpp77 FieldValue fieldValue1(Field(android::util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
82 FieldValue fieldValue2(Field(android::util::WAKELOCK_STATE_CHANGED, (int32_t)0x02010101), in TEST()
DAnomaly_duration_sum_e2e_test.cpp83 HashableDimensionKey({FieldValue(Field(android::util::WAKELOCK_STATE_CHANGED,
88 HashableDimensionKey({FieldValue(Field(android::util::WAKELOCK_STATE_CHANGED,
/frameworks/base/cmds/statsd/tests/metrics/
Dmetrics_test_helper.cpp24 dimension.addValue(FieldValue(Field(tagId, pos, 0), Value(value))); in getMockedDimensionKey()
/frameworks/base/cmds/statsd/src/subscriber/
DSubscriberReporter.cpp119 void getStatsDimensionsValueHelper(const vector<FieldValue>& dims, size_t* index, int depth, in getStatsDimensionsValueHelper()
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp101 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple()
/frameworks/base/cmds/statsd/
DAndroid.bp57 "src/FieldValue.cpp",
/frameworks/base/cmds/statsd/tests/anomaly/
DAnomalyTracker_test.cpp40 dim.addValue(FieldValue(Field(1, pos, 0), Value(value))); in getMockMetricDimensionKey()
/frameworks/base/cmds/statsd/tests/condition/
DSimpleConditionTracker_test.cpp106 dim.addValue(FieldValue(field, value)); in getWakeLockQueryKey()