Home
last modified time | relevance | path

Searched refs:queryKey (Results 1 – 9 of 9) sorted by relevance

/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp60 int getStateInt(StateManager& mgr, int atomId, const HashableDimensionKey& queryKey) { in getStateInt() argument
62 mgr.getStateValue(atomId, queryKey, &output); in getStateInt()
132 HashableDimensionKey queryKey = DEFAULT_DIMENSION_KEY; in TEST() local
134 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
142 queryKey = DEFAULT_DIMENSION_KEY; in TEST()
144 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
152 queryKey = DEFAULT_DIMENSION_KEY; in TEST()
154 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
162 queryKey = DEFAULT_DIMENSION_KEY; in TEST()
164 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp140 ConditionKey queryKey; in TEST() local
145 conditionTracker.isConditionMet(queryKey, allPredicates, false, conditionCache); in TEST()
194 ConditionKey queryKey; in TEST() local
199 conditionTracker.isConditionMet(queryKey, allPredicates, false, conditionCache); in TEST()
433 const auto queryKey = getWakeLockQueryKey(position, uids, conditionName); in TEST_P() local
436 conditionTracker.isConditionMet(queryKey, allPredicates, false, conditionCache); in TEST_P()
488 conditionTracker.isConditionMet(queryKey, allPredicates, false, conditionCache); in TEST_P()
536 ConditionKey queryKey; in TEST() local
539 conditionTracker.isConditionMet(queryKey, allPredicates, true, conditionCache); in TEST()
585 conditionTracker.isConditionMet(queryKey, allPredicates, true, conditionCache); in TEST()
[all …]
/packages/modules/StatsD/statsd/src/state/
DStateTracker.cpp74 bool StateTracker::getStateValue(const HashableDimensionKey& queryKey, FieldValue* output) const { in getStateValue() argument
77 if (const auto it = mStateMap.find(queryKey); it != mStateMap.end()) { in getStateValue()
84 VLOG("StateTracker did not find state value for query key %s", queryKey.toString().c_str()); in getStateValue()
DStateManager.h67 bool getStateValue(const int32_t atomId, const HashableDimensionKey& queryKey,
DStateTracker.h52 bool getStateValue(const HashableDimensionKey& queryKey, FieldValue* output) const;
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp306 void MetricProducer::queryStateValue(const int32_t atomId, const HashableDimensionKey& queryKey, in queryStateValue() argument
308 if (!StateManager::getInstance().getStateValue(atomId, queryKey, value)) { in queryStateValue()
DMetricProducer.h470 void queryStateValue(const int32_t atomId, const HashableDimensionKey& queryKey,
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp1047 std::vector<uint8_t> queryKey; in makeResponseFromBinaryPacket() local
1048 if (!header->write(&queryKey)) return false; in makeResponseFromBinaryPacket()
1050 queryKey[0] = 0; in makeResponseFromBinaryPacket()
1051 queryKey[1] = 0; in makeResponseFromBinaryPacket()
1053 const auto it = packet_mappings_.find(queryKey); in makeResponseFromBinaryPacket()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp417 ConditionKey queryKey; in TEST() local
420 allConditionTrackers[3]->isConditionMet(queryKey, allConditionTrackers, false, conditionCache); in TEST()
421 allConditionTrackers[4]->isConditionMet(queryKey, allConditionTrackers, false, conditionCache); in TEST()