Home
last modified time | relevance | path

Searched refs:xmlElement (Results 1 – 25 of 84) sorted by relevance

1234

/external/parameter-framework/upstream/parameter/
DEnumValuePair.cpp54 bool CEnumValuePair::fromXml(const CXmlElement &xmlElement, in fromXml() argument
59 xmlElement.getAttribute("Literal", name); in fromXml()
63 xmlElement.getAttribute("Numerical", _iNumerical); in fromXml()
66 return base::fromXml(xmlElement, serializingContext); in fromXml()
77 void CEnumValuePair::toXml(CXmlElement &xmlElement, in toXml() argument
81 xmlElement.setAttribute("Literal", this->getName()); in toXml()
84 xmlElement.setAttribute("Numerical", getNumericalAsString()); in toXml()
88 base::childrenToXml(xmlElement, serializingContext); in toXml()
DSelectionCriterionRule.cpp143 bool CSelectionCriterionRule::fromXml(const CXmlElement &xmlElement, in fromXml() argument
152 xmlElement.getAttribute("SelectionCriterion", strSelectionCriterion); in fromXml()
163 xmlElement.getPath()); in fromXml()
170 xmlElement.getAttribute("MatchesWhen", strMatchesWhen); in fromXml()
176 getKind() + " " + xmlElement.getPath() + ": " + strError); in fromXml()
183 xmlElement.getAttribute("Value", strValue); in fromXml()
188 getKind() + " " + xmlElement.getPath()); in fromXml()
198 void CSelectionCriterionRule::toXml(CXmlElement &xmlElement, CXmlSerializingContext & /*ctx*/) const in toXml() argument
203 xmlElement.setAttribute("SelectionCriterion", _pSelectionCriterion->getName()); in toXml()
206 xmlElement.setAttribute("MatchesWhen", _astMatchesWhen[_eMatchesWhen].pcMatchesWhen); in toXml()
[all …]
DBitParameterType.cpp74 bool CBitParameterType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
78 xmlElement.getAttribute("Pos", _bitPos); in fromXml()
81 xmlElement.getAttribute("Size", _uiBitSize); in fromXml()
104 if (xmlElement.getAttribute("Max", _uiMax) && (_uiMax > getMaxEncodableValue())) { in fromXml()
118 return base::fromXml(xmlElement, serializingContext); in fromXml()
229 void CBitParameterType::toXml(CXmlElement &xmlElement, in toXml() argument
233 xmlElement.setAttribute("Pos", _bitPos); in toXml()
236 xmlElement.setAttribute("Size", _uiBitSize); in toXml()
239 xmlElement.setAttribute("Max", _uiMax); in toXml()
241 base::toXml(xmlElement, serializingContext); in toXml()
DFloatingPointParameterType.cpp84 bool CFloatingPointParameterType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
89 xmlElement.getAttribute("Size", sizeInBits); in fromXml()
96 getKind() + " " + xmlElement.getPath() + in fromXml()
104 xmlElement.getAttribute("Min", _fMin); in fromXml()
105 xmlElement.getAttribute("Max", _fMax); in fromXml()
113 return base::fromXml(xmlElement, serializingContext); in fromXml()
276 void CFloatingPointParameterType::toXml(CXmlElement &xmlElement, in toXml() argument
279 xmlElement.setAttribute("Size", getSize() * CHAR_BIT); in toXml()
280 xmlElement.setAttribute("Min", _fMin); in toXml()
281 xmlElement.setAttribute("Max", _fMax); in toXml()
[all …]
DBitParameterBlockType.cpp59 bool CBitParameterBlockType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
63 xmlElement.getAttribute("Size", _size); in fromXml()
67 return base::fromXml(xmlElement, serializingContext); in fromXml()
77 void CBitParameterBlockType::toXml(CXmlElement &xmlElement, in toXml() argument
81 xmlElement.setAttribute("Size", _size * 8); in toXml()
83 base::toXml(xmlElement, serializingContext); in toXml()
DStringParameterType.cpp60 bool CStringParameterType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
64 xmlElement.getAttribute("MaxLength", _maxLength); in fromXml()
67 return base::fromXml(xmlElement, serializingContext); in fromXml()
82 void CStringParameterType::toXml(CXmlElement &xmlElement, in toXml() argument
86 xmlElement.setAttribute("MaxLength", _maxLength); in toXml()
88 base::toXml(xmlElement, serializingContext); in toXml()
DTypeElement.cpp107 bool CTypeElement::fromXml(const CXmlElement &xmlElement, in fromXml() argument
111 xmlElement.getAttribute("ArrayLength", _arrayLength); in fromXml()
114 if (xmlElement.getAttribute("Mapping", rawMapping) && !rawMapping.empty()) { in fromXml()
120 xmlElement.getPath() + "': " + error); in fromXml()
124 return base::fromXml(xmlElement, serializingContext); in fromXml()
180 void CTypeElement::toXml(CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) const in toXml() argument
184 xmlElement.setAttribute("ArrayLength", getArrayLength()); in toXml()
187 base::toXml(xmlElement, serializingContext); in toXml()
DFixedPointParameterType.cpp90 bool CFixedPointParameterType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
95 xmlElement.getAttribute("Size", sizeInBits); in fromXml()
98 xmlElement.getAttribute("Integral", _uiIntegral); in fromXml()
99 xmlElement.getAttribute("Fractional", _uiFractional); in fromXml()
105 xmlElement.getAttribute("Size", size); in fromXml()
107 "Inconsistent Size vs. Q notation for " + getKind() + " " + xmlElement.getPath() + in fromXml()
116 return base::fromXml(xmlElement, serializingContext); in fromXml()
362 void CFixedPointParameterType::toXml(CXmlElement &xmlElement, in toXml() argument
366 xmlElement.setAttribute("Size", getSize() * 8); in toXml()
369 xmlElement.setAttribute("Integral", _uiIntegral); in toXml()
[all …]
DParameterFrameworkConfiguration.cpp63 bool CParameterFrameworkConfiguration::fromXml(const CXmlElement &xmlElement, in fromXml() argument
67 xmlElement.getAttribute("SystemClassName", _strSystemClassName); in fromXml()
70 xmlElement.getAttribute("TuningAllowed", _bTuningAllowed); in fromXml()
73 xmlElement.getAttribute("ServerPort", _bindAddress); in fromXml()
76 return base::fromXml(xmlElement, serializingContext); in fromXml()
DComponentType.cpp71 bool CComponentType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
81 if (!base::fromXml(xmlElement, serializingContext)) { in fromXml()
87 if (xmlElement.hasAttribute("Extends")) { in fromXml()
90 xmlElement.getAttribute("Extends", strExtendsType); in fromXml()
97 xmlElement.getPath() + " not found!"); in fromXml()
105 xmlElement.getPath()); in fromXml()
DConfigurableDomain.cpp110 void CConfigurableDomain::toXml(CXmlElement &xmlElement, in toXml() argument
113 base::toXml(xmlElement, serializingContext); in toXml()
116 xmlElement.setAttribute("SequenceAware", _bSequenceAware); in toXml()
119 void CConfigurableDomain::childrenToXml(CXmlElement &xmlElement, in childrenToXml() argument
123 composeDomainConfigurations(xmlElement, serializingContext); in childrenToXml()
126 composeConfigurableElements(xmlElement); in childrenToXml()
129 composeSettings(xmlElement, static_cast<CXmlDomainExportContext &>(serializingContext)); in childrenToXml()
134 CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) const in composeDomainConfigurations() argument
139 xmlElement.createChild(xmlConfigurationsElement, "Configurations"); in composeDomainConfigurations()
145 void CConfigurableDomain::composeConfigurableElements(CXmlElement &xmlElement) const in composeConfigurableElements()
[all …]
DElement.cpp144 bool CElement::fromXml(const CXmlElement &xmlElement, in fromXml() argument
146 xmlElement.getAttribute(gDescriptionPropertyName, _strDescription); in fromXml()
149 CXmlElement::CChildIterator childIterator(xmlElement); in fromXml()
192 void CElement::childrenToXml(CXmlElement &xmlElement, in childrenToXml() argument
201 xmlElement.createChild(xmlChildElement, pChild->getXmlElementName()); in childrenToXml()
208 void CElement::toXml(CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) const in toXml() argument
210 setXmlNameAttribute(xmlElement); in toXml()
211 setXmlDescriptionAttribute(xmlElement); in toXml()
212 childrenToXml(xmlElement, serializingContext); in toXml()
215 void CElement::setXmlDescriptionAttribute(CXmlElement &xmlElement) const in setXmlDescriptionAttribute()
[all …]
DElementLibrary.cpp49 CElement *CElementLibrary::createElement(const CXmlElement &xmlElement) const in createElement()
51 auto it = _elementBuilderMap.find(getBuilderType(xmlElement)); in createElement()
55 return it->second->createElement(xmlElement); in createElement()
66 std::string CElementLibrary::getBuilderType(const CXmlElement &xmlElement) const in getBuilderType()
69 return xmlElement.getType(); in getBuilderType()
DParameterType.cpp76 bool CParameterType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
79 xmlElement.getAttribute(gUnitPropertyName, _strUnit); in fromXml()
80 return base::fromXml(xmlElement, serializingContext); in fromXml()
84 void CParameterType::toXml(CXmlElement &xmlElement, in toXml() argument
87 base::toXml(xmlElement, serializingContext); in toXml()
88 setXmlUnitAttribute(xmlElement); in toXml()
91 void CParameterType::setXmlUnitAttribute(CXmlElement &xmlElement) const in setXmlUnitAttribute()
95 xmlElement.setAttribute(gUnitPropertyName, unit); in setXmlUnitAttribute()
DCompoundRule.cpp129 bool CCompoundRule::fromXml(const CXmlElement &xmlElement, in fromXml() argument
134 xmlElement.getAttribute("Type", strType); in fromXml()
138 return base::fromXml(xmlElement, serializingContext); in fromXml()
142 void CCompoundRule::toXml(CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) const in toXml() argument
145 xmlElement.setAttribute("Type", _apcTypes[_bTypeAll]); in toXml()
148 base::toXml(xmlElement, serializingContext); in toXml()
DConfigurableDomain.h149 bool fromXml(const CXmlElement &xmlElement,
153 void toXml(CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) const override;
154 void childrenToXml(CXmlElement &xmlElement,
237 bool parseDomainConfigurations(const CXmlElement &xmlElement,
248 bool parseConfigurableElements(const CXmlElement &xmlElement,
259 bool parseSettings(const CXmlElement &xmlElement, CXmlDomainImportContext &serializingContext);
262 void composeDomainConfigurations(CXmlElement &xmlElement,
264 void composeConfigurableElements(CXmlElement &xmlElement) const;
265 void composeSettings(CXmlElement &xmlElement, CXmlDomainExportContext &context) const;
DLinearParameterAdaptation.cpp61 bool CLinearParameterAdaptation::fromXml(const CXmlElement &xmlElement, in fromXml() argument
65 xmlElement.getAttribute("SlopeNumerator", _dSlopeNumerator); in fromXml()
68 if (xmlElement.getAttribute("SlopeDenominator", _dSlopeDenominator) && in fromXml()
73 xmlElement.getPath()); in fromXml()
78 return base::fromXml(xmlElement, serializingContext); in fromXml()
DLogarithmicParameterAdaptation.cpp58 bool CLogarithmicParameterAdaptation::fromXml(const CXmlElement &xmlElement, in fromXml() argument
61 if (xmlElement.getAttribute("LogarithmBase", _dLogarithmBase) && in fromXml()
65 xmlElement.getPath()); in fromXml()
70 xmlElement.getAttribute("FloorValue", _dFloorValue); in fromXml()
73 return base::fromXml(xmlElement, serializingContext); in fromXml()
DIntegerParameterType.h92 bool fromXml(const CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) override in fromXml() argument
96 xmlElement.getAttribute("Min", _min); in fromXml()
97 xmlElement.getAttribute("Max", _max); in fromXml()
106 return Base::fromXml(xmlElement, serializingContext); in fromXml()
110 void toXml(CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) const override in toXml() argument
112 xmlElement.setAttribute("Signed", isSigned); in toXml()
114 xmlElement.setAttribute("Min", _min); in toXml()
115 xmlElement.setAttribute("Max", _max); in toXml()
117 xmlElement.setAttribute("Size", bitSize); in toXml()
119 Base::toXml(xmlElement, serializingContext); in toXml()
DIntegerParameterBuilder.h43 CElement *createElement(const CXmlElement &xmlElement) const override in createElement() argument
46 sizeInBits = xmlElement.getAttribute("Size", sizeInBits) ? sizeInBits : 32; in createElement()
49 xmlElement.getAttribute("Signed", isSigned); in createElement()
51 auto name = xmlElement.getNameAttribute(); in createElement()
DDefaultElementLibrary.h72 CElement *createElement(const CXmlElement &xmlElement) const;
80 const CXmlElement &xmlElement) const in createElement() argument
82 CElement *builtElement = CElementLibrary::createElement(xmlElement); in createElement()
95 return _defaultBuilder->createElement(xmlElement); in createElement()
DComponentInstance.cpp79 bool CComponentInstance::fromXml(const CXmlElement &xmlElement, in fromXml() argument
89 xmlElement.getAttribute("Type", strComponentType); in fromXml()
95 serializingContext.setError("Unable to create Component " + xmlElement.getPath() + in fromXml()
103 " due to " + xmlElement.getPath() + in fromXml()
109 return base::fromXml(xmlElement, serializingContext); in fromXml()
DConfigurableElement.h168 bool fromXml(const CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) final;
170 void toXml(CXmlElement &xmlElement, CXmlSerializingContext &serializingContext) const final;
173 virtual bool structureFromXml(const CXmlElement &xmlElement, in structureFromXml() argument
187 return CElement::fromXml(xmlElement, serializingContext); in structureFromXml()
191 virtual void structureToXml(CXmlElement &xmlElement, in structureToXml() argument
195 CElement::toXml(xmlElement, serializingContext); in structureToXml()
DEnumParameterType.cpp78 bool CEnumParameterType::fromXml(const CXmlElement &xmlElement, in fromXml() argument
83 if (not xmlElement.getAttribute("Size", sizeInBits)) { in fromXml()
91 return base::fromXml(xmlElement, serializingContext); in fromXml()
284 void CEnumParameterType::toXml(CXmlElement &xmlElement, in toXml() argument
288 xmlElement.setAttribute("Size", getSize() * 8); in toXml()
290 base::toXml(xmlElement, serializingContext); in toXml()
DKindElementBuilderTemplate.h40 CElement *createElement(const CXmlElement &xmlElement) const override in createElement() argument
42 return new ElementType(xmlElement.getNameAttribute(), xmlElement.getType()); in createElement()

1234