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.cpp177 const ResourceOveruseConfiguration& resourceOveruseConfig) { in isValidResourceOveruseConfig() argument
178 const auto filter = getComponentFilter(resourceOveruseConfig.componentType); in isValidResourceOveruseConfig()
183 for (const auto& meta : resourceOveruseConfig.packageMetadata) { in isValidResourceOveruseConfig()
193 if (resourceOveruseConfig.resourceSpecificConfigurations.size() != 1) { in isValidResourceOveruseConfig()
195 << resourceOveruseConfig.resourceSpecificConfigurations.size() in isValidResourceOveruseConfig()
198 for (const auto& config : resourceOveruseConfig.resourceSpecificConfigurations) { in isValidResourceOveruseConfig()
204 if (auto result = isValidIoOveruseConfiguration(resourceOveruseConfig.componentType, in isValidResourceOveruseConfig()
208 << toString(resourceOveruseConfig.componentType).c_str() << ": " in isValidResourceOveruseConfig()
218 for (const auto& resourceOveruseConfig : resourceOveruseConfigs) { in isValidResourceOveruseConfigs() local
219 if (seenComponentTypes.count(resourceOveruseConfig.componentType) > 0) { in isValidResourceOveruseConfigs()
[all …]
DIoOveruseConfigs.h240 resourceOveruseConfig);
/packages/services/Car/cpp/watchdog/server/tests/
DOveruseConfigurationTestUtils.cpp83 ResourceOveruseConfiguration resourceOveruseConfig; in constructResourceOveruseConfig() local
84 resourceOveruseConfig.componentType = type; in constructResourceOveruseConfig()
85 resourceOveruseConfig.safeToKillPackages = safeToKill; in constructResourceOveruseConfig()
86 resourceOveruseConfig.vendorPackagePrefixes = vendorPrefixes; in constructResourceOveruseConfig()
87 resourceOveruseConfig.packageMetadata = packageMetadata; in constructResourceOveruseConfig()
90 resourceOveruseConfig.resourceSpecificConfigurations.push_back(config); in constructResourceOveruseConfig()
91 return resourceOveruseConfig; in constructResourceOveruseConfig()
DOveruseConfigurationXmlHelperTest.cpp280 ResourceOveruseConfiguration resourceOveruseConfig; in TEST() local
281 resourceOveruseConfig.componentType = ComponentType::THIRD_PARTY; in TEST()
287 OveruseConfigurationXmlHelper::writeXmlFile(resourceOveruseConfig, temporaryFile.path) in TEST()
DIoOveruseConfigsTest.cpp1060 const auto resourceOveruseConfig = sampleUpdateSystemConfig(); in TEST_F() local
1062 ASSERT_RESULT_OK(ioOveruseConfigs.update({resourceOveruseConfig})); in TEST_F()
1066 toPackageToAppCategoryMappings(resourceOveruseConfig.packageMetadata))); in TEST_F()
1071 const auto resourceOveruseConfig = sampleUpdateVendorConfig(); in TEST_F() local
1073 ASSERT_RESULT_OK(ioOveruseConfigs.update({resourceOveruseConfig})); in TEST_F()
1077 toPackageToAppCategoryMappings(resourceOveruseConfig.packageMetadata))); in TEST_F()