Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 1513) sorted by relevance

12345678910>>...61

/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
Dskiplist.c34 static FILLP_INT SkiplistRandomLevel(struct SkipList *list) in SkiplistRandomLevel() argument
38 …while ((list->randomLev[(list->randomIndex++) & (MAX_RANDOM_LEV - 1)]) && (k < MAX_SKIPLIST_LEVEL)… in SkiplistRandomLevel()
56 FILLP_INT SkiplistInit(struct SkipList *list, funcSkiplistCompair cmp) in SkiplistInit() argument
61 if (list == FILLP_NULL_PTR) { in SkiplistInit()
66 list->level = 0; in SkiplistInit()
67 list->head = FILLP_NULL_PTR; in SkiplistInit()
68 list->tail = FILLP_NULL_PTR; in SkiplistInit()
69 (void)memset_s(list->hnode, sizeof(list->hnode), 0, sizeof(list->hnode)); in SkiplistInit()
70 (void)memset_s(list->tnode, sizeof(list->tnode), 0, sizeof(list->tnode)); in SkiplistInit()
71 list->nodeNum = 0; in SkiplistInit()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
Dlist.c23 List *list; // Used in func ListGetNextNode, might de deleted in future version. member
33 static ListNode *ListGetFirstNodeInt(const List *list) in ListGetFirstNodeInt() argument
35 ASSERT(list); in ListGetFirstNodeInt()
36 if (list->len == 0) { in ListGetFirstNodeInt()
40 return DL_LIST_ENTRY(list->dlList.pstNext, ListNode, node); in ListGetFirstNodeInt()
53 NO_SANITIZE("cfi") static ListNode *ListFreeNode(List *list, ListNode *node) in ListFreeNode() argument
55 ASSERT(list); in ListFreeNode()
59 if (list->cb) { in ListFreeNode()
60 list->cb(node->data); in ListFreeNode()
63 list->len--; in ListFreeNode()
[all …]
/foundation/communication/dsoftbus/core/common/include/
Dcommon_list.h34 __attribute__((always_inline)) static inline void ListInit(ListNode *list) in ListInit() argument
36 list->next = list; in ListInit()
37 list->prev = list; in ListInit()
47 __attribute__((always_inline)) static inline void ListAdd(ListNode *list, ListNode *node) in ListAdd() argument
49 node->next = list->next; in ListAdd()
50 node->prev = list; in ListAdd()
51 list->next->prev = node; in ListAdd()
52 list->next = node; in ListAdd()
56 __attribute__((always_inline)) static inline void ListTailInsert(ListNode *list, ListNode *node) in ListTailInsert() argument
58 ListAdd(list->prev, node); in ListTailInsert()
[all …]
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
Dhlist.h26 void *list; member
44 (node)->list = FILLP_NULL_PTR; \
49 #define HLIST_EMPTY(list) (!((list)->size)) argument
54 #define HLIST_FOREACH_SAFE(_pos, _next, list) \ argument
55 …for ((_pos) = HLIST_FIRST(list); ((_pos) != FILLP_NULL_PTR) && ((_next) = (_pos)->next, FILLP_TRUE…
61 static __inline void HlistDelete(struct Hlist *list, struct HlistNode *n);
62 static void HlistAddAfter(struct Hlist *list, struct HlistNode *prev, struct HlistNode *toBeAdded);
64 static struct HlistNode *HlistPopHead(struct Hlist *list);
66 static void HlistAddTail(struct Hlist *list, struct HlistNode *node);
67 static void HlistAddHead(struct Hlist *list, struct HlistNode *node);
[all …]
Dskiplist.h64 static __inline struct SkipListNode *SkipListGetPop(struct SkipList *list) in SkipListGetPop() argument
66 … return ((list == FILLP_NULL_PTR) || (list->head == FILLP_NULL_PTR)) ? FILLP_NULL_PTR : list->head; in SkipListGetPop()
81 static __inline struct SkipListNode *SkipListGetTail(struct SkipList *list) in SkipListGetTail() argument
83 … return ((list == FILLP_NULL_PTR) || (list->tail == FILLP_NULL_PTR)) ? FILLP_NULL_PTR : list->tail; in SkipListGetTail()
98 FILLP_INT SkiplistInit(struct SkipList *list, funcSkiplistCompair cmp);
116 FILLP_INT SkipListInsert(struct SkipList *list, void *item, struct SkipListNode *node, FILLP_BOOL e…
129 void *SkipListPopValue(struct SkipList *list);
143 void *SkipListPopTail(struct SkipList *list);
157 void SkiplistDestroy(struct SkipList *list);
159 FILLP_UINT32 SkiplistGetNodeNum(struct SkipList *list);
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
Dlist_position_controller.cpp24 auto list = AceType::DynamicCast<V2::RenderList>(scroll_.Upgrade()); in JumpTo() local
25 if (!list) { in JumpTo()
28 list->JumpToIndex(index, source); in JumpTo()
34 auto list = AceType::DynamicCast<V2::RenderList>(scroll_.Upgrade()); in AnimateTo() local
35 if (!list) { in AnimateTo()
38 list->AnimateTo(position, duration, curve); in AnimateTo()
44 auto list = AceType::DynamicCast<V2::RenderList>(scroll_.Upgrade()); in GetScrollDirection() local
45 if (!list) { in GetScrollDirection()
48 return list->IsVertical() ? Axis::VERTICAL : Axis::HORIZONTAL; in GetScrollDirection()
53 auto list = AceType::DynamicCast<V2::RenderList>(scroll_.Upgrade()); in GetCurrentOffset() local
[all …]
Dlist_component.cpp38 auto list = AceType::DynamicCast<ListComponent>(component); in Compare() local
39 if (!list) { in Compare()
43 updateType |= static_cast<uint32_t>(list->GetSpace() == propSpace_ ? in Compare()
45 …updateType |= static_cast<uint32_t>(list->GetDirection() == propDirection_ ? UpdateRenderType::NON… in Compare()
47 …updateType |= static_cast<uint32_t>(list->GetItemDivider()->strokeWidth == itemDivider_->strokeWid… in Compare()
49 updateType |= static_cast<uint32_t>(list->GetEditMode() == list->GetEditMode() ? in Compare()
51 …updateType |= static_cast<uint32_t>(list->GetItemDivider()->startMargin == itemDivider_->startMarg… in Compare()
53 … updateType |= static_cast<uint32_t>(list->GetItemDivider()->endMargin == itemDivider_->endMargin ? in Compare()
55 updateType |= static_cast<uint32_t>(list->GetSticky() == GetSticky() ? in Compare()
60 updateType |= static_cast<uint32_t>(list->GetItemDivider()->color == itemDivider_->color ? in Compare()
Dlist_scroll_bar_controller.cpp23 auto list = AceType::DynamicCast<RenderList>(scroll_.Upgrade()); in MarkScrollRender() local
24 if (list) { in MarkScrollRender()
25 list->MarkNeedLayout(); in MarkScrollRender()
31 auto list = AceType::DynamicCast<RenderList>(scroll_.Upgrade()); in CheckScroll() local
32 return list != nullptr; in CheckScroll()
41 auto list = AceType::DynamicCast<RenderList>(scroll_.Upgrade()); in UpdateScrollPosition() local
42 if (!list) { in UpdateScrollPosition()
45 double height = list->GetLayoutSize().Height(); in UpdateScrollPosition()
46 double estimateHeight = list->GetEstimatedHeight(); in UpdateScrollPosition()
/foundation/arkui/ui_lite/test/uitest/test_ui_list_view/
Dui_test_list_layout.cpp68 ListLayout* list = new ListLayout(); in UIKitListVerticalAddTestAutoSize001() local
69 list->SetDirection(ListLayout::VERTICAL); in UIKitListVerticalAddTestAutoSize001()
70 list->SetStyle(STYLE_BACKGROUND_COLOR, Color::Red().full); in UIKitListVerticalAddTestAutoSize001()
71list->SetPosition(VIEW_DISTANCE_TO_LEFT_SIDE, label->GetY() + TITLE_LABEL_DEFAULT_HEIGHT + g_gap); in UIKitListVerticalAddTestAutoSize001()
72 list->Resize(Screen::GetInstance().GetWidth() - 100, 0); // 100: list reduce width in UIKitListVerticalAddTestAutoSize001()
73 container_->Add(list); in UIKitListVerticalAddTestAutoSize001()
78 list->Add(button1); in UIKitListVerticalAddTestAutoSize001()
82 list->Insert(button1, button2); in UIKitListVerticalAddTestAutoSize001()
88 … listDirect_->SetPosition(list->GetX(), list->GetY(), 100, 100); // 100: list dir width and height in UIKitListVerticalAddTestAutoSize001()
89 if (list->GetDirection() == ListLayout::VERTICAL) { in UIKitListVerticalAddTestAutoSize001()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/include/
Ddl_list.h38 static inline void DL_ListInit(DL_LIST *list) in DL_ListInit() argument
40 list->pstNext = list; in DL_ListInit()
41 list->pstPrev = list; in DL_ListInit()
51 static inline void DL_ListAdd(DL_LIST *list, DL_LIST *node) in DL_ListAdd() argument
53 node->pstNext = list->pstNext; in DL_ListAdd()
54 node->pstPrev = list; in DL_ListAdd()
55 list->pstNext->pstPrev = node; in DL_ListAdd()
56 list->pstNext = node; in DL_ListAdd()
66 static inline void DL_ListTailInsert(DL_LIST *list, DL_LIST *node) in DL_ListTailInsert() argument
68 DL_ListAdd(list->pstPrev, node); in DL_ListTailInsert()
[all …]
Dlist.h58 void ListClear(List *list);
66 void ListDelete(List *list);
75 int32_t ListGetSize(const List *list);
84 void ListAddFirst(List *list, void *data);
93 void ListAddLast(List *list, void *data);
105 void *ListForEachData(const List *list, const ListCmpFunc cmp, void *parameter);
114 ListNode *ListGetFirstNode(const List *list);
123 ListNode *ListGetLastNode(const List *list);
151 bool ListRemoveNode(List *list, void *data);
160 bool ListRemoveFirst(List *list);
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
Ddom_list.cpp46 … [](DOMList& list, const std::string& val) { list.accessibilityDisabled_ = StringToBool(val); }, in SetSpecializedAttr()
50 … [](DOMList& list, const std::string& val) { list.beginIndex_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
54 … [](DOMList& list, const std::string& val) { list.cachedCount_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
58 [](DOMList& list, const std::string& val) { list.centerLayout_ = StringToBool(val); }, in SetSpecializedAttr()
62 [](DOMList& list, const std::string& val) { list.chainAnimation_ = StringToBool(val); }, in SetSpecializedAttr()
66 [](DOMList& list, const std::string& val) { list.needDivider_ = StringToBool(val); }, in SetSpecializedAttr()
70 … [](DOMList& list, const std::string& val) { list.endIndex_ = StringUtils::StringToInt(val); }, in SetSpecializedAttr()
74 [](DOMList& list, const std::string& val) { list.ParseIndexer(val); }, in SetSpecializedAttr()
78 [](DOMList& list, const std::string& val) { in SetSpecializedAttr()
79 list.bubble_.first = StringToBool(val); in SetSpecializedAttr()
[all …]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
Drs_draw_cmd_list_test.cpp50 DrawCmdList list(w, h);
51 list.GetSize();
52 ASSERT_EQ(list.GetWidth(), w);
53 ASSERT_EQ(list.GetHeight(), h);
54 list.ClearOp();
67 DrawCmdList list(w, h);
72 list.GenerateCache(&canvas, &rect);
74 list.Playback(canvas, &rect);
75 list.GenerateCache(&canvas, &rect);
77 list.Playback(canvas, &rect);
[all …]
/foundation/multimedia/player_framework/test/sample/AVPlayer/
DREADME_zh.md17 …<img src="screenshots/device/home.png" /><img src="screenshots/device/list.png"/><img src="screens…
35 | |---bean # list列表所需参数
50 | |---ListPage.ets # list列表主界面,选择播放功能
51 | |---DetailPage.ets # list列表子界面,选择播放视频
53 | |---AudioDetailListComponent.ets # list列表跳转音频播放界面
54 | |---HlsDetailListComponent.ets # list列表跳转HLS播放界面
55 | |---HttpsDetailListComponent.ets # list列表跳转HTTP/HTTPS播放界面
56 | |---LiveDetailListComponent.ets # list列表跳转网络直播界面
57 | |---VideoDetailListComponent.ets # list列表跳转本地视频(url)播放界面
58 | |---VideoFdSrcDetailListComponent.ets # list列表跳转本地视频(fdSrc)播放界面
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/list/
Dlist_creator_test.cpp70 RefPtr<ListComponent> list = AceType::DynamicCast<ListComponent>(component); variable
71 ASSERT_TRUE(list != nullptr);
72 ASSERT_TRUE(list->GetDirection() == FlexDirection::ROW);
73 ASSERT_TRUE(list->GetTotalCount() == 15);
74 ASSERT_TRUE(list->GetCachedCount() == 8);
75 ASSERT_TRUE(list->GetScrollPage());
76 ASSERT_TRUE(NearEqual(list->GetPositionController()->GetInitialOffset(), 100.0));
107 RefPtr<ListComponent> list = AceType::DynamicCast<ListComponent>(component); variable
108 ASSERT_TRUE(list != nullptr);
109 ASSERT_TRUE(list->GetScrollPage());
[all …]
/foundation/multimedia/camera_lite/interfaces/kits/
Dcamera_ability.h76 std::list<CameraPicSize> GetSupportedSizes(int format) const;
83 std::list<int32_t> GetSupportedAfModes() const;
90 std::list<int32_t> GetSupportedAeModes() const;
99 template<typename T> int32_t SetParameterRange(uint32_t key, std::list<T> rangeList) in SetParameterRange()
114 template<typename T> std::list<T> GetParameterRange(uint32_t key) const in GetParameterRange()
123 void SetSupportParameterRange(uint32_t key, std::list<CameraPicSize> &rangeList);
124 void SetSupportParameterRange(uint32_t key, std::list<int32_t> &rangeList);
125 std::list<CameraPicSize> GetSupportParameterRange(uint32_t key) const;
127 std::map<uint32_t, std::list<CameraPicSize>> SizeMap_;
129 std::list<int32_t> afModes;
[all …]
/foundation/communication/dsoftbus/core/authentication/include/
Dauth_session_key.h42 void InitSessionKeyList(SessionKeyList *list);
43 void DestroySessionKeyList(SessionKeyList *list);
46 bool HasSessionKey(const SessionKeyList *list);
47 int32_t AddSessionKey(SessionKeyList *list, int32_t index, const SessionKey *key);
48 int32_t GetLatestSessionKey(const SessionKeyList *list, int32_t *index, SessionKey *key);
49 int32_t GetSessionKeyByIndex(const SessionKeyList *list, int32_t index, SessionKey *key);
50 void RemoveSessionkeyByIndex(SessionKeyList *list, int32_t index);
52 int32_t EncryptInner(const SessionKeyList *list, const uint8_t *inData, uint32_t inLen,
54 int32_t DecryptInner(const SessionKeyList *list, const uint8_t *inData, uint32_t inLen,
57 int32_t EncryptData(const SessionKeyList *list, const uint8_t *inData, uint32_t inLen,
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/domlist/
Ddom_list_test.cpp152 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_001); variable
153 ASSERT_TRUE(list != nullptr);
154 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(list);
178 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_002); variable
179 ASSERT_TRUE(list != nullptr);
180 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(list);
206 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_003); variable
207 ASSERT_TRUE(list != nullptr);
208 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(list);
234 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_004); variable
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/
Dkv_store_observer_impl.h45 const std::list<DistributedDB::Entry> GetInsertList() const;
47 const std::list<DistributedDB::Entry> GetUpdateList() const;
49 const std::list<DistributedDB::Entry> GetDeleteList() const;
65 const std::list<DistributedDB::Entry> GetCumulatedInsertList() const;
67 const std::list<DistributedDB::Entry> GetCumulatedUpdateList() const;
69 const std::list<DistributedDB::Entry> GetCumulatedDeleteList() const;
72 std::list<DistributedDB::Entry> insertedEntries_ = {};
73 std::list<DistributedDB::Entry> updatedEntries_ = {};
74 std::list<DistributedDB::Entry> deleteEntries_ = {};
79 std::list<DistributedDB::Entry> cumulatedInsertList_ = {};
[all …]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/directive/04/
Dindex.js18 list: [
25 this.list.push({ title: "item" + (this.list.length + 1), visible: true });
28 this.list.splice(this.list.length - 1, 1);
31 this.list[index].visible = !this.list[index].visible;
/foundation/communication/dsoftbus/core/authentication/src/
Dauth_session_key.c39 static void RemoveOldKey(SessionKeyList *list) in RemoveOldKey() argument
43 LIST_FOR_EACH_ENTRY(item, (const ListNode *)list, SessionKeyItem, node) { in RemoveOldKey()
49 item = LIST_ENTRY(GET_LIST_HEAD(list), SessionKeyItem, node); in RemoveOldKey()
57 NO_SANITIZE("cfi") void InitSessionKeyList(SessionKeyList *list) in InitSessionKeyList() argument
59 CHECK_NULL_PTR_RETURN_VOID(list); in InitSessionKeyList()
60 ListInit(list); in InitSessionKeyList()
80 NO_SANITIZE("cfi") void DestroySessionKeyList(SessionKeyList *list) in DestroySessionKeyList() argument
82 CHECK_NULL_PTR_RETURN_VOID(list); in DestroySessionKeyList()
85 LIST_FOR_EACH_ENTRY_SAFE(item, next, list, SessionKeyItem, node) { in DestroySessionKeyList()
92 NO_SANITIZE("cfi") bool HasSessionKey(const SessionKeyList *list) in HasSessionKey() argument
[all …]
/foundation/ability/dmsfwk/services/dtbschedmgr/test/samples/StageManualTestSuite/entry/src/main/ets/Model/
DRemoteDeviceModel.ts59 const list = this.MyDeviceManager.getTrustedDeviceListSync(); constant
60 …le.info('[ServiceExtensionDemo] getTrustedDeviceListSync end, deviceList=' + JSON.stringify(list));
61 if (typeof (list) != 'undefined' && typeof (list.length) != 'undefined') {
62 this.deviceList = list;
70 const list = this.MyDeviceManager.getTrustedDeviceListSync(); constant
71 …le.info('[ServiceExtensionDemo] getTrustedDeviceListSync end, deviceList=' + JSON.stringify(list));
72 if (typeof (list) != 'undefined' && typeof (list.length) != 'undefined') {
73 this.deviceList = list;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/
Dpage_event_hub.cpp42 auto list = radioGroupNotify_[group]; in HasRadioId() local
43 auto it = find(list.begin(), list.end(), radioId); in HasRadioId()
44 return it != list.end(); in HasRadioId()
49 const auto& list = radioGroupNotify_[group]; in UpdateRadioGroupValue() local
50 for (auto&& item : list) { in UpdateRadioGroupValue()
75 const auto& list = checkBoxGroupNotify_[group]; in AddCheckBoxGroupToGroup() local
79 for (auto&& item : list) { in AddCheckBoxGroupToGroup()
100 std::unordered_map<std::string, std::list<WeakPtr<FrameNode>>> PageEventHub::GetCheckBoxGroupMap() in GetCheckBoxGroupMap()
102 std::unordered_map<std::string, std::list<WeakPtr<FrameNode>>> group; in GetCheckBoxGroupMap()
104 std::list<WeakPtr<FrameNode>> list; in GetCheckBoxGroupMap() local
[all …]
/foundation/arkui/ui_lite/test/unittest/rotate/
Dui_rotate_input_unit_test.cpp73 UIList* list = new UIList(); variable
74 list->SetRotateFactor(10); // 10 : rotate factor
75 EXPECT_EQ(list->GetRotateFactor(), 10);
76 delete list;
87 UIList* list = new UIList(); variable
88 list->SetRotateFactor(20); // 10 : rotate factor
89 EXPECT_NE(list->GetRotateFactor(), 10);
90 delete list;
157 UIList* list = new UIList(); variable
158 list->RequestFocus();
[all …]
/foundation/communication/ipc/ipc/native/c/rpc/src/
Drpc_process_skeleton.c71 UtilsListInit(&g_stubSessionList.list); in RpcProcessSkeleton()
72 UtilsListInit(&g_proxySessionList.list); in RpcProcessSkeleton()
73 UtilsListInit(&g_handleToIndexList.list); in RpcProcessSkeleton()
74 UtilsListInit(&g_seqNumberToThread.list); in RpcProcessSkeleton()
89 UtilsListAdd(&g_stubObjectList.stubObjects, &stubObject->list); in AddStubByIndex()
98 UTILS_DL_LIST_FOR_EACH_ENTRY(node, &g_stubObjectList.stubObjects, StubObject, list) in QueryStubByIndex()
112 UtilsListAdd(&g_socketLockInfoList.socketLockInfo, &threadLockInfo->list); in AttachThreadLockInfo()
121 …TILS_DL_LIST_FOR_EACH_ENTRY(node, &g_socketLockInfoList.socketLockInfo, SocketThreadLockInfo, list) in QueryThreadLockInfo()
135 UtilsListAdd(&g_idleDataThreadsList.idleDataThread, &idleDataThread->list); in AddDataThreadToIdle()
143 UtilsListDelete(&idleDataThread->list); in DeleteDataThreadFromIdle()
[all …]

12345678910>>...61