/base/sensors/sensor/vibration_convert/core/utils/src/ |
H A D | utils.cpp | 134 double minValue = *min_element(values.begin(), values.end()); in NormalizePercentage() local 136 double range = maxValue - minValue; in NormalizePercentage() 143 norm.push_back(static_cast<int32_t>(round((values[i] - minValue) / range * PERCENTAGE_RANGE))); in NormalizePercentage() 157 double minValue = 0.0; in NormalizePercentageMin() local 159 double range = maxValue - minValue; in NormalizePercentageMin() 166 normValues.push_back(static_cast<int32_t>(round((values[i] - minValue) / range * PERCENTAGE_RANGE))); in NormalizePercentageMin() 171 std::vector<int32_t> NormalizePercentageRange(const std::vector<double> &values, double minValue, double maxValue) in NormalizePercentageRange() argument 177 if (IsLessNotEqual(trimValues[i], minValue)) { in NormalizePercentageRange() 178 trimValues[i] = minValue; in NormalizePercentageRange() 184 double range = maxValue - minValue; in NormalizePercentageRange() [all...] |
/base/print/print_fwk/frameworks/helper/scan_helper/src/ |
H A D | scan_range.cpp | 50 void ScanRange::SetMinValue(const int32_t &minValue) in SetMinValue() argument 52 minValue_ = minValue; in SetMinValue()
|
/base/msdp/device_status/tools/vdev/include/ |
H A D | virtual_device_defines.h | 50 int32_t minValue { 0 };
|
/base/print/print_fwk/frameworks/helper/scan_helper/include/ |
H A D | scan_range.h | 35 void SetMinValue(const int32_t &minValue);
|
/base/global/i18n/frameworks/intl/src/ |
H A D | plural_rules.cpp | 47 int PluralRules::GetValidInteger(std::string &integerStr, int minValue, int maxValue, int defaultValue) in GetValidInteger() argument 54 if (validInteger < minValue) { in GetValidInteger() 55 validInteger = minValue; in GetValidInteger() 70 // 1 is minValue and defaultValue, 21 is maxValue in ParseAllOptions() 80 // 1 is minValue and defaultValue, 21 is maxValue in ParseAllOptions() 82 // 1 is minValue, 21 is maxValue and defaultValue in ParseAllOptions() 89 // 0 is minValue and defaultValue, 20 is maxValue in ParseAllOptions()
|
/base/global/i18n/frameworks/intl/include/ |
H A D | plural_rules.h | 59 int GetValidInteger(std::string &integerStr, int minValue, int maxValue, int defaultValue);
|
/base/msdp/device_status/utils/common/include/ |
H A D | util.h | 85 bool AddInt(T op1, T op2, T minValue, T maxValue, T &res) in AddInt() argument 92 if (op2 < minValue - op1) { in AddInt()
|
/base/sensors/sensor/vibration_convert/core/utils/include/ |
H A D | utils.h | 114 * @param minValue The minimum of range. 119 std::vector<int32_t> NormalizePercentageRange(const std::vector<double> &values, double minValue, double maxValue);
|
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | date_time_format_impl.cpp | 387 * Padding numbers with 0, minValue is the requested minimal length of the output number
389 void DateTimeFormatImpl::ZeroPadding(string &appendTo, uint32_t minValue, uint32_t maxValue, int32_t value) const
in ZeroPadding() argument 395 uint32_t adjustValue = (minValue < maxValue) ? minValue : maxValue;
in ZeroPadding()
|
/base/telephony/core_service/services/sim/test/ |
H A D | test.cpp | 298 int minValue = static_cast<int>(min); in Among() local 300 return ((mid >= minValue) && (mid <= maxValue)); in Among() 305 int minValue = static_cast<int>(min); in AmongLock() local 307 return ((mid >= minValue) && (mid <= maxValue)); in AmongLock() 325 int minValue = static_cast<int>(min); in AmongLockType() local 327 return ((mid >= minValue) && (mid <= maxValue)); in AmongLockType() 332 int minValue = static_cast<int>(min); in AmongPersoLockType() local 334 return ((mid >= minValue) && (mid <= maxValue)); in AmongPersoLockType()
|
/base/print/print_fwk/test/fuzztest/scanhelper_fuzzer/ |
H A D | scanhelper_fuzzer.cpp | 477 int32_t minValue = dataProvider->ConsumeIntegralInRange<int32_t>(0, MAX_SET_NUMBER); in TestSetMinValue() local 478 range.SetMinValue(minValue); in TestSetMinValue() 479 minValue = range.GetMinValue(); in TestSetMinValue()
|
/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_device_builder.cpp | 318 uinputDev_.absmin[absInfo.code] = absInfo.minValue;
|