/base/security/huks/utils/list/ |
D | hks_double_list.c | 22 void InitializeDoubleList(struct DoubleList *node) in InitializeDoubleList() argument 24 if (node == NULL) { in InitializeDoubleList() 28 node->prev = node; in InitializeDoubleList() 29 node->next = node; in InitializeDoubleList() 32 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node) in AddNodeAfterDoubleListHead() argument 34 if ((head == NULL) || (node == NULL)) { in AddNodeAfterDoubleListHead() 42 head->next->prev = node; in AddNodeAfterDoubleListHead() 43 node->next = head->next; in AddNodeAfterDoubleListHead() 44 node->prev = head; in AddNodeAfterDoubleListHead() 45 head->next = node; in AddNodeAfterDoubleListHead() [all …]
|
D | hks_double_list.h | 28 void InitializeDoubleList(struct DoubleList *node); 30 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node); 32 void AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node); 34 void RemoveDoubleListNode(struct DoubleList *node);
|
/base/startup/init_lite/test/unittest/init/ |
D | group_unittest.cpp | 28 HashNode node; member 34 TestHashNode *testNode1 = HASHMAP_ENTRY(node1, TestHashNode, node); in TestHashNodeCompare() 35 TestHashNode *testNode2 = HASHMAP_ENTRY(node2, TestHashNode, node); in TestHashNodeCompare() 41 TestHashNode *testNode1 = HASHMAP_ENTRY(node1, TestHashNode, node); in TestHashKeyCompare() 45 static int TestHashNodeFunction(const HashNode *node) in TestHashNodeFunction() argument 47 TestHashNode *testNode = HASHMAP_ENTRY(node, TestHashNode, node); in TestHashNodeFunction() 65 static void TestHashNodeFree(const HashNode *node) in TestHashNodeFree() argument 67 TestHashNode *testNode = HASHMAP_ENTRY(node, TestHashNode, node); in TestHashNodeFree() 74 TestHashNode *node = (TestHashNode *)malloc(sizeof(TestHashNode) + strlen(value) + 1); in TestCreateHashNode() local 75 if (node == NULL) { in TestCreateHashNode() [all …]
|
/base/hiviewdfx/hiview/plugins/freeze_detector/ |
D | rule_cluster.cpp | 90 for (xmlNode* node = root; node; node = node->next) { in ParseRuleFile() local 91 if (node->type != XML_ELEMENT_NODE) { in ParseRuleFile() 94 if (strcmp((char*)(node->name), TAG_FREEZE.c_str()) == 0) { in ParseRuleFile() 95 ParseTagFreeze(node); in ParseRuleFile() 107 for (xmlNode* node = tag->children; node; node = node->next) { in ParseTagFreeze() local 108 if (strcmp((char*)(node->name), TAG_RULES.c_str()) == 0) { in ParseTagFreeze() 109 ParseTagRules(node); in ParseTagFreeze() 116 for (xmlNode* node = tag->children; node; node = node->next) { in ParseTagRules() local 117 if (strcmp((char*)(node->name), TAG_RULE.c_str()) == 0) { in ParseTagRules() 118 ParseTagRule(node); in ParseTagRules() [all …]
|
/base/user_iam/auth_executor_mgr/common/common/src/ |
D | tlv_wrapper.c | 70 int32_t ParseGetHeadTag(const TlvListNode *node, int32_t *tag) in ParseGetHeadTag() argument 72 if (node == NULL || tag == NULL) { in ParseGetHeadTag() 75 TlvType *tlv = node->data.value; in ParseGetHeadTag() 113 static uint8_t *GetTlvValue(TlvListNode *node, int32_t msgType, uint32_t *len) in GetTlvValue() argument 115 if ((node == NULL) || (len == NULL)) { in GetTlvValue() 119 TlvType *tlv = node->data.value; in GetTlvValue() 134 int32_t ParseUint64Para(TlvListNode *node, int32_t msgType, uint64_t *retVal) in ParseUint64Para() argument 136 if ((node == NULL) || (retVal == NULL)) { in ParseUint64Para() 141 uint8_t *val = GetTlvValue(node, msgType, &len); in ParseUint64Para() 150 int32_t ParseInt64Para(TlvListNode *node, int32_t msgType, int64_t *retVal) in ParseInt64Para() argument [all …]
|
D | linked_list.c | 33 LinkedListNode *node = Malloc(sizeof(LinkedListNode)); in InsertNode() local 34 if (node == NULL) { in InsertNode() 38 node->data = data; in InsertNode() 39 node->next = list->head; in InsertNode() 40 list->head = node; in InsertNode() 56 LinkedListNode *node = list->head; in RemoveNode() local 57 while (node != NULL) { in RemoveNode() 58 if (matchFunc(node->data, condition)) { in RemoveNode() 61 pre = node; in RemoveNode() 62 node = node->next; in RemoveNode() [all …]
|
D | tlv_base.c | 47 TlvListNode *node = (TlvListNode *)Malloc(sizeof(TlvListNode)); in CreateTlvList() local 48 if (node == NULL) { in CreateTlvList() 51 node->data.value = NULL; in CreateTlvList() 52 node->next = NULL; in CreateTlvList() 53 return node; in CreateTlvList() 113 TlvListNode *node = (TlvListNode *)Malloc(sizeof(TlvListNode)); in AddTlvNode() local 114 if (node == NULL) { in AddTlvNode() 117 node->data = *object; in AddTlvNode() 118 node->next = NULL; in AddTlvNode() 121 head->next = node; in AddTlvNode() [all …]
|
/base/startup/init_lite/services/utils/ |
D | init_hashmap.c | 56 HashNode *node = (HashNode *)root; in GetHashNodeByNode() local 57 while (node != NULL) { in GetHashNodeByNode() 58 int ret = tab->nodeCompare(node, new); in GetHashNodeByNode() 60 return node; in GetHashNodeByNode() 62 node = node->next; in GetHashNodeByNode() 69 HashNode *node = (HashNode *)root; in GetHashNodeByKey() local 70 while (node != NULL) { in GetHashNodeByKey() 71 int ret = keyCompare(node, key); in GetHashNodeByKey() 73 return node; in GetHashNodeByKey() 75 node = node->next; in GetHashNodeByKey() [all …]
|
D | list.c | 20 void ListInit(struct ListNode *node) in ListInit() argument 22 if (node == NULL) { in ListInit() 25 node->next = node; in ListInit() 26 node->prev = node; in ListInit()
|
/base/startup/init_lite/services/include/ |
D | list.h | 31 #define ListEmpty(node) ((node).next == &(node) && (node).prev == &(node)) argument 33 #define ForEachListEntry(list, node) for (node = (list)->next; node != (list); node = node->next) argument
|
/base/startup/init_lite/services/param/trigger/ |
D | trigger_manager.c | 37 CommandNode *node = (CommandNode *)calloc(1, size); in AddCommand() local 38 PARAM_CHECK(node != NULL, return -1, "Failed to alloc memory for command"); in AddCommand() 39 node->cmdKeyIndex = cmdKeyIndex; in AddCommand() 40 node->next = NULL; in AddCommand() 41 node->content[0] = '\0'; in AddCommand() 43 int ret = memcpy_s(node->content, size, content, strlen(content)); in AddCommand() 44 node->content[strlen(content)] = '\0'; in AddCommand() 45 PARAM_CHECK(ret == EOK, free(node); in AddCommand() 50 trigger->firstCmd = node; in AddCommand() 51 trigger->lastCmd = node; in AddCommand() [all …]
|
/base/powermgr/thermal_manager/application/protector/src/policy/ |
D | thermal_kernel_config_file.cpp | 53 for (auto node = rootNode->children; node; node = node->next) { in ParseThermalKernelXML() local 54 if (node == nullptr) continue; in ParseThermalKernelXML() 55 if (!xmlStrcmp(node->name, BAD_CAST"base")) { in ParseThermalKernelXML() 56 ParserBaseNode(node); in ParseThermalKernelXML() 57 } else if (!xmlStrcmp(node->name, BAD_CAST"control")) { in ParseThermalKernelXML() 58 ParseControlNode(node); in ParseThermalKernelXML() 63 void ThermalKernelConfigFile::ParserBaseNode(xmlNodePtr node) in ParserBaseNode() argument 65 auto cur = node->xmlChildrenNode; in ParserBaseNode() 77 void ThermalKernelConfigFile::ParseControlNode(xmlNodePtr node) in ParseControlNode() argument 79 auto cur = node->xmlChildrenNode; in ParseControlNode()
|
/base/compileruntime/js_util_module/container/treeset/ |
D | js_treeset.ts | 93 let node = tempNode; 94 while (node.parent !== undefined) { 95 if (node.parent.right === node) return node.parent.key; 96 node = node.parent; // node.parent.left === node is true; 105 let node = tempNode; 106 while (node.parent !== undefined) { 107 if (node.parent.left === node) return node.parent.key; 108 node = node.parent; // node.parent.right === node is true;
|
/base/security/permission/services/permission_lite/pms/src/ |
D | perm_operate.c | 41 int ModifyPermission(TNode *node, const char *permission, const enum IsGranted granted) in ModifyPermission() argument 43 if (node == NULL || permission == NULL) { in ModifyPermission() 47 for (int i = 0; i < node->permNum; i++) { in ModifyPermission() 48 if (strcmp(node->permList[i].name, permission) == 0) { in ModifyPermission() 49 node->permList[i].granted = granted; in ModifyPermission() 56 void AddTask(TList *list, TNode *node) in AddTask() argument 59 list->head = node; in AddTask() 61 node->next = list->head; in AddTask() 62 list->head = node; in AddTask()
|
/base/user_iam/auth_executor_mgr/common/common/inc/ |
D | tlv_wrapper.h | 28 int32_t ParseGetHeadTag(const TlvListNode *node, int32_t *tag); 30 int32_t ParseUint64Para(TlvListNode *node, int32_t msgType, uint64_t *retVal); 31 int32_t ParseInt64Para(TlvListNode *node, int32_t msgType, int64_t *retVal); 32 int32_t ParseUint32Para(TlvListNode *node, int32_t msgType, uint32_t *retVal); 33 int32_t ParseInt32Para(TlvListNode *node, int32_t msgType, int32_t *retVal); 34 Buffer *ParseBuffPara(TlvListNode *node, int32_t msgType); 35 int32_t ParseUint8Para(TlvListNode *node, int32_t msgType, uint8_t *retVal);
|
/base/security/device_security_level/baselib/utils/src/ |
D | utils_state_machine.c | 43 const StateNode *node = nodes + i; in GetScheduleStateNode() local 44 if ((node->state == state) && (node->event == event)) { in GetScheduleStateNode() 45 return node; in GetScheduleStateNode() 92 const StateNode *node = GetScheduleStateNode(nodes, nodeCnt, state, event); in ScheduleMachine() local 93 if (node != NULL) { in ScheduleMachine() 95 if (node->process != NULL) { in ScheduleMachine() 97 result = node->process(machine, event, para); in ScheduleMachine() 100 machine->currState = (result == true) ? node->nextStateT : node->nextStateF; in ScheduleMachine()
|
/base/security/deviceauth/frameworks/src/standard/ |
D | ipc_adapt.cpp | 61 static void SetIpcCallBackNodeDefault(IpcCallBackNode &node) in SetIpcCallBackNodeDefault() argument 63 (void)memset_s(&node, sizeof(IpcCallBackNode), 0, sizeof(IpcCallBackNode)); in SetIpcCallBackNodeDefault() 64 node.proxyId = -1; in SetIpcCallBackNodeDefault() 65 node.nodeIdx = -1; in SetIpcCallBackNodeDefault() 92 static void ResetIpcCallBackNode(IpcCallBackNode &node) in ResetIpcCallBackNode() argument 96 if ((node.appId[0] != 0) && (node.appId[sizeof(node.appId) - 1] == 0)) { in ResetIpcCallBackNode() 97 appId = node.appId; in ResetIpcCallBackNode() 100 ServiceDevAuth::ResetRemoteObject(node.proxyId); in ResetIpcCallBackNode() 101 SetIpcCallBackNodeDefault(node); in ResetIpcCallBackNode() 178 IpcCallBackNode *node = nullptr; in AddIpcCbObjByAppId() local [all …]
|
/base/hiviewdfx/hicollie/frameworks/native/ |
D | timer_ring.cpp | 32 struct TaskNode* node = &taskNodes_[i]; in TimerRing() local 33 InitTaskNode(node, i); in TimerRing() 34 freeTaskNodes_.push_back(node); in TimerRing() 91 std::for_each(timeoutNodes.begin(), timeoutNodes.end(), [&](struct TaskNode* &node) { in TryRecycle() argument 92 if (node->timerTask.loop) { in TryRecycle() 94 node->pos = CALC_RING_POS(node->timerTask.timeout); in TryRecycle() 95 node->round = CALC_RING_ROUND(node->timerTask.timeout); in TryRecycle() 96 ringTaskNodes_[node->pos].push_back(node); in TryRecycle() 99 InitTaskNode(node, node->seq); in TryRecycle() 100 freeTaskNodes_.push_back(node); in TryRecycle() [all …]
|
/base/compileruntime/js_util_module/container/treemap/ |
D | js_treemap.ts | 104 let node = tempNode; 105 while (node.parent !== undefined) { 106 if (node.parent.right === node) return node.parent.key; 107 node = node.parent; 116 let node = tempNode; 117 while (node.parent !== undefined) { 118 if (node.parent.left === node) return node.parent.key; 119 node = node.parent;
|
/base/powermgr/thermal_manager/services/native/include/thermal_policy/ |
D | thermal_srv_config_parser.h | 38 void ParseBaseNode(xmlNodePtr node); 39 void ParseLevelNode(xmlNodePtr node); 40 void ParseStateNode(xmlNodePtr node); 41 void ParseActionNode(xmlNodePtr node); 42 void ParsePolicyNode(xmlNodePtr node);
|
/base/security/deviceauth/frameworks/src/lite/ |
D | ipc_adapt.c | 61 static void SetIpcCallBackNodeDefault(IpcCallBackNode *node) in SetIpcCallBackNodeDefault() argument 63 (void)memset_s(node, sizeof(IpcCallBackNode), 0, sizeof(IpcCallBackNode)); in SetIpcCallBackNodeDefault() 64 node->proxyId = -1; in SetIpcCallBackNodeDefault() 65 node->nodeIdx = -1; in SetIpcCallBackNodeDefault() 93 static void ResetIpcCallBackNode(IpcCallBackNode *node) in ResetIpcCallBackNode() argument 95 ResetRemoteObject(node->proxyId); in ResetIpcCallBackNode() 96 SetIpcCallBackNodeDefault(node); in ResetIpcCallBackNode() 185 IpcCallBackNode *node = NULL; in AddIpcCbObjByAppId() local 199 node = GetIpcCallBackByAppId(appId, type); in AddIpcCbObjByAppId() 200 if (node != NULL) { in AddIpcCbObjByAppId() [all …]
|
/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
D | thermal_srv_config_parser.cpp | 59 for (auto node = rootNode->children; node; node = node->next) { in ParseXMLFile() local 60 if (node == nullptr) { in ParseXMLFile() 63 if (!xmlStrcmp(node->name, BAD_CAST"base")) { in ParseXMLFile() 64 ParseBaseNode(node); in ParseXMLFile() 65 } else if (!xmlStrcmp(node->name, BAD_CAST"level")) { in ParseXMLFile() 66 ParseLevelNode(node); in ParseXMLFile() 67 } else if (!xmlStrcmp(node->name, BAD_CAST"state")) { in ParseXMLFile() 68 ParseStateNode(node); in ParseXMLFile() 69 } else if (!xmlStrcmp(node->name, BAD_CAST"action")) { in ParseXMLFile() 70 ParseActionNode(node); in ParseXMLFile() [all …]
|
/base/security/device_security_level/services/dslm/ |
D | dslm_device_list.c | 48 ListNode *node = NULL; in GetDeviceListSize() local 51 FOREACH_LIST_NODE (node, GetDeviceList()) { in GetDeviceListSize() 65 ListNode *node = NULL; in GetDslmDeviceInfo() local 68 FOREACH_LIST_NODE (node, GetDeviceList()) { in GetDslmDeviceInfo() 69 DslmDeviceInfo *info = LIST_ENTRY(node, DslmDeviceInfo, linkNode); in GetDslmDeviceInfo() 133 ListNode *node = NULL; in ForEachDeviceDump() local 139 FOREACH_LIST_NODE (node, GetDeviceList()) { in ForEachDeviceDump() 140 const DslmDeviceInfo *info = LIST_ENTRY(node, DslmDeviceInfo, linkNode); in ForEachDeviceDump()
|
/base/startup/init_lite/services/init/standard/ |
D | init_plugin_manager.c | 55 ListInit(&cmdExec->node); in AddCmdExecutor() 58 ListAddTail(&cmd->cmdExecutor, &cmdExec->node); in AddCmdExecutor() 70 ListNode *node = cmd->cmdExecutor.next; in RemoveCmdExecutor() local 71 while (node != &cmd->cmdExecutor) { in RemoveCmdExecutor() 72 PluginCmdExecutor *cmdExec = ListEntry(node, PluginCmdExecutor, node); in RemoveCmdExecutor() 74 ListRemove(&cmdExec->node); in RemoveCmdExecutor() 78 node = node->next; in RemoveCmdExecutor() 100 ListNode *node = cmd->cmdExecutor.next; in PluginExecCmd_() local 101 while (node != &cmd->cmdExecutor) { in PluginExecCmd_() 102 PluginCmdExecutor *cmdExec = ListEntry(node, PluginCmdExecutor, node); in PluginExecCmd_() [all …]
|
/base/startup/init_lite/services/loopevent/task/ |
D | le_task.c | 85 ListInit(&buffer->node); in CreateBuffer() 102 ListNode *node = task->buffHead.next; in GetFirstBuffer() local 104 if (node != &task->buffHead) { in GetFirstBuffer() 105 buffer = ListEntry(node, LE_Buffer, node); in GetFirstBuffer() 114 ListAddTail(&task->buffHead, &buffer->node); in AddBuffer() 122 ListNode *node = NULL; in GetNextBuffer() local 124 node = task->buffHead.next; in GetNextBuffer() 126 node = next->node.next; in GetNextBuffer() 128 if (node != &task->buffHead) { in GetNextBuffer() 129 buffer = ListEntry(node, LE_Buffer, node); in GetNextBuffer() [all …]
|