Home
last modified time | relevance | path

Searched refs:maxValue (Results 1 – 25 of 72) sorted by relevance

123

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_data_panel_ffi.cpp66 double maxValue = max; in FfiOHOSAceFrameworkDataPanelCreate() local
73 if ((dataSum >= maxValue) && maxValue > 0) { in FfiOHOSAceFrameworkDataPanelCreate()
74 value = maxValue - (dataSum - value); in FfiOHOSAceFrameworkDataPanelCreate()
81 if (maxValue <= 0.0) { in FfiOHOSAceFrameworkDataPanelCreate()
82 maxValue = dataSum; in FfiOHOSAceFrameworkDataPanelCreate()
85 DataPanelModel::GetInstance()->Create(dateValues, maxValue, panelType); in FfiOHOSAceFrameworkDataPanelCreate()
/ohos5.0/base/sensors/sensor/vibration_convert/core/utils/src/
H A Dutils.cpp135 double maxValue = *max_element(values.begin(), values.end()); in NormalizePercentage() local
136 double range = maxValue - minValue; in NormalizePercentage()
158 double maxValue = *max_element(trimValues.begin(), trimValues.end()); in NormalizePercentageMin() local
159 double range = maxValue - minValue; in NormalizePercentageMin()
171 …32_t> NormalizePercentageRange(const std::vector<double> &values, double minValue, double maxValue) in NormalizePercentageRange() argument
180 if (IsGreatNotEqual(trimValues[i], maxValue)) { in NormalizePercentageRange()
181 trimValues[i] = maxValue; in NormalizePercentageRange()
184 double range = maxValue - minValue; in NormalizePercentageRange()
/ohos5.0/base/update/updater/services/ui/
H A Dupdater_ui_env.cpp114 int maxValue = 0; in InitBrightness() local
115 ifs >> maxValue; in InitBrightness()
117 LOG(ERROR) << "read int from " << maxBrightnessFile << " failed sd maxValue = " << maxValue; in InitBrightness()
129 ofs << (static_cast<std::size_t>(maxValue) >> SHIFT_WIDTH); in InitBrightness()
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
H A Dprofile_utils_test.cpp1163 int32_t maxValue = 1; variable
1164 bool res1 = ProfileUtils::IsPropertyValid(propertyMap, property, maxValue);
1194 int32_t maxValue = 10; variable
1195 bool res1 = ProfileUtils::IsPropertyValid(propertyMap, property, maxValue);
1198 maxValue = 0;
1224 int32_t maxValue = 10; variable
1229 maxValue = 0;
1255 uint32_t maxValue = 10; variable
1260 maxValue = 0;
1286 int64_t maxValue = 10; variable
[all …]
/ohos5.0/base/security/security_guard/services/config_manager/src/
H A Devent_config.cpp121 uint32_t maxValue = STORAGE_ROM_NUMS_MAX_VALUE; in ParseEventConfig() local
123 maxValue = DB_MAX_VALUE; in ParseEventConfig()
125 if (config.storageRomNums >= maxValue) { in ParseEventConfig()
126 config.storageRomNums = maxValue; in ParseEventConfig()
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/ops/
H A Dclip_test.cpp55 float* maxValue = new (std::nothrow) float [1]{10.0f}; in SaveMax() local
56 EXPECT_NE(nullptr, maxValue); in SaveMax()
57 maxTensor->SetBuffer(maxValue, sizeof(float)); in SaveMax()
179 int64_t* maxValue = new (std::nothrow) int64_t [1]{10}; variable
180 EXPECT_NE(nullptr, maxValue);
181 maxTensor->SetBuffer(maxValue, sizeof(int64_t));
295 float maxValue = 10.0f; variable
303 EXPECT_EQ(returnMaxValue, maxValue);
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dproperty.cpp112 maxValue = std::make_shared<Value>(); in Property()
122 maxValue = std::make_shared<Value>(); in Property()
229 maxValue->bin_.i8 = static_cast<int8_t>(max); in SetFormRange()
234 maxValue->bin_.ui8 = static_cast<uint8_t>(max); in SetFormRange()
239 maxValue->bin_.i16 = static_cast<int16_t>(max); in SetFormRange()
244 maxValue->bin_.ui16 = static_cast<uint16_t>(max); in SetFormRange()
249 maxValue->bin_.i32 = static_cast<int32_t>(max); in SetFormRange()
254 maxValue->bin_.ui32 = static_cast<uint32_t>(max); in SetFormRange()
259 maxValue->bin_.i64 = static_cast<int64_t>(max); in SetFormRange()
421 WriteValue(buffer, *maxValue); in WriteFormData()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dchart_component.cpp646 uint16_t maxValue = defaultMaxValue; in SetOptionsAxisDataRange() local
651 maxValue = static_cast<uint16_t>(tempMaxVal); in SetOptionsAxisDataRange()
654 if (maxValue == 0) { in SetOptionsAxisDataRange()
658 maxValue = defaultMaxValue; in SetOptionsAxisDataRange()
688 if ((maxValue < supportMinValue) || (maxValue > supportedMaxValue)) { in SetOptionsAxisDataRange()
693 maxValue = defaultMaxValue; in SetOptionsAxisDataRange()
695 if (minValue > maxValue) { in SetOptionsAxisDataRange()
697 maxValue = defaultMaxValue; in SetOptionsAxisDataRange()
702 xMaxValue_ = maxValue - minValue; in SetOptionsAxisDataRange()
705 yAxis_->SetDataRange(minValue, maxValue); in SetOptionsAxisDataRange()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_model_ng.cpp100 auto maxValue = progressPaintProperty->GetMaxValue(); in SetValue() local
101 if (value > maxValue) { in SetValue()
102 value = maxValue.value_or(0); in SetValue()
204 auto maxValue = progressPaintProperty->GetMaxValue(); in SetText() local
206 int32_t curPercent = curValue.value() * 100 / maxValue.value(); in SetText()
280 if (!NearZero(maxValue)) { in SetTextDefaultStyle()
281 curPercent = value * 100 / maxValue; in SetTextDefaultStyle()
349 auto maxValue = progressPaintProperty->GetMaxValue(); in SetValue() local
350 if (value > maxValue) { in SetValue()
351 value = maxValue.value_or(0); in SetValue()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_particle.cpp133 float maxValue) in ParseAnimationFloatArray() argument
150 if (LessNotEqual(maxValue, MAX_BOUNDARY) && GreatNotEqual(from, maxValue)) { in ParseAnimationFloatArray()
162 if (LessNotEqual(maxValue, MAX_BOUNDARY) && GreatNotEqual(to, maxValue)) { in ParseAnimationFloatArray()
209 float defaultValue, float minValue, float maxValue) in ParseFloatCurveConfig() argument
224 float defaultValue, float minValue, float maxValue) in ParseFloatUpdater() argument
257 float defaultValue, float minValue, float maxValue) in ParseFloatInitRange() argument
276 if (LessNotEqual(maxValue, MAX_BOUNDARY) && GreatNotEqual(from, maxValue)) { in ParseFloatInitRange()
287 if (LessNotEqual(maxValue, MAX_BOUNDARY) && GreatNotEqual(to, maxValue)) { in ParseFloatInitRange()
300 float defaultValue, float minValue, float maxValue) in ParseFloatOption() argument
303 ParseFloatInitRange(floatRangeJsValue, floatOption, defaultValue, minValue, maxValue); in ParseFloatOption()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libpngplugin/src/
H A Dnine_patch_listener.cpp41 static void ScaleDivRange(int32_t *divs, int32_t count, float scale, int32_t maxValue) in ScaleDivRange() argument
50 if (divs[count - 1] > maxValue) { in ScaleDivRange()
51 int highestAvailable = maxValue; in ScaleDivRange()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dprogress_data.h35 void SetMaxValue(double maxValue) in SetMaxValue() argument
37 maxValue_ = maxValue; in SetMaxValue()
/ohos5.0/drivers/peripheral/audio/hdi_service/vendor_interface/utils/
H A Daudio_uhdf_log.h87 #define CHECK_VALID_RANGE_RETURN(value, minValue, maxValue, ret) \ argument
89 if ((value) < (minValue) || (value) > (maxValue)) { \
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dadc_virtual.c26 uint32_t maxValue; member
39 virtual->maxValue = pow(BASE_NUMBER, virtual->dataWidth) - 1; in VirtualAdcStart()
59 *val = virtual->maxValue; in VirtualAdcRead()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_model_ng.h25 DataPanelConfiguration(std::vector<double>& values, double maxValue, bool enabled) in DataPanelConfiguration() argument
26 : CommonConfiguration(enabled), values_(values), maxValue_(maxValue) in DataPanelConfiguration()
/ohos5.0/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscan_range.cpp55 void ScanRange::SetMaxValue(const int32_t &maxValue) in SetMaxValue() argument
57 maxValue_ = maxValue; in SetMaxValue()
/ohos5.0/base/global/i18n/frameworks/intl/src/
H A Dplural_rules.cpp47 int PluralRules::GetValidInteger(std::string &integerStr, int minValue, int maxValue, int defaultVa… in GetValidInteger() argument
57 if (validInteger > maxValue) { in GetValidInteger()
58 validInteger = maxValue; in GetValidInteger()
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_progress.cpp35 void NotificationProgress::SetMaxValue(int32_t maxValue) in SetMaxValue() argument
37 maxValue_ = maxValue; in SetMaxValue()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_model_ng.cpp105 auto maxValue = layoutProperty->GetMaxValue(100.0f); in SetMinResponsiveDistance() local
106 auto diff = maxValue - minValue; in SetMinResponsiveDistance()
422 auto maxValue = layoutProperty->GetMaxValue(100.0f); in SetMinResponsiveDistance() local
423 auto diff = maxValue - minValue; in SetMinResponsiveDistance()
565 auto maxValue = paintProperty->GetMaxValue(100.0f); in SetValidSlideRange() local
568 float toValue = maxValue; in SetValidSlideRange()
575 …if (GreatOrEqual(fromValue, minValue) && LessOrEqual(toValue, maxValue) && LessOrEqual(fromValue, … in SetValidSlideRange()
579 toValue = GreatOrEqual(toValue, maxValue) ? in SetValidSlideRange()
580 maxValue : (std::floor(toValue / step) + toValueCorrection) * step; in SetValidSlideRange()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/data_panel/
H A Drosen_render_data_panel.cpp554 double maxValue = arcData.maxValue; in PaintRainbowFilterMask() local
582 double sweepAngle = segment.GetValue() / maxValue * arcData.wholeAngle * factor; in PaintRainbowFilterMask()
621 double maxValue = arcData.maxValue;
661 double sweepAngle = segment.GetValue() / maxValue * arcData.wholeAngle * factor;
1023 auto maxValue = GetMaxValue(); in Paint() local
1031 if (LessOrEqual(maxValue, 0.0)) { in Paint()
1032 maxValue = 100.0; in Paint()
1034 if (GreatNotEqual(totalValue, maxValue)) { in Paint()
1035 factor = maxValue / totalValue; in Paint()
1038 proportions = 100 / maxValue; in Paint()
[all …]
H A Ddata_panel_component.h354 void SetMaxValue(double maxValue) in SetMaxValue() argument
356 maxValue_ = maxValue; in SetMaxValue()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dslider_tdd_test.cpp82 jerry_value_t maxValue = jerry_create_number(expectMaxValue); in ComponentSliderAttributeMaxTest002() local
83 jerry_set_property(attrsObj_, maxKey, maxValue); in ComponentSliderAttributeMaxTest002()
87 jerry_release_value(maxValue); in ComponentSliderAttributeMaxTest002()
/ohos5.0/base/msdp/device_status/utils/common/include/
H A Dutil.h87 bool AddInt(T op1, T op2, T minValue, T maxValue, T &res) in AddInt() argument
90 if (op2 > maxValue - op1) { in AddInt()
/ohos5.0/base/powermgr/thermal_manager/application/protector/src/
H A Dthermal_protector_timer.cpp190 int32_t maxValue = *(std::max_element(multipleList_.begin(), multipleList_.end())); in ResetCount() local
191 if (reportTime_ == maxValue) { in ResetCount()
/ohos5.0/drivers/peripheral/camera/test/fuzztest/metadata_utils/
H A Dmetadata_utils_fuzzer.cpp77 uint32_t maxValue = std::numeric_limits<uint32_t>::max(); in GetMinInputSize() local
78 if (dataSize == 0 || dataCount == 0 || dataCount > (maxValue - META_HEADER_SIZE)/dataSize) { in GetMinInputSize()

123