Home
last modified time | relevance | path

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

12

/packages/modules/StatsD/statsd/src/packages/
DUidMap.cpp74 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 …]
DUidMap.h93 class UidMap : public virtual RefBase {
95 UidMap();
96 ~UidMap();
99 static sp<UidMap> getInstance();
/packages/modules/StatsD/statsd/tests/
DLogEntryMatcher_test.cpp143 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 …]
DStatsService_test.cpp70 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()
DUidMap_test.cpp103 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 …]
DStatsLogProcessor_test.cpp60 : 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 …]
DMetricsManager_test.cpp323 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()
Dstatsd_test_util.h83 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/
Dmatcher_util.cpp87 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()
DSimpleAtomMatchingTracker.h34 const SimpleAtomMatcher& matcher, const sp<UidMap>& uidMap);
53 const sp<UidMap> mUidMap;
Dmatcher_util.h39 bool matchesSimple(const sp<UidMap>& uidMap, const SimpleAtomMatcher& simpleMatcher,
/packages/modules/StatsD/statsd/src/shell/
DShellSubscriberClient.cpp60 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()
DShellSubscriberClient.h58 const sp<UidMap>& uidMap,
64 const sp<UidMap>& uidMap, const sp<StatsPullerManager>& pullerMgr);
71 int64_t startTimeSec, const sp<UidMap>& uidMap,
DShellSubscriber.h59 ShellSubscriber(sp<UidMap> uidMap, sp<StatsPullerManager> pullerMgr, in ShellSubscriber()
96 sp<UidMap> mUidMap;
/packages/modules/StatsD/statsd/src/state/
DStateManager.h72 void updateLogSources(const sp<UidMap>& uidMap);
74 void notifyAppChanged(const string& apk, const sp<UidMap>& uidMap);
DStateManager.cpp97 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/
DStatsPuller.h69 static void SetUidMap(const sp<UidMap>& uidMap);
121 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,
/packages/modules/StatsD/statsd/src/
Dmain.cpp84 sp<UidMap> uidMap = UidMap::getInstance(); in main()
DStatsLogProcessor.h41 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/
DMetricsManager.cpp68 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/
DConfigUpdate_e2e_ab_test.cpp61 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/
Dmetrics_manager_util_test.cpp57 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/
Dconfig_update_utils.h67 const StatsdConfig& config, const sp<UidMap>& uidMap,
235 const ConfigKey& key, const StatsdConfig& config, const sp<UidMap>& uidMap,

12