/foundation/window/window_manager/utils/src/ |
H A D | wm_math.cpp | 32 Matrix3 operator*(const Matrix3& left, const Matrix3& right) in operator *() argument 36 { left.mat_[0][0] * right.mat_[0][0] + left.mat_[0][1] * right.mat_[1][0] + left.mat_[0][2] * right.mat_[2][0], in operator *() 37 left.mat_[0][0] * right.mat_[0][1] + left.mat_[0][1] * right.mat_[1][1] + left.mat_[0][2] * right.mat_[2][1], in operator *() 38 left.mat_[0][0] * right.mat_[0][2] + left.mat_[0][1] * right.mat_[1][2] + left.mat_[0][2] * right in operator *() 52 operator *=(const Matrix3& right) operator *=() argument 58 operator *(const Matrix4& left, const Matrix4& right) operator *() argument 103 operator *=(const Matrix4& right) operator *=() argument [all...] |
H A D | cutout_info.cpp | 35 parcel.WriteInt32(waterfallDisplayAreaRects_.right.posX_) && in Marshalling() 36 parcel.WriteInt32(waterfallDisplayAreaRects_.right.posY_) && in Marshalling() 37 parcel.WriteUint32(waterfallDisplayAreaRects_.right.width_) && in Marshalling() 38 parcel.WriteUint32(waterfallDisplayAreaRects_.right.height_) && in Marshalling() 108 parcel.ReadInt32(waterfallDisplayAreaRects.right.posX_) && in ReadWaterfallDisplayAreaRects() 109 parcel.ReadInt32(waterfallDisplayAreaRects.right.posY_) && in ReadWaterfallDisplayAreaRects() 110 parcel.ReadUint32(waterfallDisplayAreaRects.right.width_) && in ReadWaterfallDisplayAreaRects() 111 parcel.ReadUint32(waterfallDisplayAreaRects.right.height_) && in ReadWaterfallDisplayAreaRects()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | position_param.h | 36 std::pair<AnimatableDimension, bool> right = { AnimatableDimension(0.0, DimensionUnit::PX), false }; member 47 std::optional<Dimension> right; member 67 void SetRight(const CalcDimension& right) in SetRight() 69 this->right = right; in SetRight() 75 (this->right == rhs.right)); in operator ==() 83 str.append("right: [").append(right.has_value() ? right in ToString() [all...] |
/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | utils.h | 138 inline bool NearEqual(const double left, const double right, const double epsilon) in NearEqual() argument 140 return (std::abs(left - right) <= epsilon); in NearEqual() 144 constexpr bool NearEqual(const T& left, const T& right); 147 inline bool NearEqual<float>(const float& left, const float& right) in NearEqual() argument 150 return NearEqual(left, right, epsilon); in NearEqual() 154 inline bool NearEqual<double>(const double& left, const double& right) in NearEqual() argument 157 return NearEqual(left, right, epsilon); in NearEqual() 161 constexpr bool NearEqual(const T& left, const T& right) in NearEqual() argument 163 return left == right; in NearEqual() 171 inline bool NearEqual(const double left, const double right) in NearEqual() argument 183 LessOrEqual(double left, double right) LessOrEqual() argument 189 LessOrEqualCustomPrecision(double left, double right, double epsilon = 0.000001f) LessOrEqualCustomPrecision() argument 194 LessNotEqual(double left, double right) LessNotEqual() argument 200 LessNotEqualCustomPrecision(double left, double right, double epsilon = -0.000001f) LessNotEqualCustomPrecision() argument 205 GreatOrEqual(double left, double right) GreatOrEqual() argument 211 GreatOrEqualCustomPrecision(double left, double right, double epsilon = -0.000001f) GreatOrEqualCustomPrecision() argument 216 GreatNotEqual(double left, double right) GreatNotEqual() argument 222 GreatNotEqualCustomPrecision(double left, double right, double epsilon = 0.000001f) GreatNotEqualCustomPrecision() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | edge.h | 30 // Types of padding and margin. Contains four directions: left, top, right and bottom. 38 Edge(double left, double top, double right, double bottom, DimensionUnit unit = DimensionUnit::PX) in Edge() argument 39 : left_(Dimension(left, unit)), top_(Dimension(top, unit)), right_(Dimension(right, unit)), in Edge() 41 Edge(const std::string& left, const std::string& top, const std::string& right, const std::string& bottom, in Edge() argument 43 right_(CalcDimension(right, unit)), bottom_(CalcDimension(bottom, unit)) {} in Edge() 44 Edge(const CalcDimension& left, const CalcDimension& top, const CalcDimension& right, const CalcDimension& bottom) in Edge() argument 45 : left_(left), top_(top), right_(right), bottom_(bottom) {} in Edge() 46 Edge(const Dimension& left, const Dimension& top, const Dimension& right, const Dimension& bottom, in Edge() argument 49 right_(AnimatableDimension(right, option)), bottom_(AnimatableDimension(bottom, option)) {} in Edge() 50 Edge(const CalcDimension& left, const CalcDimension& top, const CalcDimension& right, cons in Edge() argument 120 SetRight(const AnimatableDimension& right) SetRight() argument 125 SetRight(const CalcDimension& right) SetRight() argument 130 SetRight(const Dimension& right) SetRight() argument 203 EdgePx(double left, double top, double right, double bottom) EdgePx() argument 204 EdgePx(const std::string& left, const std::string& top, const std::string& right, const std::string& bottom) EdgePx() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | path_layout_algorithm.cpp | 51 auto right = skRect.right(); in MeasureContent() local 58 auto right = rect.GetRight(); in MeasureContent() local 61 if (NearZero(right) && NearZero(bottom)) { in MeasureContent() 65 if (NearZero(right)) { in MeasureContent() 66 right += lineWidth; in MeasureContent() 71 return SizeF(right, bottom); in MeasureContent()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | measure_property.h | 372 std::optional<T> right; member 381 right = padding; in SetEdges() 389 right = rightValue; in SetEdges() 396 return (left == value.left) && (right == value.right) && (top == value.top) && (bottom == value.bottom); in operator ==() 413 right = value.right; in UpdateWithCheck() 447 str.append(",").append(right.has_value() ? right->ToString() : "NA"); in ToString() 454 if (top == right in ToJsonString() 499 std::optional<float> right; global() member [all...] |
H A D | measure_utils.cpp | 112 auto right = ConvertToPx(padding.right, scaleProperty, percentReference); in ConvertToPaddingPropertyF() local 121 if (right.has_value()) { in ConvertToPaddingPropertyF() 122 right = floor(right.value()); in ConvertToPaddingPropertyF() 135 if (right.has_value()) { in ConvertToPaddingPropertyF() 136 right = std::max(right.value(), 0.0f); in ConvertToPaddingPropertyF() 145 return PaddingPropertyF { left, right, top, bottom }; in ConvertToPaddingPropertyF() 173 auto right in ConvertToBorderWidthPropertyF() local 198 auto right = ConvertToPx(padding.right, scaleProperty, selfSize.Width()); UpdatePaddingPropertyF() local 502 ConvertToCalcPaddingProperty(const std::optional<CalcDimension>& top, const std::optional<CalcDimension>& bottom, const std::optional<CalcDimension>& left, const std::optional<CalcDimension>& right) ConvertToCalcPaddingProperty() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkrect_fuzzer/ |
H A D | rect_fuzzer.cpp | 41 float right = GetObject<float>(); in RectFuzzTest000() local 43 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest000() 60 OH_Drawing_RectSetRight(nullptr, right); in RectFuzzTest000() 61 OH_Drawing_RectSetRight(rect, right); in RectFuzzTest000() 82 float right = GetObject<float>(); in RectFuzzTest001() local 84 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest001() 85 OH_Drawing_Rect *rect1 = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest001()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_common.h | 62 float right;
member 64 bool Contains(float x, float y) const { return x >= left && x < right && y >= top && y < bottom; }
in Contains() 65 float Width(){ return (right - left); }
in Width() 67 float CenterX(){ return (right - left) / 2; } // 2 for mid
in CenterX() 73 float r = right - dx;
in Inset() 80 right = r;
in Inset() 88 right += dx;
in Offset() 95 right = x + width;
in SetXYWH()
|
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/ |
H A D | bundle_active_event_stats.cpp | 75 void BundleActiveEventStats::add(const BundleActiveEventStats& right) in add() argument 77 if (eventId_ != right.eventId_) { in add() 81 if (right.beginTimeStamp_ > beginTimeStamp_) { in add() 82 lastEventTime_ = std::max(lastEventTime_, right.lastEventTime_); in add() 84 beginTimeStamp_ = std::min(beginTimeStamp_, right.beginTimeStamp_); in add() 85 endTimeStamp_ = std::max(endTimeStamp_, right.endTimeStamp_); in add() 86 totalTime_ += right.totalTime_; in add() 87 count_ += right.count_; in add()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | render_component.h | 97 virtual void SetRight(const Dimension& right) in SetRight() argument 99 positionParam_.right.first = AnimatableDimension(right); in SetRight() 100 positionParam_.right.second = true; in SetRight() 103 virtual void SetRight(const AnimatableDimension& right) in SetRight() argument 105 positionParam_.right.first = right; in SetRight() 106 positionParam_.right.second = true; in SetRight() 145 positionParam_.right.second = hasRight; in SetHasRight() 165 return positionParam_.right in GetRight() [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/include/mission/ |
H A D | snapshot.h | 67 Rect(int32_t left, int32_t top, int32_t right, int32_t bottom) in Rect() 71 this->right = right; in Rect() 78 !parcel.WriteInt32(right) || !parcel.WriteInt32(bottom)) { 88 int32_t right = parcel.ReadInt32(); in Unmarshalling() local 90 auto rectPtr = new Rect(left, top, right, bottom); in Unmarshalling() 96 int32_t right = 0; member
|
/foundation/arkui/ui_lite/frameworks/layout/ |
H A D | flex_layout.cpp | 102 int16_t right; in CalValidLength() local 112 right = child->GetStyle(STYLE_MARGIN_RIGHT); in CalValidLength() 113 totalValidLength += (child->GetRelativeRect().GetWidth() + left + right); in CalValidLength() 130 int16_t right; in CalRowCount() local 137 right = child->GetStyle(STYLE_MARGIN_RIGHT); in CalRowCount() 139 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidth()) { in CalRowCount() 143 pos += child->GetRelativeRect().GetWidth() + right; in CalRowCount() 154 int16_t right; in GetRowMaxHeight() local 167 right = child->GetStyle(STYLE_MARGIN_RIGHT); in GetRowMaxHeight() 171 if ((pos + child->GetRelativeRect().GetWidth() + right) > GetWidt in GetRowMaxHeight() 190 int16_t right; GetRowsWidth() local 288 int16_t right = child->GetStyle(STYLE_MARGIN_RIGHT); LayoutHorizontal() local 344 int16_t right; GetColumnMaxWidth() local 419 int16_t right = child->GetStyle(STYLE_MARGIN_RIGHT); GetCrossAxisPosX() local [all...] |
H A D | grid_layout.cpp | 53 int16_t right; in LayoutHorizontal() local 68 right = child->GetStyle(STYLE_MARGIN_RIGHT); in LayoutHorizontal() 72 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutHorizontal() 87 int16_t right; in LayoutVertical() local 102 right = child->GetStyle(STYLE_MARGIN_RIGHT); in LayoutVertical() 106 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutVertical()
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | state_manager.h | 47 bool operator==(const State &right) const in operator ==() 49 return state == right.state; in operator ==() 52 bool operator!=(const State &right) const in operator !=() 54 return !(*this == right); in operator !=() 57 bool operator<(const State &right) const in operator <() 59 return state < right.state; in operator <() 82 bool operator==(StateActions& right) const in operator ==() 84 return actions.size() == right.actions.size(); in operator ==()
|
H A D | timer_mgr.h | 65 bool operator==(const TimerItem& right) const in operator ==() 67 return tgtUs == right.tgtUs; in operator ==() 69 bool operator<(const TimerItem& right) const in operator <() 71 return tgtUs < right.tgtUs; in operator <()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_water_flow_sections.cpp | 25 std::optional<CalcDimension> right; in SetMarginProperty() local 28 JSViewAbstract::ParseMarginOrPaddingCorner(paddingObj, top, bottom, left, right); in SetMarginProperty() 54 if (right.has_value()) { in SetMarginProperty() 55 if (right.value().Unit() == DimensionUnit::CALC) { in SetMarginProperty() 56 margin.right = NG::CalcLength(right.value().CalcValue()); in SetMarginProperty() 58 margin.right = NG::CalcLength(right.value()); in SetMarginProperty()
|
/foundation/multimodalinput/input/util/common/include/ |
H A D | util.h | 131 inline bool MMI_LNE(float left, float right) //less not equal in MMI_LNE() argument 134 return (left - right) < epsilon; in MMI_LNE() 137 inline bool MMI_GNE(float left, float right) //great not equal in MMI_GNE() argument 140 return (left - right) > epsilon; in MMI_GNE() 143 inline bool MMI_GE(float left, float right) //great or equal in MMI_GE() argument 146 return (left - right) > epsilon; in MMI_GE() 149 inline bool MMI_LE(float left, float right) //less or equal in MMI_LE() argument 152 return (left - right) < epsilon; in MMI_LE()
|
/foundation/multimedia/audio_framework/frameworks/native/audioutils/src/ |
H A D | audio_channel_blend.cpp | 91 void AudioBlend::BlendLR(T& left, T& right) in BlendLR() argument 93 left = left / 2 + right / 2; in BlendLR() 94 right = left; in BlendLR() 98 void AudioBlend::BlendLR(int24_t& left, int24_t& right) in BlendLR() argument 100 left.value[0] = left.value[0] / 2 + right.value[0] / 2; in BlendLR() 101 right.value[0] = left.value[0]; in BlendLR() 102 left.value[1] = left.value[1] / 2 + right.value[1] / 2; in BlendLR() 103 right.value[0] = left.value[0]; in BlendLR() 104 left.value[2] = left.value[2] / 2 + right.value[2] / 2; in BlendLR() 105 right in BlendLR() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsgpuoverdrawcanvaslistener_fuzzer/ |
H A D | rsgpuoverdrawcanvaslistener_fuzzer.cpp | 95 float right = GetData<float>(); in DoRect() local 98 Drawing::Rect rect(left, right, top, bottom); in DoRect() 110 float right = GetData<float>(); in DoDrawRoundRect() local 113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect() 130 float right = GetData<float>(); in DoDrawNestedRoundRect() local 133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect() 140 right = GetData<float>(); in DoDrawNestedRoundRect() 143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect() 160 float right = GetData<float>(); in DoDrawArc() local 163 Drawing::Rect rect(left, right, to in DoDrawArc() 179 float right = GetData<float>(); DoDrawPie() local 198 float right = GetData<float>(); DoDrawOval() local 332 float right = GetData<float>(); DoDrawImageRect() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscpuoverdrawcanvaslistener_fuzzer/ |
H A D | rscpuoverdrawcanvaslistener_fuzzer.cpp | 95 float right = GetData<float>(); in DoRect() local 98 Drawing::Rect rect(left, right, top, bottom); in DoRect() 110 float right = GetData<float>(); in DoDrawRoundRect() local 113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect() 130 float right = GetData<float>(); in DoDrawNestedRoundRect() local 133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect() 140 right = GetData<float>(); in DoDrawNestedRoundRect() 143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect() 160 float right = GetData<float>(); in DoDrawArc() local 163 Drawing::Rect rect(left, right, to in DoDrawArc() 179 float right = GetData<float>(); DoDrawPie() local 198 float right = GetData<float>(); DoDrawOval() local 345 float right = GetData<float>(); DoDrawImageRect() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/positioned/ |
H A D | render_positioned.cpp | 75 void RenderPositioned::SetRight(const Dimension& right) in SetRight() argument 77 if (NearEqual(right_.Value(), right.Value()) && (right_.Unit() == right.Unit())) { in SetRight() 80 right_ = right; in SetRight()
|
/foundation/arkui/ace_engine/frameworks/base/image/ |
H A D | pixel_map.h | 69 Dimension right; member 78 result.append(", right: "); in ToString() 79 result.append(right.ToString()); in ToString() 89 return left == slice.left && right == slice.right && top == slice.top && bottom == slice.bottom; in operator ==() 93 return left.IsValid() || right.IsValid() || top.IsValid() || bottom.IsValid(); in Valid() 101 right = sliceDimension; in SetResizableRight()
|
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | key_blob.h | 80 KeyBlob(KeyBlob &&right) in KeyBlob() argument 82 data = std::move(right.data); in KeyBlob() 83 size = right.size; in KeyBlob() 94 KeyBlob& operator=(KeyBlob &&right) in operator =() argument 96 data = std::move(right.data); in operator =() 97 size = right.size; in operator =()
|