Home
last modified time | relevance | path

Searched refs:uidMap (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp116 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 …]
DMetricsManager_test.cpp383 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 …]
Dstatsd_test_util.cpp629 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/
Dpuller_util_test.cpp72 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/
DJobPackageTracker.java142 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/
Dmatcher_util.cpp84 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()
DSimpleLogMatchingTracker.cpp32 const UidMap& uidMap) in SimpleLogMatchingTracker() argument
33 : LogMatchingTracker(id, index), mMatcher(matcher), mUidMap(uidMap) { in SimpleLogMatchingTracker()
Dmatcher_util.h39 bool matchesSimple(const UidMap& uidMap,
DSimpleLogMatchingTracker.h34 const UidMap& uidMap);
/frameworks/base/cmds/statsd/src/state/
DStateManager.cpp96 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()
DStateManager.h71 void updateLogSources(const sp<UidMap>& uidMap);
73 void notifyAppChanged(const string& apk, const sp<UidMap>& uidMap);
/frameworks/base/cmds/statsd/tests/shell/
DShellSubscriber_test.cpp40 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/
DGaugeMetricProducer_test.cpp97 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 …]
DValueMetricProducer_test.cpp102 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/
Dpuller_util.cpp49 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()
DStatsPuller.cpp33 void StatsPuller::SetUidMap(const sp<UidMap>& uidMap) { mUidMap = uidMap; } in SetUidMap() argument
Dpuller_util.h29 const sp<UidMap>& uidMap, int tagId,
DStatsPuller.h62 static void SetUidMap(const sp<UidMap>& uidMap);
/frameworks/base/cmds/statsd/src/metrics/
Dmetrics_manager_util.h48 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,
DMetricsManager.cpp62 const sp<UidMap>& uidMap, in MetricsManager() argument
67 mUidMap(uidMap), in MetricsManager()
80 key, config, *uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in MetricsManager()
Dmetrics_manager_util.cpp238 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()
DMetricsManager.h42 const int64_t currentTimeNs, const sp<UidMap>& uidMap,
/frameworks/base/cmds/statsd/src/shell/
DShellSubscriber.h62 ShellSubscriber(sp<UidMap> uidMap, sp<StatsPullerManager> pullerMgr) in ShellSubscriber() argument
63 : mUidMap(uidMap), mPullerMgr(pullerMgr){}; in ShellSubscriber()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.cpp353 sp<UidMap> uidMap = new UidMap(); in CreateStatsLogProcessor() local
358 new StatsLogProcessor(uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in CreateStatsLogProcessor()
/frameworks/base/cmds/statsd/tests/state/
DStateTracker_test.cpp119 sp<MockUidMap> uidMap = makeMockUidMapForPackage("com.android.systemui", {10111}); in TEST() local
122 mgr.updateLogSources(uidMap); in TEST()

12