/packages/modules/StatsD/statsd/tests/ |
D | ConfigManager_test.cpp | 166 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/ |
D | IStatsManagerService.aidl | 144 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
|
D | IStatsd.aidl | 253 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/ |
D | ConfigManager.cpp | 155 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()
|
D | ConfigManager.h | 121 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/ |
D | StatsManagerService.java | 122 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/ |
D | StatsLogProcessor.cpp | 926 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 …]
|
D | StatsService.h | 219 const string& configPackage, 229 const string& configPackage, 238 const int64_t configKey, const string& configPackage,
|
D | StatsService.cpp | 1479 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()
|
D | StatsLogProcessor.h | 167 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/ |
D | StatsdStats.h | 653 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,
|
D | StatsdStats.cpp | 893 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/ |
D | StatsManager.java | 411 @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/ |
D | StatsdStats_test.cpp | 548 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()
|