/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_paint_method.cpp | 37 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 D | strict_monotonic_pts_cal.h | 31 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 D | udev_device.cpp | 355 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 D | 3d_dm_target_packing_common.h | 28 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 D | v_input_device.h | 75 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 D | scroll_fade_effect.cpp | 84 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 D | brush_test.cpp | 225 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 D | pen_test.cpp | 227 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 D | toss_animation_controller.cpp | 74 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 D | toss_animation_controller.cpp | 74 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 D | textpicker_column_pattern.cpp | 236 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 D | toss_animation_controller.cpp | 76 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 D | speed.cpp | 29 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 D | swipe_recognizer.cpp | 26 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 D | dbinder_error_code.h | 152 "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 D | test_utils.cpp | 105 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 D | volume_tools.h | 35 return (std::abs((x) - (y)) <= std::abs(epsilon)); in IsVolumeSame()
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scroll_fade_effect.cpp | 124 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 D | rs_graphic_config_unit_test.cpp | 161 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 D | rs_graphic_config_test.cpp | 169 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 D | rs_color.cpp | 51 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 D | spring_motion.cpp | 66 accuracy_ = std::abs(accuracy); in SetAccuracy() 71 velocityAccuracy_ = std::abs(velocityAccuracy); in SetVelocityAccuracy()
|
/foundation/multimodalinput/input/uinput/ |
H A D | virtual_touch_screen.cpp | 52 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 D | cloud_file_fault_event.cpp | 72 "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 D | accessibility_gesture_recognizer.cpp | 244 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()
|