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.cpp68 UidMap::UidMap() : mBytesUsed(0) {} in UidMap() function in android::os::statsd::UidMap
70 UidMap::~UidMap() {} in ~UidMap()
72 sp<UidMap> UidMap::getInstance() { in getInstance()
73 static sp<UidMap> sInstance = new UidMap(); in getInstance()
77 bool UidMap::hasApp(int uid, const string& packageName) const { in hasApp()
84 string UidMap::normalizeAppName(const string& appName) const { in normalizeAppName()
90 std::set<string> UidMap::getAppNamesFromUid(const int32_t& uid, bool returnNormalized) const { in getAppNamesFromUid()
95 std::set<string> UidMap::getAppNamesFromUidLocked(const int32_t& uid, bool returnNormalized) const { in getAppNamesFromUidLocked()
105 int64_t UidMap::getAppVersion(int uid, const string& packageName) const { in getAppVersion()
115 void UidMap::updateMap(const int64_t& timestamp, const vector<int32_t>& uid, in updateMap()
[all …]
DUidMap.h87 class UidMap : public virtual android::RefBase {
89 UidMap();
90 ~UidMap();
93 static sp<UidMap> getInstance();
/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.cpp39 UidMap uidMap; in TEST()
59 UidMap uidMap; in TEST()
298 UidMap uidMap; in TEST()
377 UidMap uidMap; in TEST()
459 UidMap uidMap; in TEST()
495 UidMap uidMap; in TEST()
515 UidMap uidMap; in TEST()
548 UidMap uidMap; in TEST()
606 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/metrics/
Dmetrics_manager_util.h48 const UidMap& uidMap,
84 const int64_t currentTimeNs, UidMap& uidMap, const sp<StatsPullerManager>& pullerManager,
97 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap,
DMetricsManager.h41 const int64_t currentTimeNs, const sp<UidMap>& uidMap,
148 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/matchers/
DSimpleLogMatchingTracker.h34 const UidMap& uidMap);
49 const UidMap& mUidMap;
Dmatcher_util.cpp84 bool tryMatchString(const UidMap& uidMap, const Field& field, const Value& value, in tryMatchString()
88 auto aidIt = UidMap::sAidToUidMapping.find(str_match); in tryMatchString()
89 if (aidIt != UidMap::sAidToUidMapping.end()) { in tryMatchString()
100 bool matchesSimple(const UidMap& uidMap, const FieldValueMatcher& matcher, in matchesSimple()
358 bool matchesSimple(const UidMap& uidMap, const SimpleAtomMatcher& simpleMatcher, in matchesSimple()
Dmatcher_util.h39 bool matchesSimple(const UidMap& uidMap,
DSimpleLogMatchingTracker.cpp32 const UidMap& uidMap) in SimpleLogMatchingTracker()
/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/shell/
DShellSubscriber.h61 ShellSubscriber(sp<UidMap> uidMap, sp<StatsPullerManager> pullerMgr) in ShellSubscriber()
94 sp<UidMap> mUidMap;
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.h37 StatsLogProcessor(const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerManager,
107 inline sp<UidMap> getUidMap() { in getUidMap()
152 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.cpp117 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