Home
last modified time | relevance | path

Searched refs:node (Results 1 - 25 of 203) sorted by relevance

123456789

/base/security/huks/utils/list/
H A Dhks_double_list.c22 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 in AddNodeAfterDoubleListHead()
48 AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node) AddNodeAtDoubleListTail() argument
64 RemoveDoubleListNode(struct DoubleList *node) RemoveDoubleListNode() argument
[all...]
/base/startup/appspawn/modules/sandbox/
H A Dappspawn_permission.c25 static int PermissionNodeCompareIndex(ListNode *node, void *data) in PermissionNodeCompareIndex() argument
27 SandboxPermissionNode *permissionNode = (SandboxPermissionNode *)ListEntry(node, SandboxMountNode, node); in PermissionNodeCompareIndex()
31 static int PermissionNodeCompareName(ListNode *node, void *data) in PermissionNodeCompareName() argument
33 SandboxPermissionNode *permissionNode = (SandboxPermissionNode *)ListEntry(node, SandboxMountNode, node); in PermissionNodeCompareName()
41 static int PermissionNodeCompareProc(ListNode *node, ListNode *newNode) in PermissionNodeCompareProc() argument
43 SandboxPermissionNode *permissionNode = (SandboxPermissionNode *)ListEntry(node, SandboxMountNode, node); in PermissionNodeCompareProc()
44 SandboxPermissionNode *newPermissionNode = (SandboxPermissionNode *)ListEntry(newNode, SandboxMountNode, node); in PermissionNodeCompareProc()
62 SandboxPermissionNode *node = (SandboxPermissionNode *)CreateSandboxSection( AddSandboxPermissionNode() local
69 SandboxPermissionNode *node = (SandboxPermissionNode *)calloc(1, len); AddSandboxPermissionNode() local
84 ListNode *node = queue->front.next; DeleteSandboxPermissions() local
103 ListNode *node = queue->front.next; PermissionRenumber() local
125 ListNode *node = OH_ListFind(&queue->front, (void *)permission, PermissionNodeCompareName); GetPermissionNodeInQueue() local
137 ListNode *node = OH_ListFind(&queue->front, (void *)&index, PermissionNodeCompareIndex); GetPermissionNodeInQueueByIndex() local
[all...]
H A Dsandbox_manager.c28 static void FreePathMountNode(SandboxMountNode *node) in FreePathMountNode() argument
30 PathMountNode *sandboxNode = (PathMountNode *)node; in FreePathMountNode()
46 static void FreeSymbolLinkNode(SandboxMountNode *node) in FreeSymbolLinkNode() argument
48 SymbolLinkNode *sandboxNode = (SymbolLinkNode *)node; in FreeSymbolLinkNode()
60 static int SandboxNodeCompareProc(ListNode *node, ListNode *newNode) in SandboxNodeCompareProc() argument
62 SandboxMountNode *sandbox1 = (SandboxMountNode *)ListEntry(node, SandboxMountNode, node); in SandboxNodeCompareProc()
63 SandboxMountNode *sandbox2 = (SandboxMountNode *)ListEntry(newNode, SandboxMountNode, node); in SandboxNodeCompareProc()
71 SandboxMountNode *node = (SandboxMountNode *)calloc(1, dataLen); in CreateSandboxMountNode() local
72 APPSPAWN_CHECK(node ! in CreateSandboxMountNode()
78 AddSandboxMountNode(SandboxMountNode *node, SandboxSection *queue) AddSandboxMountNode() argument
85 PathMountNodeCompare(ListNode *node, void *data) PathMountNodeCompare() argument
94 SymbolLinkNodeCompare(ListNode *node, void *data) SymbolLinkNodeCompare() argument
111 ListNode *node = OH_ListFind(&section->front, (void *)&pathNode, PathMountNodeCompare); GetPathMountNode() local
126 ListNode *node = OH_ListFind(&section->front, (void *)&linkNode, SymbolLinkNodeCompare); GetSymbolLinkNode() local
230 ListNode *node = section->front.next; ClearSandboxSection() local
242 DumpSandboxQueue(const ListNode *front, void (*dumpSandboxMountNode)(const SandboxMountNode *node, uint32_t count)) DumpSandboxQueue() argument
246 ListNode *node = front->next; DumpSandboxQueue() local
294 SandboxConditionalNodeCompareName(ListNode *node, void *data) SandboxConditionalNodeCompareName() argument
300 SandboxConditionalNodeCompareNode(ListNode *node, ListNode *newNode) SandboxConditionalNodeCompareNode() argument
310 ListNode *node = OH_ListFind(&queue->front, (void *)name, SandboxConditionalNodeCompareName); GetSandboxSection() local
317 AddSandboxSection(SandboxSection *node, SandboxQueue *queue) AddSandboxSection() argument
337 ListNode *node = queue->front.next; SandboxQueueClear() local
346 AppSpawnExtDataCompareDataId(ListNode *node, void *data) AppSpawnExtDataCompareDataId() argument
356 ListNode *node = OH_ListFind(&content->extData, (void *)&dataId, AppSpawnExtDataCompareDataId); GetAppSpawnSandbox() local
385 DumpSandboxPermission(const SandboxMountNode *node, uint32_t index) DumpSandboxPermission() argument
394 DumpSandboxSectionNode(const SandboxMountNode *node, uint32_t index) DumpSandboxSectionNode() argument
402 DumpSandboxNameGroupNode(const SandboxMountNode *node, uint32_t index) DumpSandboxNameGroupNode() argument
580 ListNode *node = sandbox->permissionQueue.front.next; AppendPermissionGid() local
[all...]
/base/update/updater/test/unittest/utils/json/
H A Dutils_json_test.cpp57 JsonNode node(str); in HWTEST_F()
58 EXPECT_EQ(node.Key(), std::nullopt); in HWTEST_F()
59 EXPECT_EQ(node["key"].Key(), "key"); in HWTEST_F()
63 JsonNode node(str); in HWTEST_F()
64 EXPECT_EQ(node.Key(), std::nullopt); in HWTEST_F()
71 JsonNode node(str); in HWTEST_F()
72 EXPECT_EQ((node["key"] == 1), false); in HWTEST_F()
78 JsonNode node(str); in HWTEST_F()
79 EXPECT_EQ(node["key"].Type(), NodeType::STRING); in HWTEST_F()
80 EXPECT_EQ(node["ke in HWTEST_F()
[all...]
/base/update/updater/test/fuzztest/updaterutils_fuzzer/
H A Dupdater_utils_fuzzer.cpp140 JsonNode node(str); in TestJsonNodeValueKey()
141 node.Key(); in TestJsonNodeValueKey()
142 node["key"].Key(); in TestJsonNodeValueKey()
146 JsonNode node(str); in TestJsonNodeValueKey()
147 node.Key(); in TestJsonNodeValueKey()
154 JsonNode node(str); in TestJsonNodeKey()
155 node["key"]; in TestJsonNodeKey()
161 JsonNode node(str); in TestJsonNodeValueTypeStr()
162 node["key"].Type(); in TestJsonNodeValueTypeStr()
163 node["ke in TestJsonNodeValueTypeStr()
[all...]
/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/src/
H A Dschedule_node_fuzzer.cpp59 auto node = GetScheduleNode(parcel); in FuzzScheduleNodeGetScheduleId() local
60 if (node != nullptr) { in FuzzScheduleNodeGetScheduleId()
61 node->GetScheduleId(); in FuzzScheduleNodeGetScheduleId()
69 auto node = GetScheduleNode(parcel); in FuzzScheduleNodeGetContextId() local
70 if (node != nullptr) { in FuzzScheduleNodeGetContextId()
71 node->GetContextId(); in FuzzScheduleNodeGetContextId()
79 auto node = GetScheduleNode(parcel); in FuzzScheduleNodeGetAuthType() local
80 if (node != nullptr) { in FuzzScheduleNodeGetAuthType()
81 node->GetAuthType(); in FuzzScheduleNodeGetAuthType()
89 auto node in FuzzScheduleNodeGetExecutorMatcher() local
99 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetScheduleMode() local
109 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetCollectorExecutor() local
119 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetVerifyExecutor() local
129 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetTemplateIdList() local
139 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetCurrentScheduleState() local
149 auto node = GetScheduleNode(parcel); FuzzScheduleNodeStartSchedule() local
159 auto node = GetScheduleNode(parcel); FuzzScheduleNodeStopSchedule() local
172 auto node = GetScheduleNode(parcel); FuzzScheduleNodeSendMessage() local
186 auto node = GetScheduleNode(parcel); FuzzScheduleNodeContinueSchedule() local
[all...]
H A Dresource_node_fuzzer.cpp115 auto node = GetResourceNode(parcel); in FuzzResourceNodeGetExecutorIndex() local
116 if (node != nullptr) { in FuzzResourceNodeGetExecutorIndex()
117 node->GetExecutorIndex(); in FuzzResourceNodeGetExecutorIndex()
125 auto node = GetResourceNode(parcel); in FuzzResourceNodeGetOwnerDeviceId() local
126 if (node != nullptr) { in FuzzResourceNodeGetOwnerDeviceId()
127 node->GetOwnerDeviceId(); in FuzzResourceNodeGetOwnerDeviceId()
135 auto node = GetResourceNode(parcel); in FuzzResourceNodeGetOwnerPid() local
136 if (node != nullptr) { in FuzzResourceNodeGetOwnerPid()
137 node->GetOwnerPid(); in FuzzResourceNodeGetOwnerPid()
145 auto node in FuzzResourceNodeGetAuthType() local
155 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorRole() local
165 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorSensorHint() local
175 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorMatcher() local
185 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorEsl() local
195 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorPublicKey() local
205 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorDeviceUdid() local
221 auto node = GetResourceNode(parcel); FuzzResourceNodeBeginExecute() local
235 auto node = GetResourceNode(parcel); FuzzResourceNodeSendData() local
249 auto node = GetResourceNode(parcel); FuzzResourceNodeEndExecute() local
262 auto node = GetResourceNode(parcel); FuzzResourceNodeSetProperty() local
276 auto node = GetResourceNode(parcel); FuzzResourceNodeGetProperty() local
286 auto node = GetResourceNode(parcel); FuzzResourceNodeDetach() local
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_session_mgr.c46 static void FreeSessionNode(struct CmSessionNode **node) in FreeSessionNode() argument
48 if ((node == NULL) || (*node == NULL)) { in FreeSessionNode()
52 CM_FREE_PTR((*node)->handle.data); in FreeSessionNode()
53 CM_FREE_PTR((*node)->info.uri.data); in FreeSessionNode()
54 CM_FREE_PTR(*node); in FreeSessionNode()
107 static int32_t ConstructSessionInfo(const struct CmSessionNodeInfo *info, struct CmSessionNode *node) in ConstructSessionInfo() argument
117 node->info.userId = info->userId; in ConstructSessionInfo()
118 node->info.uid = info->uid; in ConstructSessionInfo()
119 node in ConstructSessionInfo()
124 ConstructHandle(const struct CmBlob *handle, struct CmSessionNode *node) ConstructHandle() argument
141 struct CmSessionNode *node = (struct CmSessionNode *)CMMalloc(sizeof(struct CmSessionNode)); CmCreateSession() local
188 IsSameCaller(const struct CmSessionNodeInfo *info, const struct CmSessionNode *node) IsSameCaller() argument
195 struct CmSessionNode *node = NULL; CmQuerySession() local
210 struct CmSessionNode *node = NULL; CmDeleteSession() local
224 IsNeedDelete(enum CmSessionDeleteType deleteType, const struct CmSessionNodeInfo *info, const struct CmSessionNode *node) IsNeedDelete() argument
244 struct CmSessionNode *node = *nodeSession; DeleteSessionNode() local
255 struct CmSessionNode *node = NULL; CmDeleteSessionByNodeInfo() local
[all...]
/base/startup/appspawn/standard/
H A Dappspawn_appmgr.c78 static void SpawningQueueDestroy(ListNode *node) in SpawningQueueDestroy() argument
80 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); in SpawningQueueDestroy()
84 static void ExtDataDestroy(ListNode *node) in ExtDataDestroy() argument
86 AppSpawnExtData *extData = ListEntry(node, AppSpawnExtData, node); in ExtDataDestroy()
111 ListNode *node = g_appSpawnMgr->appQueue.next; in TraversalSpawnedProcess() local
112 while (node != &g_appSpawnMgr->appQueue) { in TraversalSpawnedProcess()
113 ListNode *next = node->next; in TraversalSpawnedProcess()
114 AppSpawnedProcess *appInfo = ListEntry(node, AppSpawnedProces in TraversalSpawnedProcess()
120 AppInfoPidComparePro(ListNode *node, void *data) AppInfoPidComparePro() argument
127 AppInfoNameComparePro(ListNode *node, void *data) AppInfoNameComparePro() argument
133 AppInfoCompareProc(ListNode *node, ListNode *newNode) AppInfoCompareProc() argument
146 AppSpawnedProcess *node = (AppSpawnedProcess *)calloc(1, sizeof(AppSpawnedProcess) + len + 1); AddSpawnedProcess() local
164 TerminateSpawnedProcess(AppSpawnedProcess *node) TerminateSpawnedProcess() argument
189 ListNode *node = OH_ListFind(&g_appSpawnMgr->appQueue, &pid, AppInfoPidComparePro); GetSpawnedProcess() local
199 ListNode *node = OH_ListFind(&g_appSpawnMgr->appQueue, (void *)name, AppInfoNameComparePro); GetSpawnedProcessByName() local
253 ListNode *node = OH_ListFind(&g_appSpawnMgr->diedQueue, &pid, AppInfoPidComparePro); GetProcessTerminationStatus() local
334 AppPropertyComparePid(ListNode *node, void *data) AppPropertyComparePid() argument
346 ListNode *node = OH_ListFind(&g_appSpawnMgr->appSpawnQueue, (void *)&pid, AppPropertyComparePid); GetAppSpawningCtxByPid() local
354 ListNode *node = g_appSpawnMgr->appSpawnQueue.next; AppSpawningCtxTraversal() local
363 DumpAppSpawnQueue(ListNode *node, void *data) DumpAppSpawnQueue() argument
374 DumpAppQueue(ListNode *node, void *data) DumpAppQueue() argument
384 DumpExtData(ListNode *node, void *data) DumpExtData() argument
[all...]
/base/startup/init/services/utils/
H A Dinit_hashmap.c51 HashNode *node = (HashNode *)root; in GetHashNodeByNode() local
52 while (node != NULL) { in GetHashNodeByNode()
53 int ret = tab->nodeCompare(node, new); in GetHashNodeByNode()
55 return node; in GetHashNodeByNode()
57 node = node->next; in GetHashNodeByNode()
65 HashNode *node = (HashNode *)root; in GetHashNodeByKey() local
66 while (node != NULL) { in GetHashNodeByKey()
67 int ret = keyCompare(node, key); in GetHashNodeByKey()
69 return node; in GetHashNodeByKey()
76 OH_HashMapAdd(HashMapHandle handle, HashNode *node) OH_HashMapAdd() argument
106 HashNode *node = tab->buckets[hashCode]; OH_HashMapRemove() local
140 HashNode *node = root; HashListFree() local
171 OH_HashMapTraverse(HashMapHandle handle, void (*hashNodeTraverse)(const HashNode *node, const void *context), const void *context) OH_HashMapTraverse() argument
177 HashNode *node = tab->buckets[i]; OH_HashMapTraverse() local
191 HashNode *node = tab->buckets[i]; OH_HashMapIsEmpty() local
[all...]
/base/useriam/user_auth_framework/test/unittest/services/mocks/
H A Dmock_resource_node.h52 auto node = std::make_shared<MockResourceNode>(); in CreateWithExecuteIndex()
53 EXPECT_CALL(*node, GetExecutorIndex()).WillRepeatedly(Return(executorId)); in CreateWithExecuteIndex()
54 EXPECT_CALL(*node, GetAuthType()).WillRepeatedly(Return(PIN)); in CreateWithExecuteIndex()
55 EXPECT_CALL(*node, GetExecutorRole()).WillRepeatedly(Return(COLLECTOR)); in CreateWithExecuteIndex()
56 EXPECT_CALL(*node, GetExecutorMatcher()).WillRepeatedly(Return(0)); in CreateWithExecuteIndex()
57 EXPECT_CALL(*node, GetExecutorSensorHint()).WillRepeatedly(Return(0)); in CreateWithExecuteIndex()
58 EXPECT_CALL(*node, DetachFromDriver()).Times(detach ? 1 : 0); in CreateWithExecuteIndex()
59 return node; in CreateWithExecuteIndex()
66 auto node = std::make_shared<MockResourceNode>(); in CreateWithExecuteIndex()
68 EXPECT_CALL(*node, GetExecutorInde in CreateWithExecuteIndex()
[all...]
/base/security/device_auth/test/unittest/deviceauth/source/
H A Ddevice_auth_ext_mock.c41 ExtPluginNode *node = (ExtPluginNode *)HcMalloc(sizeof(ExtPluginNode), 0); in CreateNode() local
42 if (node == NULL) { in CreateNode()
43 LOGE("Failed to malloc plugin node!"); in CreateNode()
46 node->plugin = (ExtPlugin *)HcMalloc(sizeof(ExtPlugin), 0); in CreateNode()
47 if (node->plugin == NULL) { in CreateNode()
49 HcFree(node); in CreateNode()
52 node->plugin->pluginType = plugType; in CreateNode()
53 node->plugin->init = InitPlugin; in CreateNode()
54 node->plugin->destroy = DestroyPlugin; in CreateNode()
55 node in CreateNode()
59 AddPlugin(ExtPluginList *list, ExtPluginNode *node) AddPlugin() argument
75 ExtPluginNode *node = list; DestroyList() local
[all...]
/base/inputmethod/imf/services/include/
H A Dsys_cfg_parser.h33 bool Unmarshal(cJSON *node) override
35 GetValue(node, GET_NAME(systemInputMethodConfigAbility), systemInputMethodConfigAbility);
36 GetValue(node, GET_NAME(defaultInputMethod), defaultInputMethod);
37 GetValue(node, GET_NAME(enableInputMethodFeature), enableInputMethodFeature);
38 GetValue(node, GET_NAME(enableFullExperienceFeature), enableFullExperienceFeature);
44 bool Unmarshal(cJSON *node) override
46 return GetValue(node, GET_NAME(systemConfig), systemConfig);
54 bool Unmarshal(cJSON *node) override
57 auto ret = GetValue(node, GET_NAME(inputType), typeTemp);
62 ret = GetValue(node, GET_NAM
[all...]
/base/startup/init/interfaces/innerkits/include/
H A Dlist.h34 * └------prev-| node |<-prev-| node |<-prev-| node |<-prev----|
42 * ListNode node;
59 * static int TestListItemCompareProc(ListNode *node, ListNode *newNode)
61 * TEST_LIST_ITEM *left = (TEST_LIST_ITEM *)node;
69 * @brief Double linked list node
76 #define ListEmpty(node) ((node).next == &(node)
[all...]
/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Drule_cluster.cpp115 for (xmlNode* node = root; node; node = node->next) { in ParseRuleFile()
116 if (node->type != XML_ELEMENT_NODE) { in ParseRuleFile()
119 if (TAG_FREEZE == std::string((char*)(node->name))) { in ParseRuleFile()
120 ParseTagFreeze(node); in ParseRuleFile()
132 for (xmlNode* node = tag->children; node; node in ParseTagFreeze()
237 GetAttributeValue(xmlNode* node, const std::string& name) GetAttributeValue() argument
[all...]
/base/security/access_token/interfaces/innerkits/analysis_model/src/
H A Dcode_signature_analysis_kit.c31 AppRiskInfo *node = g_modelDataHead->next; in FindExistingNode() local
32 while (node != NULL) { in FindExistingNode()
33 if (node->tokenId == tokenId) { in FindExistingNode()
36 node = node->next; in FindExistingNode()
39 return node; in FindExistingNode()
42 static int32_t IsRiskStatusChanged(AppRiskInfo *node) in IsRiskStatusChanged() argument
46 RiskPolicyType policy = node->status.policy; in IsRiskStatusChanged()
49 TimeStampNode *tmp = ((node->errInfoList)[i]).timeStampChain; in IsRiskStatusChanged()
53 node in IsRiskStatusChanged()
76 DataPreProcess(const CodeSignatureReportedInfo *report, AppRiskInfo *node, uint32_t optType) DataPreProcess() argument
119 AppRiskInfo *node = (AppRiskInfo *)malloc(sizeof(AppRiskInfo)); AppRiskInfoNodeInit() local
149 ReleaseTimeStampChain(AppRiskInfo *node) ReleaseTimeStampChain() argument
164 SetResultInfoAccordingToNode(NotifyRiskResultInfo *result, AppRiskInfo *node) SetResultInfoAccordingToNode() argument
171 UpdateInfoInCurrNode(const CodeSignatureReportedInfo *report, AppRiskInfo *node, uint32_t optType) UpdateInfoInCurrNode() argument
204 AppRiskInfo *node = AppRiskInfoNodeInit(); AddNewAppInfoNode() local
250 AppRiskInfo *node = FindExistingNode(report->tokenId); DataProcess() local
327 AppRiskInfo *node = g_modelDataHead->next; Release() local
371 AppRiskInfo *node = g_modelDataHead->next; GetResult() local
[all...]
/base/startup/init/services/loopevent/timer/
H A Dle_timer.c39 static int TimerNodeCompareProc(ListNode *node, ListNode *newNode) in TimerNodeCompareProc() argument
41 TimerNode *timer1 = ListEntry(node, TimerNode, node); in TimerNodeCompareProc()
42 TimerNode *timer2 = ListEntry(newNode, TimerNode, node); in TimerNodeCompareProc()
58 OH_ListAddWithOrder(&loop->timerList, &timer->node, TimerNodeCompareProc); in InsertTimerNode()
68 ListNode *node = loop->timerList.next; in CheckTimeoutOfTimer() local
69 while (node != &loop->timerList) { in CheckTimeoutOfTimer()
70 TimerNode *timer = ListEntry(node, TimerNode, node); in CheckTimeoutOfTimer()
76 OH_ListRemove(&timer->node); in CheckTimeoutOfTimer()
157 TimerNodeDestroyProc(ListNode *node) TimerNodeDestroyProc() argument
[all...]
/base/inputmethod/imf/services/json/src/
H A Dserializable.cpp54 bool Serializable::GetValue(cJSON *node, const std::string &name, std::string &value) in GetValue() argument
56 auto subNode = GetSubNode(node, name); in GetValue()
65 bool Serializable::GetValue(cJSON *node, const std::string &name, int32_t &value) in GetValue() argument
67 auto subNode = GetSubNode(node, name); in GetValue()
76 bool Serializable::GetValue(cJSON *node, const std::string &name, uint32_t &value) in GetValue() argument
78 auto subNode = GetSubNode(node, name); in GetValue()
92 bool Serializable::GetValue(cJSON *node, const std::string &name, bool &value) in GetValue() argument
94 auto subNode = GetSubNode(node, name); in GetValue()
103 bool Serializable::GetValue(cJSON *node, const std::string &name, Serializable &value) in GetValue() argument
105 auto object = GetSubNode(node, nam in GetValue()
113 SetValue(cJSON *node, const std::string &name, const std::string &value) SetValue() argument
119 SetValue(cJSON *node, const std::string &name, const int32_t &value) SetValue() argument
125 GetSubNode(cJSON *node, const std::string &name) GetSubNode() argument
[all...]
/base/update/updater/services/ui/
H A Dupdater_ui_config.cpp70 std::string SelectConfig(const JsonNode &node) in SelectConfig() argument
73 for (const auto &iter : node) { in SelectConfig()
104 JsonNode node { Fs::path { UI_CFG_FILE }}; in Init()
105 const JsonNode &cfgNode = node[UI_CFG_KEY]; in Init()
131 bool UpdaterUiConfig::Init(const JsonNode &node) in Init() argument
133 static bool res = [&node] () { in Init()
134 return LoadLangRes(node) && LoadStrategy(node) && LoadCallbacks(node) && LoadFocusCfg(node) in Init()
149 LoadPages(const JsonNode &node) LoadPages() argument
174 LoadLangRes(const JsonNode &node) LoadLangRes() argument
179 LoadStrategy(const JsonNode &node) LoadStrategy() argument
184 LoadCallbacks(const JsonNode &node) LoadCallbacks() argument
189 LoadFocusCfg(const JsonNode &node) LoadFocusCfg() argument
[all...]
H A Dupdater_ui_config.h32 static bool Init(const JsonNode &node);
33 static bool LoadStrategy(const JsonNode &node);
34 static bool LoadPages(const JsonNode &node);
35 static bool LoadLangRes(const JsonNode &node);
36 static bool LoadCallbacks(const JsonNode &node);
37 static bool LoadFocusCfg(const JsonNode &node);
/base/security/huks/test/unittest/huks_standard_test/module_test/utils_test/src/
H A Dhks_double_list_test.cpp64 struct DoubleList node = { 0 }; in HWTEST_F() local
66 InitializeDoubleList(&node); in HWTEST_F()
67 ASSERT_TRUE(node.prev == &node); in HWTEST_F()
79 struct DoubleList node = { 0 }; in HWTEST_F() local
81 AddNodeAfterDoubleListHead(&head, &node); in HWTEST_F()
82 ASSERT_TRUE(head.next == &node); in HWTEST_F()
94 struct DoubleList node = { 0 }; in HWTEST_F() local
96 AddNodeAtDoubleListTail(&head, &node); in HWTEST_F()
97 ASSERT_TRUE(head.prev == &node); in HWTEST_F()
[all...]
/base/security/selinux_adapter/framework/policycoreutils/src/
H A Dselinux_map.c43 static int GroupNodeGetNodeHashCode(const HashNode *node) in GroupNodeGetNodeHashCode() argument
45 ParamHashNode *groupNode = HASHMAP_ENTRY(node, ParamHashNode, hashNode); in GroupNodeGetNodeHashCode()
49 static void GroupNodeFree(const HashNode *node) in GroupNodeFree() argument
51 ParamHashNode *groupNode = HASHMAP_ENTRY(node, ParamHashNode, hashNode); in GroupNodeFree()
93 int32_t HashMapAdd(HashTab *handle, HashNode *node) in HashMapAdd() argument
95 if (handle == NULL || !(node != NULL && node->next == NULL)) { in HashMapAdd()
98 int hashCode = GroupNodeGetNodeHashCode(node); in HashMapAdd()
103 HashNode *tmp = GetHashNodeByNode(handle->buckets[hashCode], node); in HashMapAdd()
107 node in HashMapAdd()
130 HashNode *node = root; HashListFree() local
[all...]
H A Dsehap_contexts_trie.cpp47 SehapContextsTrie* node = this; in FindChild() local
48 auto iter = node->children.find(element); in FindChild()
49 if (iter != node->children.end()) { in FindChild()
57 SehapContextsTrie* node = this; in Insert() local
63 if (node->children[word] == nullptr) { in Insert()
64 node->children[word] = new (std::nothrow) SehapContextsTrie(); in Insert()
65 if (node->children[word] == nullptr) { in Insert()
70 node = node->children[word]; in Insert()
73 node in Insert()
[all...]
/base/startup/init/test/unittest/init/
H A Dgroup_unittest.cpp32 HashNode node; member
38 TestHashNode *testNode1 = HASHMAP_ENTRY(node1, TestHashNode, node); in TestHashNodeCompare()
39 TestHashNode *testNode2 = HASHMAP_ENTRY(node2, TestHashNode, node); in TestHashNodeCompare()
45 TestHashNode *testNode1 = HASHMAP_ENTRY(node1, TestHashNode, node); in TestHashKeyCompare()
49 static int TestHashNodeFunction(const HashNode *node) in TestHashNodeFunction() argument
51 TestHashNode *testNode = HASHMAP_ENTRY(node, TestHashNode, node); in TestHashNodeFunction()
71 static void TestHashNodeFree(const HashNode *node, void *context) in TestHashNodeFree() argument
73 TestHashNode *testNode = HASHMAP_ENTRY(node, TestHashNode, node); in TestHashNodeFree()
80 TestHashNode *node = reinterpret_cast<TestHashNode *>(malloc(sizeof(TestHashNode) + strlen(value) + 1)); TestCreateHashNode() local
129 HashNode *node = OH_HashMapGet(handle, (const void *)str1); HWTEST_F() local
170 HashNode *node = OH_HashMapGet(handle, (const void *)act); HWTEST_F() local
316 InitGroupNode *node = AddGroupNode(NODE_TYPE_SERVICES, "test-service6"); HWTEST_F() local
[all...]
/base/startup/appspawn/interfaces/innerkits/permission/
H A Dappspawn_mount_permission.h35 struct ListNode node; member
46 #define PERMISSION_NAME(node) (node) == NULL ? NULL : (node)->name
48 #define PERMISSION_NAME(node) (node) == NULL ? NULL : (node)->section.name

Completed in 11 milliseconds

123456789