Home
last modified time | relevance | path

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

/system/libvintf/
Dparse_xml.cpp69 inline void appendStrAttr(NodeType *e, const std::string &attrName, const std::string &attr) { in appendStrAttr() argument
70 e->SetAttribute(attrName.c_str(), attr.c_str()); in appendStrAttr()
104 inline bool getAttr(NodeType *root, const std::string &attrName, std::string *s) { in getAttr() argument
105 const char *c = root->Attribute(attrName.c_str()); in getAttr()
186 inline void appendAttr(NodeType *e, const std::string &attrName, const T &attr) const { in appendAttr()
187 return appendStrAttr(e, attrName, ::android::vintf::to_string(attr)); in appendAttr()
190 inline void appendAttr(NodeType *e, const std::string &attrName, bool attr) const { in appendAttr()
191 return appendStrAttr(e, attrName, attr ? "true" : "false"); in appendAttr()
225 inline bool parseOptionalAttr(NodeType *root, const std::string &attrName, in parseOptionalAttr()
228 bool success = getAttr(root, attrName, &attrText) && in parseOptionalAttr()
[all …]