/external/parameter-framework/parameter/include/ |
SelectionCriterionTypeInterface.h | 37 virtual bool addValuePair(int iValue, const std::string& strValue) = 0; 38 virtual bool getNumericalValue(const std::string& strValue, int& iValue) const = 0; 39 virtual bool getLiteralValue(int iValue, std::string& strValue) const = 0;
|
/external/parameter-framework/parameter/ |
BooleanParameterType.cpp | 50 bool CBooleanParameterType::toBlackboard(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const 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 81 strValue = uiValue ? "1" : "0"; 85 strValue = "0x" + strValue [all...] |
MappingData.cpp | 53 std::string strKey, strValue; 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; 99 CUtility::asString(_keyToValueMap, strValue, ", ", ":"); 101 return strValue; 104 bool CMappingData::addValue(const std::string& strkey, const std::string& strValue) 110 _keyToValueMap[strkey] = strValue; [all...] |
StringParameter.cpp | 69 bool CStringParameter::doSetValue(const string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const 71 if (strValue.length() >= getSize()) { 81 pBlackboard->writeString(strValue, uiOffset); 86 void CStringParameter::doGetValue(string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const 88 parameterAccessContext.getParameterBlackboard()->readString(strValue, uiOffset);
|
FixedPointParameterType.h | 53 virtual bool toBlackboard(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 54 virtual bool fromBlackboard(std::string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 74 * @param[in] strValue Parameter read from the XML file representated as a string. 78 bool isHexadecimal(const std::string& strValue) const; 85 * @param[in] strValue Parameter read from the XML file representated as a string in decimal 92 bool convertFromDecimal(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 99 * @param[in] strValue Parameter read from the XML file representated as a string in hexadecimal 106 bool convertFromHexadecimal(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 113 * @param[in] strValue Parameter read from the XML file representated as a string in Qn.m 120 bool convertFromQnm(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const [all...] |
SelectionCriterionType.cpp | 52 bool CSelectionCriterionType::addValuePair(int iValue, const std::string& strValue) 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 78 Tokenizer tok(strValue, _strDelimiter); 96 return getAtomicNumericalValue(strValue, iValue); 99 bool CSelectionCriterionType::getAtomicNumericalValue(const std::string& strValue, int& iValue) const 101 NumToLitMapConstIt it = _numToLitMap.find(strValue); [all...] |
SelectionCriterionType.h | 45 virtual bool addValuePair(int iValue, const std::string& strValue); 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; 81 * @param[in] strValue: criterion type value represented as a stream. If the criterion is 87 bool getAtomicNumericalValue(const std::string& strValue, int& iValue) const;
|
StringParameter.h | 51 virtual bool doSetValue(const std::string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const; 52 virtual void doGetValue(std::string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const;
|
SelectionCriterionRule.cpp | 61 void CSelectionCriterionRule::logValue(string& strValue, CErrorContext& errorContext) const 66 dump(strValue); 91 string strValue; 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; 129 _pSelectionCriterion->getCriterionType()->getLiteralValue(_iMatchValue, strValue); 130 strResult += strValue; 184 string strValue = xmlElement.getAttributeString("Value") [all...] |
BaseParameter.cpp | 60 string strValue; 62 doGetValue(strValue, getOffset() - configurationAccessContext.getBaseOffset(), configurationAccessContext); 65 xmlConfigurationSettingsElementContent.setTextContent(strValue); 73 void CBaseParameter::logValue(string& strValue, CErrorContext& errorContext) const 79 doGetValue(strValue, getOffset(), parameterAccessContext); 174 bool CBaseParameter::accessAsString(string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const 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 220 return accessAsString(strValue, bSet, parameterAccessContext) [all...] |
FixedPointParameterType.cpp | 116 bool CFixedPointParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const 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 144 strStream << "Value " << strValue << " standing out of admitted "; 163 if (isHexadecimal(strValue)) { 184 bool CFixedPointParameterType::fromBlackboard(string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const 219 strValue = strStream.str() [all...] |
BaseParameter.h | 69 bool accessAsString(std::string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const; 77 virtual bool accessValue(CPathNavigator& pathNavigator, std::string& strValue, bool bSet, CParameterAccessContext& parameterAccessContext) const; 78 virtual void logValue(std::string& strValue, CErrorContext& errorContext) const; 81 virtual bool doSetValue(const std::string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const = 0; 82 virtual void doGetValue(std::string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const = 0;
|
BooleanParameterType.h | 47 virtual bool toBlackboard(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 48 virtual bool fromBlackboard(std::string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const;
|
EnumParameterType.cpp | 95 bool CEnumParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const 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 172 strStream << "Value " << strValue << " standing out of admitted range [" [all...] |
EnumParameterType.h | 50 virtual bool toBlackboard(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 51 virtual bool fromBlackboard(std::string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 68 static bool isNumber(const std::string& strValue); 78 bool checkValueAgainstRange(const std::string& strValue, int64_t value, CParameterAccessContext& parameterAccessContext, bool bHexaValue, bool bConversionSucceeded) const;
|
EnumValuePair.h | 53 virtual void logValue(std::string& strValue, CErrorContext& errorContext) const;
|
IntegerParameterType.h | 51 virtual bool toBlackboard(const std::string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 52 virtual bool fromBlackboard(std::string& strValue, const uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const; 80 bool convertValueFromString(const std::string& strValue, int64_t& iData, CParameterAccessContext& parameterAccessContext) const; 83 template <typename type> bool checkValueAgainstRange(const std::string& strValue, type value, type minValue, type maxValue, CParameterAccessContext& parameterAccessContext, bool bHexaValue) const;
|
IntegerParameterType.cpp | 151 bool CIntegerParameterType::toBlackboard(const string& strValue, uint32_t& uiValue, CParameterAccessContext& parameterAccessContext) const 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 219 strValue = strStream.str(); 369 bool CIntegerParameterType::convertValueFromString(const string& strValue, int64_t& iData, CParameterAccessContext& parameterAccessContext) const { 378 iData = strtoll(strValue.c_str(), &pcStrEnd, 0); 381 iData = strtoull(strValue.c_str(), &pcStrEnd, 0) [all...] |
BitParameter.h | 65 virtual bool doSetValue(const std::string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const; 66 virtual void doGetValue(std::string& strValue, uint32_t uiOffset, CParameterAccessContext& parameterAccessContext) const;
|
/external/parameter-framework/test/test-subsystem/ |
TESTSubsystemObject.cpp | 105 std::string strValue = toString(pvValue, _uiScalarSize); 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; 132 inputFile >> strValue; 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);
|
TESTSubsystemString.cpp | 47 void CTESTSubsystemString::fromString(const std::string& strValue, void* pvValue, uint32_t uiSize) 49 strncpy((char*)pvValue, strValue.c_str(), uiSize);
|
TESTSubsystemBinary.h | 43 virtual void fromString(const std::string& strValue, void* pvValue, uint32_t uiSize);
|
TESTSubsystemString.h | 43 virtual void fromString(const std::string& strValue, void* pvValue, uint32_t uiSize);
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
RsPerfTestRunner.java | 48 String strValue = (String)icicle.get("iterations"); 49 if (strValue != null) { 50 int intValue = Integer.parseInt(strValue);
|
/packages/apps/Settings/tests/src/com/android/settings/vpn2/ |
VpnProfileParser.java | 135 String strValue = new String(ch, start, length); 137 profile.name = strValue; 141 int t = getVpnProfileType(strValue); 150 profile.server = strValue; 154 profile.username = strValue; 158 profile.password = strValue; 162 profile.dnsServers = strValue; 166 profile.searchDomains = strValue; 170 profile.mppe = Boolean.valueOf(strValue); 174 profile.l2tpSecret = strValue; [all...] |