Home
last modified time | relevance | path

Searched refs:configPackage (Results 1 – 14 of 14) sorted by relevance

/packages/modules/StatsD/statsd/tests/
DConfigManager_test.cpp166 const string configPackage = "pkg"; in TEST() local
177 manager->SetRestrictedMetricsChangedReceiver(configPackage, configId, callingUid, pir); in TEST()
179 manager->SendRestrictedMetricsBroadcast({configPackage}, configId, {callingUid}, metricIds); in TEST()
243 const string configPackage = "pkg"; in TEST() local
252 manager->SetRestrictedMetricsChangedReceiver(configPackage, configId, callingUid, pir); in TEST()
253 manager->RemoveRestrictedMetricsChangedReceiver(configPackage, configId, callingUid); in TEST()
255 manager->SendRestrictedMetricsBroadcast({configPackage}, configId, {callingUid}, metricIds); in TEST()
/packages/modules/StatsD/aidl/android/os/
DIStatsManagerService.aidl144 in long configKey, in String configPackage); in querySql() argument
155 in String configPackage); in setRestrictedMetricsChangedOperation() argument
162 void removeRestrictedMetricsChangedOperation(in long configKey, in String configPackage); in removeRestrictedMetricsChangedOperation() argument
DIStatsd.aidl253 in long configKey, in String configPackage, in int callingUid); in querySql() argument
263 long[] setRestrictedMetricsChangedOperation(in long configKey, in String configPackage, in setRestrictedMetricsChangedOperation() argument
271 void removeRestrictedMetricsChangedOperation(in long configKey, in String configPackage, in removeRestrictedMetricsChangedOperation() argument
/packages/modules/StatsD/statsd/src/config/
DConfigManager.cpp155 void ConfigManager::SetRestrictedMetricsChangedReceiver(const string& configPackage, in SetRestrictedMetricsChangedReceiver() argument
160 ConfigKeyWithPackage configKey(configPackage, configId); in SetRestrictedMetricsChangedReceiver()
164 void ConfigManager::RemoveRestrictedMetricsChangedReceiver(const string& configPackage, in RemoveRestrictedMetricsChangedReceiver() argument
168 ConfigKeyWithPackage configKey(configPackage, configId); in RemoveRestrictedMetricsChangedReceiver()
203 for (const string& configPackage : configPackages) { in SendRestrictedMetricsBroadcast() local
204 ConfigKeyWithPackage key(configPackage, configId); in SendRestrictedMetricsBroadcast()
DConfigManager.h121 void SetRestrictedMetricsChangedReceiver(const string& configPackage, int64_t configId,
128 void RemoveRestrictedMetricsChangedReceiver(const string& configPackage, int64_t configId,
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java122 ConfigKeyWithPackage(String configPackage, long configId) { in ConfigKeyWithPackage() argument
123 mConfigPackage = configPackage; in ConfigKeyWithPackage()
553 long configId, String configPackage) { in setRestrictedMetricsChangedOperation() argument
558 ConfigKeyWithPackage key = new ConfigKeyWithPackage(configPackage, configId); in setRestrictedMetricsChangedOperation()
569 return statsd.setRestrictedMetricsChangedOperation(configId, configPackage, pir, in setRestrictedMetricsChangedOperation()
581 public void removeRestrictedMetricsChangedOperation(long configId, String configPackage) { in removeRestrictedMetricsChangedOperation() argument
585 ConfigKeyWithPackage key = new ConfigKeyWithPackage(configPackage, configId); in removeRestrictedMetricsChangedOperation()
597 statsd.removeRestrictedMetricsChangedOperation(configId, configPackage, callingUid); in removeRestrictedMetricsChangedOperation()
608 IStatsQueryCallback queryCallback, long configKey, String configPackage) { in querySql() argument
621 configPackage, in querySql()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp926 const int64_t configId, const string& configPackage, in querySql() argument
934 configId, configPackage, std::nullopt, callingUid, in querySql()
948 configId, configPackage, std::nullopt, callingUid, in querySql()
954 const auto& uidMapItr = UidMap::sAidToUidMapping.find(configPackage); in querySql()
958 configPackageUids = mUidMap->getAppUid(configPackage); in querySql()
968 configId, configPackage, std::nullopt, callingUid, in querySql()
977 configId, configPackage, std::nullopt, callingUid, in querySql()
991 configId, configPackage, keysToQuery.begin()->GetUid(), callingUid, in querySql()
1002 configId, configPackage, keysToQuery.begin()->GetUid(), callingUid, in querySql()
1009 configId, configPackage, keysToQuery.begin()->GetUid(), callingUid, in querySql()
[all …]
DStatsService.h219 const string& configPackage,
229 const string& configPackage,
238 const int64_t configKey, const string& configPackage,
DStatsService.cpp1479 const string& configPackage, in setRestrictedMetricsChangedOperation() argument
1489 mConfigManager->SetRestrictedMetricsChangedReceiver(configPackage, configId, callingUid, pir); in setRestrictedMetricsChangedOperation()
1491 mProcessor->fillRestrictedMetrics(configId, configPackage, callingUid, output); in setRestrictedMetricsChangedOperation()
1499 const string& configPackage, in removeRestrictedMetricsChangedOperation() argument
1507 mConfigManager->RemoveRestrictedMetricsChangedReceiver(configPackage, configId, callingUid); in removeRestrictedMetricsChangedOperation()
1514 const int64_t configKey, const string& configPackage, in querySql() argument
1521 configKey, configPackage, std::nullopt, callingUid, in querySql()
1526 configPackage, callingUid); in querySql()
DStatsLogProcessor.h167 const int64_t configId, const string& configPackage, const int32_t callingUid);
169 void fillRestrictedMetrics(const int64_t configId, const string& configPackage,
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.h653 void noteQueryRestrictedMetricSucceed(const int64_t configId, const string& configPackage,
658 void noteQueryRestrictedMetricFailed(const int64_t configId, const string& configPackage,
663 void noteQueryRestrictedMetricFailed(const int64_t configId, const string& configPackage,
992 const string& configPackage, std::optional<int32_t> configUid, in RestrictedMetricQueryStats()
998 mConfigPackage(configPackage), in RestrictedMetricQueryStats()
1018 void noteQueryRestrictedMetricFailedLocked(const int64_t configId, const string& configPackage,
DStatsdStats.cpp893 const string& configPackage, in noteQueryRestrictedMetricSucceed() argument
903 callingUid, configId, configPackage, configUid, getWallClockNs(), in noteQueryRestrictedMetricSucceed()
908 const string& configPackage, in noteQueryRestrictedMetricFailed() argument
913 noteQueryRestrictedMetricFailedLocked(configId, configPackage, configUid, callingUid, reason, in noteQueryRestrictedMetricFailed()
918 const int64_t configId, const string& configPackage, const std::optional<int32_t> configUid, in noteQueryRestrictedMetricFailed() argument
921 noteQueryRestrictedMetricFailedLocked(configId, configPackage, configUid, callingUid, reason, in noteQueryRestrictedMetricFailed()
926 const int64_t configId, const string& configPackage, const std::optional<int32_t> configUid, in noteQueryRestrictedMetricFailedLocked() argument
932 callingUid, configId, configPackage, configUid, getWallClockNs(), reason, error, in noteQueryRestrictedMetricFailedLocked()
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java411 @NonNull String configPackage, in setRestrictedMetricsChangedOperation() argument
418 service.removeRestrictedMetricsChangedOperation(configKey, configPackage); in setRestrictedMetricsChangedOperation()
422 configKey, configPackage); in setRestrictedMetricsChangedOperation()
470 public void query(long configKey, @NonNull String configPackage, @NonNull StatsQuery query, in query() argument
488 configPackage); in query() local
/packages/modules/StatsD/statsd/tests/guardrail/
DStatsdStats_test.cpp548 const string configPackage = "com.google.android.gm"; in TEST() local
550 stats.noteQueryRestrictedMetricSucceed(configKey.GetId(), configPackage, configKey.GetUid(), in TEST()
555 stats.noteQueryRestrictedMetricFailed(configIdWithError, configPackage, std::nullopt, in TEST()
557 stats.noteQueryRestrictedMetricFailed(configIdWithError, configPackage, std::nullopt, in TEST()
566 EXPECT_EQ(configPackage, report.restricted_metric_query_stats(0).config_package()); in TEST()