Home
last modified time | relevance | path

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

/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DIoOveruseConfigs.cpp178 const ResourceOveruseConfiguration& resourceOveruseConfig) { in isValidResourceOveruseConfig() argument
184 for (const auto& meta : resourceOveruseConfig.packageMetadata) { in isValidResourceOveruseConfig()
219 for (const auto& resourceOveruseConfig : resourceOveruseConfigs) { in isValidResourceOveruseConfigs() local
413 updateFromAidlConfig(resourceOveruseConfig); in update()
419 const auto resourceOveruseConfig = sParseXmlFile(filename); in updateFromXml() local
420 if (!resourceOveruseConfig.ok()) { in updateFromXml()
426 updateFromAidlConfig(*resourceOveruseConfig); in updateFromXml()
431 const ResourceOveruseConfiguration& resourceOveruseConfig) { in updateFromAidlConfig() argument
434 switch (resourceOveruseConfig.componentType) { in updateFromAidlConfig()
454 resourceOveruseConfig.resourceSpecificConfigurations) { in updateFromAidlConfig()
[all …]
H A DIoOveruseConfigs.h231 resourceOveruseConfig);
/aosp12/packages/services/Car/cpp/watchdog/server/tests/
H A 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()
H A DOveruseConfigurationXmlHelperTest.cpp286 ResourceOveruseConfiguration resourceOveruseConfig; in TEST() local
287 resourceOveruseConfig.componentType = ComponentType::THIRD_PARTY; in TEST()
293 OveruseConfigurationXmlHelper::writeXmlFile(resourceOveruseConfig, temporaryFile.path) in TEST()
H A 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()