Searched refs:stateLink (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/cmds/statsd/src/ |
D | HashableDimensionKey.cpp | 276 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/ |
D | DurationMetricProducer.cpp | 120 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()
|
D | CountMetricProducer.cpp | 104 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()
|
D | MetricProducer.cpp | 106 for (const auto& stateLink : mMetric2StateLinks) { in onMatchedLogEventLocked() local 107 getDimensionForState(event.getValues(), stateLink, in onMatchedLogEventLocked() 108 &statePrimaryKeys[stateLink.stateAtomId]); in onMatchedLogEventLocked()
|
D | metrics_manager_util.cpp | 539 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()
|
D | ValueMetricProducer.cpp | 147 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/ |
D | ValueMetric_pull_e2e_test.cpp | 593 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()
|
D | CountMetric_e2e_test.cpp | 472 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()
|
D | DurationMetric_e2e_test.cpp | 1201 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/ |
D | ValueMetricProducer_test.cpp | 4403 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()
|