/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/ |
H A D | lock_free_queue.c | 37 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 D | lock_free_queue.h | 30 uint32 itemSize;
member
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | dympool.c | 21 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 FILLP_LOGERR("Error to create pool initSize:%d,maxSize:%d,itemSize:%d", initSize, maxSize, itemSize); in DympCreatePool() 37 pool->itemSize = itemSize; in DympCreatePool() 58 FILLP_LOGINF("Create pool success, maxSize:%d, currentSize:%d, itemSize:%d", 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 in DympExpandMemory() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_single_child_scroll.cpp | 101 bool RenderSingleChildScroll::CalculateMainScrollExtent(const Size& itemSize) in CalculateMainScrollExtent() argument 105 mainScrollExtent_ = itemSize.Height() + NormalizeToPx(padding_.Top()) + NormalizeToPx(padding_.Bottom()); in CalculateMainScrollExtent() 110 mainScrollExtent_ = itemSize.Width() + NormalizeToPx(padding_.Left()) + NormalizeToPx(padding_.Right()); 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 in PerformLayout() [all...] |
H A D | render_multi_child_scroll.cpp | 94 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 in GetFixPositionOnWatch() [all...] |
H A D | render_single_child_scroll.h | 39 bool CalculateMainScrollExtent(const Size& itemSize);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/ |
H A D | menu_item_paint_method.cpp | 53 auto itemSize = paintWrapper->GetGeometryNode()->GetFrameSize(); in GetOverlayDrawFunction() local 54 info.width = itemSize.Width(); in GetOverlayDrawFunction() 55 info.strokeWidth = props->GetStrokeWidth().value_or(strokeWidth).ConvertToPxWithSize(itemSize.Height()); in GetOverlayDrawFunction() 56 info.startMargin = props->GetStartMargin().value_or(horInterval).ConvertToPxWithSize(itemSize.Width()); in GetOverlayDrawFunction() 57 info.endMargin = props->GetEndMargin().value_or(horInterval).ConvertToPxWithSize(itemSize.Width()); in GetOverlayDrawFunction()
|
/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | rosen_render_list_item.cpp | 324 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() 389 radius = radius + (RADIUS_START - radius) * pow(mainOffset / itemSize in PaintNextSticky() [all...] |
H A D | list_item_group_element.cpp | 185 double itemSize = renderItemGroup_->GetMainSize(renderListItem->GetLayoutSize()); in MoveItemToViewPort() local 186 size_ = reverse ? size_ - itemSize : size_ + itemSize; in MoveItemToViewPort()
|
H A D | render_list_item.cpp | 147 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()
|
/foundation/ability/idl_tool/test/unittest/cacheable_test/ |
H A D | cacheable_common.h | 35 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()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_layout_options.h | 25 bool operator==(const GridItemSize& itemSize) const in operator ==() 27 return (rows == itemSize.rows) && (columns == itemSize.columns); in operator ==()
|
/foundation/multimodalinput/input/test/fuzztest/updatedisplayinfo_fuzzer/ |
H A D | updatedisplayinfo_fuzzer.cpp | 45 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()
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/ |
H A D | dympool.h | 54 int itemSize; /* Size of every memory item size */ member 63 DympoolType *DympCreatePool(int initSize, int maxSize, int itemSize, FILLP_BOOL autoExpand,
|
/foundation/ability/idl_tool/test/ts/common/ |
H A D | idl_common.h | 139 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()
|
/foundation/ability/idl_tool/test/rust/common/ |
H A D | idl_common.h | 139 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()
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_default_rule_parser.cpp | 91 int itemSize = cJSON_GetArraySize(ips); in ParseIpList() local 92 for (int i = 0; i < itemSize; i++) { in ParseIpList() 108 int itemSize = cJSON_GetArraySize(prot); in ParsePortList() local 109 for (int i = 0; i < itemSize; i++) { in ParsePortList() 125 int itemSize = cJSON_GetArraySize(domain); in ParseDomainList() local 126 for (int i = 0; i < itemSize; i++) { in ParseDomainList() 248 int itemSize = cJSON_GetArraySize(defaultRules); in GetDefaultRules() local 249 for (int i = 0; i < itemSize; i++) { in GetDefaultRules()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | indexer_item_component.h | 37 IndexerItemComponent(const std::u16string& strSection, const std::u16string& strLabel, const Dimension& itemSize, in IndexerItemComponent() argument 39 : strSection_(strSection), strLabel_(strLabel), itemSize_(itemSize), rotate_(rotate) in IndexerItemComponent()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/ |
H A D | menu_patternMore_test_ng.cpp | 86 SizeF itemSize = SizeF(0.0f, 0.0f), std::optional<MenuPreviewAnimationOptions> scaleOptions = std::nullopt); 151 SizeF itemSize, std::optional<MenuPreviewAnimationOptions> scaleOptions) in GetPreviewMenuWrapper() 162 if (!(LessOrEqual(itemSize.Width(), 0.0) || LessOrEqual(itemSize.Height(), 0.0))) { in GetPreviewMenuWrapper() 165 itemGeometryNode->SetFrameSize(itemSize); in GetPreviewMenuWrapper() 150 GetPreviewMenuWrapper( SizeF itemSize, std::optional<MenuPreviewAnimationOptions> scaleOptions) GetPreviewMenuWrapper() argument
|
H A D | menuitem_testone_ng.cpp | 98 SizeF itemSize = SizeF(0.0f, 0.0f), std::optional<MenuPreviewAnimationOptions> scaleOptions = std::nullopt); 125 SizeF itemSize, std::optional<MenuPreviewAnimationOptions> scaleOptions) in GetPreviewMenuWrapper() 136 if (!(LessOrEqual(itemSize.Width(), 0.0) || LessOrEqual(itemSize.Height(), 0.0))) { in GetPreviewMenuWrapper() 139 itemGeometryNode->SetFrameSize(itemSize); in GetPreviewMenuWrapper() 124 GetPreviewMenuWrapper( SizeF itemSize, std::optional<MenuPreviewAnimationOptions> scaleOptions) GetPreviewMenuWrapper() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/ |
H A D | grid_irregular_filler.cpp | 205 const auto itemSize = GridLayoutUtils::GetItemSize(info_, wrapper_, itemIdx); in MeasureItem() local 207 for (int32_t i = 0; i < itemSize.columns; ++i) { in MeasureItem() 210 crossLen += params.crossGap * (itemSize.columns - 1); in MeasureItem() 221 SetItemInfo(itemIdx, row, col, itemSize); in MeasureItem() 225 float heightPerRow = (childHeight - (params.mainGap * (itemSize.rows - 1))) / itemSize.rows; in MeasureItem() 226 for (int32_t i = 0; i < itemSize.rows; ++i) { in MeasureItem()
|
/foundation/arkui/ace_engine/frameworks/core/components/indexer/ |
H A D | indexer_item_component.h | 44 IndexerItemComponent(const std::u16string& strSection, const std::u16string& strLabel, const Dimension& itemSize, in IndexerItemComponent() argument 46 : strSection_(strSection), strLabel_(strLabel), itemSize_(itemSize), circleMode_(circleMode), rotate_(rotate) in IndexerItemComponent()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/ |
H A D | water_flow_layout_info_sw.cpp | 267 float itemSize = 0.0f; 272 itemSize = it->mainSize; 274 itemSize = lane.items_.back().mainSize; 275 pos = lane.endPos - itemSize; 281 pos = pos - lastMainSize_ + itemSize; 286 } else if (GreatNotEqual(pos + itemSize, lastMainSize_)) { 287 pos = pos - lastMainSize_ + itemSize; 293 pos = pos - (lastMainSize_ - itemSize) / 2.0f;
|
/foundation/deviceprofile/device_info_manager/services/core/src/permissionmanager/ |
H A D | permission_manager.cpp | 245 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()
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/ |
H A D | device_profile_storage_manager.cpp | 529 size_t itemSize = profileItems_.size(); in FlushProfileItems() local 530 HILOGI("profile item size = %{public}zu", itemSize); in FlushProfileItems() 531 if (itemSize == 0) { in FlushProfileItems() 534 keys.reserve(itemSize); in FlushProfileItems() 535 values.reserve(itemSize); in FlushProfileItems()
|