HomeSort by relevance Sort by last modified time
    Searched refs:UidMap (Results 1 - 25 of 26) sorted by null

1 2

  /frameworks/base/cmds/statsd/src/external/
puller_util.h 22 #include "packages/UidMap.h"
29 const sp<UidMap>& uidMap, int tagId);
StatsPuller.h 24 #include "packages/UidMap.h"
48 static void SetUidMap(const sp<UidMap>& uidMap);
76 static sp<UidMap> mUidMap;
StatsPuller.cpp 32 sp<UidMap> StatsPuller::mUidMap = nullptr;
33 void StatsPuller::SetUidMap(const sp<UidMap>& uidMap) { mUidMap = uidMap; }
puller_util.cpp 108 void mergeIsolatedUidsToHostUid(vector<shared_ptr<LogEvent>>& data, const sp<UidMap>& uidMap,
144 const int hostUid = uidMap->getHostUidOrSelf(uid);
  /frameworks/base/cmds/statsd/src/packages/
UidMap.cpp 22 #include "packages/UidMap.h"
64 UidMap::UidMap() : mBytesUsed(0) {}
66 UidMap::~UidMap() {}
68 bool UidMap::hasApp(int uid, const string& packageName) const {
75 string UidMap::normalizeAppName(const string& appName) const {
81 std::set<string> UidMap::getAppNamesFromUid(const int32_t& uid, bool returnNormalized) const {
86 std::set<string> UidMap::getAppNamesFromUidLocked(const int32_t& uid, bool returnNormalized) const {
96 int64_t UidMap::getAppVersion(int uid, const string& packageName) const
    [all...]
UidMap.h 78 // UidMap keeps track of what the corresponding app name (APK name) and version code for every uid
80 class UidMap : public virtual android::RefBase {
82 UidMap();
83 ~UidMap();
  /frameworks/base/cmds/statsd/src/matchers/
SimpleLogMatchingTracker.h 27 #include "packages/UidMap.h"
37 const UidMap& uidMap);
52 const UidMap& mUidMap;
matcher_util.h 28 #include "packages/UidMap.h"
44 bool matchesSimple(const UidMap& uidMap,
SimpleLogMatchingTracker.cpp 34 const UidMap& uidMap)
35 : LogMatchingTracker(id, index), mMatcher(matcher), mUidMap(uidMap) {
matcher_util.cpp 85 bool tryMatchString(const UidMap& uidMap, const Field& field, const Value& value,
89 auto aidIt = UidMap::sAidToUidMapping.find(str_match);
90 if (aidIt != UidMap::sAidToUidMapping.end()) {
93 std::set<string> packageNames = uidMap.getAppNamesFromUid(uid, true /* normalize*/);
101 bool matchesSimple(const UidMap& uidMap, const FieldValueMatcher& matcher,
206 if (!matchesSimple(uidMap, subMatcher, values, range.first, range.second,
232 if (tryMatchString(uidMap, values[i].mField, values[i].mValue,
244 if (tryMatchString(uidMap, values[i].mField, values[i].mValue, str))
    [all...]
  /frameworks/base/cmds/statsd/tests/
StatsLogProcessor_test.cpp 21 #include "packages/UidMap.h"
49 new UidMap(),
62 sp<UidMap> m = new UidMap();
81 sp<UidMap> m = new UidMap();
107 sp<UidMap> m = new UidMap();
145 sp<UidMap> m = new UidMap();
163 auto uidmap = output.reports(0).uid_map(); local
    [all...]
UidMap_test.cpp 15 #include "packages/UidMap.h"
42 sp<UidMap> m = new UidMap();
69 UidMap m;
95 UidMap m;
139 UidMap m;
180 UidMap m;
198 // Check there's still a uidmap attached this one.
205 UidMap m;
229 UidMap m
    [all...]
MetricsManager_test.cpp 273 UidMap uidMap;
288 EXPECT_TRUE(initStatsdConfig(kConfigKey, config, uidMap,
301 UidMap uidMap;
316 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap,
326 UidMap uidMap;
341 EXPECT_FALSE(initStatsdConfig(kConfigKey, config, uidMap,
351 UidMap uidMap
    [all...]
LogEntryMatcher_test.cpp 42 UidMap uidMap;
54 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event));
58 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event));
62 UidMap uidMap;
102 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event));
105 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event));
108 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event));
112 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event))
    [all...]
statsd_test_util.cpp 454 sp<UidMap> uidMap = new UidMap();
462 uidMap, anomalyAlarmMonitor, periodicAlarmMonitor, timeBaseNs, [](const ConfigKey&){return true;});
    [all...]
  /frameworks/base/cmds/statsd/src/metrics/
metrics_manager_util.h 49 const UidMap& uidMap,
86 UidMap& uidMap,
99 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap,
MetricsManager.h 28 #include "packages/UidMap.h"
41 const sp<UidMap>& uidMap, const sp<AlarmMonitor>& anomalyAlarmMonitor,
121 sp<UidMap> mUidMap;
MetricsManager.cpp 59 const sp<UidMap> &uidMap,
62 : mConfigKey(key), mUidMap(uidMap),
71 initStatsdConfig(key, config, *uidMap, anomalyAlarmMonitor, periodicAlarmMonitor,
85 auto it = UidMap::sAidToUidMapping.find(source);
86 if (it != UidMap::sAidToUidMapping.end()) {
metrics_manager_util.cpp 116 bool initLogTrackers(const StatsdConfig& config, const UidMap& uidMap,
131 logMatcher.id(), index, logMatcher.simple_atom_matcher(), uidMap));
267 UidMap& uidMap, const unordered_map<int64_t, int>& logTrackerMap,
541 uidMap.addListener(it);
647 bool initStatsdConfig(const ConfigKey& key, const StatsdConfig& config, UidMap& uidMap,
665 if (!initLogTrackers(config, uidMap, logTrackerMap, allAtomMatchers, allTagIds)) {
677 if (!initMetrics(key, config, timeBaseNs, currentTimeNs, uidMap,
    [all...]
  /frameworks/base/cmds/statsd/tests/metrics/
metrics_test_helper.h 18 #include "src/packages/UidMap.h"
45 class MockUidMap : public UidMap {
  /frameworks/base/cmds/statsd/src/
StatsLogProcessor.h 23 #include "packages/UidMap.h"
48 StatsLogProcessor(const sp<UidMap>& uidMap, const sp<AlarmMonitor>& anomalyAlarmMonitor,
85 inline sp<UidMap> getUidMap() {
127 sp<UidMap> mUidMap; // Reference to the UidMap to lookup app name and version for each uid.
StatsService.h 25 #include "packages/UidMap.h"
246 sp<UidMap> mUidMap;
StatsLogProcessor.cpp 74 StatsLogProcessor::StatsLogProcessor(const sp<UidMap>& uidMap,
79 : mUidMap(uidMap),
384 // Fill in UidMap if there is at least one metric to report.
  /frameworks/base/cmds/statsd/benchmark/
metric_util.cpp 364 sp<UidMap> uidMap = new UidMap();
368 uidMap, anomalyAlarmMonitor, periodicAlarmMonitor, timeBaseSec * NS_PER_SEC,
  /frameworks/base/cmds/statsd/
Android.mk 61 src/packages/UidMap.cpp \

Completed in 197 milliseconds

1 2