Home
last modified time | relevance | path

Searched refs:resourceOveruseConfig (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseConfigs.cpp187 const ResourceOveruseConfiguration& resourceOveruseConfig) { in isValidResourceOveruseConfig() argument
188 const auto filter = getComponentFilter(resourceOveruseConfig.componentType); in isValidResourceOveruseConfig()
193 for (const auto& meta : resourceOveruseConfig.packageMetadata) { in isValidResourceOveruseConfig()
203 if (resourceOveruseConfig.resourceSpecificConfigurations.size() != 1) { in isValidResourceOveruseConfig()
205 << resourceOveruseConfig.resourceSpecificConfigurations.size() in isValidResourceOveruseConfig()
208 for (const auto& config : resourceOveruseConfig.resourceSpecificConfigurations) { in isValidResourceOveruseConfig()
214 if (auto result = isValidIoOveruseConfiguration(resourceOveruseConfig.componentType, in isValidResourceOveruseConfig()
218 << toString(resourceOveruseConfig.componentType).c_str() << ": " in isValidResourceOveruseConfig()
228 for (const auto& resourceOveruseConfig : resourceOveruseConfigs) { in isValidResourceOveruseConfigs() local
229 if (seenComponentTypes.count(resourceOveruseConfig.componentType) > 0) { in isValidResourceOveruseConfigs()
[all …]
DIoOveruseConfigs.h231 resourceOveruseConfig);
/packages/services/Car/cpp/watchdog/server/tests/
DOveruseConfigurationTestUtils.cpp82 ResourceOveruseConfiguration resourceOveruseConfig; in constructResourceOveruseConfig() local
83 resourceOveruseConfig.componentType = type; in constructResourceOveruseConfig()
84 resourceOveruseConfig.safeToKillPackages = safeToKill; in constructResourceOveruseConfig()
85 resourceOveruseConfig.vendorPackagePrefixes = vendorPrefixes; in constructResourceOveruseConfig()
86 resourceOveruseConfig.packageMetadata = packageMetadata; in constructResourceOveruseConfig()
89 resourceOveruseConfig.resourceSpecificConfigurations.push_back(config); in constructResourceOveruseConfig()
90 return resourceOveruseConfig; in constructResourceOveruseConfig()
DOveruseConfigurationXmlHelperTest.cpp286 ResourceOveruseConfiguration resourceOveruseConfig; in TEST() local
287 resourceOveruseConfig.componentType = ComponentType::THIRD_PARTY; in TEST()
293 OveruseConfigurationXmlHelper::writeXmlFile(resourceOveruseConfig, temporaryFile.path) in TEST()
DIoOveruseConfigsTest.cpp936 const auto resourceOveruseConfig = sampleUpdateSystemConfig(); in TEST_F() local
938 ASSERT_RESULT_OK(ioOveruseConfigs.update({resourceOveruseConfig})); in TEST_F()
942 toPackageToAppCategoryMappings(resourceOveruseConfig.packageMetadata))); in TEST_F()
947 const auto resourceOveruseConfig = sampleUpdateVendorConfig(); in TEST_F() local
949 ASSERT_RESULT_OK(ioOveruseConfigs.update({resourceOveruseConfig})); in TEST_F()
953 toPackageToAppCategoryMappings(resourceOveruseConfig.packageMetadata))); in TEST_F()