/frameworks/base/cmds/statsd/tests/ |
D | LogEntryMatcher_test.cpp | 116 UidMap uidMap; in TEST() local 127 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() 131 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() 135 UidMap uidMap; in TEST() local 162 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() 165 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() 168 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() 172 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() 175 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() 179 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST() [all …]
|
D | MetricsManager_test.cpp | 383 UidMap uidMap; in TEST() local 404 kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in TEST() 431 UidMap uidMap; in TEST() local 451 EXPECT_TRUE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() 468 UidMap uidMap; in TEST() local 488 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() 499 UidMap uidMap; in TEST() local 519 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() 530 UidMap uidMap; in TEST() local 549 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap, pullerManager, anomalyAlarmMonitor, in TEST() [all …]
|
D | statsd_test_util.cpp | 629 sp<MockUidMap> uidMap = new NaggyMock<MockUidMap>(); in makeMockUidMapForOneHost() local 630 EXPECT_CALL(*uidMap, getHostUidOrSelf(_)).WillRepeatedly(ReturnArg<0>()); in makeMockUidMapForOneHost() 632 EXPECT_CALL(*uidMap, getHostUidOrSelf(isolatedUid)).WillRepeatedly(Return(hostUid)); in makeMockUidMapForOneHost() 635 return uidMap; in makeMockUidMapForOneHost() 639 sp<MockUidMap> uidMap = new StrictMock<MockUidMap>(); in makeMockUidMapForPackage() local 640 EXPECT_CALL(*uidMap, getAppUid(_)).Times(AnyNumber()); in makeMockUidMapForPackage() 641 EXPECT_CALL(*uidMap, getAppUid(pkg)).WillRepeatedly(Return(uids)); in makeMockUidMapForPackage() 643 return uidMap; in makeMockUidMapForPackage() 966 const int32_t atomTag, const sp<UidMap> uidMap) { in CreateStatsLogProcessor() argument 981 new StatsLogProcessor(uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in CreateStatsLogProcessor()
|
/frameworks/base/cmds/statsd/tests/external/ |
D | puller_util_test.cpp | 72 sp<MockUidMap> uidMap = makeMockUidMap(); in TEST() local 73 mapAndMergeIsolatedUidsToHostUid(data, uidMap, uidAtomTagId, additiveFields); in TEST() 98 sp<MockUidMap> uidMap = makeMockUidMap(); in TEST() local 99 mapAndMergeIsolatedUidsToHostUid(data, uidMap, uidAtomTagId, additiveFields); in TEST() 127 sp<MockUidMap> uidMap = makeMockUidMap(); in TEST() local 128 mapAndMergeIsolatedUidsToHostUid(data, uidMap, uidAtomTagId, additiveFields); in TEST() 156 sp<MockUidMap> uidMap = makeMockUidMap(); in TEST() local 157 mapAndMergeIsolatedUidsToHostUid(data, uidMap, uidAtomTagId, additiveFields); in TEST() 191 sp<MockUidMap> uidMap = makeMockUidMap(); in TEST() local 192 mapAndMergeIsolatedUidsToHostUid(data, uidMap, uidAtomTagId, additiveFields); in TEST() [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobPackageTracker.java | 142 ArrayMap<String, PackageEntry> uidMap = mEntries.get(uid); in getOrCreateEntry() local 143 if (uidMap == null) { in getOrCreateEntry() 144 uidMap = new ArrayMap<>(); in getOrCreateEntry() 145 mEntries.put(uid, uidMap); in getOrCreateEntry() 147 PackageEntry entry = uidMap.get(pkg); in getOrCreateEntry() 150 uidMap.put(pkg, entry); in getOrCreateEntry() 156 ArrayMap<String, PackageEntry> uidMap = mEntries.get(uid); in getEntry() local 157 if (uidMap == null) { in getEntry() 160 return uidMap.get(pkg); in getEntry() 227 ArrayMap<String, PackageEntry> uidMap = mEntries.valueAt(i); in finish() local [all …]
|
/frameworks/base/cmds/statsd/src/matchers/ |
D | matcher_util.cpp | 84 bool tryMatchString(const UidMap& uidMap, const FieldValue& fieldValue, const string& str_match) { in tryMatchString() argument 91 std::set<string> packageNames = uidMap.getAppNamesFromUid(uid, true /* normalize*/); in tryMatchString() 99 bool matchesSimple(const UidMap& uidMap, const FieldValueMatcher& matcher, in matchesSimple() argument 204 if (!matchesSimple(uidMap, subMatcher, values, range.first, range.second, in matchesSimple() 230 if (tryMatchString(uidMap, values[i], matcher.eq_string())) { in matchesSimple() 241 if (tryMatchString(uidMap, values[i], str)) { in matchesSimple() 256 if (tryMatchString(uidMap, values[i], str)) { in matchesSimple() 356 bool matchesSimple(const UidMap& uidMap, const SimpleAtomMatcher& simpleMatcher, in matchesSimple() argument 363 if (!matchesSimple(uidMap, matcher, event.getValues(), 0, event.getValues().size(), 0)) { in matchesSimple()
|
D | SimpleLogMatchingTracker.cpp | 32 const UidMap& uidMap) in SimpleLogMatchingTracker() argument 33 : LogMatchingTracker(id, index), mMatcher(matcher), mUidMap(uidMap) { in SimpleLogMatchingTracker()
|
D | matcher_util.h | 39 bool matchesSimple(const UidMap& uidMap,
|
D | SimpleLogMatchingTracker.h | 34 const UidMap& uidMap);
|
/frameworks/base/cmds/statsd/src/state/ |
D | StateManager.cpp | 96 void StateManager::updateLogSources(const sp<UidMap>& uidMap) { in updateLogSources() argument 99 auto uids = uidMap->getAppUid(pkg); in updateLogSources() 104 void StateManager::notifyAppChanged(const string& apk, const sp<UidMap>& uidMap) { in notifyAppChanged() argument 106 updateLogSources(uidMap); in notifyAppChanged()
|
D | StateManager.h | 71 void updateLogSources(const sp<UidMap>& uidMap); 73 void notifyAppChanged(const string& apk, const sp<UidMap>& uidMap);
|
/frameworks/base/cmds/statsd/tests/shell/ |
D | ShellSubscriber_test.cpp | 40 void runShellTest(ShellSubscription config, sp<MockUidMap> uidMap, in runShellTest() argument 60 sp<ShellSubscriber> shellClient = new ShellSubscriber(uidMap, pullerManager); in runShellTest() 123 sp<MockUidMap> uidMap = new NaggyMock<MockUidMap>(); in TEST() local 142 runShellTest(config, uidMap, pullerManager, pushedList, shellData); in TEST() 189 sp<MockUidMap> uidMap = new NaggyMock<MockUidMap>(); in TEST() local 201 runShellTest(getPulledConfig(), uidMap, pullerManager, vector<std::shared_ptr<LogEvent>>(), in TEST()
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | GaugeMetricProducer_test.cpp | 97 UidMap uidMap; in TEST() local 101 new SimpleLogMatchingTracker(atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in TEST() 130 UidMap uidMap; in TEST() local 135 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in TEST() 220 UidMap uidMap; in TEST_P() local 225 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in TEST_P() 304 UidMap uidMap; in TEST_P() local 309 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in TEST_P() 381 UidMap uidMap; in TEST() local 386 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in TEST() [all …]
|
D | ValueMetricProducer_test.cpp | 102 UidMap uidMap; in createValueProducerNoConditions() local 107 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in createValueProducerNoConditions() 125 UidMap uidMap; in createValueProducerWithCondition() local 130 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in createValueProducerWithCondition() 150 UidMap uidMap; in createValueProducerWithState() local 155 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in createValueProducerWithState() 175 UidMap uidMap; in createValueProducerWithConditionAndState() local 180 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in createValueProducerWithConditionAndState() 240 UidMap uidMap; in TEST() local 245 atomMatcherId, logEventMatcherIndex, atomMatcher, uidMap)}); in TEST() [all …]
|
/frameworks/base/cmds/statsd/src/external/ |
D | puller_util.cpp | 49 void mapAndMergeIsolatedUidsToHostUid(vector<shared_ptr<LogEvent>>& data, const sp<UidMap>& uidMap, in mapAndMergeIsolatedUidsToHostUid() argument 73 const int hostUid = uidMap->getHostUidOrSelf(fieldValue.mValue.int_value); in mapAndMergeIsolatedUidsToHostUid() 81 const int hostUid = uidMap->getHostUidOrSelf(value.int_value); in mapAndMergeIsolatedUidsToHostUid()
|
D | StatsPuller.cpp | 33 void StatsPuller::SetUidMap(const sp<UidMap>& uidMap) { mUidMap = uidMap; } in SetUidMap() argument
|
D | puller_util.h | 29 const sp<UidMap>& uidMap, int tagId,
|
D | StatsPuller.h | 62 static void SetUidMap(const sp<UidMap>& uidMap);
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | metrics_manager_util.h | 48 const UidMap& uidMap, 100 const int64_t currentTimeNs, UidMap& uidMap, const sp<StatsPullerManager>& pullerManager, 119 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap,
|
D | MetricsManager.cpp | 62 const sp<UidMap>& uidMap, in MetricsManager() argument 67 mUidMap(uidMap), in MetricsManager() 80 key, config, *uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in MetricsManager()
|
D | metrics_manager_util.cpp | 238 bool initLogTrackers(const StatsdConfig& config, const UidMap& uidMap, in initLogTrackers() argument 253 logMatcher.id(), index, logMatcher.simple_atom_matcher(), uidMap)); in initLogTrackers() 917 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap, in initStatsdConfig() argument 942 if (!initLogTrackers(config, uidMap, logTrackerMap, allAtomMatchers, allTagIds)) { in initStatsdConfig()
|
D | MetricsManager.h | 42 const int64_t currentTimeNs, const sp<UidMap>& uidMap,
|
/frameworks/base/cmds/statsd/src/shell/ |
D | ShellSubscriber.h | 62 ShellSubscriber(sp<UidMap> uidMap, sp<StatsPullerManager> pullerMgr) in ShellSubscriber() argument 63 : mUidMap(uidMap), mPullerMgr(pullerMgr){}; in ShellSubscriber()
|
/frameworks/base/cmds/statsd/benchmark/ |
D | metric_util.cpp | 353 sp<UidMap> uidMap = new UidMap(); in CreateStatsLogProcessor() local 358 new StatsLogProcessor(uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in CreateStatsLogProcessor()
|
/frameworks/base/cmds/statsd/tests/state/ |
D | StateTracker_test.cpp | 119 sp<MockUidMap> uidMap = makeMockUidMapForPackage("com.android.systemui", {10111}); in TEST() local 122 mgr.updateLogSources(uidMap); in TEST()
|