Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 120) sorted by relevance

12345

/base/security/device_security_level/baselib/utils/include/
Dutils_list.h20 struct TagListHead *next; member
28 item->next = where->next; in AddListNode()
30 where->next = item; in AddListNode()
31 item->next->prev = item; in AddListNode()
41 item->prev->next = item->next; in RemoveListNode()
42 item->next->prev = item->prev; in RemoveListNode()
47 return head->next == head; in IsEmptyList()
52 head->next = head; in InitListHead()
61 …e FOREACH_LIST_NODE(item, head) for ((item) = (head)->next; (item) != (head); (item) = (item)->nex…
64 …for ((item) = (head)->next, (temp) = (item)->next; (item) != (head); (item) = (temp), (temp) = (it…
/base/security/huks/utils/list/
Dhks_double_list.c29 node->next = node; in InitializeDoubleList()
38 if (head->next == NULL) { in AddNodeAfterDoubleListHead()
39 head->next = head; in AddNodeAfterDoubleListHead()
42 head->next->prev = node; in AddNodeAfterDoubleListHead()
43 node->next = head->next; in AddNodeAfterDoubleListHead()
45 head->next = node; in AddNodeAfterDoubleListHead()
58 head->prev->next = node; in AddNodeAtDoubleListTail()
59 node->next = head; in AddNodeAtDoubleListTail()
70 if (node->next != NULL) { in RemoveDoubleListNode()
71 node->next->prev = node->prev; in RemoveDoubleListNode()
[all …]
Dhks_double_list.h21 struct DoubleList *next; member
47 …for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))…
52 for (p = (head)->next, (st) = (__typeof__(st))p, _tmp = *p; p != (head); \
53 p = _tmp.next, _tmp = *p, (st) = (__typeof__(st))p)
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_double_list.c29 listNode->next = listNode; in CmInitList()
38 if (listHead->next == NULL) { in CmAddNodeAfterListHead()
39 listHead->next = listHead; in CmAddNodeAfterListHead()
42 listHead->next->prev = listNode; in CmAddNodeAfterListHead()
43 listNode->next = listHead->next; in CmAddNodeAfterListHead()
45 listHead->next = listNode; in CmAddNodeAfterListHead()
58 listHead->prev->next = listNode; in CmAddNodeAtListTail()
59 listNode->next = listHead; in CmAddNodeAtListTail()
70 if (listNode->next != NULL) { in CmRemoveNodeFromList()
71 listNode->next->prev = listNode->prev; in CmRemoveNodeFromList()
[all …]
/base/startup/init/services/utils/
Dlist.c34 node->next = node; in OH_ListInit()
50 item->next = head; in OH_ListAddTail()
52 head->prev->next = item; in OH_ListAddTail()
68 item->next->prev = item->prev; in OH_ListRemove()
69 item->prev->next = item->next; in OH_ListRemove()
91 match = head->next; in OH_ListAddWithOrder()
96 match = match->next; in OH_ListAddWithOrder()
103 item->next = match; in OH_ListAddWithOrder()
105 match->prev->next = item; in OH_ListAddWithOrder()
124 match = head->next; in OH_ListFind()
[all …]
Dinit_hashmap.c56 node = node->next; in GetHashNodeByNode()
70 node = node->next; in GetHashNodeByKey()
78 INIT_ERROR_CHECK(node != NULL && node->next == NULL, return -1, "Invalid param"); in OH_HashMapAdd()
91 node->next = tab->buckets[hashCode]; in OH_HashMapAdd()
112 tab->buckets[hashCode] = node->next; in OH_HashMapRemove()
114 preNode->next = node->next; in OH_HashMapRemove()
119 node = node->next; in OH_HashMapRemove()
142 HashNode *next = node->next; in HashListFree() local
146 node = next; in HashListFree()
179 HashNode *next = node->next; in OH_HashMapTraverse() local
[all …]
/base/security/access_token/services/privacymanager/src/record/
Dpermission_used_record_cache.cpp144 persistPendingBufferHead->next; in PersistPendingRecords()
146 auto next = curPendingRecordNode->next; in PersistPendingRecords() local
152 curPendingRecordNode = next; in PersistPendingRecords()
182 curFindDeletePos = recordBufferHead_->next; in RemoveRecords()
185 auto next = curFindDeletePos->next; in RemoveRecords() local
197 curFindDeletePos = next; in RemoveRecords()
218 curFindDeletePos = persistHead->next; in RemoveFromPersistQueueAndDatabase()
220 auto next = curFindDeletePos->next; in RemoveFromPersistQueueAndDatabase() local
224 curFindDeletePos = next; in RemoveFromPersistQueueAndDatabase()
247 curFindPos = recordBufferHead_->next; in GetRecords()
[all …]
/base/security/dataclassification/frameworks/datatransmitmgr/
Ddev_slinfo_list.c32 list->next = list; in InitList()
43 newListNode->next = nextListNode; in UpdateListNode()
45 prevListNode->next = newListNode; in UpdateListNode()
66 struct DATASLListParams *pList = list->next; in RemoveListNode()
69 pList->prev->next = pList->next; in RemoveListNode()
70 pList->next->prev = pList->prev; in RemoveListNode()
79 pList = pList->next; in RemoveListNode()
91 struct DATASLListParams *pList = list->next; in ClearList()
94 pList = pList->next; in ClearList()
112 struct DATASLListParams *pList = list->next; in GetListLength()
[all …]
/base/security/permission_lite/services/pms/src/
Dperm_operate.c28 cur = cur->next; in PermissionIsGranted()
61 node->next = list->head; in AddTask()
73 list->head = cur->next; in DeleteTask()
75 pre->next = cur->next; in DeleteTask()
82 cur = cur->next; in DeleteTask()
93 cur = cur->next; in GetTaskWithUid()
105 cur = cur->next; in GetTaskWithPkgName()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DStringPool.java43 for (Map.Entry<String, Integer> next : hashMap.entrySet()) { in StringPool()
44 this.int2StrMap.put(next.getValue(), next.getKey()); in StringPool()
46 if (next.getKey().endsWith(ARABIC_PERCENT)) { in StringPool()
47 lengthMap.put(next.getValue(), next.getKey().getBytes("UTF-8").length + 3); in StringPool()
49 this.lengthMap.put(next.getValue(), next.getKey().getBytes("UTF-8").length); in StringPool()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage_file_lock.c32 HksStorageFileLock *next; member
67 temp = iter->next; in ClearLockList()
83 iter = iter->next; in FindFileLock()
106 lock->next = NULL; in AllocFileLock()
127 g_lockListFirst->next = NULL; in AppendFileLock()
133 g_lockListLast->next = lock; in AppendFileLock()
135 g_lockListLast->next = NULL; in AppendFileLock()
197 iter = iter->next; in IsLockInList()
219 iter = iter->next; in Release()
225 previous->next = iter->next; in Release()
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_double_list.h27 struct DoubleList *next; member
49 …for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))…
54 for (p = (head)->next, (st) = (__typeof__(st))p, tmp = *p; p != (head); \
55 p = tmp.next, tmp = *p, (st) = (__typeof__(st))p)
/base/security/selinux/interfaces/policycoreutils/src/
Dselinux_map.c81 root = root->next; in GetHashNodeByNode()
93 root = root->next; in GetHashNodeByKey()
100 if (handle == NULL || !(node != NULL && node->next == NULL)) { in HashMapAdd()
112 node->next = handle->buckets[hashCode]; in HashMapAdd()
132 handle->buckets[hashCode] = node->next; in HashMapRemove()
134 preNode->next = node->next; in HashMapRemove()
139 node = node->next; in HashMapRemove()
159 HashNode *next = node->next; in HashListFree() local
161 node = next; in HashListFree()
/base/security/device_auth/frameworks/deviceauth_lite/source/struct/
Dkey_agreement_version.c25 …id split_ver(char *tmp_ver, const char *sub_ver, struct key_agreement_version *cur_ver, char *next) in split_ver() argument
27 sub_ver = strtok_s(tmp_ver, ".", &next); in split_ver()
31 sub_ver = strtok_s(NULL, ".", &next); in split_ver()
35 sub_ver = strtok_s(NULL, ".", &next); in split_ver()
48 char *next = NULL; in parse_version() local
60 split_ver(tmp_cur_ver, sub_cur_ver, min_ver, next); in parse_version()
80 split_ver(tmp_min_ver, sub_min_ver, cur_ver, next); in parse_version()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dmbedtls_pkcs7.c328 nameList = nameList->next; in GetDeps()
355 first = first->next; in CompareX509NameList()
356 second = second->next; in CompareX509NameList()
419 signers->next = Pkcs7Calloc(1, sizeof(*signers)); in ParseSignedDataSignerInfos()
420 if (signers->next == NULL) { in ParseSignedDataSignerInfos()
424 signers = signers->next; in ParseSignedDataSignerInfos()
470 id->next = Pkcs7Calloc(1, sizeof(DigestAlgId)); in ParseSignedDataDigestAlgs()
471 if (id->next == NULL) { in ParseSignedDataDigestAlgs()
475 id = id->next; in ParseSignedDataDigestAlgs()
640 DigestAlgId *alg = pkcs7->signedData.digestAlgIds.next; in FreeSignedDataDigestAlgs()
[all …]
/base/startup/init/services/include/
Dlist.h72 struct ListNode *next; member
76 #define ListEmpty(node) ((node).next == &(node) && (node).prev == &(node))
78 #define ForEachListEntry(list, node) for (node = (list)->next; node != (list); node = node->next)
/base/startup/init/test/unittest/init/
Dservice_socket_unittest.cpp54 sockopt->next = nullptr;
59 sockopt->next = service->socketCfg->next;
60 service->socketCfg->next = sockopt;
/base/global/i18n/frameworks/intl/src/
Di18n_break_iterator.cpp75 int32_t I18nBreakIterator::next(int32_t number) in next() function in OHOS::Global::I18n::I18nBreakIterator
78 return iter->next(number); in next()
83 int32_t I18nBreakIterator::next() in next() function in OHOS::Global::I18n::I18nBreakIterator
86 return iter->next(); in next()
/base/startup/init/interfaces/kits/jskits/src/
Dnative_parameters_watch.cpp191 static bool GetFristRefence(ParamWatcherPtr watcher, uint32_t &next) in GetFristRefence() argument
196 next = watcher->callbackReferences.begin()->first; in GetFristRefence()
202 static napi_ref GetWatcherReference(ParamWatcherPtr watcher, uint32_t next) in GetWatcherReference() argument
205 auto iter = watcher->callbackReferences.find(next); in GetWatcherReference()
212 static uint32_t GetNextRefence(ParamWatcherPtr watcher, uint32_t &next) in GetNextRefence() argument
215 auto iter = watcher->callbackReferences.upper_bound(next); in GetNextRefence()
219 next = iter->first; in GetNextRefence()
233 static void DelWatcherCallback(ParamWatcherPtr watcher, uint32_t next) in DelWatcherCallback() argument
235 PARAM_JS_LOGV("JSApp watcher key %s delete callback %u", watcher->keyPrefix, next); in DelWatcherCallback()
237 watcher->callbackReferences.erase(next); in DelWatcherCallback()
[all …]
/base/startup/syspara_lite/interfaces/kits/js/src/
Dnative_parameters_watch.cpp186 static bool GetFristRefence(ParamWatcherPtr watcher, uint32_t &next) in GetFristRefence() argument
191 next = watcher->callbackReferences.begin()->first; in GetFristRefence()
197 static napi_ref GetWatcherReference(ParamWatcherPtr watcher, uint32_t next) in GetWatcherReference() argument
200 auto iter = watcher->callbackReferences.find(next); in GetWatcherReference()
207 static uint32_t GetNextRefence(ParamWatcherPtr watcher, uint32_t &next) in GetNextRefence() argument
210 auto iter = watcher->callbackReferences.upper_bound(next); in GetNextRefence()
214 next = iter->first; in GetNextRefence()
228 static void DelWatcherCallback(ParamWatcherPtr watcher, uint32_t next) in DelWatcherCallback() argument
230 …:Debug(LABEL, "JSApp watcher key %{public}s delete callback %{public}u", watcher->keyPrefix, next); in DelWatcherCallback()
232 watcher->callbackReferences.erase(next); in DelWatcherCallback()
[all …]
/base/update/updater/services/diffpatch/bzip2/
Dbzip2_adapter.cpp56 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in WriteData() local
58 stream_.next_out = next; in WriteData()
74 dataSize_ += stream_.next_out - next; in WriteData()
85 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData() local
86 stream_.next_out = next; in FlushData()
91 dataSize_ += stream_.next_out - next; in FlushData()
94 next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData()
95 stream_.next_out = next; in FlushData()
102 dataSize_ += stream_.next_out - next; in FlushData()
/base/startup/init/services/init/standard/
Dinit_cmdexecutor.c68 ListNode *node = cmd->cmdExecutor.next; in RemoveCmdExecutor()
76 node = node->next; in RemoveCmdExecutor()
78 if (cmd->cmdExecutor.next != &cmd->cmdExecutor) { in RemoveCmdExecutor()
98 ListNode *node = cmd->cmdExecutor.next; in PluginExecCmd_()
102 node = node->next; in PluginExecCmd_()
128 ListNode *node = cmd->cmdExecutor.next; in PluginExecCmd()
132 node = node->next; in PluginExecCmd()
/base/global/i18n/frameworks/intl/include/
Di18n_break_iterator.h34 int32_t next(int32_t number);
35 int32_t next();
/base/global/i18n/frameworks/intl/test/fuzztest/breakiterator_fuzzer/
Dbreakiterator_fuzzer.cpp38 iterator.next(number); in DoSomethingInterestingWithMyAPI()
39 iterator.next(); in DoSomethingInterestingWithMyAPI()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_asn1.c130 static int32_t Asn1GetObj(struct HksBlob *next, struct HksAsn1Obj *obj, const struct HksBlob *data) in Asn1GetObj() argument
167 next->data = data->data + obj->header.size + obj->value.size; in Asn1GetObj()
168 next->size = data->size - obj->header.size - obj->value.size; in Asn1GetObj()
172 int32_t HksAsn1ExtractTag(struct HksBlob *next, struct HksAsn1Obj *obj, const struct HksBlob *data, in HksAsn1ExtractTag() argument
175 if ((next == NULL) || (obj == NULL) || (data == NULL) || (data->size < ASN_1_MIN_HEADER_LEN)) { in HksAsn1ExtractTag()
180 int32_t ret = Asn1GetObj(next, obj, data); in HksAsn1ExtractTag()

12345