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.cpp61 int getStateInt(StateManager& mgr, int atomId, const HashableDimensionKey& queryKey) { in getStateInt() argument
63 mgr.getStateValue(atomId, queryKey, &output); in getStateInt()
134 HashableDimensionKey queryKey = DEFAULT_DIMENSION_KEY; in TEST() local
136 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
144 queryKey = DEFAULT_DIMENSION_KEY; in TEST()
146 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
154 queryKey = DEFAULT_DIMENSION_KEY; in TEST()
156 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
164 queryKey = DEFAULT_DIMENSION_KEY; in TEST()
166 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.cpp75 bool StateTracker::getStateValue(const HashableDimensionKey& queryKey, FieldValue* output) const { in getStateValue() argument
78 if (const auto it = mStateMap.find(queryKey); it != mStateMap.end()) { in getStateValue()
85 VLOG("StateTracker did not find state value for query key %s", queryKey.toString().c_str()); in getStateValue()
DStateManager.h68 bool getStateValue(int32_t atomId, const HashableDimensionKey& queryKey,
DStateTracker.h53 bool getStateValue(const HashableDimensionKey& queryKey, FieldValue* output) const;
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp1043 std::vector<uint8_t> queryKey; in makeResponseFromBinaryPacket() local
1044 if (!header->write(&queryKey)) return false; in makeResponseFromBinaryPacket()
1046 queryKey[0] = 0; in makeResponseFromBinaryPacket()
1047 queryKey[1] = 0; in makeResponseFromBinaryPacket()
1049 const auto it = packet_mappings_.find(queryKey); in makeResponseFromBinaryPacket()
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp354 void MetricProducer::queryStateValue(int32_t atomId, const HashableDimensionKey& queryKey, in queryStateValue() argument
356 if (!StateManager::getInstance().getStateValue(atomId, queryKey, value)) { in queryStateValue()
DMetricProducer.h491 void queryStateValue(int32_t atomId, const HashableDimensionKey& queryKey, FieldValue* value);
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp416 ConditionKey queryKey; in TEST_F() local
419 allConditionTrackers[3]->isConditionMet(queryKey, allConditionTrackers, false, conditionCache); in TEST_F()
420 allConditionTrackers[4]->isConditionMet(queryKey, allConditionTrackers, false, conditionCache); in TEST_F()