/external/parameter-framework/upstream/parameter/ |
D | BooleanParameterType.cpp | 47 bool CBooleanParameterType::toBlackboard(const std::string &strValue, uint32_t &uiValue, in toBlackboard() argument 50 if (strValue == "1" || strValue == "0x1") { in toBlackboard() 53 } else if (strValue == "0" || strValue == "0x0") { in toBlackboard() 57 parameterAccessContext.setError(strValue + " value not part of numerical space {"); in toBlackboard() 59 if (utility::isHexadecimal(strValue)) { in toBlackboard() 74 bool CBooleanParameterType::fromBlackboard(std::string &strValue, const uint32_t &uiValue, in fromBlackboard() argument 77 strValue = uiValue ? "1" : "0"; in fromBlackboard() 81 strValue = "0x" + strValue; in fromBlackboard()
|
D | FixedPointParameterType.cpp | 119 bool CFixedPointParameterType::toBlackboard(const string &strValue, uint32_t &uiValue, in toBlackboard() argument 122 bool bValueProvidedAsHexa = utility::isHexadecimal(strValue); in toBlackboard() 137 return convertFromHexadecimal(strValue, uiValue, parameterAccessContext); in toBlackboard() 139 return convertFromDecimal(strValue, uiValue, parameterAccessContext); in toBlackboard() 141 return convertFromQnm(strValue, uiValue, parameterAccessContext); in toBlackboard() 145 const string &strValue, CParameterAccessContext ¶meterAccessContext) const in setOutOfRangeError() argument 149 stream << "Value " << strValue << " standing out of admitted "; in setOutOfRangeError() 168 if (utility::isHexadecimal(strValue)) { in setOutOfRangeError() 190 bool CFixedPointParameterType::fromBlackboard(string &strValue, const uint32_t &value, in fromBlackboard() argument 225 strValue = stream.str(); in fromBlackboard() [all …]
|
D | FloatingPointParameterType.cpp | 117 const string &strValue, uint32_t &uiValue, in toBlackboard() argument 121 if (utility::isHexadecimal(strValue) && !parameterAccessContext.valueSpaceIsRaw()) { in toBlackboard() 124 " when selected value space is real: " + strValue); in toBlackboard() 132 if (!convertTo(strValue, uiValue)) { in toBlackboard() 134 parameterAccessContext.setError("Value '" + strValue + "' is invalid"); in toBlackboard() 143 parameterAccessContext.setError("Value " + strValue + " is not a finite number"); in toBlackboard() 149 setOutOfRangeError(strValue, parameterAccessContext); in toBlackboard() 158 if (!convertTo(strValue, fValue)) { in toBlackboard() 160 parameterAccessContext.setError("Value " + strValue + " is invalid"); in toBlackboard() 166 setOutOfRangeError(strValue, parameterAccessContext); in toBlackboard() [all …]
|
D | SelectionCriterionType.cpp | 54 bool CSelectionCriterionType::addValuePair(int iValue, const std::string &strValue, in addValuePair() argument 61 error << "Rejecting value pair association: 0x" << std::hex << iValue << " - " << strValue in addValuePair() 69 if (_numToLitMap.find(strValue) != _numToLitMap.end()) { in addValuePair() 73 << iValue << " - " << strValue << " for Selection Criterion Type " << getName(); in addValuePair() 82 << " 0x" << std::hex << iValue << " - " << strValue in addValuePair() 88 _numToLitMap[strValue] = iValue; in addValuePair() 93 bool CSelectionCriterionType::getNumericalValue(const std::string &strValue, int &iValue) const in getNumericalValue() argument 97 Tokenizer tok(strValue, _strDelimiter); in getNumericalValue() 115 return getAtomicNumericalValue(strValue, iValue); in getNumericalValue() 118 bool CSelectionCriterionType::getAtomicNumericalValue(const std::string &strValue, in getAtomicNumericalValue() argument [all …]
|
D | SelectionCriterionRule.cpp | 83 string strValue; in parse() local 85 if (!ruleParser.next(strValue, strError)) { in parse() 99 if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) { in parse() 101 strError = "Value error: \"" + strValue + "\" is not part of criterion \"" + in parse() 182 string strValue; in fromXml() local 183 xmlElement.getAttribute("Value", strValue); in fromXml() 185 if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) { in fromXml() 187 xmlDomainImportContext.setError("Wrong Value attribute value " + strValue + " in " + in fromXml() 209 string strValue; in toXml() local 211 _pSelectionCriterion->getCriterionType()->getLiteralValue(_iMatchValue, strValue); in toXml() [all …]
|
D | MappingData.cpp | 45 std::string strKey, strValue; in init() local 52 strValue = ""; in init() 60 strValue = strMappingElement.substr(iFistDelimiterOccurrence + 1); in init() 63 if (!addValue(strKey, strValue)) { in init() 65 error = "Unable to process Mapping element key = " + strKey + ", value = " + strValue + in init() 92 bool CMappingData::addValue(const std::string &strkey, const std::string &strValue) in addValue() argument 98 _keyToValueMap[strkey] = strValue; in addValue()
|
D | IntegerParameterType.cpp | 141 bool CIntegerParameterType::toBlackboard(const string &strValue, uint32_t &uiValue, in toBlackboard() argument 145 bool bValueProvidedAsHexa = utility::isHexadecimal(strValue); in toBlackboard() 150 if (!convertValueFromString(strValue, iData, parameterAccessContext)) { in toBlackboard() 164 if (!checkValueAgainstRange<int64_t>(strValue, iData, (int32_t)_uiMin, (int32_t)_uiMax, in toBlackboard() 171 if (!checkValueAgainstRange<uint64_t>(strValue, iData, _uiMin, _uiMax, in toBlackboard() 183 bool CIntegerParameterType::fromBlackboard(string &strValue, const uint32_t &value, in fromBlackboard() argument 214 strValue = stream.str(); in fromBlackboard() 367 const string &strValue, int64_t &iData, CParameterAccessContext ¶meterAccessContext) const in convertValueFromString() argument 377 iData = strtoll(strValue.c_str(), &pcStrEnd, 0); in convertValueFromString() 380 iData = strtoull(strValue.c_str(), &pcStrEnd, 0); in convertValueFromString() [all …]
|
D | BaseParameter.cpp | 65 string strValue; in serializeXmlSettings() local 67 doGetValue(strValue, getOffset() - configurationAccessContext.getBaseOffset(), in serializeXmlSettings() 71 xmlConfigurationSettingsElementContent.setTextContent(strValue); in serializeXmlSettings() 147 bool CBaseParameter::access(string &strValue, bool bSet, in access() argument 153 if (!doSetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(), in access() 168 doGetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(), in access() 185 bool CBaseParameter::accessValue(CPathNavigator &pathNavigator, string &strValue, bool bSet, in accessValue() argument 194 return access(strValue, bSet, parameterAccessContext); in accessValue()
|
D | StringParameter.cpp | 70 bool CStringParameter::doSetValue(const string &strValue, size_t offset, in doSetValue() argument 73 if (strValue.length() >= getSize()) { in doSetValue() 76 to_string(strValue.length()) + ": maximum length is " + in doSetValue() 85 pBlackboard->writeString(strValue, offset); in doSetValue() 90 void CStringParameter::doGetValue(string &strValue, size_t offset, in doGetValue() argument 93 parameterAccessContext.getParameterBlackboard()->readString(strValue, offset); in doGetValue()
|
D | FixedPointParameterType.h | 55 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue, 57 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue, 89 bool convertFromDecimal(const std::string &strValue, uint32_t &uiValue, 104 bool convertFromHexadecimal(const std::string &strValue, uint32_t &uiValue, 119 bool convertFromQnm(const std::string &strValue, uint32_t &uiValue, 130 void setOutOfRangeError(const std::string &strValue,
|
D | BitParameterType.cpp | 122 bool CBitParameterType::toBlackboard(const string &strValue, uint64_t &uiValue, in toBlackboard() argument 126 uint64_t uiConvertedValue = strtoull(strValue.c_str(), NULL, 0); in toBlackboard() 133 strStream << "Value " << strValue << " standing out of admitted range ["; in toBlackboard() 135 if (utility::isHexadecimal(strValue)) { in toBlackboard() 156 void CBitParameterType::fromBlackboard(string &strValue, const uint64_t &uiValue, in fromBlackboard() argument 172 strValue = strStream.str(); in fromBlackboard()
|
D | SelectionCriterionType.h | 45 virtual bool addValuePair(int iValue, const std::string &strValue, std::string &strError); 56 virtual bool getNumericalValue(const std::string &strValue, int &iValue) const; 57 virtual bool getLiteralValue(int iValue, std::string &strValue) const; 88 bool getAtomicNumericalValue(const std::string &strValue, int &iValue) const;
|
D | IntegerParameterType.h | 52 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,
|
D | BaseParameter.h | 82 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,
|
D | BitParameter.cpp | 67 bool CBitParameter::doSetValue(const string &strValue, size_t offset, in doSetValue() argument 70 return doSet(strValue, offset, parameterAccessContext); in doSetValue() 73 void CBitParameter::doGetValue(string &strValue, size_t offset, in doGetValue() argument 76 doGet(strValue, offset, parameterAccessContext); in doGetValue()
|
D | ArrayParameter.h | 57 virtual bool accessValue(CPathNavigator &pathNavigator, std::string &strValue, bool bSet, 69 bool setValues(size_t uiStartIndex, size_t offset, const std::string &strValue, 83 bool doSetValue(const std::string &strValue, size_t offset, 85 void doGetValue(std::string &strValue, size_t offset,
|
D | ParameterMgrFullConnector.cpp | 113 bool CParameterMgrFullConnector::accessParameterValue(const string &strPath, string &strValue, in accessParameterValue() argument 116 return _pParameterMgr->accessParameterValue(strPath, strValue, bSet, strError); in accessParameterValue() 121 const string &strPath, string &strValue, in accessConfigurationValue() argument 124 return _pParameterMgr->accessConfigurationValue(strDomain, strConfiguration, strPath, strValue, in accessConfigurationValue() 128 bool CParameterMgrFullConnector::getParameterMapping(const string &strPath, string &strValue) const in getParameterMapping() 130 return _pParameterMgr->getParameterMapping(strPath, strValue); in getParameterMapping()
|
/external/parameter-framework/upstream/test/test-subsystem/ |
D | TESTSubsystemObject.cpp | 108 std::string strValue = toString(pvValue, _scalarSize); in sendToFile() local 110 outputFile << strValue << std::endl; in sendToFile() 116 info() << "TESTSUBSYSTEM: Writing '" << strValue << "' to file " << _strFilePath; in sendToFile() 119 info() << "TESTSUBSYSTEM: Writing '" << strValue << "' to file " << _strFilePath in sendToFile() 134 std::string strValue; in receiveFromFile() local 136 inputFile >> strValue; in receiveFromFile() 142 info() << "TESTSUBSYSTEM: Reading '" << strValue << "' to file " << _strFilePath; in receiveFromFile() 145 info() << "TESTSUBSYSTEM: Reading '" << strValue << "' to file " << _strFilePath in receiveFromFile() 150 fromString(strValue, pvValue, _scalarSize); in receiveFromFile()
|
D | TESTSubsystemString.cpp | 51 void CTESTSubsystemString::fromString(const std::string &strValue, void *pvValue, size_t size) in fromString() argument 53 std::size_t requiredBufferSize = strValue.length() + 1; /* Adding one for null character */ in fromString() 60 auto last = std::copy(begin(strValue), end(strValue), destination); in fromString()
|
/external/pdfium/core/fxcrt/css/ |
D | cfx_cssstylesheet.cpp | 70 WideStringView strValue = pSyntax->GetCurrentString(); in LoadStyleRule() local 71 auto pSelector = CFX_CSSSelector::FromString(strValue); in LoadStyleRule() 77 WideStringView strValue = pSyntax->GetCurrentString(); in LoadStyleRule() local 78 propertyTable = CFX_GetCSSPropertyByName(strValue); in LoadStyleRule() 80 wsName = WideString(strValue); in LoadStyleRule() 85 WideStringView strValue = pSyntax->GetCurrentString(); in LoadStyleRule() local 87 if (!strValue.IsEmpty()) { in LoadStyleRule() 89 decl->AddProperty(propertyTable, strValue); in LoadStyleRule() 91 decl->AddProperty(wsName, WideString(strValue)); in LoadStyleRule()
|
/external/pdfium/fxjs/ |
D | cjs_publicmethods.cpp | 878 ByteString strValue = StrTrim(ByteString::FromUnicode(Value)); in AFNumber_Format() local 879 if (strValue.IsEmpty()) in AFNumber_Format() 890 NormalizeDecimalMark(&strValue); in AFNumber_Format() 891 double dValue = atof(strValue.c_str()); in AFNumber_Format() 898 strValue = CalculateString(dValue, iDec, &iDec2, &bNegative); in AFNumber_Format() 899 if (strValue.IsEmpty()) { in AFNumber_Format() 901 strValue = CalculateString(dValue, iDec, &iDec2, &bNegative); in AFNumber_Format() 902 if (strValue.IsEmpty()) { in AFNumber_Format() 903 strValue = "0"; in AFNumber_Format() 910 if (static_cast<size_t>(iDec2) < strValue.GetLength()) { in AFNumber_Format() [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | XMPNodeUtils.java | 326 String strValue = serializeNodeValue(value); in setNodeValue() local 329 node.setValue(strValue); in setNodeValue() 333 node.setValue(Utils.normalizeLangValue(strValue)); in setNodeValue() 394 String strValue; in serializeNodeValue() local 397 strValue = null; in serializeNodeValue() 401 strValue = XMPUtils.convertFromBoolean(((Boolean) value).booleanValue()); in serializeNodeValue() 405 strValue = XMPUtils.convertFromInteger(((Integer) value).intValue()); in serializeNodeValue() 409 strValue = XMPUtils.convertFromLong(((Long) value).longValue()); in serializeNodeValue() 413 strValue = XMPUtils.convertFromDouble(((Double) value).doubleValue()); in serializeNodeValue() 417 strValue = XMPUtils.convertFromDate((XMPDateTime) value); in serializeNodeValue() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue150/ |
D | YamlLoadAsIssueTest.java | 131 String strValue = toScalarString(node); in construct() local 132 if (strValue != null && strValue.length() > 2) { in construct() 133 strValue = strValue.trim().substring(2); in construct() 135 w.setId(Integer.valueOf(strValue)); in construct()
|
/external/parameter-framework/upstream/bindings/python/ |
D | pfw.i | 124 %apply std::string &INOUT { std::string& strValue }; 125 …bool accessParameterValue(const std::string& strPath, std::string& strValue, bool bSet, std::strin… 126 …std::string &strConfiguration, const std::string& strPath, std::string& strValue, bool bSet, std::… 127 %clear std::string& strValue; 129 bool getParameterMapping(const std::string& strPath, std::string& strValue) const; 209 virtual bool addValuePair(int iValue, const std::string& strValue, std::string& strError) = 0; 210 virtual bool getNumericalValue(const std::string& strValue, int& iValue) const = 0; 211 virtual bool getLiteralValue(int iValue, std::string& strValue) const = 0;
|
/external/parameter-framework/upstream/parameter/include/ |
D | SelectionCriterionTypeInterface.h | 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;
|