Home
last modified time | relevance | path

Searched refs:NearEqual (Results 1 - 25 of 318) sorted by relevance

12345678910>>...13

/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dvector.h28 return NearEqual(x, other.x) && NearEqual(y, other.y); in operator ==()
46 return NearEqual(x, other.x) && NearEqual(y, other.y) && NearEqual(z, other.z); in operator ==()
73 return NearEqual(x, other.x) && NearEqual(y, other.y) && NearEqual(z, other.z) && NearEqual(w, other.w); in operator ==()
87 return NearEqual( in operator ==()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dsize.h37 return NearEqual(inputValue, INFINITE_SIZE); in IsValueInfinite()
78 return NearEqual(width_, INFINITE_SIZE); in IsWidthInfinite()
83 return NearEqual(height_, INFINITE_SIZE); in IsHeightInfinite()
88 return NearEqual(width_, INFINITE_SIZE) || NearEqual(height_, INFINITE_SIZE); in IsInfinite()
93 return NearEqual(width_, 0.0) || NearEqual(height_, 0.0); in IsEmpty()
150 return NearEqual(width_, size.width_) && NearEqual(height_, size.height_); in operator ==()
217 if (NearEqual(width in ToString()
[all...]
H A Dtransform_util.h49 return NearEqual(scaleX, other.scaleX, epsilon) && NearEqual(scaleY, other.scaleY, epsilon) && in operator ==()
50 NearEqual(scaleZ, other.scaleZ, epsilon); in operator ==()
64 return NearEqual(skewX, other.skewX, epsilon) && NearEqual(skewY, other.skewY, epsilon); in operator ==()
77 return NearEqual(dx, other.dx, epsilon) && NearEqual(dy, other.dy, epsilon) && in operator ==()
78 NearEqual(dz, other.dz, epsilon) && NearEqual(angle, other.angle, epsilon); in operator ==()
H A Dquaternion.h82 return NearEqual(x_, q.x_) && NearEqual(y_, q.y_) in operator ==()
83 && NearEqual(z_, q.z_) && NearEqual(w_, q.w_); in operator ==()
H A Danimatable_float.h65 return NearEqual(value_, animFloat.GetValue()); in operator ==()
77 if (NearEqual(value_, std::numeric_limits<float>::max()) || NearEqual(value_, newValue.GetValue()) in operator =()
89 if (NearEqual(animateToEndValue_, newValue.GetValue()) && explicitAnim.IsValid()) { in operator =()
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dgradient_property.h87 NearEqual(x1, other.x1) && NearEqual(x2, other.x2) && NearEqual(y1, other.y1) && NearEqual(y2, other.y2)); in operator ==()
99 return (NearEqual(r, other.r) && NearEqual(cx, other.cx) && NearEqual(cy, other.cy) && in operator ==()
100 NearEqual(fx, other.fx) && NearEqual(fy, other.fy)); in operator ==()
533 return NearEqual(blurRadius in operator ==()
[all...]
H A Dtransition_property.h62 return NearEqual(xScale, other.xScale) && NearEqual(yScale, other.yScale) && NearEqual(zScale, other.zScale) && in operator ==()
63 NearEqual(centerX, other.centerX) && NearEqual(centerY, other.centerY); in operator ==()
90 return NearEqual(angle, other.angle) && NearEqual(xDirection, other.xDirection) && in operator ==()
91 NearEqual(yDirection, other.yDirection) && NearEqual(zDirection, other.zDirection) && in operator ==()
92 NearEqual(center in operator ==()
[all...]
H A Dcalc_length.h38 return NearEqual(vpScale, scaleProperty.vpScale) && NearEqual(fpScale, scaleProperty.fpScale) && in operator ==()
39 NearEqual(lpxScale, scaleProperty.lpxScale); in operator ==()
H A Dparticle_property.h54 return NearEqual(radius_, other.GetRadius()); in operator ==()
364 return (noneValue_ == other.GetNullStr()) && NearEqual(randomConfig_.first, other.GetRandomConfig().first) && in operator ==()
365 NearEqual(randomConfig_.second, other.GetRandomConfig().second) && in operator ==()
460 return NearEqual(range_.first, other.GetRange().first) && NearEqual(range_.second, other.GetRange().second) && in operator ==()
525 return NearEqual(redRandom_.first, other.GetRedRandom().first) && in operator ==()
526 NearEqual(redRandom_.second, other.GetRedRandom().second) && in operator ==()
527 NearEqual(greenRandom_.first, other.GetGreenRandom().first) && in operator ==()
528 NearEqual(greenRandom_.second, other.GetGreenRandom().second) && in operator ==()
529 NearEqual(blueRandom in operator ==()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dinvert.h30 return NearEqual(high_, opt.high_) && NearEqual(low_, opt.high_) && NearEqual(threshold_, opt.threshold_) && in operator ==()
31 NearEqual(thresholdRange_, opt.thresholdRange_); in operator ==()
H A Dborder_image_edge.h61 return NearEqual(borderImageEdge.GetBorderImageSlice().Value(), borderImageSlice_.Value()) in operator ==()
63 && NearEqual(borderImageEdge.GetBorderImageOutset().Value(), borderImageOutset_.Value()) in operator ==()
65 && NearEqual(borderImageEdge.GetBorderImageWidth().Value(), borderImageWidth_.Value()) in operator ==()
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dutils.h138 inline bool NearEqual(const double left, const double right, const double epsilon) in NearEqual() function
144 constexpr bool NearEqual(const T& left, const T& right);
147 inline bool NearEqual<float>(const float& left, const float& right) in NearEqual() function
150 return NearEqual(left, right, epsilon); in NearEqual()
154 inline bool NearEqual<double>(const double& left, const double& right) in NearEqual() function
157 return NearEqual(left, right, epsilon); in NearEqual()
161 constexpr bool NearEqual(const T& left, const T& right) in NearEqual() function
168 return NearEqual(value, 0.0, epsilon); in NearZero()
171 inline bool NearEqual(const double left, const double right) in NearEqual() function
174 return NearEqual(lef in NearEqual()
[all...]
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dcubic_curve.cpp45 if (NearEqual(time, estimate, cubicErrorBound_)) { in MoveInternal()
72 return NearEqual(other->GetX0(), x0_) && NearEqual(other->GetY0(), y0_) in IsEqual()
73 && NearEqual(other->GetX1(), x1_) && NearEqual(other->GetY1(), y1_); in IsEqual()
H A Dspring_curve.h65 return NearEqual(other->GetCurrentVelocity(), velocity_) && NearEqual(other->GetMass(), mass_) &&
66 NearEqual(other->GetStiffness(), stiffness_) && NearEqual(other->GetDamping(), damping_);
H A Dcurve.h189 return NearEqual(other->GetTension(), tension_);
311 return NearEqual(other->GetResponse(), response_) && NearEqual(other->GetDampingRatio(), dampingRatio_) &&
312 NearEqual(other->GetBlendDuration(), blendDuration_);
368 return NearEqual(other->GetVelocity(), velocity_) && NearEqual(other->GetMass(), mass_) &&
369 NearEqual(other->GetStiffness(), stiffness_) && NearEqual(other->GetDamping(), damping_);
/foundation/arkui/ace_engine/frameworks/core/components/positioned/
H A Drender_positioned.cpp57 if (NearEqual(left_.Value(), left.Value()) && (left_.Unit() == left.Unit())) { in SetLeft()
67 if (NearEqual(top_.Value(), top.Value()) && (top_.Unit() == top.Unit())) { in SetTop()
77 if (NearEqual(right_.Value(), right.Value()) && (right_.Unit() == right.Unit())) { in SetRight()
87 if (NearEqual(bottom_.Value(), bottom.Value()) && (bottom_.Unit() == bottom.Unit())) { in SetBottom()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/particle/
H A Dparticle_model.h43 return !(NearEqual(strength, data.strength) && shape == data.shape && size[0] == data.size[0] && in operator !=()
45 feather == data.feather && NearEqual(noiseScale, data.noiseScale) && in operator !=()
46 NearEqual(noiseFrequency, data.noiseFrequency) && NearEqual(noiseAmplitude, data.noiseAmplitude)); in operator !=()
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll/
H A Dscroll_effect_test_ng.cpp187 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(ITEM_MAIN_SIZE, true), 0.0)); in HWTEST_F()
188 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(0.0, true), 0.0)); in HWTEST_F()
189 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(-ITEM_MAIN_SIZE, true), 0.0)); in HWTEST_F()
192 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(ITEM_MAIN_SIZE * 2, true), 0.0)); in HWTEST_F()
193 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(0.0, true), 0.0)); in HWTEST_F()
194 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(-ITEM_MAIN_SIZE * 2, true), 0.0)); in HWTEST_F()
197 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(ITEM_MAIN_SIZE, true), 0.0)); in HWTEST_F()
198 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(0.0, true), 0.0)); in HWTEST_F()
199 EXPECT_TRUE(NearEqual(scrollFadeEffect->CalculateOverScroll(-ITEM_MAIN_SIZE, true), 0.0)); in HWTEST_F()
202 EXPECT_TRUE(NearEqual(scrollFadeEffec in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/flex/old_cases/
H A Dflex_wrap_layout_algorithm_test.cpp182 EXPECT_TRUE(NearEqual<float>(content.crossLength, height)); in HWTEST_F()
208 EXPECT_TRUE(NearEqual<float>(content.crossLength, width)); in HWTEST_F()
234 EXPECT_FALSE(NearEqual<float>(content.crossLength, width)); in HWTEST_F()
255 EXPECT_TRUE(NearEqual<float>(wrapLayoutAlgorithm->mainLengthLimit_, height)); in HWTEST_F()
256 EXPECT_TRUE(NearEqual<float>(wrapLayoutAlgorithm->crossLengthLimit_, width)); in HWTEST_F()
279 EXPECT_TRUE(NearEqual<float>(wrapLayoutAlgorithm->mainLengthLimit_, height)); in HWTEST_F()
280 EXPECT_TRUE(NearEqual<float>(wrapLayoutAlgorithm->crossLengthLimit_, width)); in HWTEST_F()
302 EXPECT_TRUE(NearEqual<float>(wrapLayoutAlgorithm->mainLengthLimit_, width)); in HWTEST_F()
303 EXPECT_TRUE(NearEqual<float>(wrapLayoutAlgorithm->crossLengthLimit_, height)); in HWTEST_F()
327 EXPECT_TRUE(NearEqual<floa in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/
H A Dtest_ng.h65 if (NearEqual(actual, expected)) { in IsEqual()
73 if (NearEqual(actual.start, expected.start) && NearEqual(actual.end, expected.end)) { in IsEqual()
82 if (NearEqual(actual, expected)) { in IsEqual()
90 if (NearEqual(actual, expected)) { in IsEqual()
98 if (NearEqual(actual, expected)) { in IsEqual()
106 if (NearEqual(actual, expected)) { in IsEqual()
125 if (NearEqual(actual, expected)) { in IsEqual()
134 if (NearEqual(actual, expected)) { in IsEqual()
/foundation/arkui/ace_engine/frameworks/core/common/agingadapation/
H A Daging_adapation_dialog_util.cpp46 if (NearEqual(scale, dialogTheme->GetBigFontSizeScale()) || in ShowLongPressDialog()
47 NearEqual(scale, dialogTheme->GetLargeFontSizeScale())) { in ShowLongPressDialog()
49 } else if (NearEqual(scale, dialogTheme->GetMaxFontSizeScale())) { in ShowLongPressDialog()
98 if (NearEqual(scale, dialogTheme->GetBigFontSizeScale()) || in ShowLongPressDialog()
99 NearEqual(scale, dialogTheme->GetLargeFontSizeScale())) { in ShowLongPressDialog()
101 } else if (NearEqual(scale, dialogTheme->GetMaxFontSizeScale())) { in ShowLongPressDialog()
137 if (NearEqual(scale, dialogTheme->GetBigFontSizeScale()) || in CreateCustomDialog()
138 NearEqual(scale, dialogTheme->GetLargeFontSizeScale())) { in CreateCustomDialog()
141 } else if (NearEqual(scale, dialogTheme->GetMaxFontSizeScale())) { in CreateCustomDialog()
181 if (NearEqual(scal in CreateDialogTextNode()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/root/
H A Droot_pattern.h103 return NearEqual(newRect.GetX(), rect.GetX()) && NearEqual(newRect.GetY(), rect.GetY()) &&
104 NearEqual(newRect.Width(), rect.Width()) && NearEqual(newRect.Height(), rect.Height());
/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Dtext_field_scroll_bar_controller.cpp50 if (!NearEqual(height, activeHeight)) { in UpdateScrollPosition()
59 if (!NearEqual(currentPos_, position)) { in ProcessScrollMotion()
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/
H A Dwater_flow_scroll_controller.cpp50 if (!NearEqual(activeHeight, height)) { in UpdateScrollPosition()
62 if (!NearEqual(currentPos_, position)) { in ProcessScrollMotion()
/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/
H A Dtitle_bar_test_ng.cpp190 EXPECT_TRUE(NearEqual(titleBarPattern_->maxTitleBarHeight_, fullTitleHeight)); in HWTEST_F()
192 EXPECT_TRUE(NearEqual(titleBarPattern_->currentTitleBarHeight_, fullTitleHeight)); in HWTEST_F()
226 EXPECT_TRUE(NearEqual(startTempTitleBarHeight, fullTitleHeight)); in HWTEST_F()
236 EXPECT_TRUE(NearEqual(overDragTempTitleBarHeight, expectedOverDragHeight)); in HWTEST_F()
246 EXPECT_TRUE(NearEqual(overDragTempTitleBarHeight, expectedOverDragHeight)); in HWTEST_F()
256 EXPECT_TRUE(NearEqual(overDragTempTitleBarHeight, expectedOverDragHeight)); in HWTEST_F()
267 EXPECT_TRUE(NearEqual(overDragTempTitleBarHeight, expectedOverDragHeight)); in HWTEST_F()
290 EXPECT_TRUE(NearEqual(titleBarPattern_->maxTitleBarHeight_, fullTitleHeight)); in HWTEST_F()
292 EXPECT_TRUE(NearEqual(titleBarPattern_->currentTitleBarHeight_, fullTitleHeight)); in HWTEST_F()
326 EXPECT_TRUE(NearEqual(startTempTitleBarHeigh in HWTEST_F()
[all...]

Completed in 16 milliseconds

12345678910>>...13