Home
last modified time | relevance | path

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

/system/libvintf/
Dparse_xml.cpp83 inline void appendStrAttr(NodeType *e, const std::string &attrName, const std::string &attr) { in appendStrAttr() argument
84 e->SetAttribute(attrName.c_str(), attr.c_str()); in appendStrAttr()
118 inline bool getAttr(NodeType *root, const std::string &attrName, std::string *s) { in getAttr() argument
119 const char *c = root->Attribute(attrName.c_str()); in getAttr()
199 inline void appendAttr(NodeType *e, const std::string &attrName, const T &attr) const { in appendAttr()
200 return appendStrAttr(e, attrName, ::android::vintf::to_string(attr)); in appendAttr()
203 inline void appendAttr(NodeType *e, const std::string &attrName, bool attr) const { in appendAttr()
204 return appendStrAttr(e, attrName, attr ? "true" : "false"); in appendAttr()
239 inline bool parseOptionalAttr(NodeType* root, const std::string& attrName, T&& defaultValue, in parseOptionalAttr()
242 bool success = getAttr(root, attrName, &attrText) && in parseOptionalAttr()
[all …]