Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 181) sorted by relevance

12345678

/base/hiviewdfx/hilog/frameworks/libhilog/socket/
Dhilog_input_socket_client.cpp42 iovec vec[3]; in WriteLogMessage() local
43vec[0].iov_base = header; // 0 : index of hos log hea… in WriteLogMessage()
44vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log hea… in WriteLogMessage()
45 vec[1].iov_base = reinterpret_cast<void*>(const_cast<char*>(tag)); // 1 : index of log tag in WriteLogMessage()
46 vec[1].iov_len = tagLen; // 1 : index of log tag in WriteLogMessage()
47vec[2].iov_base = reinterpret_cast<void*>(const_cast<char*>(fmt)); // 2 : index of log content in WriteLogMessage()
48vec[2].iov_len = fmtLen; // 2 : index of log content in WriteLogMessage()
49 …ret = WriteV(vec, 3); // 3 : written size of vect… in WriteLogMessage()
52 ret = WriteV(vec, 3); // 3 : written size of vector in WriteLogMessage()
/base/hiviewdfx/hilog/test/unittest/common/
Dhilog_print_test.cpp104 vector<string> vec; variable
106 Split(res, vec, "\n");
107 for (unsigned int i = 0; i < vec.size(); i++) {
108 log = vec[i].substr(LOGINDEX);
142 vector<string> vec; variable
144 Split(res, vec, "\n");
145 for (unsigned int i = 0; i < vec.size(); i++) {
146 log = vec[i].substr(LOGINDEX);
168 vector<string> vec; variable
170 Split(res, vec, "\n");
[all …]
Dhilogtool_test.cpp438 vector<string> vec; variable
440 Split(res, vec, "\n");
441 for (auto& it : vec) {
558 vector<string> vec; variable
559 Split(res, vec, "\n");
560 for (auto& it : vec) {
587 vector<string> vec; variable
588 Split(res, vec, "\n");
589 for (auto& it : vec) {
622 vector<string> vec; variable
[all …]
/base/powermgr/powermgr_lite/services/src/
Drunning_lock_mgr.c50 static BOOL AddRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in AddRunningLockEntryLocked() argument
52 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in AddRunningLockEntryLocked()
62 pos = VECTOR_Add(vec, (void *)e); in AddRunningLockEntryLocked()
69 if (VECTOR_Num(vec) == 1) { in AddRunningLockEntryLocked()
75 static BOOL RemoveRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in RemoveRunningLockEntryLocked() argument
77 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in RemoveRunningLockEntryLocked()
82 RunningLockEntry *e = (RunningLockEntry *)VECTOR_Swap(vec, pos, NULL); in RemoveRunningLockEntryLocked()
85 if (VECTOR_Num(vec) == 0) { in RemoveRunningLockEntryLocked()
95 Vector *vec = &g_runningLocks[t]; in ShowLocks() local
96 int32_t size = VECTOR_Size(vec); in ShowLocks()
[all …]
/base/telephony/telephony_data/common/include/
Dparser_util.h39 int ParserPdpProfileJson(std::vector<PdpProfile> &vec);
40 int ParserPdpProfileJson(std::vector<PdpProfile> &vec, const char *filePath);
41 void ParserPdpProfileInfos(std::vector<PdpProfile> &vec, cJSON *itemRoots);
44 int ParserOpKeyJson(std::vector<OpKey> &vec, const char *path);
45 void ParserOpKeyInfos(std::vector<OpKey> &vec, cJSON *itemRoots);
47 int ParserNumMatchJson(std::vector<NumMatch> &vec, const bool hashCheck);
48 void ParserNumMatchInfos(std::vector<NumMatch> &vec, cJSON *itemRoots);
50 int ParserEccDataJson(std::vector<EccNum> &vec, const bool hashCheck);
51 void ParserEccDataInfos(std::vector<EccNum> &vec, cJSON *itemRoots);
/base/security/device_auth/services/identity_manager/src/mock/
Didentity_common_mock.c36 void ClearIdentityInfoVec(IdentityInfoVec *vec) in ClearIdentityInfoVec() argument
38 (void)vec; in ClearIdentityInfoVec()
48 void ClearProtocolEntityVec(ProtocolEntityVec *vec) in ClearProtocolEntityVec() argument
50 (void)vec; in ClearProtocolEntityVec()
/base/telephony/telephony_data/global_params/src/
Drdb_global_params_callback.cpp70 std::vector<EccNum> vec; in InitEccData() local
71 int ret = util.ParserEccDataJson(vec, hashCheck); in InitEccData()
84 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitEccData()
85 for (size_t i = 0; i < vec.size(); i++) { in InitEccData()
87 util.ParserEccDataToValuesBucket(value, vec[i]); in InitEccData()
104 std::vector<NumMatch> vec; in InitNumMatchData() local
105 int resultCode = util.ParserNumMatchJson(vec, hashCheck); in InitNumMatchData()
118 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitNumMatchData()
119 for (size_t i = 0; i < vec.size(); i++) { in InitNumMatchData()
121 util.ParserNumMatchToValuesBucket(value, vec[i]); in InitNumMatchData()
/base/hiviewdfx/hilog/frameworks/libhilog/base/
Dhilog_base.c66 struct iovec vec[LOG_LEN] = {0}; in SendMessage() local
67 vec[0].iov_base = header; // 0 : index of hos log header in SendMessage()
68 vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log header in SendMessage()
69 vec[1].iov_base = (void *)((char *)(tag)); // 1 : index of log tag in SendMessage()
70 vec[1].iov_len = tagLen; // 1 : index of log tag in SendMessage()
71 vec[2].iov_base = (void *)((char *)(fmt)); // 2 : index of log content in SendMessage()
72 vec[2].iov_len = fmtLen; // 2 : index of log content in SendMessage()
73 int ret = TEMP_FAILURE_RETRY(writev(socketFd, vec, LOG_LEN)); in SendMessage()
/base/update/updater/services/ui/view/layout/
Dlayout_parser.cpp36 bool LoadLayout(const std::vector<std::string> &layoutFiles, std::vector<UxPageInfo> &vec) const in LoadLayout()
39 std::vector<UxPageInfo>().swap(vec); in LoadLayout()
46 vec.push_back(std::move(pageInfo)); in LoadLayout()
70 bool ParseViewInfo(const JsonNode &root, std::vector<UxViewInfo> &vec) const in ParseViewInfo()
73 std::vector<UxViewInfo>().swap(vec); in ParseViewInfo()
106 vec.push_back(std::move(info)); in ParseViewInfo()
128 …Parser::LoadLayout(const std::vector<std::string> &layoutFiles, std::vector<UxPageInfo> &vec) const in LoadLayout()
130 return pImpl_->LoadLayout(layoutFiles, vec); in LoadLayout()
/base/web/webview/ohos_glue/ohos_adapter/bridge/
Dark_cert_manager_adapter_impl.cpp78 std::vector<std::string> vec; in GetTrustAnchorsForHostName() local
79 bool result = real_->GetTrustAnchorsForHostName(ArkWebStringStructToClass(hostname), vec); in GetTrustAnchorsForHostName()
80 certs = ArkWebStringVectorClassToStruct(vec); in GetTrustAnchorsForHostName()
86 std::vector<std::string> vec; in GetPinSetForHostName() local
87 bool result = real_->GetPinSetForHostName(ArkWebStringStructToClass(hostname), vec); in GetPinSetForHostName()
88 pins = ArkWebStringVectorClassToStruct(vec); in GetPinSetForHostName()
/base/security/device_auth/common_lib/impl/src/
Dhc_string_vector.c25 void DestroyStrVector(StringVector *vec) in DestroyStrVector() argument
29 FOR_EACH_HC_VECTOR(*vec, index, strItemPtr) { in DestroyStrVector()
32 DESTROY_HC_VECTOR(StringVector, vec); in DestroyStrVector()
/base/security/asset/test/unittest/module_test/src/crypto_manager/
Dlib.rs67 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in generate_and_delete()
79 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in encrypt_and_decrypt()
84 let msg = vec![1, 2, 3, 4, 5, 6]; in encrypt_and_decrypt()
85 let aad = vec![0; AAD_SIZE as usize]; in encrypt_and_decrypt()
100 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_init()
112 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_exec()
116 let msg = vec![1, 2, 3, 4, 5, 6]; in crypto_exec()
117 let aad = vec![0; AAD_SIZE as usize]; in crypto_exec()
122 let authtoken = vec![0; 280]; in crypto_exec()
130 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_manager()
[all …]
/base/notification/common_event_service/services/src/
Dcommon_event_control_manager.cpp112 for (auto vec : record.second) { in PublishFrozenEventsInner() local
113 if (!vec) { in PublishFrozenEventsInner()
119 CommonEventRecord eventRecord = *vec; in PublishFrozenEventsInner()
186 for (auto vec : eventRecord->receivers) { in NotifyUnorderedEventLocked() local
187 if (vec == nullptr) { in NotifyUnorderedEventLocked()
193 if (vec->isFreeze) { in NotifyUnorderedEventLocked()
195 …DelayedSingleton<CommonEventSubscriberManager>::GetInstance()->InsertFrozenEvents(vec, *eventRecor… in NotifyUnorderedEventLocked()
198 …sptr<IEventReceive> commonEventListenerProxy = iface_cast<IEventReceive>(vec->commonEventListener); in NotifyUnorderedEventLocked()
202 vec->eventRecordInfo.subId.c_str()); in NotifyUnorderedEventLocked()
206 int8_t ret = CheckPermission(*vec, *eventRecord); in NotifyUnorderedEventLocked()
[all …]
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_common.c35 GroupEntryVec *vec) in GetAccountRelatedCandidateGroups() argument
46 …ountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, param, &queryParams, vec); in GetAccountRelatedCandidateGroups()
47 if (vec->size(vec) != 0) { in GetAccountRelatedCandidateGroups()
72 GroupEntryVec *vec) in GetAccountUnrelatedCandidateGroups() argument
79 if (QueryGroups(osAccountId, &queryParams, vec) != HC_SUCCESS) { in GetAccountUnrelatedCandidateGroups()
83 if (vec->size(vec) == 0) { in GetAccountUnrelatedCandidateGroups()
88 static void GetCandidateGroups(int32_t osAccountId, const CJson *param, GroupEntryVec *vec) in GetCandidateGroups() argument
100 GetAccountRelatedCandidateGroups(osAccountId, param, isDeviceLevel, isClient, vec); in GetCandidateGroups()
101 GetAccountUnrelatedCandidateGroups(osAccountId, isDeviceLevel, isClient, vec); in GetCandidateGroups()
176 const GroupEntryVec *vec, ParamsVecForAuth *paramsVec) in FillAuthParams() argument
[all …]
/base/security/asset/test/unittest/inner_api_rust/src/
Dquery_abnormal.rs22 query.insert_attr(Tag::Alias, vec![]); in query_invalid_alias()
25 query.insert_attr(Tag::Alias, vec![0; MAX_ALIAS_SIZE + 1]); in query_invalid_alias()
60 query.insert_attr(label, vec![]); in query_invalid_label()
63 query.insert_attr(label, vec![0; MAX_LABEL_SIZE + 1]); in query_invalid_label()
114 query.insert_attr(Tag::AuthChallenge, vec![0; CHALLENGE_SIZE - 1]); in query_invalid_auth_challenge()
117 query.insert_attr(Tag::AuthChallenge, vec![0; CHALLENGE_SIZE + 1]); in query_invalid_auth_challenge()
124 query.insert_attr(Tag::AuthToken, vec![0; AUTH_TOKEN_SIZE - 1]); in query_invalid_auth_token()
127 query.insert_attr(Tag::AuthToken, vec![0; AUTH_TOKEN_SIZE + 1]); in query_invalid_auth_token()
139 query.insert_attr(Tag::AuthToken, vec![0; AUTH_TOKEN_SIZE]); in query_with_auth_token_without_auth_challenge()
152 query.insert_attr(Tag::AuthChallenge, vec![0; CHALLENGE_SIZE]); in query_with_auth_challenge_without_auth_token()
[all …]
Dpost_query_abnormal.rs22 query.insert_attr(Tag::AuthChallenge, vec![0; CHALLENGE_SIZE - 1]); in post_query_auth_challenge()
25 query.insert_attr(Tag::AuthChallenge, vec![0; CHALLENGE_SIZE + 1]); in post_query_auth_challenge()
31 let tags_bytes = vec![Tag::AuthChallenge]; in post_query_bytes_tag_with_unmatched_type()
44 let mut tags_bytes = vec![Tag::Secret, Tag::Alias, Tag::AuthToken]; in post_query_unsupported_tags()
49 query.insert_attr(tag, vec![0; MIN_ARRAY_SIZE + 1]); in post_query_unsupported_tags()
Dremove_abnormal.rs22 query.insert_attr(Tag::Alias, vec![]); in remove_invalid_alias()
25 query.insert_attr(Tag::Alias, vec![0; MAX_ALIAS_SIZE + 1]); in remove_invalid_alias()
60 query.insert_attr(label, vec![]); in remove_invalid_label()
63 query.insert_attr(label, vec![0; MAX_LABEL_SIZE + 1]); in remove_invalid_label()
73 query.insert_attr(tag, vec![]); in remove_bool_tag_with_unmatched_type()
100 query.insert_attr(tag, vec![]); in remove_number_tag_with_unmatched_type()
113 query.insert_attr(tag, vec![0; MIN_ARRAY_SIZE + 1]); in remove_unsupported_tags()
/base/telephony/telephony_data/pdp_profile/src/
Drdb_pdp_profile_callback.cpp87 std::vector<PdpProfile> vec; in InitData() local
88 int resultCode = util.ParserPdpProfileJson(vec); in InitData()
98 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitData()
99 for (size_t i = 0; i < vec.size(); i++) { in InitData()
101 util.ParserPdpProfileToValuesBucket(value, vec[i]); in InitData()
/base/hiviewdfx/hisysevent/frameworks/native/util/
Dstring_util.cpp64 int ConvertCStringVec(const std::vector<std::string>& vec, char*** strs, size_t& len) in ConvertCStringVec() argument
66 if (vec.empty()) { in ConvertCStringVec()
69 len = vec.size(); in ConvertCStringVec()
75 if (int res = ConvertCString(vec[i], &data[i]); res != 0) { in ConvertCStringVec()
/base/telephony/core_service/test/unittest/ui_client/
Dstate_registry_observer.h36 void OnSignalInfoUpdated(int32_t slotId, const std::vector<sptr<SignalInformation>> &vec) in OnSignalInfoUpdated() argument
41 void OnSignalInfoUpdatedExt(int32_t slotId, const std::vector<sptr<SignalInformation>> &vec) in OnSignalInfoUpdatedExt() argument
56 void OnCellInfoUpdated(int32_t slotId, const std::vector<sptr<CellInformation>> &vec) in OnCellInfoUpdated() argument
61 void OnCellInfoUpdatedExt(int32_t slotId, const std::vector<sptr<CellInformation>> &vec) in OnCellInfoUpdatedExt() argument
/base/telephony/state_registry/test/unittest/state_test/
Dstate_registry_observer.h36 void OnSignalInfoUpdated(int32_t slotId, const std::vector<sptr<SignalInformation>> &vec) in OnSignalInfoUpdated() argument
41 void OnSignalInfoUpdatedExt(int32_t slotId, const std::vector<sptr<SignalInformation>> &vec) in OnSignalInfoUpdatedExt() argument
56 void OnCellInfoUpdated(int32_t slotId, const std::vector<sptr<CellInformation>> &vec) in OnCellInfoUpdated() argument
61 void OnCellInfoUpdatedExt(int32_t slotId, const std::vector<sptr<CellInformation>> &vec) in OnCellInfoUpdatedExt() argument
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/
Ddas_task_main.c119 FOR_EACH_HC_VECTOR(task->vec, index, ptr) { in DestroyTaskT()
122 DESTROY_HC_VECTOR(SubTaskVec, &(task->vec)); in DestroyTaskT()
137 FOR_EACH_HC_VECTOR(task->vec, index, ptr) { in ProcessMultiTask()
193 void **ptr = task->vec.getp(&(task->vec), 0); in NegotiateAndProcessTask()
194 while (index < task->vec.size(&(task->vec)) && ptr != NULL) { in NegotiateAndProcessTask()
201 task->vec.eraseElement(&(task->vec), ptr, index); in NegotiateAndProcessTask()
203 ptr = task->vec.getp(&(task->vec), index); in NegotiateAndProcessTask()
242 if (task->vec.size(&(task->vec)) == 0) { in ProcessTaskT()
263 SubTaskBase *subTask = HC_VECTOR_GET(&(task->vec), 0); in ProcessTaskT()
317 task->vec.pushBackT(&(task->vec), (void *)subTask); in CreateMultiSubTask()
[all …]
/base/telephony/telephony_data/opkey/src/
Drdb_opkey_callback.cpp66 std::vector<OpKey> vec; in InitData() local
84 if (util.ParserOpKeyJson(vec, path.c_str()) != DATA_STORAGE_SUCCESS) { in InitData()
94 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitData()
96 for (size_t i = 0; i < vec.size(); i++) { in InitData()
98 util.ParserOpKeyToValuesBucket(value, vec[i]); in InitData()
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c139 static bool LoadStringVectorFromParcel(StringVector *vec, HcParcel *parcel) in LoadStringVectorFromParcel() argument
156 if (vec->pushBack(vec, &str) == NULL) { in LoadStringVectorFromParcel()
164 static bool SaveStringVectorToParcel(const StringVector *vec, HcParcel *parcel) in SaveStringVectorToParcel() argument
168 FOR_EACH_HC_VECTOR(*vec, index, str) { in SaveStringVectorToParcel()
359 static bool LoadGroups(HCDataBaseV1 *db, GroupEntryVec *vec) in LoadGroups() argument
370 ClearGroupEntryVec(vec); in LoadGroups()
375 ClearGroupEntryVec(vec); in LoadGroups()
378 if (vec->pushBackT(vec, entry) == NULL) { in LoadGroups()
381 ClearGroupEntryVec(vec); in LoadGroups()
388 static bool LoadDevices(HCDataBaseV1 *db, DeviceEntryVec *vec) in LoadDevices() argument
[all …]
/base/security/device_auth/services/identity_manager/src/
Didentity_common.c167 void ClearIdentityInfoVec(IdentityInfoVec *vec) in ClearIdentityInfoVec() argument
171 FOR_EACH_HC_VECTOR(*vec, index, info) in ClearIdentityInfoVec()
175 DESTROY_HC_VECTOR(IdentityInfoVec, vec); in ClearIdentityInfoVec()
178 void ClearProtocolEntityVec(ProtocolEntityVec *vec) in ClearProtocolEntityVec() argument
182 FOR_EACH_HC_VECTOR(*vec, index, entity) in ClearProtocolEntityVec()
186 DESTROY_HC_VECTOR(ProtocolEntityVec, vec); in ClearProtocolEntityVec()

12345678