/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 in operator *() 58 operator *(const Matrix4& left, const Matrix4& right) operator *() argument [all...] |
H A D | cutout_info.cpp | 27 return parcel.WriteInt32(waterfallDisplayAreaRects_.left.posX_) && in Marshalling() 28 parcel.WriteInt32(waterfallDisplayAreaRects_.left.posY_) && in Marshalling() 29 parcel.WriteUint32(waterfallDisplayAreaRects_.left.width_) && in Marshalling() 30 parcel.WriteUint32(waterfallDisplayAreaRects_.left.height_) && in Marshalling() 100 if (!(parcel.ReadInt32(waterfallDisplayAreaRects.left.posX_) && in ReadWaterfallDisplayAreaRects() 101 parcel.ReadInt32(waterfallDisplayAreaRects.left.posY_) && in ReadWaterfallDisplayAreaRects() 102 parcel.ReadUint32(waterfallDisplayAreaRects.left.width_) && in ReadWaterfallDisplayAreaRects() 103 parcel.ReadUint32(waterfallDisplayAreaRects.left.height_) && in ReadWaterfallDisplayAreaRects()
|
/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, cons argument 177 NearZero(const double left) NearZero() 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/graphic/graphic_3d/lume/LumeBase/api/base/util/ |
H A D | base64_encode.h | 36 inline void ToBase64(const uint8_t* threeBytes, char* output, signed left) in ToBase64() argument 41 output[2U] = left > 1 ? (TO_BASE64[((threeBytes[1u] << 2u) | (threeBytes[2u] >> 6u)) & 0x3f]) : '='; in ToBase64() 42 output[3U] = left > 2 ? TO_BASE64[threeBytes[2u] & 0x3f] : '='; in ToBase64() 45 inline signed EncodeTriplets(char*& dst, const uint8_t*& src, signed left) in EncodeTriplets() argument 47 for (; left >= 3; left -= 3) { in EncodeTriplets() 52 return left; in EncodeTriplets() 55 inline void FillTriplet(uint8_t* dst, const uint8_t*& src, signed left) in FillTriplet() argument 57 switch (left) { in FillTriplet() 65 inline void EncodeTail(char* dst, const uint8_t* src, signed left) in EncodeTail() argument 86 signed left = static_cast<signed>(binaryData.size()); Base64Encode() local [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 42 DimensionUnit unit = DimensionUnit::CALC) : left_(CalcDimension(left, unit)), top_(CalcDimension(top, 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 48 : left_(AnimatableDimension(left, option)), top_(AnimatableDimension(top, option)), in Edge() 50 Edge(const CalcDimension& left, cons in Edge() argument 78 SetLeft(const AnimatableDimension& left) SetLeft() argument 83 SetLeft(const CalcDimension& left) SetLeft() argument 89 SetLeft(const Dimension& left) SetLeft() 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/window/window_manager/window_scene/screen_session_manager/src/ |
H A D | screen_session_dumper.cpp | 173 oss << std::left << "[" << tracker.formatTimestamp(info.timestamp).c_str() in DumpEventTracker() 183 oss << std::left << "[oldScbPid:] "; in DumpMultiUserInfo() member in OHOS::Rosen::std 188 oss << std::left << "[userId:] " << userId << std::endl; in DumpMultiUserInfo() 189 oss << std::left << "[ScbPid:] " << ScbPid << std::endl; in DumpMultiUserInfo() 198 oss << std::left << "[PID: " << pid << "]: " in DumpFreezedPidList() 261 oss << std::left << std::setw(LINE_WIDTH) << "FoldStatus: " in DumpFoldStatus() 276 oss << std::left << std::setw(LINE_WIDTH) << "TentMode: " in DumpTentMode() 290 oss << std::left << std::setw(LINE_WIDTH) << "Name: " in DumpScreenSessionById() 292 oss << std::left << std::setw(LINE_WIDTH) << "RSScreenId: " in DumpScreenSessionById() 296 oss << std::left << st in DumpScreenSessionById() [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/ |
H A D | wifi_hdi_common.c | 413 int left; in HdiConvertIe() local 445 left = (int)(wpaIeLen - sizeof(*hdr)); in HdiConvertIe() 447 if (left >= HDI_SELECTOR_LEN) { in HdiConvertIe() 450 left -= HDI_SELECTOR_LEN; in HdiConvertIe() 451 } else if (left > 0) { in HdiConvertIe() 452 LOGI("ie length mismatch, %{public}u too much", left); in HdiConvertIe() 456 if (left >= HDI_POS_SECOND) { in HdiConvertIe() 460 left -= HDI_POS_SECOND; in HdiConvertIe() 461 if (count == 0 || count > left / HDI_SELECTOR_LEN) { in HdiConvertIe() 462 LOGI("ie count botch (pairwise), count %{public}u left in HdiConvertIe() 504 int left; HdiConvertIeRsn() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | measure_property.h | 371 std::optional<T> left; member 380 left = padding; in SetEdges() 388 left = leftValue; in SetEdges() 396 return (left == value.left) && (right == value.right) && (top == value.top) && (bottom == value.bottom); in operator ==() 412 left = value.left; in UpdateWithCheck() 446 str.append("[").append(left.has_value() ? left->ToString() : "NA"); in ToString() 454 if (top == right && right == bottom && bottom == left) { in ToJsonString() 498 std::optional<float> left; global() member [all...] |
H A D | measure_utils.cpp | 111 auto left = ConvertToPx(padding.left, scaleProperty, percentReference); in ConvertToPaddingPropertyF() local 118 if (left.has_value()) { in ConvertToPaddingPropertyF() 119 left = floor(left.value()); in ConvertToPaddingPropertyF() 132 if (left.has_value()) { in ConvertToPaddingPropertyF() 133 left = std::max(left.value(), 0.0f); in ConvertToPaddingPropertyF() 145 return PaddingPropertyF { left, right, top, bottom }; in ConvertToPaddingPropertyF() 172 auto left in ConvertToBorderWidthPropertyF() local 197 auto left = ConvertToPx(padding.left, 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/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 in BlendLR() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkrect_fuzzer/ |
H A D | rect_fuzzer.cpp | 39 float left = GetObject<float>(); in RectFuzzTest000() local 43 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest000() 55 OH_Drawing_RectSetLeft(nullptr, left); in RectFuzzTest000() 56 OH_Drawing_RectSetLeft(rect, left); in RectFuzzTest000() 80 float left = 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/window/window_manager/dmserver/src/ |
H A D | display_dumper.cpp | 342 oss << std::left << std::setw(W_SCREEN_NAME) << screenName in GetScreenInfo() 343 << std::left << std::setw(W_SCREEN_TYPE) << screenType in GetScreenInfo() 344 << std::left << std::setw(W_GROUP_TYPE) << isGroup in GetScreenInfo() 345 << std::left << std::setw(W_DMS_ID) << screen->dmsId_ in GetScreenInfo() 346 << std::left << std::setw(W_RS_ID) << screen->rsId_ in GetScreenInfo() 347 << std::left << std::setw(W_ACTIVE_IDX) << screen->activeIdx_ in GetScreenInfo() 348 << std::left << std::setw(W_VIR_PIXEL_RATIO) << screen->virtualPixelRatio_ in GetScreenInfo() 349 << std::left << std::setw(W_SCREEN_ROTATION) << static_cast<uint32_t>(screen->rotation_) in GetScreenInfo() 350 << std::left << std::setw(W_ORIENTATION) << static_cast<uint32_t>(screen->orientation_) in GetScreenInfo() 351 << std::left << st in GetScreenInfo() [all...] |
/foundation/arkui/ui_lite/frameworks/layout/ |
H A D | grid_layout.cpp | 52 int16_t left; in LayoutHorizontal() local 67 left = child->GetStyle(STYLE_MARGIN_LEFT); in LayoutHorizontal() 72 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutHorizontal() 86 int16_t left; in LayoutVertical() local 101 left = child->GetStyle(STYLE_MARGIN_LEFT); in LayoutVertical() 106 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left; in LayoutVertical()
|
H A D | flex_layout.cpp | 101 int16_t left; in CalValidLength() local 111 left = child->GetStyle(STYLE_MARGIN_LEFT); in CalValidLength() 113 totalValidLength += (child->GetRelativeRect().GetWidth() + left + right); in CalValidLength() 129 int16_t left; in CalRowCount() local 136 left = child->GetStyle(STYLE_MARGIN_LEFT); in CalRowCount() 138 pos += left; in CalRowCount() 140 pos = left; in CalRowCount() 153 int16_t left; in GetRowMaxHeight() local 166 left = child->GetStyle(STYLE_MARGIN_LEFT); in GetRowMaxHeight() 170 pos += left; in GetRowMaxHeight() 189 int16_t left; GetRowsWidth() local 287 int16_t left = child->GetStyle(STYLE_MARGIN_LEFT); LayoutHorizontal() local 343 int16_t left; GetColumnMaxWidth() local 418 int16_t left = child->GetStyle(STYLE_MARGIN_LEFT); GetCrossAxisPosX() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_common.h | 60 float left;
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() 71 float l = left + dx;
in Inset() 78 left = l;
in Inset() 86 left += dx;
in Offset() 93 left = x;
in SetXYWH()
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/schedule/video_processor/video_job_repository/ |
H A D | video_job_queue.cpp | 103 uint32_t left = (index << 1) + 1; in Heapify() local 104 while (left < size_) { in Heapify() 105 uint32_t best = (left + 1 < size_ && comp_(heap_[left + 1], heap_[left])) ? left + 1 : left; in Heapify() 112 left = (index << 1) + 1; in Heapify()
|
/foundation/ability/ability_runtime/test/unittest/ability_extension_module_loader_test/ |
H A D | ability_extension_module_loader_test.cpp | 118 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local 119 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F() 133 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local 134 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F() 135 EXPECT_EQ(requestInfo->CreateJsWindowRect(nullptr, left, top, width, height), nullptr); in HWTEST_F() 148 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local 149 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F() 163 int32_t left = 0, top = 0, width = 0, height = 0; in HWTEST_F() local 164 auto requestInfo = std::make_shared<RequestInfo>(token, left, top, width, height); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | position_param.h | 35 std::pair<AnimatableDimension, bool> left = { AnimatableDimension(0.0, DimensionUnit::PX), false }; member 45 std::optional<Dimension> left; member 57 void SetLeft(const CalcDimension& left) in SetLeft() 59 this->left = left; in SetLeft() 74 return ((this->top == rhs.top) && (this->left == rhs.left) && (this->bottom == rhs.bottom) && in operator ==() 82 str.append("left: [").append(left.has_value() ? left in ToString() [all...] |
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | render_component.h | 80 virtual void SetLeft(const Dimension& left) in SetLeft() argument 82 positionParam_.left.first = AnimatableDimension(left); in SetLeft() 83 positionParam_.left.second = true; in SetLeft() 86 virtual void SetLeft(const AnimatableDimension& left) in SetLeft() argument 88 positionParam_.left.first = left; in SetLeft() 89 positionParam_.left.second = true; in SetLeft() 140 positionParam_.left.second = hasLeft; in SetHasLeft() 160 return positionParam_.left in GetLeft() [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() 69 this->left = left; in Rect() 77 if (!parcel.WriteInt32(left) || !parcel.WriteInt32(top) || 86 int32_t left = parcel.ReadInt32(); in Unmarshalling() local 90 auto rectPtr = new Rect(left, top, right, bottom); in Unmarshalling() 94 int32_t left = 0; member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_water_flow_sections.cpp | 24 std::optional<CalcDimension> left; in SetMarginProperty() local 28 JSViewAbstract::ParseMarginOrPaddingCorner(paddingObj, top, bottom, left, right); in SetMarginProperty() 46 if (left.has_value()) { in SetMarginProperty() 47 if (left.value().Unit() == DimensionUnit::CALC) { in SetMarginProperty() 48 margin.left = NG::CalcLength(left.value().CalcValue()); in SetMarginProperty() 50 margin.left = NG::CalcLength(left.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/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | string_util.h | 77 auto left = string; in Split() local 79 while (!left.empty()) { in Split() 80 auto const pos = left.find_first_of(delims); in Split() 82 auto found = left.substr(0, pos); in Split() 87 left.remove_prefix(pos + 1); in Split()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsgpuoverdrawcanvaslistener_fuzzer/ |
H A D | rsgpuoverdrawcanvaslistener_fuzzer.cpp | 94 float left = GetData<float>(); in DoRect() local 98 Drawing::Rect rect(left, right, top, bottom); in DoRect() 109 float left = GetData<float>(); in DoDrawRoundRect() local 113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect() 129 float left = GetData<float>(); in DoDrawNestedRoundRect() local 133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect() 139 left = GetData<float>(); in DoDrawNestedRoundRect() 143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect() 159 float left = GetData<float>(); in DoDrawArc() local 163 Drawing::Rect rect(left, righ in DoDrawArc() 178 float left = GetData<float>(); DoDrawPie() local 197 float left = GetData<float>(); DoDrawOval() local 331 float left = 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 | 94 float left = GetData<float>(); in DoRect() local 98 Drawing::Rect rect(left, right, top, bottom); in DoRect() 109 float left = GetData<float>(); in DoDrawRoundRect() local 113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect() 129 float left = GetData<float>(); in DoDrawNestedRoundRect() local 133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect() 139 left = GetData<float>(); in DoDrawNestedRoundRect() 143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect() 159 float left = GetData<float>(); in DoDrawArc() local 163 Drawing::Rect rect(left, righ in DoDrawArc() 178 float left = GetData<float>(); DoDrawPie() local 197 float left = GetData<float>(); DoDrawOval() local 344 float left = GetData<float>(); DoDrawImageRect() local [all...] |