Searched refs:strValue (Results 1 - 25 of 82) sorted by relevance

1234

/external/parameter-framework/upstream/parameter/
H A DBooleanParameterType.cpp47 bool CBooleanParameterType::toBlackboard(const std::string &strValue, uint32_t &uiValue, argument
50 if (strValue == "1" || strValue == "0x1") {
53 } else if (strValue == "0" || strValue == "0x0") {
57 parameterAccessContext.setError(strValue + " value not part of numerical space {");
59 if (utility::isHexadecimal(strValue)) {
74 bool CBooleanParameterType::fromBlackboard(std::string &strValue, const uint32_t &uiValue, argument
77 strValue = uiValue ? "1" : "0";
81 strValue
[all...]
H A DStringParameter.cpp70 bool CStringParameter::doSetValue(const string &strValue, size_t offset, argument
73 if (strValue.length() >= getSize()) {
76 to_string(strValue.length()) + ": maximum length is " +
85 pBlackboard->writeString(strValue, offset);
90 void CStringParameter::doGetValue(string &strValue, size_t offset, argument
93 parameterAccessContext.getParameterBlackboard()->readString(strValue, offset);
H A DMappingData.cpp45 std::string strKey, strValue; local
52 strValue = "";
60 strValue = strMappingElement.substr(iFistDelimiterOccurrence + 1);
63 if (!addValue(strKey, strValue)) {
65 error = "Unable to process Mapping element key = " + strKey + ", value = " + strValue +
92 bool CMappingData::addValue(const std::string &strkey, const std::string &strValue) argument
98 _keyToValueMap[strkey] = strValue;
H A DSelectionCriterionType.h45 virtual bool addValuePair(int iValue, const std::string &strValue, std::string &strError);
49 * @param[in] strValue: criterion type value represented as a stream. If the criterion is
56 virtual bool getNumericalValue(const std::string &strValue, int &iValue) const;
57 virtual bool getLiteralValue(int iValue, std::string &strValue) const;
82 * @param[in] strValue: criterion type value represented as a stream. If the criterion is
88 bool getAtomicNumericalValue(const std::string &strValue, int &iValue) const;
H A DSelectionCriterionRule.cpp83 string strValue; local
85 if (!ruleParser.next(strValue, strError)) {
99 if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) {
101 strError = "Value error: \"" + strValue + "\" is not part of criterion \"" +
182 string strValue; local
183 xmlElement.getAttribute("Value", strValue);
185 if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) {
187 xmlDomainImportContext.setError("Wrong Value attribute value " + strValue + " in " +
209 string strValue; local
211 _pSelectionCriterion->getCriterionType()->getLiteralValue(_iMatchValue, strValue);
[all...]
H A DFixedPointParameterType.h55 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
57 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
82 * @param[in] strValue Parameter read from the XML file representated as a string in decimal
89 bool convertFromDecimal(const std::string &strValue, uint32_t &uiValue,
97 * @param[in] strValue Parameter read from the XML file representated as a string in hexadecimal
104 bool convertFromHexadecimal(const std::string &strValue, uint32_t &uiValue,
112 * @param[in] strValue Parameter read from the XML file representated as a string in Qn.m
119 bool convertFromQnm(const std::string &strValue, uint32_t &uiValue,
127 * @param[in] strValue Parameter read from the XML file representated as a string
130 void setOutOfRangeError(const std::string &strValue,
[all...]
H A DFloatingPointParameterType.cpp117 const string &strValue, uint32_t &uiValue,
121 if (utility::isHexadecimal(strValue) && !parameterAccessContext.valueSpaceIsRaw()) {
124 " when selected value space is real: " + strValue);
132 if (!convertTo(strValue, uiValue)) {
134 parameterAccessContext.setError("Value '" + strValue + "' is invalid");
143 parameterAccessContext.setError("Value " + strValue + " is not a finite number");
149 setOutOfRangeError(strValue, parameterAccessContext);
158 if (!convertTo(strValue, fValue)) {
160 parameterAccessContext.setError("Value " + strValue + " is invalid");
166 setOutOfRangeError(strValue, parameterAccessContex
116 toBlackboard( const string &strValue, uint32_t &uiValue, CParameterAccessContext &parameterAccessContext) const argument
176 setOutOfRangeError( const string &strValue, CParameterAccessContext &parameterAccessContext) const argument
182 ostrStream << "Value " << strValue << " standing out of admitted "; local
205 fromBlackboard( string &strValue, const uint32_t &uiValue, CParameterAccessContext &parameterAccessContext) const argument
[all...]
H A DSelectionCriterionType.cpp54 bool CSelectionCriterionType::addValuePair(int iValue, const std::string &strValue, argument
61 error << "Rejecting value pair association: 0x" << std::hex << iValue << " - " << strValue
69 if (_numToLitMap.find(strValue) != _numToLitMap.end()) {
73 << iValue << " - " << strValue << " for Selection Criterion Type " << getName();
82 << " 0x" << std::hex << iValue << " - " << strValue
88 _numToLitMap[strValue] = iValue;
93 bool CSelectionCriterionType::getNumericalValue(const std::string &strValue, int &iValue) const argument
97 Tokenizer tok(strValue, _strDelimiter);
115 return getAtomicNumericalValue(strValue, iValue);
118 bool CSelectionCriterionType::getAtomicNumericalValue(const std::string &strValue, argument
[all...]
H A DFixedPointParameterType.cpp119 bool CFixedPointParameterType::toBlackboard(const string &strValue, uint32_t &uiValue, argument
122 bool bValueProvidedAsHexa = utility::isHexadecimal(strValue);
137 return convertFromHexadecimal(strValue, uiValue, parameterAccessContext);
139 return convertFromDecimal(strValue, uiValue, parameterAccessContext);
141 return convertFromQnm(strValue, uiValue, parameterAccessContext);
145 const string &strValue, CParameterAccessContext &parameterAccessContext) const
149 stream << "Value " << strValue << " standing out of admitted "; local
168 if (utility::isHexadecimal(strValue)) {
190 bool CFixedPointParameterType::fromBlackboard(string &strValue, const uint32_t &value, argument
225 strValue
144 setOutOfRangeError( const string &strValue, CParameterAccessContext &parameterAccessContext) const argument
283 convertFromHexadecimal( const string &strValue, uint32_t &uiValue, CParameterAccessContext &parameterAccessContext) const argument
301 convertFromDecimal( const string &strValue, uint32_t &uiValue, CParameterAccessContext &parameterAccessContext) const argument
313 convertFromQnm(const string &strValue, uint32_t &uiValue, CParameterAccessContext &parameterAccessContext) const argument
[all...]
H A DBaseParameter.cpp65 string strValue; local
67 doGetValue(strValue, getOffset() - configurationAccessContext.getBaseOffset(),
71 xmlConfigurationSettingsElementContent.setTextContent(strValue);
147 bool CBaseParameter::access(string &strValue, bool bSet, argument
153 if (!doSetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(),
168 doGetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(),
185 bool CBaseParameter::accessValue(CPathNavigator &pathNavigator, string &strValue, bool bSet, argument
194 return access(strValue, bSet, parameterAccessContext);
H A DStringParameter.h52 virtual bool doSetValue(const std::string &strValue, size_t offset,
54 virtual void doGetValue(std::string &strValue, size_t offset,
H A DIntegerParameterType.cpp141 bool CIntegerParameterType::toBlackboard(const string &strValue, uint32_t &uiValue, argument
145 bool bValueProvidedAsHexa = utility::isHexadecimal(strValue);
150 if (!convertValueFromString(strValue, iData, parameterAccessContext)) {
164 if (!checkValueAgainstRange<int64_t>(strValue, iData, (int32_t)_uiMin, (int32_t)_uiMax,
171 if (!checkValueAgainstRange<uint64_t>(strValue, iData, _uiMin, _uiMax,
183 bool CIntegerParameterType::fromBlackboard(string &strValue, const uint32_t &value, argument
214 strValue = stream.str();
367 const string &strValue, int64_t &iData, CParameterAccessContext &parameterAccessContext) const
377 iData = strtoll(strValue.c_str(), &pcStrEnd, 0);
380 iData = strtoull(strValue
366 convertValueFromString( const string &strValue, int64_t &iData, CParameterAccessContext &parameterAccessContext) const argument
400 checkValueAgainstRange(const string &strValue, type value, type minValue, type maxValue, CParameterAccessContext &parameterAccessContext, bool bHexaValue) const argument
409 stream << "Value " << strValue << " standing out of admitted range ["; local
[all...]
H A DBooleanParameterType.h47 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
49 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
H A DBaseParameter.h82 bool access(std::string &strValue, bool bSet,
92 virtual bool accessValue(CPathNavigator &pathNavigator, std::string &strValue, bool bSet,
96 virtual bool doSetValue(const std::string &strValue, size_t offset,
98 virtual void doGetValue(std::string &strValue, size_t offset,
H A DIntegerParameterType.h52 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
54 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
89 bool convertValueFromString(const std::string &strValue, int64_t &iData,
94 bool checkValueAgainstRange(const std::string &strValue, type value, type minValue,
H A DFloatingPointParameterType.h47 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
49 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
66 * @param[in] strValue the user provided value
69 void setOutOfRangeError(const std::string &strValue,
H A DBitParameterType.cpp122 bool CBitParameterType::toBlackboard(const string &strValue, uint64_t &uiValue, argument
126 uint64_t uiConvertedValue = strtoull(strValue.c_str(), NULL, 0);
133 strStream << "Value " << strValue << " standing out of admitted range ["; local
135 if (utility::isHexadecimal(strValue)) {
156 void CBitParameterType::fromBlackboard(string &strValue, const uint64_t &uiValue, argument
172 strValue = strStream.str();
/external/parameter-framework/upstream/parameter/include/
H A DSelectionCriterionTypeInterface.h41 * @param[in] strValue litteral value
45 virtual bool addValuePair(int iValue, const std::string &strValue, std::string &strError) = 0;
46 virtual bool getNumericalValue(const std::string &strValue, int &iValue) const = 0;
47 virtual bool getLiteralValue(int iValue, std::string &strValue) const = 0;
/external/parameter-framework/upstream/test/test-subsystem/
H A DTESTSubsystemObject.cpp108 std::string strValue = toString(pvValue, _scalarSize); local
110 outputFile << strValue << std::endl;
116 info() << "TESTSUBSYSTEM: Writing '" << strValue << "' to file " << _strFilePath;
119 info() << "TESTSUBSYSTEM: Writing '" << strValue << "' to file " << _strFilePath
134 std::string strValue; local
136 inputFile >> strValue; local
142 info() << "TESTSUBSYSTEM: Reading '" << strValue << "' to file " << _strFilePath;
145 info() << "TESTSUBSYSTEM: Reading '" << strValue << "' to file " << _strFilePath
150 fromString(strValue, pvValue, _scalarSize);
H A DTESTSubsystemString.cpp51 void CTESTSubsystemString::fromString(const std::string &strValue, void *pvValue, size_t size) argument
53 std::size_t requiredBufferSize = strValue.length() + 1; /* Adding one for null character */
60 auto last = std::copy(begin(strValue), end(strValue), destination);
H A DTESTSubsystemBinary.h45 virtual void fromString(const std::string &strValue, void *pvValue, size_t size);
H A DTESTSubsystemString.h45 virtual void fromString(const std::string &strValue, void *pvValue, size_t size);
H A DTESTSubsystemBinary.cpp67 void CTESTSubsystemBinary::fromString(const std::string &strValue, void *pvValue, size_t size) argument
73 if (!convertTo(strValue, uiValue)) {
74 throw std::runtime_error("Unable to convert \"" + strValue + "\" to uint32");
/external/parameter-framework/upstream/utility/
H A DUtility.cpp68 bool isHexadecimal(const string &strValue) argument
70 return (strValue.compare(0, 2, "0x") == 0) or (strValue.compare(0, 2, "0X") == 0);
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue150/
H A DYamlLoadAsIssueTest.java131 String strValue = toScalarString(node);
132 if (strValue != null && strValue.length() > 2) {
133 strValue = strValue.trim().substring(2);
135 w.setId(Integer.valueOf(strValue));

Completed in 284 milliseconds

1234