/packages/services/Car/cpp/watchdog/server/src/ |
D | PackageInfoResolver.cpp | 59 const std::vector<std::string>& vendorPackagePrefixes) { in getComponentTypeForNativeUid() argument 60 for (const auto& prefix : vendorPackagePrefixes) { in getComponentTypeForNativeUid() 78 uid_t uid, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfoForNativeUid() argument 90 getComponentTypeForNativeUid(uid, packageName, vendorPackagePrefixes); in getPackageInfoForNativeUid() 133 const std::unordered_set<std::string>& vendorPackagePrefixes, in setPackageConfigurations() argument 137 std::copy(vendorPackagePrefixes.begin(), vendorPackagePrefixes.end(), in setPackageConfigurations()
|
D | OveruseConfigurationXmlHelper.cpp | 162 std::vector<std::string> vendorPackagePrefixes; in readVendorPackagePrefixes() local 175 vendorPackagePrefixes.push_back(std::string(packagePrefix)); in readVendorPackagePrefixes() 178 return vendorPackagePrefixes; in readVendorPackagePrefixes() 467 Result<void> writeVendorPackagePrefixes(const std::vector<std::string>& vendorPackagePrefixes, in writeVendorPackagePrefixes() argument 469 if (vendorPackagePrefixes.empty()) { in writeVendorPackagePrefixes() 477 for (const auto& packagePrefix : vendorPackagePrefixes) { in writeVendorPackagePrefixes() 706 configuration.vendorPackagePrefixes = *result; in parseXmlFile() 749 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() 615 resourceOveruseConfiguration.vendorPackagePrefixes = toStringVector(mVendorPackagePrefixes); in get()
|
D | PackageInfoResolver.h | 69 const std::unordered_set<std::string>& vendorPackagePrefixes, 125 const std::unordered_set<std::string>& vendorPackagePrefixes,
|
D | WatchdogServiceHelper.h | 69 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes, 116 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes,
|
D | WatchdogServiceHelper.cpp | 232 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfosForUids() argument 245 return service->getPackageInfosForUids(uids, vendorPackagePrefixes, packageInfos); in getPackageInfosForUids()
|
D | IoOveruseConfigs.h | 94 virtual const std::unordered_set<std::string>& vendorPackagePrefixes() = 0; 220 const std::unordered_set<std::string>& vendorPackagePrefixes() override { in vendorPackagePrefixes() function
|
/packages/services/Car/car-lib/src/android/car/watchdog/ |
D | ResourceOveruseConfiguration.java | 177 @NonNull List<String> vendorPackagePrefixes, in ResourceOveruseConfiguration() argument 195 this.mVendorPackagePrefixes = vendorPackagePrefixes; in ResourceOveruseConfiguration() 314 List<String> vendorPackagePrefixes = new java.util.ArrayList<>(); in ResourceOveruseConfiguration() local 315 in.readStringList(vendorPackagePrefixes); in ResourceOveruseConfiguration() 335 this.mVendorPackagePrefixes = vendorPackagePrefixes; in ResourceOveruseConfiguration() 410 @NonNull List<String> vendorPackagePrefixes, in Builder() argument 427 mVendorPackagePrefixes = vendorPackagePrefixes; in Builder()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 168 List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument 169 setVendorPackagePrefixes(vendorPackagePrefixes); in getPackageInfosForUids() 325 void setVendorPackagePrefixes(List<String> vendorPackagePrefixes) { in setVendorPackagePrefixes() argument 327 if (mVendorPackagePrefixes.equals(vendorPackagePrefixes)) { in setVendorPackagePrefixes() 330 mVendorPackagePrefixes = vendorPackagePrefixes; in setVendorPackagePrefixes()
|
D | CarWatchdogService.java | 908 int[] uids, List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument 918 return service.mPackageInfoHandler.getPackageInfosForUids(uids, vendorPackagePrefixes); in getPackageInfosForUids()
|
/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()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | OveruseConfigurationTestUtils.cpp | 86 resourceOveruseConfig.vendorPackagePrefixes = vendorPrefixes; in constructResourceOveruseConfig() 174 Field(&ResourceOveruseConfiguration::vendorPackagePrefixes, in ResourceOveruseConfigurationMatcher() 175 UnorderedElementsAreArray(config.vendorPackagePrefixes)), in ResourceOveruseConfigurationMatcher()
|
D | IoOveruseConfigsTest.cpp | 317 latestVendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F() 389 latestVendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F() 435 vendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F() 538 EXPECT_THAT(ioOveruseConfigs.vendorPackagePrefixes(), IsEmpty()); in TEST_F() 1028 EXPECT_THAT(ioOveruseConfigs->vendorPackagePrefixes(), in TEST_F() 1034 sampleVendorConfig.vendorPackagePrefixes.push_back("shared:vendorSharedPackage"); in TEST_F() 1052 EXPECT_THAT(ioOveruseConfigs->vendorPackagePrefixes(), in TEST_F() 1094 vendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F()
|
D | PackageInfoResolverTest.cpp | 95 void setPackageConfigurations(const std::unordered_set<std::string>& vendorPackagePrefixes, in setPackageConfigurations() argument 97 mPackageInfoResolver->setPackageConfigurations(vendorPackagePrefixes, in setPackageConfigurations()
|
D | MockIoOveruseConfigs.h | 52 MOCK_METHOD((const std::unordered_set<std::string>&), vendorPackagePrefixes, (), (override));
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/ |
D | ResourceOveruseConfiguration.aidl | 38 @utf8InCpp List<String> vendorPackagePrefixes;
|
D | ICarWatchdogServiceForSystem.aidl | 39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/ |
D | ResourceOveruseConfiguration.aidl | 38 @utf8InCpp List<String> vendorPackagePrefixes;
|
D | ICarWatchdogServiceForSystem.aidl | 39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/ |
D | ResourceOveruseConfiguration.aidl | 38 @utf8InCpp List<String> vendorPackagePrefixes;
|
D | ICarWatchdogServiceForSystem.aidl | 39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/ |
D | ResourceOveruseConfiguration.aidl | 38 @utf8InCpp List<String> vendorPackagePrefixes;
|
D | ICarWatchdogServiceForSystem.aidl | 39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | ResourceOveruseConfiguration.aidl | 43 @utf8InCpp List<String> vendorPackagePrefixes;
|
D | ICarWatchdogServiceForSystem.aidl | 58 in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
|