Home
last modified time | relevance | path

Searched refs:IsNearEqual (Results 1 - 25 of 32) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/
H A Drs_render_property_test.cpp263 * @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 Drs_render_property.cpp660 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 Drs_render_property.h120 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 Drs_rect.h83 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 Drs_color.h41 bool IsNearEqual(const RSColor& other, int16_t threshold = std::numeric_limits<int16_t>::epsilon()) const;
H A Drs_vector2.h57 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 Drs_vector4.h69 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 Drs_matrix3.h64 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 Drs_light_up_effect_filter.h40 bool IsNearEqual(
H A Drs_blur_filter.h54 bool IsNearEqual(
H A Drs_filter.h100 virtual bool IsNearEqual( in IsNearEqual() function in OHOS::Rosen::RSFilter
H A Drs_material_filter.h89 bool IsNearEqual(
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_color_test.cpp74 * @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 Drs_render_interpolating_spring_animation.cpp203 if (interpolationValue != nullptr && !interpolationValue->IsNearEqual(endValue, zeroThreshold_)) { in OnAnimate()
206 if (velocity != nullptr && (velocity * FRAME_TIME_INTERVAL)->IsNearEqual(zeroValue, zeroThreshold_)) { in OnAnimate()
H A Drs_render_spring_animation.cpp174 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 Drs_material_filter.cpp356 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 Drs_light_up_effect_filter.cpp98 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 Drs_blur_filter.cpp114 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 Drs_blur_filter_test.cpp39 * @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 Drs_material_filter_test.cpp356 * @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 Drs_light_up_effect_filter_test.cpp230 * @tc.desc: Verify function IsNearEqual
241 EXPECT_TRUE(filter->IsNearEqual(other1, threshold)); in HWTEST_F()
/foundation/multimodalinput/input/util/common/include/
H A Dmmi_vector2.h57 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 Drs_color.cpp49 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 Drsblurfilter_fuzzer.cpp205 rsBlurFilter->IsNearEqual(rhs, threshold); in DoIsNearEqual()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/
H A Drs_animation_supplement_test.cpp1022 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()

Completed in 16 milliseconds

12