Home
last modified time | relevance | path

Searched refs:vendorPackagePrefixes (Results 1 – 21 of 21) sorted by relevance

/packages/services/Car/cpp/watchdog/server/src/
DPackageInfoResolver.cpp57 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()
DOveruseConfigurationXmlHelper.cpp163 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()
DIoOveruseConfigs.cpp481 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()
DPackageInfoResolver.h64 const std::unordered_set<std::string>& vendorPackagePrefixes,
118 const std::unordered_set<std::string>& vendorPackagePrefixes,
DWatchdogServiceHelper.h66 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,
DWatchdogServiceHelper.cpp180 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfosForUids() argument
192 return service->getPackageInfosForUids(uids, vendorPackagePrefixes, packageInfos); in getPackageInfosForUids()
DIoOveruseConfigs.h92 virtual const std::unordered_set<std::string>& vendorPackagePrefixes() = 0;
211 const std::unordered_set<std::string>& vendorPackagePrefixes() override { in vendorPackagePrefixes() function
DIoOveruseMonitor.cpp145 mPackageInfoResolver->setPackageConfigurations(mIoOveruseConfigs->vendorPackagePrefixes(), in init()
/packages/services/Car/car-lib/src/android/car/watchdog/
DResourceOveruseConfiguration.java161 @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/
DOveruseConfigurationTestUtils.cpp85 resourceOveruseConfig.vendorPackagePrefixes = vendorPrefixes; in constructResourceOveruseConfig()
173 Field(&ResourceOveruseConfiguration::vendorPackagePrefixes, in ResourceOveruseConfigurationMatcher()
174 UnorderedElementsAreArray(config.vendorPackagePrefixes)), in ResourceOveruseConfigurationMatcher()
DIoOveruseConfigsTest.cpp327 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()
DPackageInfoResolverTest.cpp100 void setPackageConfigurations(const std::unordered_set<std::string>& vendorPackagePrefixes, in setPackageConfigurations() argument
102 mPackageInfoResolver->setPackageConfigurations(vendorPackagePrefixes, in setPackageConfigurations()
DMockIoOveruseConfigs.h50 MOCK_METHOD((const std::unordered_set<std::string>&), vendorPackagePrefixes, (), (override));
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DInternalResourceOveruseConfigurationSubject.java121 && ImmutableSet.copyOf(actual.vendorPackagePrefixes).equals( in isEquals()
122 ImmutableSet.copyOf(expected.vendorPackagePrefixes)) in isEquals()
159 .append(config.vendorPackagePrefixes.stream().map(Object::toString) in toStringBuilder()
DCarWatchdogServiceUnitTest.java1516 config.vendorPackagePrefixes = Arrays.asList(prefix + "_package", prefix + "_pkg"); in sampleInternalResourceOveruseConfiguration()
/packages/services/Car/service/src/com/android/car/watchdog/
DPackageInfoHandler.java97 List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument
104 mVendorPackagePrefixes = vendorPackagePrefixes; in getPackageInfosForUids()
DCarWatchdogService.java495 int[] uids, List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument
505 return service.mPackageInfoHandler.getPackageInfosForUids(uids, vendorPackagePrefixes); in getPackageInfosForUids()
DWatchdogPerfHandler.java945 internalConfig.vendorPackagePrefixes = config.getVendorPackagePrefixes(); in toInternalResourceOveruseConfiguration()
1082 internalConfig.vendorPackagePrefixes, in toResourceOveruseConfiguration()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DResourceOveruseConfiguration.aidl43 @utf8InCpp List<String> vendorPackagePrefixes;
DICarWatchdogServiceForSystem.aidl56 in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java260 int[] uids, List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument