Lines Matching refs:childElement

228     for (const XMLElement* childElement = rootElement->FirstChildElement(kTagState);  in readPerStateBytes()  local
229 childElement != nullptr; childElement = childElement->NextSiblingElement(kTagState)) { in readPerStateBytes()
231 if (childElement->QueryStringAttribute(kAttrId, &state) != XML_SUCCESS) { in readPerStateBytes()
239 if (const auto text = childElement->GetText(); text == nullptr) { in readPerStateBytes()
290 for (const XMLElement* childElement = rootElement->FirstChildElement(kTagPerStateThreshold); in readPerStateThresholds() local
291 childElement != nullptr; in readPerStateThresholds()
292 childElement = childElement->NextSiblingElement(kTagPerStateThreshold)) { in readPerStateThresholds()
295 childElement->QueryStringAttribute(kAttrId, &name) != XML_SUCCESS) { in readPerStateThresholds()
300 if (const auto result = readPerStateBytes(childElement); result.ok()) { in readPerStateThresholds()
314 for (const XMLElement* childElement = in readPackageSpecificThresholds() local
316 childElement != nullptr; in readPackageSpecificThresholds()
317 childElement = childElement->NextSiblingElement(kTagPackageSpecificThresholds)) { in readPackageSpecificThresholds()
318 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readPackageSpecificThresholds()
331 for (const XMLElement* childElement = in readAppCategorySpecificThresholds() local
333 childElement != nullptr; in readAppCategorySpecificThresholds()
334 childElement = childElement->NextSiblingElement(kTagAppCategorySpecificThresholds)) { in readAppCategorySpecificThresholds()
335 if (const auto result = readPerStateThresholds(childElement); result.ok()) { in readAppCategorySpecificThresholds()
348 for (const XMLElement* childElement = rootElement->FirstChildElement(kTagParam); in readIoOveruseAlertThreshold() local
349 childElement != nullptr; childElement = childElement->NextSiblingElement(kTagParam)) { in readIoOveruseAlertThreshold()
351 if (childElement->QueryStringAttribute(kAttrId, &param) != XML_SUCCESS) { in readIoOveruseAlertThreshold()
359 if (const auto text = childElement->GetText(); text == nullptr) { in readIoOveruseAlertThreshold()
404 const XMLElement* childElement = nullptr; in readIoOveruseConfiguration() local
407 childElement = *result; in readIoOveruseConfiguration()
413 if (const auto result = readComponentLevelThresholds(componentType, childElement); in readIoOveruseConfiguration()
419 if (const auto result = readPackageSpecificThresholds(childElement); result.ok()) { in readIoOveruseConfiguration()
424 if (const auto result = readAppCategorySpecificThresholds(childElement); result.ok()) { in readIoOveruseConfiguration()
429 if (const auto result = readSystemWideThresholds(childElement); result.ok()) { in readIoOveruseConfiguration()
438 XMLElement* childElement = rootElement->InsertNewChildElement(kTagComponentType); in writeComponentType() local
439 if (!childElement) { in writeComponentType()
443 childElement->SetText(toString(componentType).c_str()); in writeComponentType()
512 XMLElement* childElement = rootElement->InsertNewChildElement(kTagState); in writePerStateBytes() local
513 if (!childElement) { in writePerStateBytes()
516 childElement->SetAttribute(kAttrId, state); in writePerStateBytes()
517 childElement->SetText(value); in writePerStateBytes()
543 XMLElement* childElement = rootElement->InsertNewChildElement(kTagComponentLevelThresholds); in writeComponentLevelThresholds() local
544 if (!childElement) { in writeComponentLevelThresholds()
548 if (const auto result = writePerStateBytes(thresholds.perStateWriteBytes, childElement); in writeComponentLevelThresholds()
557 XMLElement* childElement = rootElement->InsertNewChildElement(kTagPerStateThreshold); in writePerStateThresholds() local
558 if (!childElement) { in writePerStateThresholds()
562 childElement->SetAttribute(kAttrId, thresholds.name.c_str()); in writePerStateThresholds()
563 if (const auto result = writePerStateBytes(thresholds.perStateWriteBytes, childElement); in writePerStateThresholds()
572 XMLElement* childElement = rootElement->InsertNewChildElement(kTagPackageSpecificThresholds); in writePackageSpecificThresholds() local
573 if (!childElement) { in writePackageSpecificThresholds()
578 if (const auto result = writePerStateThresholds(threshold, childElement); !result.ok()) { in writePackageSpecificThresholds()
588 XMLElement* childElement = in writeAppCategorySpecificThresholds() local
590 if (!childElement) { in writeAppCategorySpecificThresholds()
595 if (const auto result = writePerStateThresholds(threshold, childElement); !result.ok()) { in writeAppCategorySpecificThresholds()
636 XMLElement* childElement = rootElement->InsertNewChildElement(kTagSystemWideThresholds); in writeSystemWideThresholds() local
637 if (!childElement) { in writeSystemWideThresholds()
642 if (const auto result = writeAlertThresholds(threshold, childElement); !result.ok()) { in writeSystemWideThresholds()
651 XMLElement* childElement = rootElement->InsertNewChildElement(kTagIoOveruseConfiguration); in writeIoOveruseConfiguration() local
652 if (!childElement) { in writeIoOveruseConfiguration()
657 writeComponentLevelThresholds(configuration.componentLevelThresholds, childElement); in writeIoOveruseConfiguration()
662 childElement); in writeIoOveruseConfiguration()
668 childElement); in writeIoOveruseConfiguration()
673 writeSystemWideThresholds(configuration.systemWideThresholds, childElement); in writeIoOveruseConfiguration()