HomeSort by relevance Sort by last modified time
    Searched full:strvalue (Results 1 - 25 of 90) sorted by null

1 2 3 4

  /packages/apps/Settings/tests/app/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...]
  /external/parameter-framework/upstream/parameter/
BooleanParameterType.cpp 47 bool CBooleanParameterType::toBlackboard(const std::string &strValue, uint32_t &uiValue,
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,
77 strValue = uiValue ? "1" : "0";
81 strValue = "0x" + strValue
    [all...]
FixedPointParameterType.cpp 119 bool CFixedPointParameterType::toBlackboard(const string &strValue, uint32_t &uiValue,
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 ";
168 if (utility::isHexadecimal(strValue)) {
190 bool CFixedPointParameterType::fromBlackboard(string &strValue, const uint32_t &value,
225 strValue = stream.str()
    [all...]
StringParameter.cpp 70 bool CStringParameter::doSetValue(const string &strValue, size_t offset,
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,
93 parameterAccessContext.getParameterBlackboard()->readString(strValue, offset);
SelectionCriterionType.cpp 54 bool CSelectionCriterionType::addValuePair(int iValue, const std::string &strValue,
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
97 Tokenizer tok(strValue, _strDelimiter);
115 return getAtomicNumericalValue(strValue, iValue);
118 bool CSelectionCriterionType::getAtomicNumericalValue(const std::string &strValue,
    [all...]
FloatingPointParameterType.cpp 117 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, parameterAccessContext)
    [all...]
SelectionCriterionRule.cpp 83 string strValue;
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;
183 xmlElement.getAttribute("Value", strValue);
185 if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) {
187 xmlDomainImportContext.setError("Wrong Value attribute value " + strValue + " in " +
209 string strValue;
211 _pSelectionCriterion->getCriterionType()->getLiteralValue(_iMatchValue, strValue);
    [all...]
MappingData.cpp 45 std::string strKey, strValue;
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)
98 _keyToValueMap[strkey] = strValue;
FixedPointParameterType.h 55 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...]
SelectionCriterionType.h 45 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;
BaseParameter.cpp 65 string strValue;
67 doGetValue(strValue, getOffset() - configurationAccessContext.getBaseOffset(),
71 xmlConfigurationSettingsElementContent.setTextContent(strValue);
147 bool CBaseParameter::access(string &strValue, bool bSet,
153 if (!doSetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(),
168 doGetValue(strValue, getOffset() - parameterAccessContext.getBaseOffset(),
185 bool CBaseParameter::accessValue(CPathNavigator &pathNavigator, string &strValue, bool bSet,
194 return access(strValue, bSet, parameterAccessContext);
IntegerParameterType.cpp 141 bool CIntegerParameterType::toBlackboard(const string &strValue, uint32_t &uiValue,
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,
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.c_str(), &pcStrEnd, 0)
    [all...]
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,
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,
BitParameter.cpp 67 bool CBitParameter::doSetValue(const string &strValue, size_t offset,
70 return doSet(strValue, offset, parameterAccessContext);
73 void CBitParameter::doGetValue(string &strValue, size_t offset,
76 doGet(strValue, offset, parameterAccessContext);
FloatingPointParameterType.h 47 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,
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,
StringParameter.h 52 virtual bool doSetValue(const std::string &strValue, size_t offset,
54 virtual void doGetValue(std::string &strValue, size_t offset,
BitParameterType.cpp 122 bool CBitParameterType::toBlackboard(const string &strValue, uint64_t &uiValue,
126 uint64_t uiConvertedValue = strtoull(strValue.c_str(), NULL, 0);
133 strStream << "Value " << strValue << " standing out of admitted range [";
135 if (utility::isHexadecimal(strValue)) {
156 void CBitParameterType::fromBlackboard(string &strValue, const uint64_t &uiValue,
172 strValue = strStream.str();
  /external/parameter-framework/upstream/test/test-subsystem/
TESTSubsystemObject.cpp 108 std::string strValue = toString(pvValue, _scalarSize);
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;
136 inputFile >> strValue;
142 info() << "TESTSUBSYSTEM: Reading '" << strValue << "' to file " << _strFilePath;
145 info() << "TESTSUBSYSTEM: Reading '" << strValue << "' to file " << _strFilePath
150 fromString(strValue, pvValue, _scalarSize);
TESTSubsystemString.cpp 51 void CTESTSubsystemString::fromString(const std::string &strValue, void *pvValue, size_t size)
53 std::size_t requiredBufferSize = strValue.length() + 1; /* Adding one for null character */
60 auto last = std::copy(begin(strValue), end(strValue), destination);
TESTSubsystemBinary.cpp 67 void CTESTSubsystemBinary::fromString(const std::string &strValue, void *pvValue, size_t size)
73 if (!convertTo(strValue, uiValue)) {
74 throw std::runtime_error("Unable to convert \"" + strValue + "\" to uint32");
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue150/
YamlLoadAsIssueTest.java 131 String strValue = toScalarString(node);
132 if (strValue != null && strValue.length() > 2) {
133 strValue = strValue.trim().substring(2);
135 w.setId(Integer.valueOf(strValue));
  /external/parameter-framework/upstream/parameter/include/
SelectionCriterionTypeInterface.h 41 * @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/utility/
Utility.cpp 68 bool isHexadecimal(const string &strValue)
70 return (strValue.compare(0, 2, "0x") == 0) or (strValue.compare(0, 2, "0X") == 0);

Completed in 2533 milliseconds

1 2 3 4