/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 40 bottom_(Dimension(bottom, 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, const CalcDimension& bottom, in Edge() argument 140 SetBottom(const AnimatableDimension& bottom) SetBottom() argument 145 SetBottom(const CalcDimension& bottom) SetBottom() argument 150 SetBottom(const Dimension& bottom) SetBottom() 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...] |
/kernel/linux/linux-5.10/arch/x86/um/os-Linux/ |
H A D | task_size.c | 71 unsigned long bottom = 0; in os_get_top_address() local 83 printf("Locating the bottom of the address space ... "); in os_get_top_address() 98 /* Manually scan the address space, bottom-up, until we find in os_get_top_address() 101 for (bottom = 0; bottom < top; bottom++) { in os_get_top_address() 102 if (page_ok(bottom)) in os_get_top_address() 107 if (bottom == top) { in os_get_top_address() 108 fprintf(stderr, "Unable to determine bottom of address " in os_get_top_address() 113 printf("0x%lx\n", bottom << UM_KERN_PAGE_SHIF in os_get_top_address() [all...] |
/kernel/linux/linux-6.6/arch/x86/um/os-Linux/ |
H A D | task_size.c | 71 unsigned long bottom = 0; in os_get_top_address() local 83 printf("Locating the bottom of the address space ... "); in os_get_top_address() 98 /* Manually scan the address space, bottom-up, until we find in os_get_top_address() 101 for (bottom = 0; bottom < top; bottom++) { in os_get_top_address() 102 if (page_ok(bottom)) in os_get_top_address() 107 if (bottom == top) { in os_get_top_address() 108 fprintf(stderr, "Unable to determine bottom of address " in os_get_top_address() 113 printf("0x%lx\n", bottom << UM_KERN_PAGE_SHIF in os_get_top_address() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | measure_property.h | 374 std::optional<T> bottom; member 383 bottom = padding; in SetEdges() 391 bottom = bottomValue; in SetEdges() 396 return (left == value.left) && (right == value.right) && (top == value.top) && (bottom == value.bottom); in operator ==() 415 bottom = value.bottom; in UpdateWithCheck() 436 if (value.bottom.has_value() && bottom != value.bottom) { in UpdateLocalizedPadding() 501 std::optional<float> bottom; global() member [all...] |
H A D | measure_utils.cpp | 114 auto bottom = ConvertToPx(padding.bottom, scaleProperty, percentReference); in ConvertToPaddingPropertyF() local 127 if (bottom.has_value()) { in ConvertToPaddingPropertyF() 128 bottom = floor(bottom.value()); in ConvertToPaddingPropertyF() 141 if (bottom.has_value()) { in ConvertToPaddingPropertyF() 142 bottom = std::max(bottom.value(), 0.0f); in ConvertToPaddingPropertyF() 145 return PaddingPropertyF { left, right, top, bottom }; in ConvertToPaddingPropertyF() 175 auto bottom in ConvertToBorderWidthPropertyF() local 200 auto bottom = ConvertToPx(padding.bottom, scaleProperty, selfSize.Height()); 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/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | path_layout_algorithm.cpp | 52 auto bottom = skRect.bottom(); in MeasureContent() local 59 auto bottom = rect.GetBottom(); in MeasureContent() local 61 if (NearZero(right) && NearZero(bottom)) { in MeasureContent() 68 if (NearZero(bottom)) { in MeasureContent() 69 bottom += lineWidth; in MeasureContent() 71 return SizeF(right, bottom); in MeasureContent()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkrect_fuzzer/ |
H A D | rect_fuzzer.cpp | 42 float bottom = GetObject<float>(); in RectFuzzTest000() local 43 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest000() 50 OH_Drawing_RectSetBottom(nullptr, bottom); in RectFuzzTest000() 51 OH_Drawing_RectSetBottom(rect, bottom); in RectFuzzTest000() 83 float bottom = 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/arkui/ui_lite/frameworks/layout/ |
H A D | flex_layout.cpp | 104 int16_t bottom; in CalValidLength() local 116 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in CalValidLength() 117 totalValidLength += (child->GetRelativeRect().GetHeight() + top + bottom); in CalValidLength() 156 int16_t bottom; in GetRowMaxHeight() local 169 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in GetRowMaxHeight() 177 height = MATH_MAX(height, child->GetRelativeRect().GetHeight() + top + bottom); in GetRowMaxHeight() 231 int16_t bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in GetCrossAxisPosY() local 242 posY = GetHeight() - child->GetRelativeRect().GetHeight() - bottom - offset; in GetCrossAxisPosY() 251 posY = (GetHeight() - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top + offset; // 2: half in GetCrossAxisPosY() 320 int16_t bottom; in CalColumnCount() local 345 int16_t bottom; GetColumnMaxWidth() local 378 int16_t bottom; GetColumnsHeight() local 476 int16_t bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); LayoutVertical() local [all...] |
H A D | grid_layout.cpp | 55 int16_t bottom; in LayoutHorizontal() local 70 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in LayoutHorizontal() 74 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutHorizontal() 89 int16_t bottom; in LayoutVertical() local 104 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM); in LayoutVertical() 108 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutVertical()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_common.h | 63 float bottom;
member 64 bool Contains(float x, float y) const { return x >= left && x < right && y >= top && y < bottom; }
in Contains() 66 float Height(){ return (bottom - top); }
in Height() 68 float CenterY(){ return (bottom - top) / 2; } // 2 for mid
in CenterY() 74 float b = bottom - dy;
in Inset() 81 bottom = b;
in Inset() 89 bottom += dy;
in Offset() 96 bottom = y + height;
in SetXYWH()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | render_component.h | 126 virtual void SetBottom(const Dimension& bottom) in SetBottom() argument 128 positionParam_.bottom.first = bottom; in SetBottom() 129 positionParam_.bottom.second = true; in SetBottom() 132 virtual void SetBottom(const AnimatableDimension& bottom) in SetBottom() argument 134 positionParam_.bottom.first = AnimatableDimension(bottom); in SetBottom() 135 positionParam_.bottom.second = true; in SetBottom() 155 positionParam_.bottom.second = hasBottom; in SetHasBottom() 175 return positionParam_.bottom in GetBottom() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | position_param.h | 38 std::pair<AnimatableDimension, bool> bottom = { AnimatableDimension(0.0, DimensionUnit::PX), false }; member 46 std::optional<Dimension> bottom; member 62 void SetBottom(const CalcDimension& bottom) in SetBottom() 64 this->bottom = bottom; in SetBottom() 74 return ((this->top == rhs.top) && (this->left == rhs.left) && (this->bottom == rhs.bottom) && in operator ==() 84 str.append("bottom: [").append(bottom.has_value() ? bottom in ToString() [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
H A D | lcd_dma.c | 132 unsigned long top, bottom; in set_b1_regs() local 168 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs() 169 /* 1510 DMA requires the bottom address to be 2 more in set_b1_regs() 173 bottom += 2; in set_b1_regs() 178 bottom = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs() 188 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() 193 bottom = PIXADDR(0, 0); in set_b1_regs() 203 bottom = PIXADDR(0, 0); in set_b1_regs() 208 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() 218 bottom in set_b1_regs() [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/omap/ |
H A D | lcd_dma.c | 135 unsigned long top, bottom; in set_b1_regs() local 171 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs() 172 /* 1510 DMA requires the bottom address to be 2 more in set_b1_regs() 176 bottom += 2; in set_b1_regs() 181 bottom = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs() 191 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() 196 bottom = PIXADDR(0, 0); in set_b1_regs() 206 bottom = PIXADDR(0, 0); in set_b1_regs() 211 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() 221 bottom in set_b1_regs() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 92 drawable->self_bitmap_area.bottom = 0; in make_drawable() 137 int left, right, top, bottom; in qxl_draw_dirty_fb() local 161 bottom = clips->y2; in qxl_draw_dirty_fb() 169 bottom = max_t(int, bottom, (int)clips_ptr->y2); in qxl_draw_dirty_fb() 173 height = bottom - top; in qxl_draw_dirty_fb() 193 drawable_rect.bottom = bottom; in qxl_draw_dirty_fb() 223 drawable->u.copy.src_area.bottom = height; in qxl_draw_dirty_fb() 242 rects[i].bottom in qxl_draw_dirty_fb() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsgpuoverdrawcanvaslistener_fuzzer/ |
H A D | rsgpuoverdrawcanvaslistener_fuzzer.cpp | 97 float bottom = GetData<float>(); in DoRect() local 98 Drawing::Rect rect(left, right, top, bottom); in DoRect() 112 float bottom = GetData<float>(); in DoDrawRoundRect() local 113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect() 132 float bottom = GetData<float>(); in DoDrawNestedRoundRect() local 133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect() 142 bottom = GetData<float>(); in DoDrawNestedRoundRect() 143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect() 162 float bottom = GetData<float>(); in DoDrawArc() local 163 Drawing::Rect rect(left, right, top, bottom); in DoDrawArc() 181 float bottom = GetData<float>(); DoDrawPie() local 200 float bottom = GetData<float>(); DoDrawOval() local 334 float bottom = 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 | 97 float bottom = GetData<float>(); in DoRect() local 98 Drawing::Rect rect(left, right, top, bottom); in DoRect() 112 float bottom = GetData<float>(); in DoDrawRoundRect() local 113 Drawing::Rect rect(left, right, top, bottom); in DoDrawRoundRect() 132 float bottom = GetData<float>(); in DoDrawNestedRoundRect() local 133 Drawing::Rect rect(left, right, top, bottom); in DoDrawNestedRoundRect() 142 bottom = GetData<float>(); in DoDrawNestedRoundRect() 143 Drawing::Rect rectInner(left, right, top, bottom); in DoDrawNestedRoundRect() 162 float bottom = GetData<float>(); in DoDrawArc() local 163 Drawing::Rect rect(left, right, top, bottom); in DoDrawArc() 181 float bottom = GetData<float>(); DoDrawPie() local 200 float bottom = GetData<float>(); DoDrawOval() local 347 float bottom = GetData<float>(); DoDrawImageRect() local [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() 72 this->bottom = bottom; in Rect() 78 !parcel.WriteInt32(right) || !parcel.WriteInt32(bottom)) { 89 int32_t bottom = parcel.ReadInt32(); in Unmarshalling() local 90 auto rectPtr = new Rect(left, top, right, bottom); in Unmarshalling() 97 int32_t bottom = 0; member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_water_flow_sections.cpp | 27 std::optional<CalcDimension> bottom; in SetMarginProperty() local 28 JSViewAbstract::ParseMarginOrPaddingCorner(paddingObj, top, bottom, left, right); in SetMarginProperty() 38 if (bottom.has_value()) { in SetMarginProperty() 39 if (bottom.value().Unit() == DimensionUnit::CALC) { in SetMarginProperty() 40 margin.bottom = NG::CalcLength(bottom.value().CalcValue()); in SetMarginProperty() 42 margin.bottom = NG::CalcLength(bottom.value()); in SetMarginProperty()
|
/foundation/window/window_manager/utils/src/ |
H A D | cutout_info.cpp | 39 parcel.WriteInt32(waterfallDisplayAreaRects_.bottom.posX_) && in Marshalling() 40 parcel.WriteInt32(waterfallDisplayAreaRects_.bottom.posY_) && in Marshalling() 41 parcel.WriteUint32(waterfallDisplayAreaRects_.bottom.width_) && in Marshalling() 42 parcel.WriteUint32(waterfallDisplayAreaRects_.bottom.height_) && in Marshalling() 112 parcel.ReadInt32(waterfallDisplayAreaRects.bottom.posX_) && in ReadWaterfallDisplayAreaRects() 113 parcel.ReadInt32(waterfallDisplayAreaRects.bottom.posY_) && in ReadWaterfallDisplayAreaRects() 114 parcel.ReadUint32(waterfallDisplayAreaRects.bottom.width_) && in ReadWaterfallDisplayAreaRects() 115 parcel.ReadUint32(waterfallDisplayAreaRects.bottom.height_))) { in ReadWaterfallDisplayAreaRects()
|
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
H A D | bttv-risc.c | 460 if (NULL != btv->curr.bottom) btv->cap_ctl |= 0x01; in bttv_set_dma() 472 btv->cvbi ? (unsigned long long)btv->cvbi->bottom.dma : 0, in bttv_set_dma() 473 btv->curr.bottom ? (unsigned long long)btv->curr.bottom->bottom.dma : 0); in bttv_set_dma() 530 /* bottom field */ in bttv_risc_init_main() 579 btcx_riscmem_free(btv->c.pci,&buf->bottom); in bttv_dma_free() 589 struct btcx_riscmem *bottom; in bttv_buffer_activate_vbi() local 594 bottom = NULL; in bttv_buffer_activate_vbi() 625 bottom in bttv_buffer_activate_vbi() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/ |
H A D | bttv-risc.c | 386 if (btv->curr.top || btv->curr.bottom) in bttv_set_capture_control() 437 btv->cvbi ? (unsigned long long)btv->cvbi->bottom.dma : 0, in bttv_set_dma() 438 btv->curr.bottom ? (unsigned long long)btv->curr.bottom->bottom.dma : 0); in bttv_set_dma() 467 /* bottom field */ in bttv_risc_init_main() 537 r = bttv_risc_packed(btv, &buf->bottom, list, offset, bpl, in bttv_buffer_risc_vbi() 558 struct btcx_riscmem *bottom; in bttv_buffer_activate_vbi() local 563 bottom = NULL; in bttv_buffer_activate_vbi() 593 bottom in bttv_buffer_activate_vbi() [all...] |
/kernel/linux/linux-5.10/drivers/s390/scsi/ |
H A D | zfcp_fsf.c | 394 (unsigned long long)qtcb->bottom.support.req_handle); in zfcp_fsf_protstatus_eval() 520 struct fsf_qtcb_bottom_config *bottom = &req->qtcb->bottom.config; in zfcp_fsf_exchange_config_evaluate() local 525 plogi = (struct fc_els_flogi *) ((u8 *)&bottom->plogi_payload in zfcp_fsf_exchange_config_evaluate() 529 memcpy(req->data, bottom, sizeof(*bottom)); in zfcp_fsf_exchange_config_evaluate() 531 adapter->timer_ticks = bottom->timer_interval & ZFCP_FSF_TIMER_INT_MASK; in zfcp_fsf_exchange_config_evaluate() 532 adapter->stat_read_buf_num = max(bottom->status_read_buf_num, in zfcp_fsf_exchange_config_evaluate() 540 adapter->hydra_version = bottom->adapter_type; in zfcp_fsf_exchange_config_evaluate() 542 switch (bottom in zfcp_fsf_exchange_config_evaluate() 568 struct fsf_qtcb_bottom_config *bottom = &qtcb->bottom.config; zfcp_fsf_exchange_config_data_handler() local 737 struct fsf_qtcb_bottom_port *bottom = &req->qtcb->bottom.port; zfcp_fsf_exchange_port_evaluate() local 755 struct fsf_qtcb_bottom_port *bottom = &qtcb->bottom.port; zfcp_fsf_exchange_port_data_handler() local 1679 struct fsf_qtcb_bottom_support *bottom = &req->qtcb->bottom.support; zfcp_fsf_open_port_handler() local [all...] |
/kernel/linux/linux-6.6/drivers/s390/scsi/ |
H A D | zfcp_fsf.c | 413 (unsigned long long)qtcb->bottom.support.req_handle); in zfcp_fsf_protstatus_eval() 539 struct fsf_qtcb_bottom_config *bottom = &req->qtcb->bottom.config; in zfcp_fsf_exchange_config_evaluate() local 544 plogi = (struct fc_els_flogi *) ((u8 *)&bottom->plogi_payload in zfcp_fsf_exchange_config_evaluate() 548 memcpy(req->data, bottom, sizeof(*bottom)); in zfcp_fsf_exchange_config_evaluate() 550 adapter->timer_ticks = bottom->timer_interval & ZFCP_FSF_TIMER_INT_MASK; in zfcp_fsf_exchange_config_evaluate() 551 adapter->stat_read_buf_num = max(bottom->status_read_buf_num, in zfcp_fsf_exchange_config_evaluate() 559 adapter->hydra_version = bottom->adapter_type; in zfcp_fsf_exchange_config_evaluate() 561 switch (bottom in zfcp_fsf_exchange_config_evaluate() 587 struct fsf_qtcb_bottom_config *bottom = &qtcb->bottom.config; zfcp_fsf_exchange_config_data_handler() local 756 struct fsf_qtcb_bottom_port *bottom = &req->qtcb->bottom.port; zfcp_fsf_exchange_port_evaluate() local 774 struct fsf_qtcb_bottom_port *bottom = &qtcb->bottom.port; zfcp_fsf_exchange_port_data_handler() local 1700 struct fsf_qtcb_bottom_support *bottom = &req->qtcb->bottom.support; zfcp_fsf_open_port_handler() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 97 drawable->self_bitmap_area.bottom = 0; in make_drawable() 142 int left, right, top, bottom; in qxl_draw_dirty_fb() local 167 bottom = clips->y2; in qxl_draw_dirty_fb() 175 bottom = max_t(int, bottom, (int)clips_ptr->y2); in qxl_draw_dirty_fb() 179 height = bottom - top; in qxl_draw_dirty_fb() 199 drawable_rect.bottom = bottom; in qxl_draw_dirty_fb() 230 drawable->u.copy.src_area.bottom = height; in qxl_draw_dirty_fb() 249 rects[i].bottom in qxl_draw_dirty_fb() [all...] |