Home
last modified time | relevance | path

Searched refs:uiValue (Results 1 – 19 of 19) sorted by relevance

/external/parameter-framework/upstream/parameter/
DBooleanParameterType.cpp47 bool CBooleanParameterType::toBlackboard(const std::string &strValue, uint32_t &uiValue, in toBlackboard() argument
52 uiValue = true; in toBlackboard()
55 uiValue = false; in toBlackboard()
74 bool CBooleanParameterType::fromBlackboard(std::string &strValue, const uint32_t &uiValue, in fromBlackboard() argument
77 strValue = uiValue ? "1" : "0"; in fromBlackboard()
88 bool CBooleanParameterType::toBlackboard(bool bUserValue, uint32_t &uiValue, in toBlackboard() argument
91 uiValue = bUserValue; in toBlackboard()
96 bool CBooleanParameterType::fromBlackboard(bool &bUserValue, uint32_t uiValue, in fromBlackboard() argument
99 bUserValue = uiValue != 0; in fromBlackboard()
105 bool CBooleanParameterType::toBlackboard(uint32_t uiUserValue, uint32_t &uiValue, in toBlackboard() argument
[all …]
DFixedPointParameterType.cpp119 bool CFixedPointParameterType::toBlackboard(const string &strValue, uint32_t &uiValue, in toBlackboard() argument
137 return convertFromHexadecimal(strValue, uiValue, parameterAccessContext); in toBlackboard()
139 return convertFromDecimal(strValue, uiValue, parameterAccessContext); in toBlackboard()
141 return convertFromQnm(strValue, uiValue, parameterAccessContext); in toBlackboard()
231 bool CFixedPointParameterType::toBlackboard(double dUserValue, uint32_t &uiValue, in toBlackboard() argument
249 uiValue = iData; in toBlackboard()
254 bool CFixedPointParameterType::fromBlackboard(double &dUserValue, uint32_t uiValue, in fromBlackboard() argument
257 int32_t iData = uiValue; in fromBlackboard()
260 assert(isEncodable(uiValue, false)); in fromBlackboard()
284 const string &strValue, uint32_t &uiValue, in convertFromHexadecimal() argument
[all …]
DFloatingPointParameterType.cpp117 const string &strValue, uint32_t &uiValue, in toBlackboard() argument
132 if (!convertTo(strValue, uiValue)) { in toBlackboard()
138 auto fData = utility::binaryCopy<float>(uiValue); in toBlackboard()
171 uiValue = utility::binaryCopy<decltype(uiValue)>(fValue); in toBlackboard()
206 string &strValue, const uint32_t &uiValue, in fromBlackboard() argument
219 ostrStream << uiValue; in fromBlackboard()
223 auto fValue = utility::binaryCopy<float>(uiValue); in fromBlackboard()
235 double dUserValue, uint32_t &uiValue, CParameterAccessContext &parameterAccessContext) const in toBlackboard() argument
245 uiValue = utility::binaryCopy<decltype(uiValue)>(fValue); in toBlackboard()
249 bool CFloatingPointParameterType::fromBlackboard(double &dUserValue, uint32_t uiValue, in fromBlackboard() argument
[all …]
DIntegerParameterType.cpp141 bool CIntegerParameterType::toBlackboard(const string &strValue, uint32_t &uiValue, in toBlackboard() argument
178 uiValue = (uint32_t)iData; in toBlackboard()
221 bool CIntegerParameterType::toBlackboard(uint32_t uiUserValue, uint32_t &uiValue, in toBlackboard() argument
231 uiValue = uiUserValue; in toBlackboard()
236 bool CIntegerParameterType::fromBlackboard(uint32_t &uiUserValue, uint32_t uiValue, in fromBlackboard() argument
240 uiUserValue = uiValue; in fromBlackboard()
246 bool CIntegerParameterType::toBlackboard(int32_t iUserValue, uint32_t &uiValue, in toBlackboard() argument
256 uiValue = iUserValue; in toBlackboard()
261 bool CIntegerParameterType::fromBlackboard(int32_t &iUserValue, uint32_t uiValue, in fromBlackboard() argument
264 int32_t iValue = uiValue; in fromBlackboard()
[all …]
DParameterType.h65 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
67 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
70 virtual bool toBlackboard(bool bUserValue, uint32_t &uiValue,
72 virtual bool fromBlackboard(bool &bUserValue, uint32_t uiValue,
75 virtual bool toBlackboard(uint32_t uiUserValue, uint32_t &uiValue,
77 virtual bool fromBlackboard(uint32_t &uiUserValue, uint32_t uiValue,
80 virtual bool toBlackboard(int32_t iUserValue, uint32_t &uiValue,
82 virtual bool fromBlackboard(int32_t &iUserValue, uint32_t uiValue,
85 virtual bool toBlackboard(double dUserValue, uint32_t &uiValue,
87 virtual bool fromBlackboard(double &dUserValue, uint32_t uiValue,
DIntegerParameterType.h52 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
54 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
57 virtual bool toBlackboard(uint32_t uiUserValue, uint32_t &uiValue,
59 virtual bool fromBlackboard(uint32_t &uiUserValue, uint32_t uiValue,
62 virtual bool toBlackboard(int32_t iUserValue, uint32_t &uiValue,
64 virtual bool fromBlackboard(int32_t &iUserValue, uint32_t uiValue,
67 virtual bool toBlackboard(double dUserValue, uint32_t &uiValue,
69 virtual bool fromBlackboard(double &dUserValue, uint32_t uiValue,
DFixedPointParameterType.h55 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
57 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
60 virtual bool toBlackboard(double dUserValue, uint32_t &uiValue,
62 virtual bool fromBlackboard(double &dUserValue, 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,
DBooleanParameterType.h47 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
49 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
52 virtual bool toBlackboard(bool bUserValue, uint32_t &uiValue,
54 virtual bool fromBlackboard(bool &bUserValue, uint32_t uiValue,
57 virtual bool toBlackboard(uint32_t uiUserValue, uint32_t &uiValue,
59 virtual bool fromBlackboard(uint32_t &uiUserValue, uint32_t uiValue,
DBitParameter.cpp93 uint32_t uiValue; in access() local
97 uiValue = bValue; in access()
100 if (!access(uiValue, bSet, parameterAccessContext)) { in access()
107 bValue = uiValue != 0; in access()
113 bool CBitParameter::access(uint32_t &uiValue, bool bSet, in access() argument
121 if (!doSet(uiValue, offset, parameterAccessContext)) { in access()
135 doGet(uiValue, offset, parameterAccessContext); in access()
DBitParameterType.cpp122 bool CBitParameterType::toBlackboard(const string &strValue, uint64_t &uiValue, in toBlackboard() argument
151 uiValue = (uiValue & ~getMask()) | (uiConvertedValue << _bitPos); in toBlackboard()
156 void CBitParameterType::fromBlackboard(string &strValue, const uint64_t &uiValue, in fromBlackboard() argument
159 uint64_t uiConvertedValue = (uiValue & getMask()) >> _bitPos; in fromBlackboard()
177 bool CBitParameterType::toBlackboard(uint64_t uiUserValue, uint64_t &uiValue, in toBlackboard() argument
188 uiValue = (uiValue & ~getMask()) | (uiUserValue << _bitPos); in toBlackboard()
DEnumParameterType.h49 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
51 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
54 virtual bool toBlackboard(int32_t iUserValue, uint32_t &uiValue,
56 virtual bool fromBlackboard(int32_t &iUserValue, uint32_t uiValue,
71 bool toBlackboardFromRaw(const std::string &strUserValue, uint32_t &uiValue,
DFloatingPointParameterType.h47 virtual bool toBlackboard(const std::string &strValue, uint32_t &uiValue,
49 virtual bool fromBlackboard(std::string &strValue, const uint32_t &uiValue,
51 virtual bool toBlackboard(double dUserValue, uint32_t &uiValue,
53 virtual bool fromBlackboard(double &dUserValue, uint32_t uiValue,
DBitParameterType.h53 bool toBlackboard(const std::string &strValue, uint64_t &uiValue,
55 void fromBlackboard(std::string &strValue, const uint64_t &uiValue,
58 bool toBlackboard(uint64_t uiUserValue, uint64_t &uiValue,
60 void fromBlackboard(uint32_t &uiUserValue, uint64_t uiValue,
DParameter.cpp120 bool CParameter::access(uint32_t &uiValue, bool bSet, in access() argument
123 return doAccess(uiValue, bSet, parameterAccessContext); in access()
DEnumParameterType.cpp93 bool CEnumParameterType::toBlackboard(const string &strValue, uint32_t &uiValue, in toBlackboard() argument
117 return toBlackboard(iParsedUserValue, uiValue, parameterAccessContext); in toBlackboard()
DBitParameter.h53 bool access(uint32_t &uiValue, bool bSet,
DParameter.h59 bool access(uint32_t &uiValue, bool bSet,
DBaseParameter.h60 virtual bool access(uint32_t &uiValue, bool bSet,
/external/parameter-framework/upstream/test/test-subsystem/
DTESTSubsystemBinary.cpp53 uint32_t uiValue = 0; in toString() local
55 assert(size <= sizeof(uiValue)); in toString()
58 auto destination = MAKE_ARRAY_ITERATOR(reinterpret_cast<uint8_t *>(&uiValue), sizeof(uiValue)); in toString()
62 strStream << "0x" << std::hex << uiValue; in toString()
69 uint32_t uiValue; in fromString() local
71 assert(size <= sizeof(uiValue)); in fromString()
73 if (!convertTo(strValue, uiValue)) { in fromString()
77 auto first = MAKE_ARRAY_ITERATOR(reinterpret_cast<const uint8_t *>(&uiValue), size); in fromString()