/packages/services/Car/cpp/watchdog/server/src/ |
D | PackageInfoResolver.cpp | 57 const std::vector<std::string>& vendorPackagePrefixes) { in getComponentTypeForNativeUid() argument 58 for (const auto& prefix : vendorPackagePrefixes) { in getComponentTypeForNativeUid() 76 uid_t uid, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfoForNativeUid() argument 88 getComponentTypeForNativeUid(uid, packageName, vendorPackagePrefixes); in getPackageInfoForNativeUid() 125 const std::unordered_set<std::string>& vendorPackagePrefixes, in setPackageConfigurations() argument 129 std::copy(vendorPackagePrefixes.begin(), vendorPackagePrefixes.end(), in setPackageConfigurations()
|
D | OveruseConfigurationXmlHelper.cpp | 163 std::vector<std::string> vendorPackagePrefixes; in readVendorPackagePrefixes() local 176 vendorPackagePrefixes.push_back(std::string(packagePrefix)); in readVendorPackagePrefixes() 179 return vendorPackagePrefixes; in readVendorPackagePrefixes() 468 Result<void> writeVendorPackagePrefixes(const std::vector<std::string>& vendorPackagePrefixes, in writeVendorPackagePrefixes() argument 470 if (vendorPackagePrefixes.empty()) { in writeVendorPackagePrefixes() 478 for (const auto& packagePrefix : vendorPackagePrefixes) { in writeVendorPackagePrefixes() 707 configuration.vendorPackagePrefixes = *result; in parseXmlFile() 750 writeVendorPackagePrefixes(configuration.vendorPackagePrefixes, rootElement); in writeXmlFile()
|
D | IoOveruseConfigs.cpp | 481 for (const auto& prefix : resourceOveruseConfiguration.vendorPackagePrefixes) { in update() 486 } else if (!resourceOveruseConfiguration.vendorPackagePrefixes.empty()) { in update() 510 &vendorPackagePrefixes = mVendorPackagePrefixes](const std::string& packageName) { in update() 514 for (const auto& prefix : vendorPackagePrefixes) { in update() 519 vendorPackagePrefixes.insert(packageName); in update() 613 resourceOveruseConfiguration.vendorPackagePrefixes = toStringVector(mVendorPackagePrefixes); in get()
|
D | PackageInfoResolver.h | 64 const std::unordered_set<std::string>& vendorPackagePrefixes, 118 const std::unordered_set<std::string>& vendorPackagePrefixes,
|
D | WatchdogServiceHelper.h | 66 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes, 107 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes,
|
D | WatchdogServiceHelper.cpp | 180 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfosForUids() argument 192 return service->getPackageInfosForUids(uids, vendorPackagePrefixes, packageInfos); in getPackageInfosForUids()
|
D | IoOveruseConfigs.h | 92 virtual const std::unordered_set<std::string>& vendorPackagePrefixes() = 0; 211 const std::unordered_set<std::string>& vendorPackagePrefixes() override { in vendorPackagePrefixes() function
|
D | IoOveruseMonitor.cpp | 145 mPackageInfoResolver->setPackageConfigurations(mIoOveruseConfigs->vendorPackagePrefixes(), in init()
|
/packages/services/Car/car-lib/src/android/car/watchdog/ |
D | ResourceOveruseConfiguration.java | 161 @NonNull List<String> vendorPackagePrefixes, in ResourceOveruseConfiguration() argument 179 this.mVendorPackagePrefixes = vendorPackagePrefixes; in ResourceOveruseConfiguration() 288 List<String> vendorPackagePrefixes = new java.util.ArrayList<>(); in ResourceOveruseConfiguration() local 289 in.readStringList(vendorPackagePrefixes); in ResourceOveruseConfiguration() 309 this.mVendorPackagePrefixes = vendorPackagePrefixes; in ResourceOveruseConfiguration() 375 @NonNull List<String> vendorPackagePrefixes, in Builder() argument 392 mVendorPackagePrefixes = vendorPackagePrefixes; in Builder()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | OveruseConfigurationTestUtils.cpp | 85 resourceOveruseConfig.vendorPackagePrefixes = vendorPrefixes; in constructResourceOveruseConfig() 173 Field(&ResourceOveruseConfiguration::vendorPackagePrefixes, in ResourceOveruseConfigurationMatcher() 174 UnorderedElementsAreArray(config.vendorPackagePrefixes)), in ResourceOveruseConfigurationMatcher()
|
D | IoOveruseConfigsTest.cpp | 327 latestVendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F() 399 latestVendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F() 445 vendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F() 548 EXPECT_THAT(ioOveruseConfigs.vendorPackagePrefixes(), IsEmpty()); in TEST_F() 930 EXPECT_THAT(ioOveruseConfigs->vendorPackagePrefixes(), in TEST_F() 970 vendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F()
|
D | PackageInfoResolverTest.cpp | 100 void setPackageConfigurations(const std::unordered_set<std::string>& vendorPackagePrefixes, in setPackageConfigurations() argument 102 mPackageInfoResolver->setPackageConfigurations(vendorPackagePrefixes, in setPackageConfigurations()
|
D | MockIoOveruseConfigs.h | 50 MOCK_METHOD((const std::unordered_set<std::string>&), vendorPackagePrefixes, (), (override));
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | InternalResourceOveruseConfigurationSubject.java | 121 && ImmutableSet.copyOf(actual.vendorPackagePrefixes).equals( in isEquals() 122 ImmutableSet.copyOf(expected.vendorPackagePrefixes)) in isEquals() 159 .append(config.vendorPackagePrefixes.stream().map(Object::toString) in toStringBuilder()
|
D | CarWatchdogServiceUnitTest.java | 1516 config.vendorPackagePrefixes = Arrays.asList(prefix + "_package", prefix + "_pkg"); in sampleInternalResourceOveruseConfiguration()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 97 List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument 104 mVendorPackagePrefixes = vendorPackagePrefixes; in getPackageInfosForUids()
|
D | CarWatchdogService.java | 495 int[] uids, List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument 505 return service.mPackageInfoHandler.getPackageInfosForUids(uids, vendorPackagePrefixes); in getPackageInfosForUids()
|
D | WatchdogPerfHandler.java | 945 internalConfig.vendorPackagePrefixes = config.getVendorPackagePrefixes(); in toInternalResourceOveruseConfiguration() 1082 internalConfig.vendorPackagePrefixes, in toResourceOveruseConfiguration()
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | ResourceOveruseConfiguration.aidl | 43 @utf8InCpp List<String> vendorPackagePrefixes;
|
D | ICarWatchdogServiceForSystem.aidl | 56 in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/ |
D | CarWatchdogDaemonHelperTest.java | 260 int[] uids, List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument
|