Searched refs:kAttrId (Results 1 – 2 of 2) sorted by relevance
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | PolicyManager.cpp | 65 constexpr const char* kAttrId = "id"; variable 180 if (pComponent->QueryStringAttribute(kAttrId, &id) != XML_SUCCESS) { in readComponents() 181 return Error() << StringPrintf("Failed to read |%s| attribute in |%s| tag", kAttrId, in readComponents() 188 safePtrPrint(id), kAttrId, kTagComponent); in readComponents() 193 toString(componentId).c_str(), kAttrId, kTagComponent); in readComponents() 255 if (pPolicy->QueryStringAttribute(kAttrId, &policyId) != XML_SUCCESS) { in readPolicies() 256 return Error() << StringPrintf("Failed to read |%s| attribute in |%s| tag", kAttrId, in readPolicies() 297 if (pDefaultPolicy->QueryStringAttribute(kAttrId, &policyId) != XML_SUCCESS) { in readPolicyGroup() 298 return Error() << StringPrintf("Failed to read |%s| attribute in |%s| tag", kAttrId, in readPolicyGroup() 339 if (pPolicyGroup->QueryStringAttribute(kAttrId, &policyGroupId) != XML_SUCCESS) { in readPolicyGroups() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | OveruseConfigurationXmlHelper.cpp | 97 constexpr const char kAttrId[] = "id"; variable 232 if (childElement->QueryStringAttribute(kAttrId, &state) != XML_SUCCESS) { in readPerStateBytes() 233 return Error() << "Failed to read '" << kAttrId << "' attribute in '" << kTagState in readPerStateBytes() 296 childElement->QueryStringAttribute(kAttrId, &name) != XML_SUCCESS) { in readPerStateThresholds() 297 return Error() << "Failed to read '" << kAttrId << "' attribute"; in readPerStateThresholds() 299 return Error() << "Must provide non-empty value in '" << kAttrId << "' attribute"; in readPerStateThresholds() 352 if (childElement->QueryStringAttribute(kAttrId, ¶m) != XML_SUCCESS) { in readIoOveruseAlertThreshold() 353 return Error() << "Failed to read '" << kAttrId << "' attribute in '" << kTagParam in readIoOveruseAlertThreshold() 517 childElement->SetAttribute(kAttrId, state); in writePerStateBytes() 563 childElement->SetAttribute(kAttrId, thresholds.name.c_str()); in writePerStateThresholds() [all …]
|