/foundation/communication/bluetooth/services/bluetooth_standard/stack/platform/src/ |
D | list.c | 23 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 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/components/nstackx/fillp/src/public/src/ |
D | skiplist.c | 34 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/dsoftbus/core/common/include/ |
D | common_list.h | 33 __attribute__((always_inline)) static inline void ListInit(ListNode *list) in ListInit() argument 35 list->next = list; in ListInit() 36 list->prev = list; in ListInit() 46 __attribute__((always_inline)) static inline void ListAdd(ListNode *list, ListNode *node) in ListAdd() argument 48 node->next = list->next; in ListAdd() 49 node->prev = list; in ListAdd() 50 list->next->prev = node; in ListAdd() 51 list->next = node; in ListAdd() 55 __attribute__((always_inline)) static inline void ListTailInsert(ListNode *list, ListNode *node) in ListTailInsert() argument 57 ListAdd(list->prev, node); in ListTailInsert() [all …]
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/ |
D | hlist.h | 26 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 …]
|
D | skiplist.h | 64 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/graphic/ui/test/uitest/test_ui_list_view/ |
D | ui_test_list_layout.cpp | 68 ListLayout* list = new ListLayout(); in UIKit_List_Vertical_Add_Test_Auto_Size_001() local 69 list->SetDirection(ListLayout::VERTICAL); in UIKit_List_Vertical_Add_Test_Auto_Size_001() 70 list->SetStyle(STYLE_BACKGROUND_COLOR, Color::Red().full); in UIKit_List_Vertical_Add_Test_Auto_Size_001() 71 … list->SetPosition(VIEW_DISTANCE_TO_LEFT_SIDE, label->GetY() + TITLE_LABEL_DEFAULT_HEIGHT + g_gap); in UIKit_List_Vertical_Add_Test_Auto_Size_001() 72 list->Resize(Screen::GetInstance().GetWidth() - 100, 0); // 100: list reduce width in UIKit_List_Vertical_Add_Test_Auto_Size_001() 73 container_->Add(list); in UIKit_List_Vertical_Add_Test_Auto_Size_001() 78 list->Add(button1); in UIKit_List_Vertical_Add_Test_Auto_Size_001() 82 list->Insert(button1, button2); in UIKit_List_Vertical_Add_Test_Auto_Size_001() 88 … listDirect_->SetPosition(list->GetX(), list->GetY(), 100, 100); // 100: list dir width and height in UIKit_List_Vertical_Add_Test_Auto_Size_001() 89 if (list->GetDirection() == ListLayout::VERTICAL) { in UIKit_List_Vertical_Add_Test_Auto_Size_001() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/platform/include/ |
D | dl_list.h | 38 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 …]
|
D | list.h | 46 void ListClear(List *list); 54 void ListDelete(List *list); 63 int32_t ListGetSize(const List *list); 72 void ListAddFirst(List *list, void *data); 81 void ListAddLast(List *list, void *data); 93 void *ListForEachData(const List *list, const ListCmpFunc cmp, void *parameter); 102 ListNode *ListGetFirstNode(const List *list); 111 ListNode *ListGetLastNode(const List *list); 139 bool ListRemoveNode(List *list, void *data); 148 bool ListRemoveFirst(List *list); [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/common/dom/ |
D | dom_list.cpp | 46 … [](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/communication/ipc_lite/interfaces/kits/ |
D | ndk_list.h | 32 static inline void NDK_ListInit(NDK_DL_LIST *list) in NDK_ListInit() argument 34 list->pstNext = list; in NDK_ListInit() 35 list->pstPrev = list; in NDK_ListInit() 38 static inline void NDK_ListAdd(NDK_DL_LIST *list, NDK_DL_LIST *node) in NDK_ListAdd() argument 40 node->pstNext = list->pstNext; in NDK_ListAdd() 41 node->pstPrev = list; in NDK_ListAdd() 42 list->pstNext->pstPrev = node; in NDK_ListAdd() 43 list->pstNext = node; in NDK_ListAdd() 54 static inline bool NDK_ListEmpty(NDK_DL_LIST *list) in NDK_ListEmpty() argument 56 return list->pstNext == list; in NDK_ListEmpty()
|
/foundation/ace/ace_engine/frameworks/core/components/test/unittest/list/ |
D | list_creator_test.cpp | 72 RefPtr<ListComponent> list = AceType::DynamicCast<ListComponent>(component); variable 73 ASSERT_TRUE(list != nullptr); 74 ASSERT_TRUE(list->GetDirection() == FlexDirection::ROW); 75 ASSERT_TRUE(list->GetTotalCount() == 15); 76 ASSERT_TRUE(list->GetCachedCount() == 8); 77 ASSERT_TRUE(list->GetScrollPage()); 78 ASSERT_TRUE(NearEqual(list->GetPositionController()->GetInitialOffset(), 100.0)); 111 RefPtr<ListComponent> list = AceType::DynamicCast<ListComponent>(component); variable 112 ASSERT_TRUE(list != nullptr); 113 ASSERT_TRUE(list->GetScrollPage()); [all …]
|
/foundation/multimedia/camera_lite/interfaces/kits/ |
D | camera_ability.h | 76 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/ace/ace_engine/frameworks/core/components_v2/list/ |
D | list_position_controller.cpp | 24 auto list = AceType::DynamicCast<V2::RenderList>(scroll_.Upgrade()); in JumpTo() local 25 if (!list) { in JumpTo() 28 list->JumpToIndex(index, source); in JumpTo() 33 auto list = AceType::DynamicCast<V2::RenderList>(scroll_.Upgrade()); in AnimateTo() local 34 if (!list) { in AnimateTo() 37 list->AnimateTo(position, duration, curve); in AnimateTo() 43 auto list = AceType::DynamicCast<V2::RenderList>(scroll_.Upgrade()); in GetScrollDirection() local 44 if (!list) { in GetScrollDirection() 47 return list->GetDirection() ? Axis::VERTICAL : Axis::HORIZONTAL; in GetScrollDirection()
|
D | list_scroll_bar_controller.cpp | 22 auto list = AceType::DynamicCast<RenderList>(scroll_.Upgrade()); in MarkScrollRender() local 23 if (list) { in MarkScrollRender() 24 list->MarkNeedLayout(); in MarkScrollRender() 30 auto list = AceType::DynamicCast<RenderList>(scroll_.Upgrade()); in CheckScroll() local 31 return list != nullptr; in CheckScroll() 40 auto list = AceType::DynamicCast<RenderList>(scroll_.Upgrade()); in UpdateScrollPosition() local 41 if (!list) { in UpdateScrollPosition() 44 double height = list->GetLayoutSize().Height(); in UpdateScrollPosition() 45 double estimateHeight = list->GetEstimatedHeight(); in UpdateScrollPosition()
|
D | list_component.cpp | 38 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() 58 updateType |= static_cast<uint32_t>(list->GetItemDivider()->color == itemDivider_->color ? in Compare()
|
/foundation/ace/ace_engine/frameworks/bridge/test/unittest/jsfrontend/domlist/ |
D | dom_list_test.cpp | 154 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_001); variable 155 ASSERT_TRUE(list != nullptr); 156 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(list); 182 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_002); variable 183 ASSERT_TRUE(list != nullptr); 184 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(list); 212 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_003); variable 213 ASSERT_TRUE(list != nullptr); 214 auto boxChild = DOMNodeFactory::GetInstance().GetBoxChildComponent(list); 242 auto list = DOMNodeFactory::GetInstance().CreateDOMNodeFromDsl(LIST_MOTION_TEST_004); variable [all …]
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/test/common/distributeddb/include/ |
D | kv_store_observer_impl.h | 45 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/distributeddatamgr/distributeddatamgr/interfaces/innerkits/app_distributeddata/include/ |
D | app_change_notification.h | 30 …AppChangeNotification(const std::list<Entry> &insertEntries, const std::list<Entry> &updateEntries, 31 … const std::list<Entry> &deleteEntries, const std::string &deviceId, const bool isClear); 36 KVSTORE_API const std::list<Entry> &GetInsertEntries() const; 39 KVSTORE_API const std::list<Entry> &GetUpdateEntries() const; 42 KVSTORE_API const std::list<Entry> &GetDeleteEntries() const; 51 std::list<Entry> insertEntries_; 53 std::list<Entry> updateEntries_; 55 std::list<Entry> deleteEntries_;
|
/foundation/ace/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/directive/04/ |
D | index.js | 18 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/graphic/ui/test/unittest/rotate/ |
D | ui_rotate_input_unit_test.cpp | 73 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/ |
D | rpc_process_skeleton.c | 71 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 …]
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/storage/src/ |
D | single_ver_natural_store_commit_notify_data.h | 49 const std::list<Entry> GetInsertedEntries(int &errCode) const override; 51 const std::list<Entry> GetUpdatedEntries(int &errCode) const override; 53 const std::list<Entry> GetDeletedEntries(int &errCode) const override; 55 const std::list<KvDBConflictEntry> GetCommitConflicts(int &errCode) const override; 84 static const std::list<Entry> FilterEntriesByKey(const std::list<Entry> &entries, 87 void DeleteEntry(const Key &key, std::list<Entry> &entries) const; 103 std::list<Entry> insertedEntries_; 104 std::list<Entry> updatedEntries_; 105 std::list<Entry> deletedEntries_; 106 std::list<KvDBConflictEntry> conflictedEntries_;
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/libs/distributeddb/storage/src/sqlite/ |
D | query_object.h | 31 QueryObject(const std::list<QueryObjNode> &queryObjNodes, const std::vector<uint8_t> &prefixKey, 76 std::list<QueryObjNode> queryObjNodes_; 89 int ParseNode(const std::list<QueryObjNode>::iterator &iter); 90 int ParseNodeByOperFlag(const std::list<QueryObjNode>::iterator &iter); 91 int CheckEqualFormat(const std::list<QueryObjNode>::iterator &iter) const; 92 int CheckLinkerFormat(const std::list<QueryObjNode>::iterator &iter) const; 93 int CheckSuggestIndexFormat(const std::list<QueryObjNode>::iterator &iter) const; 94 int CheckOrderByFormat(const std::list<QueryObjNode>::iterator &iter); 95 int CheckLimitFormat(const std::list<QueryObjNode>::iterator &iter) const; 96 int CheckLinkerBefore(const std::list<QueryObjNode>::iterator &iter) const;
|
/foundation/ace/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/directive/02/ |
D | index.js | 18 list: ["item1", "item2"] 22 this.list.push("item" + (this.list.length + 1)); 25 this.list.splice(this.list.length - 1, 1);
|
/foundation/multimedia/camera_lite/frameworks/ |
D | camera_ability_impl.h | 26 std::list<int32_t> GetSupportedFormats() const; 27 std::list<CameraPicSize> GetSupportedSizes(int format) const; 29 template<typename T> int32_t SetParameterRange(uint32_t key, std::list<T> rangeList); 30 template<typename T> std::list<T> GetParameterRange(uint32_t key) const; 33 void SetSupportParameterRange(uint32_t key, std::list<CameraPicSize> &rangeList); 34 std::list<CameraPicSize> GetSupportParameterRange(uint32_t key) const; 36 std::map<uint32_t, std::list<CameraPicSize>> SizeMap_;
|