/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/ |
H A D | rs_render_property_test.cpp | 263 * @tc.name: IsNearEqual 264 * @tc.desc: Test IsNearEqual 268 HWTEST_F(RSRenderPropertyTest, IsNearEqual, TestSize.Level1) in HWTEST_F() 285 EXPECT_TRUE(property.IsNearEqual(value, 1.f)); in HWTEST_F() 286 EXPECT_TRUE(propertyTwo.IsNearEqual(value, 1.f)); in HWTEST_F() 287 EXPECT_TRUE(propertyMatrix3f.IsNearEqual(value, 1.f)); in HWTEST_F() 288 EXPECT_TRUE(propertyColor.IsNearEqual(value, 1.f)); in HWTEST_F() 289 EXPECT_TRUE(propertyRSFilter.IsNearEqual(value, 1.f)); in HWTEST_F() 290 EXPECT_TRUE(propertyVector4Color.IsNearEqual(value, 1.f)); in HWTEST_F() 291 EXPECT_TRUE(propertyRect.IsNearEqual(valu in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/ |
H A D | rs_render_property.cpp | 660 bool RSRenderAnimatableProperty<float>::IsNearEqual( in IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 667 ROSEN_LOGE("RSRenderAnimatableProperty<float>::IsNearEqual: the value of the comparison is a null pointer!"); in IsNearEqual() 672 bool RSRenderAnimatableProperty<Vector2f>::IsNearEqual( in IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 677 return RSRenderProperty<Vector2f>::stagingValue_.IsNearEqual(animatableProperty->Get(), zeroThreshold); in IsNearEqual() 679 ROSEN_LOGE("RSRenderAnimatableProperty<Vector2f>::IsNearEqual: the value of the comparison is a null pointer!"); in IsNearEqual() 684 bool RSRenderAnimatableProperty<Quaternion>::IsNearEqual( in IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 689 return RSRenderProperty<Quaternion>::stagingValue_.IsNearEqual(animatableProperty->Get(), zeroThreshold); in IsNearEqual() 691 ROSEN_LOGE("RSRenderAnimatableProperty<Quaternion>::IsNearEqual: the value of the comparison is a null pointer!"); in IsNearEqual() 696 bool RSRenderAnimatableProperty<Vector4f>::IsNearEqual( in IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 701 return RSRenderProperty<Vector4f>::stagingValue_.IsNearEqual(animatablePropert in IsNearEqual() 708 bool RSRenderAnimatableProperty<Matrix3f>::IsNearEqual( IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 720 bool RSRenderAnimatableProperty<Color>::IsNearEqual( IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 733 bool RSRenderAnimatableProperty<std::shared_ptr<RSFilter>>::IsNearEqual( IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 762 bool RSRenderAnimatableProperty<Vector4<Color>>::IsNearEqual( IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty 780 bool RSRenderAnimatableProperty<RRect>::IsNearEqual( IsNearEqual() function in OHOS::Rosen::RSRenderAnimatableProperty [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/modifier/ |
H A D | rs_render_property.h | 120 virtual bool IsNearEqual(const std::shared_ptr<RSRenderPropertyBase>& value, float zeroThreshold) const in IsNearEqual() function in OHOS::Rosen::RSRenderPropertyBase 289 bool IsNearEqual(const std::shared_ptr<RSRenderPropertyBase>& value, float zeroThreshold) const override 419 RSB_EXPORT bool RSRenderAnimatableProperty<float>::IsNearEqual( 422 RSB_EXPORT bool RSRenderAnimatableProperty<Vector4f>::IsNearEqual( 425 RSB_EXPORT bool RSRenderAnimatableProperty<Quaternion>::IsNearEqual( 428 RSB_EXPORT bool RSRenderAnimatableProperty<Vector2f>::IsNearEqual( 431 RSB_EXPORT bool RSRenderAnimatableProperty<Matrix3f>::IsNearEqual( 434 RSB_EXPORT bool RSRenderAnimatableProperty<Color>::IsNearEqual( 437 RSB_EXPORT bool RSRenderAnimatableProperty<std::shared_ptr<RSFilter>>::IsNearEqual( 440 RSB_EXPORT bool RSRenderAnimatableProperty<Vector4<Color>>::IsNearEqual( [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_rect.h | 83 inline bool IsNearEqual(const RectT<T>& rect, T threshold = std::numeric_limits<T>::epsilon()) const in IsNearEqual() function in OHOS::Rosen::RectT 348 bool IsNearEqual(const RRectT& other, T threshold = std::numeric_limits<T>::epsilon()) const; 462 inline bool RRectT<T>::IsNearEqual(const RRectT& rrectT, T threshold) const in IsNearEqual() function in OHOS::Rosen::RRectT 464 return (rect_.IsNearEqual(rrectT.rect_, threshold)) && (radius_[0].IsNearEqual(rrectT.radius_[0], threshold)) && in IsNearEqual() 465 (radius_[1].IsNearEqual(rrectT.radius_[1], threshold)) && in IsNearEqual() 466 (radius_[2].IsNearEqual(rrectT.radius_[2], threshold)) && in IsNearEqual() 467 (radius_[3].IsNearEqual(rrectT.radius_[3], threshold)); in IsNearEqual()
|
H A D | rs_color.h | 41 bool IsNearEqual(const RSColor& other, int16_t threshold = std::numeric_limits<int16_t>::epsilon()) const;
|
H A D | rs_vector2.h | 57 bool IsNearEqual(const Vector2& other, T threshold = std::numeric_limits<T>::epsilon()) const; 240 bool Vector2<T>::IsNearEqual(const Vector2& other, T threshold) const in IsNearEqual() function in OHOS::Rosen::Vector2
|
H A D | rs_vector4.h | 69 bool IsNearEqual(const Vector4& other, T threshold = std::numeric_limits<T>::epsilon()) const; 405 bool Vector4<T>::IsNearEqual(const Vector4& other, T threshold) const in IsNearEqual() function in OHOS::Rosen::Vector4
|
H A D | rs_matrix3.h | 64 bool IsNearEqual(const Matrix3& other, T threshold = std::numeric_limits<T>::epsilon()) const; 382 bool Matrix3<T>::IsNearEqual(const Matrix3& other, T threshold) const in IsNearEqual() function in OHOS::Rosen::Matrix3
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_light_up_effect_filter.h | 40 bool IsNearEqual(
|
H A D | rs_blur_filter.h | 54 bool IsNearEqual(
|
H A D | rs_filter.h | 100 virtual bool IsNearEqual( in IsNearEqual() function in OHOS::Rosen::RSFilter
|
H A D | rs_material_filter.h | 89 bool IsNearEqual(
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_color_test.cpp | 74 * @tc.desc: verify function IsNearEqual 90 EXPECT_TRUE(color.IsNearEqual(ohterColor1, threshold)); in HWTEST_F() 94 EXPECT_FALSE(color.IsNearEqual(ohterColor2, threshold)); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_interpolating_spring_animation.cpp | 203 if (interpolationValue != nullptr && !interpolationValue->IsNearEqual(endValue, zeroThreshold_)) { in OnAnimate() 206 if (velocity != nullptr && (velocity * FRAME_TIME_INTERVAL)->IsNearEqual(zeroValue, zeroThreshold_)) { in OnAnimate()
|
H A D | rs_render_spring_animation.cpp | 174 if (!currentValue->IsNearEqual(targetValue, zeroThreshold_)) { in OnAnimate() 179 if ((velocity * FRAME_TIME_INTERVAL)->IsNearEqual(zeroValue, zeroThreshold_)) { in OnAnimate()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_material_filter.cpp | 356 bool RSMaterialFilter::IsNearEqual(const std::shared_ptr<RSFilter>& other, float threshold) const
in IsNearEqual() function in OHOS::Rosen::RSMaterialFilter 360 ROSEN_LOGE("RSMaterialFilter::IsNearEqual: the types of filters are different.");
in IsNearEqual() 366 maskColor_.IsNearEqual(otherMaterialFilter->maskColor_, 0);
in IsNearEqual() 384 maskColor_.IsNearEqual(otherMaterialFilter->maskColor_, 0);
in IsEqual()
|
H A D | rs_light_up_effect_filter.cpp | 98 bool RSLightUpEffectFilter::IsNearEqual(const std::shared_ptr<RSFilter>& other, float threshold) const in IsNearEqual() function in OHOS::Rosen::RSLightUpEffectFilter 102 ROSEN_LOGE("RSLightUpEffectFilter::IsNearEqual: the types of filters are different."); in IsNearEqual()
|
H A D | rs_blur_filter.cpp | 114 bool RSBlurFilter::IsNearEqual(const std::shared_ptr<RSFilter>& other, float threshold) const in IsNearEqual() function in OHOS::Rosen::RSBlurFilter 118 ROSEN_LOGE("RSBlurFilter::IsNearEqual: the types of filters are different."); in IsNearEqual()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_blur_filter_test.cpp | 39 * @tc.desc: Verify function IsNearEqual 52 EXPECT_TRUE(filter->IsNearEqual(other1, threshold)); in HWTEST_F() 53 EXPECT_TRUE(filter->IsNearEqual(nullptr, threshold)); in HWTEST_F()
|
H A D | rs_material_filter_test.cpp | 356 * @tc.desc: Verify function IsNearEqual 376 EXPECT_TRUE(rsMaterialFilter->IsNearEqual(rsMaterialFilter1, threshold)); in HWTEST_F() 377 EXPECT_TRUE(rsMaterialFilter->IsNearEqual(nullptr, threshold)); in HWTEST_F()
|
H A D | rs_light_up_effect_filter_test.cpp | 230 * @tc.desc: Verify function IsNearEqual 241 EXPECT_TRUE(filter->IsNearEqual(other1, threshold)); in HWTEST_F()
|
/foundation/multimodalinput/input/util/common/include/ |
H A D | mmi_vector2.h | 57 bool IsNearEqual(const Vector2& other, T threshold = std::numeric_limits<T>::epsilon()) const; 229 bool Vector2<T>::IsNearEqual(const Vector2& other, T threshold) const in IsNearEqual() function in OHOS::MMI::Vector2
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_color.cpp | 49 bool RSColor::IsNearEqual(const RSColor& other, int16_t threshold) const in IsNearEqual() function in OHOS::Rosen::RSColor
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsblurfilter_fuzzer/ |
H A D | rsblurfilter_fuzzer.cpp | 205 rsBlurFilter->IsNearEqual(rhs, threshold);
in DoIsNearEqual()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_animation_supplement_test.cpp | 1022 filter1.IsNearEqual(nullptr, ANIMATION_DEFAULT_VALUE); in HWTEST_F() 1036 rect1.IsNearEqual(rect2, ANIMATION_DEFAULT_VALUE); in HWTEST_F() 1054 filter3.IsNearEqual(nullptr, ANIMATION_DEFAULT_VALUE); in HWTEST_F() 1195 vec.IsNearEqual(vec1, 1.f); in HWTEST_F() 1225 rect1.IsNearEqual(rect2); in HWTEST_F()
|