Home
last modified time | relevance | path

Searched refs:itemSize (Results 1 – 25 of 63) sorted by relevance

123

/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/
H A Dlock_free_queue.c37 queue->itemSize = size; in LFQUE_Create()
66 uint32 copyLen = (queue->totalSize - queue->write < queue->itemSize) ? in LFQUE_Push()
67 (queue->totalSize - queue->write) : queue->itemSize; in LFQUE_Push()
73 copyLen = queue->itemSize - copyLen; in LFQUE_Push()
80 uint32 write = queue->write + queue->itemSize; in LFQUE_Push()
98 uint32 copyLen = (queue->totalSize - queue->read < queue->itemSize) ? in LFQUE_Pop()
99 (queue->totalSize - queue->read) : queue->itemSize; in LFQUE_Pop()
105 copyLen = queue->itemSize - copyLen; in LFQUE_Pop()
112 uint32 read = queue->read + queue->itemSize; in LFQUE_Pop()
H A Dlock_free_queue.h30 uint32 itemSize; member
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Ddympool.c21 DympoolType *DympCreatePool(int initSize, int maxSize, int itemSize, FILLP_BOOL autoExpand, in DympCreatePool() argument
25 if ((initSize <= 0) || (maxSize <= 0) || (itemSize <= 0)) { in DympCreatePool()
26 …LLP_LOGERR("Error to create pool initSize:%d,maxSize:%d,itemSize:%d", initSize, maxSize, itemSize); in DympCreatePool()
37 pool->itemSize = itemSize; in DympCreatePool()
59 maxSize, pool->currentSize, itemSize); in DympCreatePool()
94 int offset = (int)(pool->itemSize + ((int)sizeof(DympItemType))); in DympDestroyPool()
126 if (((FILLP_INT)((size_t)pool->itemSize + sizeof(DympItemType)) == 0) || in DympExpandMemory()
128 (FILLP_INT)((size_t)pool->itemSize + sizeof(DympItemType))) < stepSizeWork) { in DympExpandMemory()
132 …int askSize = (int)((size_t)stepSizeWork * ((size_t)pool->itemSize + sizeof(DympItemType)) + sizeo… in DympExpandMemory()
147 int offset = (int)(pool->itemSize + ((int)sizeof(DympItemType))); in DympExpandMemory()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_single_child_scroll.cpp101 bool RenderSingleChildScroll::CalculateMainScrollExtent(const Size& itemSize) in CalculateMainScrollExtent() argument
105 …mainScrollExtent_ = itemSize.Height() + NormalizeToPx(padding_.Top()) + NormalizeToPx(padding_.Bot… in CalculateMainScrollExtent()
110 …mainScrollExtent_ = itemSize.Width() + NormalizeToPx(padding_.Left()) + NormalizeToPx(padding_.Rig… in CalculateMainScrollExtent()
211 Size itemSize = child->GetLayoutSize(); in PerformLayout() local
214 layout.SetFixedSize(itemSize - paddingSize); in PerformLayout()
218 itemSize = child->GetLayoutSize(); in PerformLayout()
229 itemSize.SetWidth(itemSize.Width() + left); in PerformLayout()
230 itemSize.SetHeight(itemSize.Height() + top); in PerformLayout()
240 auto constrainSize = GetLayoutParam().Constrain(itemSize > viewPort_ ? viewPort_ : itemSize); in PerformLayout()
262 bool isScrollable = CalculateMainScrollExtent(itemSize); in PerformLayout()
H A Drender_multi_child_scroll.cpp94 Size itemSize; // Calculate all children layout size. in CalculateMainScrollExtent() local
96 itemSize += child->GetLayoutSize(); in CalculateMainScrollExtent()
102 mainScrollExtent_ = itemSize.Height() + paddingVertical + outBoundaryExtent_; in CalculateMainScrollExtent()
109 mainScrollExtent_ = itemSize.Width() + paddingHorizontal + outBoundaryExtent_; in CalculateMainScrollExtent()
801 Size itemSize = centerItem->GetLayoutSize(); in HandleRotate() local
804 threshold = itemSize.Height() * LIST_ITEMCENTER_ROTATION_THRESHOLD; in HandleRotate()
806 threshold = itemSize.Width() * LIST_ITEMCENTER_ROTATION_THRESHOLD; in HandleRotate()
905 double itemSize = 0.0; in GetFixPositionOnWatch() local
912 itemSize = listBase->GetItemPosition(centerIndex + 1) - itemPosition; in GetFixPositionOnWatch()
928 itemSize = GetMainSize(item->GetLayoutSize()); in GetFixPositionOnWatch()
[all …]
H A Drender_single_child_scroll.h39 bool CalculateMainScrollExtent(const Size& itemSize);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_paint_method.cpp57 auto itemSize = paintWrapper->GetGeometryNode()->GetFrameSize(); in GetOverlayDrawFunction() local
58 info.width = itemSize.Width(); in GetOverlayDrawFunction()
59 …strokeWidth = props->GetStrokeWidth().value_or(strokeWidth).ConvertToPxWithSize(itemSize.Height()); in GetOverlayDrawFunction()
60 ….startMargin = props->GetStartMargin().value_or(horInterval).ConvertToPxWithSize(itemSize.Width()); in GetOverlayDrawFunction()
61 …info.endMargin = props->GetEndMargin().value_or(horInterval).ConvertToPxWithSize(itemSize.Width()); in GetOverlayDrawFunction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Drosen_render_list_item.cpp324 Size itemSize = GetLayoutSize(); in PaintStickyEffectNoTransparent() local
325 if (NearZero(itemSize.Height()) || NearZero(itemSize.Width())) { in PaintStickyEffectNoTransparent()
358 Size itemSize = GetLayoutSize(); in PaintCurrentSticky() local
365 center.SetX((itemSize.Width() + offset.GetX()) / CENTER_POINT1); in PaintCurrentSticky()
366 center.SetY(itemSize.Height() + offset.GetY() - radius); in PaintCurrentSticky()
370 gray *= (-mainOffset) / itemSize.Height(); in PaintCurrentSticky()
380 Size itemSize = GetLayoutSize(); in PaintNextSticky() local
387 mainOffset = std::clamp(mainOffset, 0.0, itemSize.Height()); in PaintNextSticky()
392 uint8_t gray = GREY_END1 * (itemSize.Height() - mainOffset) / itemSize.Height(); in PaintNextSticky()
397 center.SetX((itemSize.Width() + offset.GetX()) / CENTER_POINT1); in PaintNextSticky()
[all …]
H A Dlist_item_group_element.cpp185 double itemSize = renderItemGroup_->GetMainSize(renderListItem->GetLayoutSize()); in MoveItemToViewPort() local
186 size_ = reverse ? size_ - itemSize : size_ + itemSize; in MoveItemToViewPort()
H A Drender_list_item.cpp147 … double itemSize = renderList->IsVertical() ? GetLayoutSize().Height() : GetLayoutSize().Width(); in CalculateScaleFactorOnWatch() local
148 … double itemCenter = GetPositionInList() + renderList->GetListPosition() + itemSize * HALF_SIZE; in CalculateScaleFactorOnWatch()
271 Size itemSize = GetLayoutSize(); in IsItemCenter() local
273 double size = isVertical ? itemSize.Height() : itemSize.Width(); in IsItemCenter()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_options.h25 bool operator==(const GridItemSize& itemSize) const
27 return (rows == itemSize.rows) && (columns == itemSize.columns);
/ohos5.0/foundation/ability/idl_tool/test/unittest/cacheable_test/
H A Dcacheable_common.h35 const int itemSize = strlen(args[i]); in ParameterArgv() local
36 argv_[i] = new char[itemSize + 1] {0}; in ParameterArgv()
37 if (strcpy_s(argv_[i], itemSize + 1, args[i]) != ERR_OK) { in ParameterArgv()
/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_default_rule_parser.cpp91 uint32_t itemSize = cJSON_GetArraySize(ips); in ParseIpList() local
92 for (uint32_t i = 0; i < itemSize; i++) { in ParseIpList()
108 uint32_t itemSize = cJSON_GetArraySize(prot); in ParsePortList() local
109 for (uint32_t i = 0; i < itemSize; i++) { in ParsePortList()
125 uint32_t itemSize = cJSON_GetArraySize(domain); in ParseDomainList() local
126 for (uint32_t i = 0; i < itemSize; i++) { in ParseDomainList()
253 uint32_t itemSize = cJSON_GetArraySize(defaultRules); in GetDefaultRules() local
254 for (uint32_t i = 0; i < itemSize; i++) { in GetDefaultRules()
/ohos5.0/foundation/multimodalinput/input/test/fuzztest/updatedisplayinfo_fuzzer/
H A Dupdatedisplayinfo_fuzzer.cpp45 size_t GetString(const uint8_t *data, size_t size, char *object, size_t itemSize) in GetString() argument
47 if (itemSize > size) { in GetString()
50 errno_t ret = memcpy_s(&object, itemSize, data, itemSize); in GetString()
54 return itemSize; in GetString()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_irregular_filler.cpp209 const auto itemSize = GridLayoutUtils::GetItemSize(info_, wrapper_, itemIdx); in MeasureItem() local
211 for (int32_t i = 0; i < itemSize.columns; ++i) { in MeasureItem()
214 crossLen += params.crossGap * (itemSize.columns - 1); in MeasureItem()
225 SetItemInfo(itemIdx, row, col, itemSize); in MeasureItem()
229 float heightPerRow = (childHeight - (params.mainGap * (itemSize.rows - 1))) / itemSize.rows; in MeasureItem()
230 for (int32_t i = 0; i < itemSize.rows; ++i) { in MeasureItem()
/ohos5.0/foundation/ability/idl_tool/test/rust/common/
H A Didl_common.h139 const int itemSize = strlen(args[i]); in ParameterArgv() local
140 argv_[i] = new char[itemSize + 1] {0}; in ParameterArgv()
141 if (strcpy_s(argv_[i], itemSize + 1, args[i])) { in ParameterArgv()
/ohos5.0/foundation/ability/idl_tool/test/ts/common/
H A Didl_common.h139 const int itemSize = strlen(args[i]); in ParameterArgv() local
140 argv_[i] = new char[itemSize + 1] {0}; in ParameterArgv()
141 if (strcpy_s(argv_[i], itemSize + 1, args[i])) { in ParameterArgv()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Ddympool.h54 int itemSize; /* Size of every memory item size */ member
63 DympoolType *DympCreatePool(int initSize, int maxSize, int itemSize, FILLP_BOOL autoExpand,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/
H A Dwater_flow_layout_info_sw.cpp279 float itemSize = 0.0f; in CalcTargetPosition() local
287 itemSize = it->mainSize; in CalcTargetPosition()
292 itemSize = lane->items_.back().mainSize; in CalcTargetPosition()
293 pos = lane->endPos - itemSize; in CalcTargetPosition()
299 pos = pos - lastMainSize_ + itemSize; in CalcTargetPosition()
304 } else if (GreatNotEqual(pos + itemSize, lastMainSize_)) { in CalcTargetPosition()
305 pos = pos - lastMainSize_ + itemSize; in CalcTargetPosition()
311 pos = pos - (lastMainSize_ - itemSize) / 2.0f; in CalcTargetPosition()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Dindexer_item_component.h37 …ponent(const std::u16string& strSection, const std::u16string& strLabel, const Dimension& itemSize,
39 : strSection_(strSection), strLabel_(strLabel), itemSize_(itemSize), rotate_(rotate)
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Dindexer_item_component.h44 …ponent(const std::u16string& strSection, const std::u16string& strLabel, const Dimension& itemSize,
46 …: strSection_(strSection), strLabel_(strLabel), itemSize_(itemSize), circleMode_(circleMode), rota…
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/permissionmanager/
H A Dpermission_manager.cpp245 int32_t itemSize = static_cast<int32_t>(cJSON_GetArraySize(item)); in SetPermissionMap() local
246 if (!cJSON_IsArray(item) || itemSize == 0 || itemSize > MAX_INTERFACE_SIZE) { in SetPermissionMap()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
H A Dindexer_model_ng.cpp142 void IndexerModelNG::SetItemSize(const Dimension& itemSize) in SetItemSize() argument
144 auto itemSizeValue = itemSize.Value(); in SetItemSize()
146 ACE_UPDATE_LAYOUT_PROPERTY(IndexerLayoutProperty, ItemSize, itemSize); in SetItemSize()
559 void IndexerModelNG::SetItemSize(FrameNode* frameNode, const Dimension& itemSize) in SetItemSize() argument
561 auto itemSizeValue = itemSize.Value(); in SetItemSize()
563 ACE_UPDATE_NODE_LAYOUT_PROPERTY(IndexerLayoutProperty, ItemSize, itemSize, frameNode); in SetItemSize()
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/
H A Ddevice_profile_storage_manager.cpp520 size_t itemSize = profileItems_.size(); in FlushProfileItems() local
521 HILOGI("profile item size = %{public}zu", itemSize); in FlushProfileItems()
522 if (itemSize == 0) { in FlushProfileItems()
525 keys.reserve(itemSize); in FlushProfileItems()
526 values.reserve(itemSize); in FlushProfileItems()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_indexer.cpp319 CalcDimension itemSize; in SetItemSize() local
320 if (ParseJsDimensionVp(args[0], itemSize) && GreatNotEqual(itemSize.Value(), 0.0) && in SetItemSize()
321 itemSize.Unit() != DimensionUnit::PERCENT) { in SetItemSize()
322 IndexerModel::GetInstance()->SetItemSize(itemSize); in SetItemSize()

123