Home
last modified time | relevance | path

Searched refs:UidMap (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/cmds/statsd/src/packages/
DUidMap.cpp72 UidMap::UidMap() : mBytesUsed(0) {} in UidMap() function in android::os::statsd::UidMap
74 UidMap::~UidMap() {} in ~UidMap()
76 sp<UidMap> UidMap::getInstance() { in getInstance()
77 static sp<UidMap> sInstance = new UidMap(); in getInstance()
81 bool UidMap::hasApp(int uid, const string& packageName) const { in hasApp()
88 string UidMap::normalizeAppName(const string& appName) const { in normalizeAppName()
94 std::set<string> UidMap::getAppNamesFromUid(const int32_t& uid, bool returnNormalized) const { in getAppNamesFromUid()
99 std::set<string> UidMap::getAppNamesFromUidLocked(const int32_t& uid, bool returnNormalized) const { in getAppNamesFromUidLocked()
109 int64_t UidMap::getAppVersion(int uid, const string& packageName) const { in getAppVersion()
119 void UidMap::updateMap(const int64_t& timestamp, const vector<int32_t>& uid, in updateMap()
[all …]
DUidMap.h89 class UidMap : public virtual android::RefBase {
91 UidMap();
92 ~UidMap();
95 static sp<UidMap> getInstance();
/frameworks/base/cmds/statsd/src/matchers/
DSimpleLogMatchingTracker.h37 const UidMap& uidMap);
52 const UidMap& mUidMap;
Dmatcher_util.cpp85 bool tryMatchString(const UidMap& uidMap, const Field& field, const Value& value, in tryMatchString()
89 auto aidIt = UidMap::sAidToUidMapping.find(str_match); in tryMatchString()
90 if (aidIt != UidMap::sAidToUidMapping.end()) { in tryMatchString()
101 bool matchesSimple(const UidMap& uidMap, const FieldValueMatcher& matcher, in matchesSimple()
359 bool matchesSimple(const UidMap& uidMap, const SimpleAtomMatcher& simpleMatcher, in matchesSimple()
Dmatcher_util.h44 bool matchesSimple(const UidMap& uidMap,
DSimpleLogMatchingTracker.cpp34 const UidMap& uidMap) in SimpleLogMatchingTracker()
/frameworks/base/cmds/statsd/tests/
DUidMap_test.cpp43 sp<UidMap> m = new UidMap(); in TEST()
72 UidMap m; in TEST()
104 UidMap m; in TEST()
154 UidMap m; in TEST()
196 UidMap m; in TEST()
226 UidMap m; in TEST()
254 UidMap m; in TEST()
294 UidMap m; in TEST()
363 UidMap m; in TEST()
393 UidMap m; in TEST()
DMetricsManager_test.cpp271 UidMap uidMap; in TEST()
303 UidMap uidMap; in TEST()
332 UidMap uidMap; in TEST()
361 UidMap uidMap; in TEST()
389 UidMap uidMap; in TEST()
417 UidMap uidMap; in TEST()
446 UidMap uidMap; in TEST()
DLogEntryMatcher_test.cpp42 UidMap uidMap; in TEST()
62 UidMap uidMap; in TEST()
301 UidMap uidMap; in TEST()
380 UidMap uidMap; in TEST()
462 UidMap uidMap; in TEST()
498 UidMap uidMap; in TEST()
518 UidMap uidMap; in TEST()
551 UidMap uidMap; in TEST()
609 UidMap uidMap; in TEST()
DStatsLogProcessor_test.cpp50 : MetricsManager(ConfigKey(1, 12345), StatsdConfig(), 1000, 1000, new UidMap(), in MockMetricsManager()
64 sp<UidMap> m = new UidMap(); in TEST()
85 sp<UidMap> m = new UidMap(); in TEST()
117 sp<UidMap> m = new UidMap(); in TEST()
160 sp<UidMap> m = new UidMap(); in TEST()
191 sp<UidMap> m = new UidMap(); in TEST()
220 sp<UidMap> m = new UidMap(); in TEST()
387 sp<UidMap> m = new UidMap(); in TEST()
/frameworks/base/cmds/statsd/src/external/
DStatsPuller.h56 static void SetUidMap(const sp<UidMap>& uidMap);
85 static sp<UidMap> mUidMap;
DStatsPuller.cpp32 sp<UidMap> StatsPuller::mUidMap = nullptr;
33 void StatsPuller::SetUidMap(const sp<UidMap>& uidMap) { mUidMap = uidMap; } in SetUidMap()
Dpuller_util.h29 const sp<UidMap>& uidMap, int tagId);
Dpuller_util.cpp56 void mapAndMergeIsolatedUidsToHostUid(vector<shared_ptr<LogEvent>>& data, const sp<UidMap>& uidMap, in mapAndMergeIsolatedUidsToHostUid()
/frameworks/base/cmds/statsd/src/metrics/
Dmetrics_manager_util.h49 const UidMap& uidMap,
85 const int64_t currentTimeNs, UidMap& uidMap, const sp<StatsPullerManager>& pullerManager,
98 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap,
DMetricsManager.h41 const int64_t currentTimeNs, const sp<UidMap>& uidMap,
152 sp<UidMap> mUidMap;
DMetricsManager.cpp64 const sp<UidMap>& uidMap, in MetricsManager()
96 auto it = UidMap::sAidToUidMapping.find(source); in MetricsManager()
97 if (it != UidMap::sAidToUidMapping.end()) { in MetricsManager()
/frameworks/base/cmds/statsd/src/shell/
DShellSubscriber.h62 ShellSubscriber(sp<UidMap> uidMap, sp<StatsPullerManager> pullerMgr) in ShellSubscriber()
95 sp<UidMap> mUidMap;
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h37 StatsLogProcessor(const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerManager,
97 inline sp<UidMap> getUidMap() { in getUidMap()
142 sp<UidMap> mUidMap; // Reference to the UidMap to lookup app name and version for each uid.
/frameworks/base/cmds/statsd/tests/metrics/
DGaugeMetricProducer_test.cpp68 UidMap uidMap; in TEST()
103 UidMap uidMap; in TEST()
204 UidMap uidMap; in TEST()
281 UidMap uidMap; in TEST()
358 UidMap uidMap; in TEST()
411 UidMap uidMap; in TEST()
492 UidMap uidMap; in TEST()
576 UidMap uidMap; in TEST()
664 UidMap uidMap; in TEST()
738 UidMap uidMap; in TEST()
Dmetrics_test_helper.h44 class MockUidMap : public UidMap {
DValueMetricProducer_test.cpp94 UidMap uidMap; in createValueProducerNoConditions()
114 UidMap uidMap; in createValueProducerWithCondition()
158 UidMap uidMap; in TEST()
188 UidMap uidMap; in TEST()
356 UidMap uidMap; in TEST()
662 UidMap uidMap; in TEST()
707 UidMap uidMap; in TEST()
768 UidMap uidMap; in TEST()
845 UidMap uidMap; in TEST()
888 UidMap uidMap; in TEST()
[all …]
/frameworks/base/cmds/statsd/src/subscriber/
DIncidentdReporter.cpp118 UidMap::getInstance()->writeUidMapSnapshot(getElapsedRealtimeNs(), true, true, uids, in getProtoData()
/frameworks/base/cmds/statsd/benchmark/
Dmetric_util.cpp364 sp<UidMap> uidMap = new UidMap(); in CreateStatsLogProcessor()
/frameworks/base/cmds/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp247 sp<UidMap> m = new UidMap(); in TEST()
461 sp<UidMap> m = new UidMap(); in TEST()
784 sp<UidMap> m = new UidMap(); in TEST()
1119 sp<UidMap> m = new UidMap(); in TEST()
1316 sp<UidMap> m = new UidMap(); in TEST()

12