Home
last modified time | relevance | path

Searched refs:abs (Results 1 - 25 of 315) sorted by relevance

12345678910>>...13

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_paint_method.cpp37 RectF boundsRect(hostGeometryNode->GetFrameOffset().GetX() - std::abs(shadowOptions.offsetX) - shadowOptions.radius, in UpdateForegroundModifier()
38 hostGeometryNode->GetFrameOffset().GetY() - std::abs(shadowOptions.offsetY) - shadowOptions.radius, in UpdateForegroundModifier()
39 hostGeometryNode->GetFrameSize().Width() + std::abs(shadowOptions.offsetX) + shadowOptions.radius, in UpdateForegroundModifier()
40 hostGeometryNode->GetFrameSize().Height() + std::abs(shadowOptions.offsetY) + shadowOptions.radius); in UpdateForegroundModifier()
/foundation/multimedia/media_foundation/engine/pipeline/filters/common/buffer_calibration/
H A Dstrict_monotonic_pts_cal.h31 if (std::abs(ptr->pts - startTime_) > startTimeDiffThreshold_ || ptr->pts < 0) {
39 if (std::abs(predictedPts - ptr->pts) < ptsDiffThreshold_ && ptr->pts > 0) {
41 } else if (std::abs(predictedPts - ptr->dts) < ptsDiffThreshold_ && ptr->dts > 0) {
/foundation/multimodalinput/input/libudev/src/
H A Dudev_device.cpp355 bool CheckAccel(const BitVector &ev, const BitVector &abs, const BitVector &prop) in CheckAccel()
358 bool has3dCoordinates = abs.CheckBit(ABS_X) && abs.CheckBit(ABS_Y) && abs.CheckBit(ABS_Z); in CheckAccel()
371 bool HasJoystickAxesOrButtons(const BitVector &abs, const BitVector &key) in HasJoystickAxesOrButtons()
388 hasJoystickAxesOrButtons = abs.CheckBit(axis); in HasJoystickAxesOrButtons()
425 bool CheckMtCoordinates(const BitVector &abs) in CheckMtCoordinates()
427 bool hasMtCoordinates = abs.CheckBit(ABS_MT_POSITION_X) && abs.CheckBit(ABS_MT_POSITION_Y); in CheckMtCoordinates()
428 /* unset hasMtCoordinates if devices claims to have all abs axi in CheckMtCoordinates()
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_target_packing_common.h28 return (1.0 - abs(v.yx)) * vec2((v.x >= 0.0) ? 1.0 : -1.0, (v.y >= 0.0) ? 1.0 : -1.0); in OctWrap()
33 n /= (abs(n.x) + abs(n.y) + abs(n.z)); in NormalOctEncode()
41 vec3 n = vec3(f.x, f.y, 1.0 - abs(f.x) - abs(f.y)); in NormalOctDecode()
/foundation/multimodalinput/input/test/facility/virtual_device/include/
H A Dv_input_device.h75 bool SupportAbs(size_t abs) const;
81 bool QueryAbsInfo(size_t abs, struct input_absinfo &absInfo);
95 bool HasAbs(size_t abs) const;
156 inline bool VInputDevice::SupportAbs(size_t abs) const in SupportAbs()
158 return (TestBit(EV_ABS, evBitmask_) && TestBit(abs, absBitmask_)); in SupportAbs()
236 inline bool VInputDevice::HasAbs(size_t abs) const in HasAbs()
238 return TestBit(abs, absBitmask_); in HasAbs()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/effect/
H A Dscroll_fade_effect.cpp84 LessOrEqual(std::abs(overScroll), OVER_SCROLL_THRESHOLD); in SetPaintDirection()
96 LessOrEqual(std::abs(overScroll), OVER_SCROLL_THRESHOLD); in SetPaintDirection()
148 fadeController_->ProcessAbsorb(std::abs(scrollable_->GetCurrentVelocity())); in HandleOverScroll()
151 ? fadeController_->ProcessPull(std::abs(overScroll), viewPort.Height(), viewPort.Width()) in HandleOverScroll()
152 : fadeController_->ProcessPull(std::abs(overScroll), viewPort.Width(), viewPort.Height()); in HandleOverScroll()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dbrush_test.cpp225 EXPECT_TRUE(std::abs(expectColor4f.redF_ - brush->GetColor4f().redF_) < 0.01); in HWTEST_F()
226 EXPECT_TRUE(std::abs(expectColor4f.greenF_ - brush->GetColor4f().greenF_) < 0.01); in HWTEST_F()
227 EXPECT_TRUE(std::abs(expectColor4f.blueF_ - brush->GetColor4f().blueF_) < 0.01); in HWTEST_F()
228 EXPECT_TRUE(std::abs(expectColor4f.alphaF_ - brush->GetColor4f().alphaF_) < 0.01); in HWTEST_F()
246 EXPECT_TRUE(std::abs(expectColor4f.redF_ - brush->GetColor4f().redF_) < 0.01); in HWTEST_F()
247 EXPECT_TRUE(std::abs(expectColor4f.greenF_ - brush->GetColor4f().greenF_) < 0.01); in HWTEST_F()
248 EXPECT_TRUE(std::abs(expectColor4f.blueF_ - brush->GetColor4f().blueF_) < 0.01); in HWTEST_F()
249 EXPECT_TRUE(std::abs(expectColor4f.alphaF_ - brush->GetColor4f().alphaF_) < 0.01); in HWTEST_F()
267 EXPECT_TRUE(std::abs(expectColor4f.redF_ - brush->GetColor4f().redF_) < 0.01); in HWTEST_F()
268 EXPECT_TRUE(std::abs(expectColor4 in HWTEST_F()
[all...]
H A Dpen_test.cpp227 EXPECT_TRUE(std::abs(expectColor4f.redF_ - pen->GetColor4f().redF_) < 0.01); in HWTEST_F()
228 EXPECT_TRUE(std::abs(expectColor4f.greenF_ - pen->GetColor4f().greenF_) < 0.01); in HWTEST_F()
229 EXPECT_TRUE(std::abs(expectColor4f.blueF_ - pen->GetColor4f().blueF_) < 0.01); in HWTEST_F()
230 EXPECT_TRUE(std::abs(expectColor4f.alphaF_ - pen->GetColor4f().alphaF_) < 0.01); in HWTEST_F()
248 EXPECT_TRUE(std::abs(expectColor4f.redF_ - pen->GetColor4f().redF_) < 0.01); in HWTEST_F()
249 EXPECT_TRUE(std::abs(expectColor4f.greenF_ - pen->GetColor4f().greenF_) < 0.01); in HWTEST_F()
250 EXPECT_TRUE(std::abs(expectColor4f.blueF_ - pen->GetColor4f().blueF_) < 0.01); in HWTEST_F()
251 EXPECT_TRUE(std::abs(expectColor4f.alphaF_ - pen->GetColor4f().alphaF_) < 0.01); in HWTEST_F()
269 EXPECT_TRUE(std::abs(expectColor4f.redF_ - pen->GetColor4f().redF_) < 0.01); in HWTEST_F()
270 EXPECT_TRUE(std::abs(expectColor4 in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Dtoss_animation_controller.cpp74 if (std::abs(speed_) < PICKER_SPEED_TH) { in Play()
152 speed_ = std::abs(speed_) >= std::abs(velocityMax) ? std::abs(velocityMax) : std::abs(speed_); in UpdatePlayAnimationValue()
153 showCount_ = static_cast<int>(DISMIN + (showCountMax - DISMIN) * (std::abs(speed_) - VMIN) / (velocityMax - VMIN)); in UpdatePlayAnimationValue()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtoss_animation_controller.cpp74 if (std::abs(speed_) < PICKER_SPEED_TH) { in Play()
154 speed_ = std::abs(speed_) >= std::abs(VMAX) ? std::abs(VMAX) : std::abs(speed_); in UpdatePlayAnimationValue()
155 showCount_ = static_cast<int>(DISMIN + (DISMAX - DISMIN) * (std::abs(speed_) - VMIN) / (VMAX - VMIN)); in UpdatePlayAnimationValue()
H A Dtextpicker_column_pattern.cpp236 if (std::abs(info.GetTouches().front().GetLocalLocation().GetDistance() - pattern->GetLocalDownDistance()) > in ParseTouchListener()
893 Color updateColor = colorEvaluator->Evaluate(startColor, endColor, std::abs(percent)); in TextPropertiesLinearAnimation()
907 if (shiftDistance > std::abs(scrollDelta_)) { in GetOverScrollDeltaIndex()
965 return startFontSize + (endFontSize - startFontSize) * std::abs(percent); in LinearFontSize()
1105 if (std::abs(scrollDelta_) >= std::abs(shiftThreshold)) { in HandleDragEnd()
1107 scrollDelta_ = scrollDelta_ - std::abs(shiftDistance) * (isDownScroll_ ? 1 : -1); in HandleDragEnd()
1184 textLinearPercent = (std::abs(delta)) / (optionProperties_[midIndex].height); in ScrollOption()
1441 if (std::abs(dragDelta) < CURVE_MOVE_THRESHOLD) { in SpringCurveTailMoveProcess()
1445 if (std::abs(totalDragDelta in SpringCurveTailMoveProcess()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtoss_animation_controller.cpp76 if (std::abs(speed_) < PICKER_SPEED_TH) { in Play()
156 speed_ = std::abs(speed_) >= std::abs(velocityMax) ? std::abs(velocityMax) : std::abs(speed_); in UpdatePlayAnimationValue()
157 showCount_ = static_cast<int>(DISMIN + (showCountMax - DISMIN) * (std::abs(speed_) - VMIN) / (velocityMax - VMIN)); in UpdatePlayAnimationValue()
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/modifiers/
H A Dspeed.cpp29 auto speed = BASE_NS::Math::abs(META_ACCESS_PROPERTY_VALUE(SpeedFactor)); in ProcessOnGetDuration()
39 auto speed = BASE_NS::Math::abs(META_ACCESS_PROPERTY_VALUE(SpeedFactor)); in ProcessOnStep()
/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dswipe_recognizer.cpp26 if (std::abs(xOffset) > std::abs(yOffset)) { in GetSwipeDirection()
27 if (std::abs(xOffset) < duration) { in GetSwipeDirection()
32 if (std::abs(yOffset) < duration) { in GetSwipeDirection()
/foundation/communication/ipc/ipc/native/src/core/include/
H A Ddbinder_error_code.h152 "ERROR_CODE", abs(errorCode), "TYPE", type); in DfxReportFailEvent()
165 "ERROR_CODE", abs(errorCode), "LISTEN_FD", listenFd, "TYPE", type); in DfxReportFailListenEvent()
178 "ERROR_CODE", abs(errorCode), "HANDLE", handle, "TYPE", type); in DfxReportFailHandleEvent()
191 "ERROR_CODE", abs(errorCode), "DEVICE", device, "TYPE", type); in DfxReportFailDeviceEvent()
/foundation/graphic/graphic_3d/lume/metaobject/test/src/
H A Dtest_utils.cpp105 return BASE_NS::Math::abs(lhs.x - rhs.x) < epsilon && BASE_NS::Math::abs(lhs.y - rhs.y) < epsilon && in AreEqual()
106 BASE_NS::Math::abs(lhs.z - rhs.z) < epsilon; in AreEqual()
116 return BASE_NS::Math::abs(lhs.x - rhs.x) < epsilon && BASE_NS::Math::abs(lhs.y - rhs.y) < epsilon; in AreEqual()
/foundation/multimedia/audio_framework/services/audio_service/common/include/
H A Dvolume_tools.h35 return (std::abs((x) - (y)) <= std::abs(epsilon)); in IsVolumeSame()
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_fade_effect.cpp124 fadeController_->ProcessAbsorb(std::abs(dragVelocity)); in HandleOverScroll()
127 ? fadeController_->ProcessPull(std::abs(overScroll), viewPort.Height(), viewPort.Width()) in HandleOverScroll()
128 : fadeController_->ProcessPull(std::abs(overScroll), viewPort.Width(), viewPort.Height()); in HandleOverScroll()
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/pipeline/
H A Drs_graphic_config_unit_test.cpp161 ASSERT_TRUE(std::abs(0.1 - floatValues[0]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
162 ASSERT_TRUE(std::abs(0.2 - floatValues[1]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
163 ASSERT_TRUE(std::abs(-0.3 - floatValues[2]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
177 ASSERT_TRUE(std::abs(0.1 - floatValues[0]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
178 ASSERT_TRUE(std::abs(0.2 - floatValues[1]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
179 ASSERT_TRUE(std::abs(0.3 - floatValues[2]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_graphic_config_test.cpp169 ASSERT_TRUE(std::abs(0.1 - floatValues[0]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
170 ASSERT_TRUE(std::abs(0.2 - floatValues[1]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
171 ASSERT_TRUE(std::abs(-0.3 - floatValues[2]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
177 ASSERT_TRUE(std::abs(0.1 - floatValues[0]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
178 ASSERT_TRUE(std::abs(0.2 - floatValues[1]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
179 ASSERT_TRUE(std::abs(0.3 - floatValues[2]) < std::numeric_limits<float>::epsilon()); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_color.cpp51 return (std::abs(red_ - other.red_) <= threshold) && (std::abs(green_ - other.green_) <= threshold) && in IsNearEqual()
52 (std::abs(blue_ - other.blue_) <= threshold) && (std::abs(alpha_ - other.alpha_) <= threshold); in IsNearEqual()
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dspring_motion.cpp66 accuracy_ = std::abs(accuracy); in SetAccuracy()
71 velocityAccuracy_ = std::abs(velocityAccuracy); in SetVelocityAccuracy()
/foundation/multimodalinput/input/uinput/
H A Dvirtual_touch_screen.cpp52 static const std::vector<uint32_t> abs { in GetAbs()
65 return abs; in GetAbs()
/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/big_data_statistics/
H A Dcloud_file_fault_event.cpp72 "fault_error_code", static_cast<uint32_t>(abs(event.faultErrorCode_)), in CloudSyncFaultReport()
93 "fault_error_code", static_cast<uint32_t>(abs(event.faultErrorCode_)), in CloudFileFaultReport()
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_gesture_recognizer.cpp244 if ((abs(pointerIterm.GetDisplayX() - prePointer_.GetDisplayX())) >= xMinPixels_ || in HandleTouchMoveEvent()
245 (abs(pointerIterm.GetDisplayY() - prePointer_.GetDisplayY())) >= yMinPixels_) { in HandleTouchMoveEvent()
276 if ((abs(pointerIterm.GetDisplayX() - prePointer_.GetDisplayX())) >= xMinPixels_ || in HandleTouchUpEvent()
277 (abs(pointerIterm.GetDisplayY() - prePointer_.GetDisplayY())) >= yMinPixels_) { in HandleTouchUpEvent()
398 if (abs(offsetX) > abs(offsetY)) { in GetSwipeDirection()

Completed in 13 milliseconds

12345678910>>...13