Home
last modified time | relevance | path

Searched refs:stateLink (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/cmds/statsd/src/
DHashableDimensionKey.cpp276 for (auto stateLink : stateLinks) { in linked() local
277 if (stateLink.stateAtomId != stateAtomId) { in linked()
281 for (size_t i = 0; i < stateLink.stateFields.size(); i++) { in linked()
282 if (stateLink.stateFields[i].mMatcher == stateField && in linked()
283 stateLink.metricFields[i].mMatcher == metricField) { in linked()
/frameworks/base/cmds/statsd/src/metrics/
DDurationMetricProducer.cpp120 for (const auto& stateLink : metric.state_link()) { in DurationMetricProducer() local
122 ms.stateAtomId = stateLink.state_atom_id(); in DurationMetricProducer()
123 translateFieldMatcher(stateLink.fields_in_what(), &ms.metricFields); in DurationMetricProducer()
124 translateFieldMatcher(stateLink.fields_in_state(), &ms.stateFields); in DurationMetricProducer()
571 for (const auto& stateLink : mMetric2StateLinks) { in onMatchedLogEventLocked() local
572 getDimensionForState(event.getValues(), stateLink, in onMatchedLogEventLocked()
573 &statePrimaryKeys[stateLink.stateAtomId]); in onMatchedLogEventLocked()
DCountMetricProducer.cpp104 for (const auto& stateLink : metric.state_link()) { in CountMetricProducer() local
106 ms.stateAtomId = stateLink.state_atom_id(); in CountMetricProducer()
107 translateFieldMatcher(stateLink.fields_in_what(), &ms.metricFields); in CountMetricProducer()
108 translateFieldMatcher(stateLink.fields_in_state(), &ms.stateFields); in CountMetricProducer()
DMetricProducer.cpp106 for (const auto& stateLink : mMetric2StateLinks) { in onMatchedLogEventLocked() local
107 getDimensionForState(event.getValues(), stateLink, in onMatchedLogEventLocked()
108 &statePrimaryKeys[stateLink.stateAtomId]); in onMatchedLogEventLocked()
Dmetrics_manager_util.cpp539 for (const auto& stateLink : metric.state_link()) { in initMetrics() local
540 if (!handleMetricWithStateLink(stateLink.fields_in_what(), dimensionsInWhat)) { in initMetrics()
675 for (const auto& stateLink : metric.state_link()) { in initMetrics() local
676 if (!handleMetricWithStateLink(stateLink.fields_in_what(), dimensionsInWhat)) { in initMetrics()
DValueMetricProducer.cpp147 for (const auto& stateLink : metric.state_link()) { in ValueMetricProducer() local
149 ms.stateAtomId = stateLink.state_atom_id(); in ValueMetricProducer()
150 translateFieldMatcher(stateLink.fields_in_what(), &ms.metricFields); in ValueMetricProducer()
151 translateFieldMatcher(stateLink.fields_in_state(), &ms.stateFields); in ValueMetricProducer()
/frameworks/base/cmds/statsd/tests/e2e/
DValueMetric_pull_e2e_test.cpp593 MetricStateLink* stateLink = valueMetric->add_state_link(); in TEST() local
594 stateLink->set_state_atom_id(UID_PROCESS_STATE_ATOM_ID); in TEST()
595 auto fieldsInWhat = stateLink->mutable_fields_in_what(); in TEST()
597 auto fieldsInState = stateLink->mutable_fields_in_state(); in TEST()
651 MetricStateLink* stateLink = valueMetric->add_state_link(); in TEST() local
652 stateLink->set_state_atom_id(UID_PROCESS_STATE_ATOM_ID); in TEST()
653 auto fieldsInWhat = stateLink->mutable_fields_in_what(); in TEST()
655 auto fieldsInState = stateLink->mutable_fields_in_state(); in TEST()
DCountMetric_e2e_test.cpp472 MetricStateLink* stateLink = countMetric->add_state_link(); in TEST() local
473 stateLink->set_state_atom_id(UID_PROCESS_STATE_ATOM_ID); in TEST()
474 auto fieldsInWhat = stateLink->mutable_fields_in_what(); in TEST()
476 auto fieldsInState = stateLink->mutable_fields_in_state(); in TEST()
666 MetricStateLink* stateLink = countMetric->add_state_link(); in TEST() local
667 stateLink->set_state_atom_id(UID_PROCESS_STATE_ATOM_ID); in TEST()
668 auto fieldsInWhat = stateLink->mutable_fields_in_what(); in TEST()
670 auto fieldsInState = stateLink->mutable_fields_in_state(); in TEST()
DDurationMetric_e2e_test.cpp1201 auto stateLink = durationMetric->add_state_link(); in TEST() local
1202 stateLink->set_state_atom_id(UID_PROCESS_STATE_ATOM_ID); in TEST()
1203 auto fieldsInWhat = stateLink->mutable_fields_in_what(); in TEST()
1205 auto fieldsInState = stateLink->mutable_fields_in_state(); in TEST()
1248 auto stateLink = durationMetric->add_state_link(); in TEST() local
1249 stateLink->set_state_atom_id(UID_PROCESS_STATE_ATOM_ID); in TEST()
1250 auto fieldsInWhat = stateLink->mutable_fields_in_what(); in TEST()
1252 auto fieldsInState = stateLink->mutable_fields_in_state(); in TEST()
/frameworks/base/cmds/statsd/tests/metrics/
DValueMetricProducer_test.cpp4403 MetricStateLink* stateLink = metric.add_state_link(); in TEST() local
4404 stateLink->set_state_atom_id(UID_PROCESS_STATE_ATOM_ID); in TEST()
4405 auto fieldsInWhat = stateLink->mutable_fields_in_what(); in TEST()
4407 auto fieldsInState = stateLink->mutable_fields_in_state(); in TEST()