Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 94) sorted by relevance

1234

/foundation/ace/ace_engine/frameworks/core/components/test/unittest/video/
Dtexture_test_utils.cpp36 return std::abs(left.GetX() - right.GetX()) < 1.0 && std::abs(left.GetY() - right.GetY()) < 1.0; in IsNearEqual()
41 …return std::abs(left.Width() - right.Width()) < 1.0 && std::abs(left.Height() - right.Height()) < … in IsNearEqual()
/foundation/ace/ace_engine/frameworks/core/gestures/
Dswipe_recognizer.cpp29 if (std::abs(xOffset) > std::abs(yOffset)) { in GetSwipeDirection()
30 if (std::abs(xOffset) < duration) { in GetSwipeDirection()
35 if (std::abs(yOffset) < duration) { in GetSwipeDirection()
/foundation/graphic/standard/rosen/modules/render_service_base/include/common/
Drs_common_def.h91 return (std::abs((x) - (y)) <= (std::numeric_limits<float>::epsilon())); in ROSEN_EQ()
97 return (std::abs((x) - (y)) <= (std::numeric_limits<double>::epsilon())); in ROSEN_EQ()
103 return (std::abs((x) - (y)) <= (std::numeric_limits<long double>::epsilon())); in ROSEN_EQ()
109 return (std::abs((x) - (y)) <= (epsilon)); in ROSEN_EQ()
/foundation/multimodalinput/input/tools/virtual_device_manager/src/
Dvirtual_knob_consumer_ctrl.cpp67 static const std::vector<uint32_t> abs { in GetAbs() local
71 return abs; in GetAbs()
Dvirtual_keyboard_consumer_ctrl.cpp67 static const std::vector<uint32_t> abs { in GetAbs() local
71 return abs; in GetAbs()
Dvirtual_touchpad.cpp64 static const std::vector<uint32_t> abs { in GetAbs() local
67 return abs; in GetAbs()
Dvirtual_touchscreen.cpp86 static const std::vector<uint32_t> abs { in GetAbs() local
90 return abs; in GetAbs()
Dvirtual_joystick.cpp80 static const std::vector<uint32_t> abs { in GetAbs() local
83 return abs; in GetAbs()
Dvirtual_finger.cpp93 static const std::vector<uint32_t> abs { in GetAbs() local
98 return abs; in GetAbs()
Dvirtual_gamepad.cpp102 static const std::vector<uint32_t> abs { in GetAbs() local
106 return abs; in GetAbs()
Dvirtual_stylus.cpp100 static const std::vector<uint32_t> abs { in GetAbs() local
103 return abs; in GetAbs()
/foundation/ace/ace_engine/frameworks/core/components/scroll/
Dscroll_fade_effect.cpp127 fadeController_->ProcessAbsorb(std::abs(dragVelocity)); in HandleOverScroll()
130 … ? fadeController_->ProcessPull(std::abs(overScroll), viewPort.Height(), viewPort.Width()) in HandleOverScroll()
131 … : fadeController_->ProcessPull(std::abs(overScroll), viewPort.Width(), viewPort.Height()); in HandleOverScroll()
/foundation/graphic/standard/rosen/modules/render_service_base/src/animation/
Drs_spring_interpolator.cpp148 duration_ = log(abs(coeffScale_) / minimumAmplitude_) / -coeffDecay_; in EstimateDuration()
153 duration_ = log(abs(coeffScale_ + initialOffset_) / minimumAmplitude_) / -coeffDecay_; in EstimateDuration()
158 duration_ = fmax(log(abs(coeffScale_) / minimumAmplitude_ * 2) / -coeffDecay_, in EstimateDuration()
159 log(abs(coeffScaleMinus_) / minimumAmplitude_ * 2) / -coeffDecayMinus_); in EstimateDuration()
/foundation/multimodalinput/input/uinput/
Dvirtual_touch_screen.cpp38 static const std::vector<uint32_t> abs { in GetAbs() local
51 return abs; in GetAbs()
Dvirtual_device.cpp155 static const std::vector<uint32_t> abs {}; in GetAbs() local
156 return abs; in GetAbs()
/foundation/multimodalinput/input/patch/prebuild_eudev/rules.d/
D90-libinput-fuzz-override.rules16 ATTRS{capabilities/abs}!="0", \
21 ATTRS{capabilities/abs}!="0", \
/foundation/graphic/standard/frameworks/wmtest/frameworks/
Dnative_test_class.cpp279 ret = abs(ret) - 1.0; in RainbowDraw()
313 ret = abs(ret) - 1.0; in BoxDraw()
346 auto abs = [](int32_t x) { return (x < 0) ? -x : x; }; in BoxDraw() local
347 drawOnce(abs((count - 1) % (framecount * 0x2 - 1) - framecount), color); in BoxDraw()
348 drawOnce(abs((count + 0) % (framecount * 0x2 - 1) - framecount), color); in BoxDraw()
349 drawOnce(abs((count + 1) % (framecount * 0x2 - 1) - framecount), color); in BoxDraw()
/foundation/ace/ace_engine/frameworks/core/components/track/
Drender_track.cpp75 paintData_.sweepDegree = abs(endDegree + ONE_CYCLE_ANGLE - startAngle); in Update()
77 paintData_.sweepDegree = abs(endDegree - startAngle); in Update()
126 …if (std::abs(percentChange_ * MILLISECOND_PER_PERCENT) > animationDuring_.count() * SECOND_TO_MILL… in UpdateAnimation()
127 animationTime = std::abs(percentChange_ * MILLISECOND_PER_PERCENT); in UpdateAnimation()
/foundation/multimedia/media_standard/services/engine/gstreamer/player/
Dplayer_engine_gst_impl.cpp372 if (abs(rate - SPEED_0_75_X) < EPSINON) { in ChangeSpeedToMode()
375 if (abs(rate - SPEED_1_00_X) < EPSINON) { in ChangeSpeedToMode()
378 if (abs(rate - SPEED_1_25_X) < EPSINON) { in ChangeSpeedToMode()
381 if (abs(rate - SPEED_1_75_X) < EPSINON) { in ChangeSpeedToMode()
384 if (abs(rate - SPEED_2_00_X) < EPSINON) { in ChangeSpeedToMode()
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/test/unittest/common/syncer/
Ddistributeddb_time_sync_test.cpp178 EXPECT_TRUE(abs(offsetB - offsetA - timeOffset) < NETWORK_DELAY);
219 EXPECT_TRUE(abs(offsetB - offsetA - timeOffset) < NETWORK_DELAY);
270 TimeOffset absTimeOffset = abs(timeOffset);
271 EXPECT_TRUE(abs(offsetB - offsetA - absTimeOffset) < NETWORK_DELAY);
/foundation/ace/ace_engine/frameworks/core/components/transform/
Dflutter_render_transform.cpp129 rotateX = std::abs(rotateX * (180.0f / M_PI)); in CheckNeedPaint()
130 rotateY = std::abs(rotateY * (180.0f / M_PI)); in CheckNeedPaint()
/foundation/ace/ace_engine/frameworks/core/animation/
Dspring_motion.cpp64 accuracy_ = std::abs(accuracy); in SetAccuracy()
/foundation/ace/ace_engine/frameworks/core/components/data_panel/
Drender_data_panel.cpp197 …if (std::abs(percentChange_ * MILLISECOND_PER_PERCENT) > animationDuring_.count() * SECOND_TO_MILL… in PrepareAnimation()
198 animationTime = std::abs(percentChange_ * MILLISECOND_PER_PERCENT); in PrepareAnimation()
/foundation/multimedia/media_standard/interfaces/innerkits/native/media/demo/player/
Dplayer_demo.cpp275 if (abs(rate - SPEED_0_75_X) < EPSINON) { in ChangeSpeedToMode()
277 } else if (abs(rate - SPEED_1_00_X) < EPSINON) { in ChangeSpeedToMode()
279 } else if (abs(rate - SPEED_1_25_X) < EPSINON) { in ChangeSpeedToMode()
281 } else if (abs(rate - SPEED_1_75_X) < EPSINON) { in ChangeSpeedToMode()
283 } else if (abs(rate - SPEED_2_00_X) < EPSINON) { in ChangeSpeedToMode()
/foundation/graphic/standard/rosen/modules/render_service_client/core/animation/
Drs_keyframe_animation.h72 if (std::abs(std::get<FRACTION_INDEX>(beginKeyframe) - FRACTION_MIN) > EPSILON) { in InitInterpolationValue()

1234