/packages/modules/StatsD/statsd/src/packages/ |
D | UidMap.cpp | 74 UidMap::UidMap() : mBytesUsed(0) { in UidMap() function in android::os::statsd::UidMap 77 UidMap::~UidMap() {} in ~UidMap() 79 sp<UidMap> UidMap::getInstance() { in getInstance() 80 static sp<UidMap> sInstance = new UidMap(); in getInstance() 84 bool UidMap::hasApp(int uid, const string& packageName) const { in hasApp() 91 string UidMap::normalizeAppName(const string& appName) const { in normalizeAppName() 97 std::set<string> UidMap::getAppNamesFromUid(const int32_t& uid, bool returnNormalized) const { in getAppNamesFromUid() 102 std::set<string> UidMap::getAppNamesFromUidLocked(const int32_t& uid, bool returnNormalized) const { in getAppNamesFromUidLocked() 112 int64_t UidMap::getAppVersion(int uid, const string& packageName) const { in getAppVersion() 122 void UidMap::updateMap(const int64_t& timestamp, const vector<int32_t>& uid, in updateMap() [all …]
|
D | UidMap.h | 93 class UidMap : public virtual RefBase { 95 UidMap(); 96 ~UidMap(); 99 static sp<UidMap> getInstance();
|
/packages/modules/StatsD/statsd/tests/ |
D | LogEntryMatcher_test.cpp | 143 sp<UidMap> uidMap = new UidMap(); in TEST() 162 sp<UidMap> uidMap = new UidMap(); in TEST() 390 sp<UidMap> uidMap = new UidMap(); in TEST() 429 sp<UidMap> uidMap = new UidMap(); in TEST() 486 sp<UidMap> uidMap = new UidMap(); in TEST() 516 sp<UidMap> uidMap = new UidMap(); in TEST() 578 sp<UidMap> uidMap = new UidMap(); in TEST() 643 sp<UidMap> uidMap = new UidMap(); in TEST() 676 sp<UidMap> uidMap = new UidMap(); in TEST() 694 sp<UidMap> uidMap = new UidMap(); in TEST() [all …]
|
D | StatsService_test.cpp | 70 const sp<UidMap> uidMap = new UidMap(); in TEST() 89 const sp<UidMap> uidMap = new UidMap(); in TEST() 105 const sp<UidMap> uidMap = new UidMap(); in TEST() 124 const sp<UidMap> uidMap = new UidMap(); in TEST() 165 return SharedRefBase::make<StatsService>(new UidMap(), /*queue=*/nullptr, in createStatsService()
|
D | UidMap_test.cpp | 103 sp<UidMap> m = new UidMap(); in TEST() 127 const sp<UidMap> uidMap = new UidMap(); in TEST() 159 const sp<UidMap> uidMap = new UidMap(); in TEST() 203 const sp<UidMap> uidMap = new UidMap(); in TEST() 260 const sp<UidMap> uidMap = new UidMap(); in TEST() 316 UidMap m; in TEST() 346 UidMap m; in TEST() 374 UidMap m; in TEST() 422 UidMap m; in TEST() 495 UidMap m; in TEST() [all …]
|
D | StatsLogProcessor_test.cpp | 60 : MetricsManager(configKey, StatsdConfig(), 1000, 1000, new UidMap(), in MockMetricsManager() 85 sp<UidMap> m = new UidMap(); in TEST() 108 sp<UidMap> m = new UidMap(); in TEST() 142 sp<UidMap> m = new UidMap(); in TEST() 203 : MetricsManager(configKey, makeRestrictedConfig(), 1000, 1000, new UidMap(), in MockRestrictedMetricsManager() 228 sp<UidMap> m = new UidMap(); in TEST() 270 sp<UidMap> m = new UidMap(); in TEST() 314 sp<UidMap> m = new UidMap(); in TEST() 402 sp<UidMap> m = new UidMap(); in TEST() 433 sp<UidMap> m = new UidMap(); in TEST() [all …]
|
D | MetricsManager_test.cpp | 323 sp<UidMap> uidMap; in TEST() 347 sp<UidMap> uidMap; in TEST() 375 sp<UidMap> uidMap; in TEST_P() 397 sp<UidMap> uidMap; in TEST_P()
|
D | statsd_test_util.h | 83 class MockUidMap : public UidMap { 150 return SharedRefBase::make<StatsService>(new UidMap(), /* queue */ nullptr, in createStatsService() 565 const int32_t atomTag = 0 /*for puller only*/, const sp<UidMap> = new UidMap(), 786 PackageInfoSnapshot getPackageInfoSnapshot(const sp<UidMap> uidMap);
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 87 bool tryMatchString(const sp<UidMap>& uidMap, const FieldValue& fieldValue, in tryMatchString() 91 auto aidIt = UidMap::sAidToUidMapping.find(str_match); in tryMatchString() 92 if (aidIt != UidMap::sAidToUidMapping.end()) { in tryMatchString() 103 bool tryMatchWildcardString(const sp<UidMap>& uidMap, const FieldValue& fieldValue, in tryMatchWildcardString() 110 for (auto aidIt = UidMap::sAidToUidMapping.begin(); in tryMatchWildcardString() 111 aidIt != UidMap::sAidToUidMapping.end(); ++aidIt) { in tryMatchWildcardString() 130 bool matchesSimple(const sp<UidMap>& uidMap, const FieldValueMatcher& matcher, in matchesSimple() 462 bool matchesSimple(const sp<UidMap>& uidMap, const SimpleAtomMatcher& simpleMatcher, in matchesSimple()
|
D | SimpleAtomMatchingTracker.h | 34 const SimpleAtomMatcher& matcher, const sp<UidMap>& uidMap); 53 const sp<UidMap> mUidMap;
|
D | matcher_util.h | 39 bool matchesSimple(const sp<UidMap>& uidMap, const SimpleAtomMatcher& simpleMatcher,
|
/packages/modules/StatsD/statsd/src/shell/ |
D | ShellSubscriberClient.cpp | 60 auto it = UidMap::sAidToUidMapping.find(pkg); in readConfig() 61 if (it != UidMap::sAidToUidMapping.end()) { in readConfig() 92 const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerMgr) in ShellSubscriberClient() 105 int in, int out, int64_t timeoutSec, int64_t startTimeSec, const sp<UidMap>& uidMap, in create() 142 const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerMgr) { in create() 169 const sp<UidMap>& uidMap) { in writeEventToProtoIfMatched()
|
D | ShellSubscriberClient.h | 58 const sp<UidMap>& uidMap, 64 const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerMgr); 71 int64_t startTimeSec, const sp<UidMap>& uidMap,
|
D | ShellSubscriber.h | 59 ShellSubscriber(sp<UidMap> uidMap, sp<StatsPullerManager> pullerMgr, in ShellSubscriber() 96 sp<UidMap> mUidMap;
|
/packages/modules/StatsD/statsd/src/state/ |
D | StateManager.h | 72 void updateLogSources(const sp<UidMap>& uidMap); 74 void notifyAppChanged(const string& apk, const sp<UidMap>& uidMap);
|
D | StateManager.cpp | 97 void StateManager::updateLogSources(const sp<UidMap>& uidMap) { in updateLogSources() 105 void StateManager::notifyAppChanged(const string& apk, const sp<UidMap>& uidMap) { in notifyAppChanged()
|
/packages/modules/StatsD/statsd/src/external/ |
D | StatsPuller.h | 69 static void SetUidMap(const sp<UidMap>& uidMap); 121 static sp<UidMap> mUidMap;
|
D | StatsPuller.cpp | 32 sp<UidMap> StatsPuller::mUidMap = nullptr; 33 void StatsPuller::SetUidMap(const sp<UidMap>& uidMap) { mUidMap = uidMap; } in SetUidMap()
|
D | puller_util.h | 29 const sp<UidMap>& uidMap, int tagId,
|
/packages/modules/StatsD/statsd/src/ |
D | main.cpp | 84 sp<UidMap> uidMap = UidMap::getInstance(); in main()
|
D | StatsLogProcessor.h | 41 const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerManager, 139 inline sp<UidMap> getUidMap() { in getUidMap() 217 sp<UidMap> mUidMap; // Reference to the UidMap to lookup app name and version for each uid.
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricsManager.cpp | 68 const sp<UidMap>& uidMap, in MetricsManager() 222 auto it = UidMap::sAidToUidMapping.find(source); in createAllLogSourcesFromConfig() 223 if (it != UidMap::sAidToUidMapping.end()) { in createAllLogSourcesFromConfig() 241 auto it = UidMap::sAidToUidMapping.find(pullSource); in createAllLogSourcesFromConfig() 242 if (it != UidMap::sAidToUidMapping.end()) { in createAllLogSourcesFromConfig() 256 auto it = UidMap::sAidToUidMapping.find(pullPackage); in createAllLogSourcesFromConfig() 257 if (it != UidMap::sAidToUidMapping.end()) { in createAllLogSourcesFromConfig()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_ab_test.cpp | 61 sp<UidMap> uidMap = new UidMap(); in TEST_P() 106 sp<UidMap> uidMap = new UidMap(); in TEST_P()
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 57 sp<UidMap> uidMap = new UidMap(); 1161 sp<UidMap> uidMap = new UidMap(); in TEST_F() 1175 sp<UidMap> uidMap = new UidMap(); in TEST_F() 1202 sp<UidMap> uidMap = new UidMap(); in TEST_F() 1440 sp<UidMap> uidMap; in TEST_F() 1553 sp<UidMap> uidMap; in TEST_F()
|
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | config_update_utils.h | 67 const StatsdConfig& config, const sp<UidMap>& uidMap, 235 const ConfigKey& key, const StatsdConfig& config, const sp<UidMap>& uidMap,
|