Home
last modified time | relevance | path

Searched refs:maxValue (Results 1 - 25 of 42) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_data_panel_ffi.cpp64 double maxValue = max; in FfiOHOSAceFrameworkDataPanelCreate() local
71 if ((dataSum >= maxValue) && maxValue > 0) { in FfiOHOSAceFrameworkDataPanelCreate()
72 value = maxValue - (dataSum - value); in FfiOHOSAceFrameworkDataPanelCreate()
79 if (maxValue <= 0.0) { in FfiOHOSAceFrameworkDataPanelCreate()
80 maxValue = dataSum; in FfiOHOSAceFrameworkDataPanelCreate()
83 DataPanelModel::GetInstance()->Create(dateValues, maxValue, panelType); in FfiOHOSAceFrameworkDataPanelCreate()
/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()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dproperty.cpp122 maxValue = std::make_shared<Value>(); in Property()
132 maxValue = std::make_shared<Value>(); in Property()
254 maxValue->bin_.i8 = static_cast<int8_t>(max); in SetFormRange()
259 maxValue->bin_.ui8 = static_cast<uint8_t>(max); in SetFormRange()
264 maxValue->bin_.i16 = static_cast<int16_t>(max); in SetFormRange()
269 maxValue->bin_.ui16 = static_cast<uint16_t>(max); in SetFormRange()
274 maxValue->bin_.i32 = static_cast<int32_t>(max); in SetFormRange()
279 maxValue->bin_.ui32 = static_cast<uint32_t>(max); in SetFormRange()
284 maxValue->bin_.i64 = static_cast<int64_t>(max); in SetFormRange()
289 maxValue in SetFormRange()
[all...]
/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()
H A Ddata_panel_modifier.cpp134 arcData.maxValue = max_->Get(); in PaintCircle()
143 arcData.totalDrawAngle = (arcData.totalAllValue * date_->Get()) / arcData.maxValue * WHOLE_CIRCLE; in PaintCircle()
157 if (GreatNotEqual(arcData.totalValue, arcData.maxValue)) { in PaintCircle()
161 arcData.drawAngle = arcData.progressValue / arcData.maxValue * WHOLE_CIRCLE; in PaintCircle()
191 if (GreatNotEqual(arcData.totalValue, arcData.maxValue)) { in PaintCircle()
195 arcData.drawAngle = arcData.progressValue / arcData.maxValue * WHOLE_CIRCLE; in PaintCircle()
H A Ddata_panel_modifier.h49 double maxValue = 0.0; member
/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()
/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}; in HWTEST_F() local
180 EXPECT_NE(nullptr, maxValue); in HWTEST_F()
181 maxTensor->SetBuffer(maxValue, sizeof(int64_t)); in HWTEST_F()
295 float maxValue = 10.0f; in HWTEST_F() local
303 EXPECT_EQ(returnMaxValue, maxValue); in HWTEST_F()
/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()
264 void ProgressModelNG::SetTextDefaultStyle(const RefPtr<FrameNode>& textNode, double value, double maxValue) in SetTextDefaultStyle() argument
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()
456 auto maxValue = progressPaintProperty->GetMaxValue(); SetText() local
[all...]
H A Dprogress_model_ng.h88 static void SetTextDefaultStyle(const RefPtr<FrameNode>& textNode, double value, double maxValue);
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
H A Dprofile_utils_test.cpp1163 int32_t maxValue = 1; in HWTEST_F() local
1164 bool res1 = ProfileUtils::IsPropertyValid(propertyMap, property, maxValue); in HWTEST_F()
1168 bool res2 = ProfileUtils::IsPropertyValid(propertyMap, property, minValue, maxValue); in HWTEST_F()
1194 int32_t maxValue = 10; in HWTEST_F() local
1195 bool res1 = ProfileUtils::IsPropertyValid(propertyMap, property, maxValue); in HWTEST_F()
1198 maxValue = 0; in HWTEST_F()
1199 bool res2 = ProfileUtils::IsPropertyValid(propertyMap, property, maxValue); in HWTEST_F()
1204 bool res3 = ProfileUtils::IsPropertyValid(propertyMap, property, maxValue); in HWTEST_F()
1208 bool res4 = ProfileUtils::IsPropertyValid(propertyMap, property, maxValue); in HWTEST_F()
1224 int32_t maxValue in HWTEST_F() local
1255 uint32_t maxValue = 10; HWTEST_F() local
1286 int64_t maxValue = 10; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_particle.cpp133 float maxValue) in ParseAnimationFloatArray()
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()
216 ParseAnimationFloatArray(curveConfigJsArray, particleAnimationFloatArray, defaultValue, minValue, maxValue); in ParseFloatCurveConfig()
224 float defaultValue, float minValue, float maxValue) in ParseFloatUpdater()
244 if (!ParseFloatCurveConfig(configJsValue, updater, defaultValue, minValue, maxValue)) { in ParseFloatUpdater()
257 float defaultValue, float minValue, float maxValue) in ParseFloatInitRange()
131 ParseAnimationFloatArray(JSRef<JSArray>& curveConfigJsArray, std::list<NG::ParticlePropertyAnimation<float>>& particleAnimationFloatArray, float defaultValue, float minValue, float maxValue) ParseAnimationFloatArray() argument
208 ParseFloatCurveConfig(JSRef<JSVal>& configJsValue, OHOS::Ace::NG::ParticleFloatPropertyUpdater& updater, float defaultValue, float minValue, float maxValue) ParseFloatCurveConfig() argument
223 ParseFloatUpdater(JSRef<JSObject>& updaterJsObject, OHOS::Ace::NG::ParticleFloatPropertyUpdater& updater, float defaultValue, float minValue, float maxValue) ParseFloatUpdater() argument
256 ParseFloatInitRange(JSRef<JSVal>& floatRangeJsValue, OHOS::Ace::NG::ParticleFloatPropertyOption& floatOption, float defaultValue, float minValue, float maxValue) ParseFloatInitRange() argument
299 ParseFloatOption(JSRef<JSObject>& floatJsObject, OHOS::Ace::NG::ParticleFloatPropertyOption& floatOption, float defaultValue, float minValue, float maxValue) ParseFloatOption() argument
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dchart_component.cpp463 HILOG_WARN(HILOG_MODULE_ACE, "the value %{public}d is larger than max value, and will use maxValue instead", in ParseDataValue()
646 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()
665 isSetOk = SetOptionsAxisDataRange(minValue, maxValue, defaultMinValue, defaultMaxValue, true); in SetOptionsAxisDataRange()
668 isSetOk = SetOptionsAxisDataRange(minValue, maxValue, defaultMinValue, defaultMaxValue, false); in SetOptionsAxisDataRange()
674 bool ChartComponent::SetOptionsAxisDataRange(uint16_t minValue, uint16_t maxValue, uint8_t defaultMinValue, in SetOptionsAxisDataRange() argument
688 if ((maxValue < supportMinValue) || (maxValue > supportedMaxValu in SetOptionsAxisDataRange()
[all...]
/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()
99 * @tc.expected: step4. update max value = 32768, check sliderView.maxValue != 32768 in ComponentSliderAttributeMaxTest002()
/foundation/multimodalinput/input/tools/vuinput/include/
H A Dvirtual_device_config.h62 int32_t maxValue {};
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_model_ng.cpp103 auto maxValue = layoutProperty->GetMaxValue(100.0f); in SetMinResponsiveDistance() local
104 auto diff = maxValue - minValue; in SetMinResponsiveDistance()
420 auto maxValue = layoutProperty->GetMaxValue(100.0f); in SetMinResponsiveDistance() local
421 auto diff = maxValue - minValue; in SetMinResponsiveDistance()
563 auto maxValue = paintProperty->GetMaxValue(100.0f); in SetValidSlideRange() local
566 float toValue = maxValue; in SetValidSlideRange()
573 if (GreatOrEqual(fromValue, minValue) && LessOrEqual(toValue, maxValue) && LessOrEqual(fromValue, toValue) && in SetValidSlideRange()
577 toValue = GreatOrEqual(toValue, maxValue) ? in SetValidSlideRange()
578 maxValue : (std::floor(toValue / step) + toValueCorrection) * step; in SetValidSlideRange()
/foundation/arkui/ace_engine/frameworks/core/components/data_panel/
H A Ddata_panel_component.h354 void SetMaxValue(double maxValue) in SetMaxValue() argument
356 maxValue_ = maxValue; in SetMaxValue()
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()
[all...]
H A Drender_data_panel.h34 double maxValue = 0.0; member
/foundation/deviceprofile/device_info_manager/common/include/utils/
H A Dprofile_utils.h98 int32_t maxValue);
100 int32_t minValue, int32_t maxValue);
/foundation/arkui/ace_engine/frameworks/core/components/side_bar/
H A Drender_side_bar_container.cpp503 auto maxValue = ConvertWidthToVp(maxSidebarWidth_).ConvertToPx(); in HandleDragUpdate() local
504 if (sideBarLine > minValue && sideBarLine < maxValue) { in HandleDragUpdate()
515 if (sideBarLine >= maxValue) { in HandleDragUpdate()
/foundation/deviceprofile/device_info_manager/services/core/test/fuzztest/profileutils_fuzzer/
H A Dprofileutils_fuzzer.cpp300 int32_t maxValue = 1; in IsPropertyValidFuzzTest() local
301 ProfileUtils::IsPropertyValid(propertyMap, property, maxValue); in IsPropertyValidFuzzTest()
304 ProfileUtils::IsPropertyValid(propertyMap, property, minValue, maxValue); in IsPropertyValidFuzzTest()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dimage_utils.h84 static bool IsInRange(uint32_t value, uint32_t minValue, uint32_t maxValue);
/foundation/multimedia/media_library/frameworks/services/media_mtp/include/
H A Dproperty.h94 std::shared_ptr<Value> maxValue; member in OHOS::Media::Property
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnavigation_modifier.cpp74 void SetMaxNavBarWidth(ArkUINodeHandle node, ArkUI_Float32 maxValue, int maxUnit) in SetMaxNavBarWidth() argument
78 CalcDimension maxNavBarWidth = Dimension(maxValue, static_cast<OHOS::Ace::DimensionUnit>(maxUnit)); in SetMaxNavBarWidth()

Completed in 20 milliseconds

12