/packages/modules/StatsD/statsd/tests/state/ |
D | StateTracker_test.cpp | 61 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/ |
D | SimpleConditionTracker_test.cpp | 140 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/ |
D | StateTracker.cpp | 75 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()
|
D | StateManager.h | 68 bool getStateValue(int32_t atomId, const HashableDimensionKey& queryKey,
|
D | StateTracker.h | 53 bool getStateValue(const HashableDimensionKey& queryKey, FieldValue* output) const;
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder.cpp | 1043 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/ |
D | MetricProducer.cpp | 354 void MetricProducer::queryStateValue(int32_t atomId, const HashableDimensionKey& queryKey, in queryStateValue() argument 356 if (!StateManager::getInstance().getStateValue(atomId, queryKey, value)) { in queryStateValue()
|
D | MetricProducer.h | 491 void queryStateValue(int32_t atomId, const HashableDimensionKey& queryKey, FieldValue* value);
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 416 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()
|