Searched defs:strValue (Results 1 - 25 of 45) sorted by relevance

12

/external/parameter-framework/parameter/
H A DBooleanParameterType.cpp50 bool CBooleanParameterType::toBlackboard(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
52 if (strValue == "1" || strValue == "0x1") {
55 } else if (strValue == "0" || strValue == "0x0") {
59 parameterAccessContext.setError(strValue + " value not part of numerical space {");
62 bool bValueProvidedAsHexa = !strValue.compare(0, 2, "0x");
79 bool CBooleanParameterType::fromBlackboard(std::string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
81 strValue = uiValue ? "1" : "0";
85 strValue
[all...]
H A DEnumValuePair.cpp72 void CEnumValuePair::logValue(string& strValue, CErrorContext& errorContext) const argument
76 strValue = getNumericalAsString();
H A DMappingData.cpp53 std::string strKey, strValue; local
60 strValue = "";
68 strValue = strMappingElement.substr(iFistDelimiterOccurrence + 1);
72 if (!addValue(strKey, strValue)) {
74 serializingContext.setError("Duplicate Mapping data: Unable to process Mapping element key = " + strKey + ", value = " + strValue + " from XML element " + xmlElement.getPath());
97 std::string strValue; local
99 CUtility::asString(_keyToValueMap, strValue, ", ", ":");
101 return strValue;
104 bool CMappingData::addValue(const std::string& strkey, const std::string& strValue) argument
110 _keyToValueMap[strkey] = strValue;
[all...]
H A DStringParameter.cpp69 bool CStringParameter::doSetValue(const string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const argument
71 if (strValue.length() >= getSize()) {
81 pBlackboard->writeString(strValue, uiOffset);
86 void CStringParameter::doGetValue(string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const argument
88 parameterAccessContext.getParameterBlackboard()->readString(strValue, uiOffset);
H A DComponentInstance.cpp67 std::string strValue = base::getFormattedMapping(); local
70 strValue += _pComponentType->getFormattedMapping();
73 return strValue;
H A DComponentType.cpp67 std::string strValue = base::getFormattedMapping(); local
70 strValue += _pExtendsComponentType->getFormattedMapping();
73 return strValue;
H A DBitParameter.cpp66 bool CBitParameter::doSetValue(const string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const argument
68 return doSet(strValue, uiOffset, parameterAccessContext);
71 void CBitParameter::doGetValue(string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const argument
73 doGet(strValue, uiOffset, parameterAccessContext);
H A DCompoundRule.cpp60 void CCompoundRule::logValue(string& strValue, CErrorContext& errorContext) const argument
65 strValue = _apcTypes[_bTypeAll];
H A DSelectionCriterionRule.cpp61 void CSelectionCriterionRule::logValue(string& strValue, CErrorContext& errorContext) const argument
66 dump(strValue);
91 string strValue; local
93 if (!ruleParser.next(strValue, strError)) {
107 if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) {
109 strError = "Value error: \"" + strValue + "\" is not part of criterion \"" +
128 string strValue; local
129 _pSelectionCriterion->getCriterionType()->getLiteralValue(_iMatchValue, strValue);
130 strResult += strValue;
184 string strValue local
211 string strValue; local
[all...]
H A DBaseParameter.cpp60 string strValue; local
62 doGetValue(strValue, getOffset() - configurationAccessContext.getBaseOffset(), configurationAccessContext);
65 xmlConfigurationSettingsElementContent.setTextContent(strValue);
73 void CBaseParameter::logValue(string& strValue, CErrorContext& errorContext) const argument
79 doGetValue(strValue, getOffset(), parameterAccessContext);
174 bool CBaseParameter::accessAsString(string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const argument
179 if (!doSetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(), parameterAccessContext)) {
193 doGetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(), parameterAccessContext);
212 bool CBaseParameter::accessValue(CPathNavigator& pathNavigator, string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const argument
220 return accessAsString(strValue, bSe
[all...]
H A DBitParameterType.cpp125 bool CBitParameterType::toBlackboard(const string& strValue, uint64_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
128 bool bValueProvidedAsHexa = !strValue.compare(0, 2, "0x");
131 uint64_t uiConvertedValue = strtoull(strValue.c_str(), NULL, 0);
138 strStream << "Value " << strValue << " standing out of admitted range ["; local
160 void CBitParameterType::fromBlackboard(string& strValue, const uint64_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
175 strValue = strStream.str();
H A DFixedPointParameterType.cpp116 bool CFixedPointParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
118 bool bValueProvidedAsHexa = isHexadecimal(strValue);
132 return convertFromHexadecimal(strValue, uiValue, parameterAccessContext);
135 return convertFromDecimal(strValue, uiValue, parameterAccessContext);
137 return convertFromQnm(strValue, uiValue, parameterAccessContext);
140 void CFixedPointParameterType::setOutOfRangeError(const string& strValue, CParameterAccessContext& parameterAccessContext) const argument
144 strStream << "Value " << strValue << " standing out of admitted "; local
163 if (isHexadecimal(strValue)) {
184 bool CFixedPointParameterType::fromBlackboard(string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
219 strValue
282 convertFromHexadecimal(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
300 convertFromDecimal(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
314 convertFromQnm(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
[all...]
H A DIntegerParameterType.cpp151 bool CIntegerParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
154 bool bValueProvidedAsHexa = !strValue.compare(0, 2, "0x");
159 if (!convertValueFromString(strValue, iData, parameterAccessContext)) {
173 if (!checkValueAgainstRange<int64_t>(strValue, iData, (int32_t)_uiMin, (int32_t)_uiMax, parameterAccessContext, bValueProvidedAsHexa)) {
179 if (!checkValueAgainstRange<uint64_t>(strValue, iData, _uiMin, _uiMax, parameterAccessContext, bValueProvidedAsHexa)) {
190 bool CIntegerParameterType::fromBlackboard(string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
219 strValue = strStream.str();
369 bool CIntegerParameterType::convertValueFromString(const string& strValue, int64_t& iData, CParameterAccessContext& parameterAccessContext) const { argument
378 iData = strtoll(strValue.c_str(), &pcStrEnd, 0);
381 iData = strtoull(strValue
399 checkValueAgainstRange(const string& strValue, type value, type minValue, type maxValue, CParameterAccessContext& parameterAccessContext, bool bHexaValue) const argument
405 strStream << "Value " << strValue << " standing out of admitted range ["; local
[all...]
H A DParameter.cpp91 bool CParameter::doSetValue(const string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const argument
93 return doSet(strValue, uiOffset, parameterAccessContext);
96 void CParameter::doGetValue(string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const argument
98 doGet(strValue, uiOffset, parameterAccessContext);
H A DSelectionCriterionType.cpp52 bool CSelectionCriterionType::addValuePair(int iValue, const std::string& strValue) argument
57 log_warning("Rejecting value pair association: 0x%X - %s for Selection Criterion Type %s", iValue, strValue.c_str(), getName().c_str());
63 if (_numToLitMap.find(strValue) != _numToLitMap.end()) {
65 log_warning("Rejecting value pair association (literal already present): 0x%X - %s for Selection Criterion Type %s", iValue, strValue.c_str(), getName().c_str());
69 _numToLitMap[strValue] = iValue;
74 bool CSelectionCriterionType::getNumericalValue(const std::string& strValue, int& iValue) const argument
78 Tokenizer tok(strValue, _strDelimiter);
96 return getAtomicNumericalValue(strValue, iValue);
99 bool CSelectionCriterionType::getAtomicNumericalValue(const std::string& strValue, int& iValue) const argument
101 NumToLitMapConstIt it = _numToLitMap.find(strValue);
[all...]
H A DSubsystemObject.cpp79 uint32_t CSubsystemObject::asInteger(const string& strValue) argument
81 return strtoul(strValue.c_str(), NULL, 0);
H A DArrayParameter.cpp87 string strValue; local
90 getValues(configurationAccessContext.getBaseOffset(), strValue, configurationAccessContext);
93 xmlConfigurationSettingsElementContent.setTextContent(strValue);
101 bool CArrayParameter::accessValue(CPathNavigator& pathNavigator, string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const argument
119 if (!setValues(uiIndex, parameterAccessContext.getBaseOffset(), strValue, parameterAccessContext)) {
135 getValues(parameterAccessContext.getBaseOffset(), strValue, parameterAccessContext);
139 doGetValue(strValue, getOffset() + uiIndex * getSize(), parameterAccessContext);
177 void CArrayParameter::logValue(string& strValue, CErrorContext& errorContext) const argument
183 getValues(0, strValue, parameterAccessContext);
258 bool CArrayParameter::setValues(uint32_t uiStartIndex, uint32_t uiBaseOffset, const string& strValue, CParameterAccessContex argument
[all...]
H A DConfigurableElement.cpp137 bool CConfigurableElement::accessValue(CPathNavigator& pathNavigator, std::string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const argument
157 return pChild->accessValue(pathNavigator, strValue, bSet, parameterAccessContext);
H A DEnumParameterType.cpp95 bool CEnumParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
99 if (isNumber(strValue)) {
104 bool bValueProvidedAsHexa = !strValue.compare(0, 2, "0x");
110 iData = strtoll(strValue.c_str(), &pcStrEnd, 0);
113 bool bConversionSucceeded = !errno && (strValue.c_str() != pcStrEnd);
116 if (!checkValueAgainstRange(strValue, iData, parameterAccessContext, bValueProvidedAsHexa, bConversionSucceeded)) {
140 if (!getNumerical(strValue, iNumerical)) {
149 if (!checkValueAgainstRange(strValue, iData, parameterAccessContext, false, isEncodable((uint64_t)iData, true))) {
162 bool CEnumParameterType::checkValueAgainstRange(const string& strValue, int64_t value, CParameterAccessContext& parameterAccessContext, bool bHexaValue, bool bConversionSucceeded) const argument
172 strStream << "Value " << strValue << " standin local
195 fromBlackboard(string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const argument
275 isNumber(const string& strValue) argument
[all...]
H A DParameterHandle.cpp395 bool CParameterHandle::setAsString(const string& strValue, string& strError) argument
415 string strUserValue = strValue;
420 bool CParameterHandle::getAsString(string& strValue, string& strError) const argument
433 return _pBaseParameter->accessAsString(strValue, false, parameterAccessContext);
/external/parameter-framework/test/test-subsystem/
H A DTESTSubsystemBinary.cpp57 void CTESTSubsystemBinary::fromString(const std::string& strValue, void* pvValue, uint32_t uiSize) argument
59 uint32_t uiValue = strtoul(strValue.c_str(), NULL, 0);
H A DTESTSubsystemString.cpp47 void CTESTSubsystemString::fromString(const std::string& strValue, void* pvValue, uint32_t uiSize) argument
49 strncpy((char*)pvValue, strValue.c_str(), uiSize);
H A DTESTSubsystemObject.cpp105 std::string strValue = toString(pvValue, _uiScalarSize); local
107 outputFile << strValue << std::endl;
113 log_info("TESTSUBSYSTEM: Writing \"%s\" to file %s", strValue.c_str(), _strFilePath.c_str());
116 log_info("TESTSUBSYSTEM: Writing \"%s\" to file %s[%d]", strValue.c_str(), _strFilePath.c_str(), uiIndex);
130 std::string strValue; local
132 inputFile >> strValue; local
138 log_info("TESTSUBSYSTEM: Writing \"%s\" from file %s", strValue.c_str(), _strFilePath.c_str());
141 log_info("TESTSUBSYSTEM: Writing \"%s\" from file %s[%d]", strValue.c_str(), _strFilePath.c_str(), uiIndex);
145 fromString(strValue, pvValue, _uiScalarSize);
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
H A DXMPDateTimeFactory.java82 * @param strValue The ISO 8601 string representation of the date/time.
86 public static XMPDateTime createFromISO8601(String strValue) throws XMPException argument
88 return new XMPDateTimeImpl(strValue);
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DXMPDateTimeImpl.java116 * @param strValue an ISO 8601 string
119 public XMPDateTimeImpl(String strValue) throws XMPException argument
121 ISO8601Converter.parse(strValue, this);

Completed in 317 milliseconds

12