Home
last modified time | relevance | path

Searched refs:vec (Results 1 - 25 of 212) sorted by relevance

123456789

/base/hiviewdfx/hilog/frameworks/libhilog/socket/
H A Dhilog_input_socket_client.cpp42 iovec vec[3]; in WriteLogMessage() local
43 vec[0].iov_base = header; // 0 : index of hos log header in WriteLogMessage()
44 vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log header 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()
47 vec[2].iov_base = reinterpret_cast<void*>(const_cast<char*>(fmt)); // 2 : index of log content in WriteLogMessage()
48 vec[2].iov_len = fmtLen; // 2 : index of log content in WriteLogMessage()
49 ret = WriteV(vec, 3); // 3 : written size of vector in WriteLogMessage()
52 ret = WriteV(vec, 3); // 3 : written size of vector in WriteLogMessage()
/base/web/webview/interfaces/kits/cj/src/
H A Dwebview_utils.cpp49 char** VectorToCArrString(const std::vector<std::string>& vec) in VectorToCArrString() argument
51 if (vec.size() == 0) { in VectorToCArrString()
54 char** result = static_cast<char**>(malloc(sizeof(char*) * vec.size())); in VectorToCArrString()
58 for (size_t i = 0; i < vec.size(); i++) { in VectorToCArrString()
59 result[i] = MallocCString(vec[i]); in VectorToCArrString()
64 uint8_t* VectorToCArrUI8(const std::vector<uint8_t> vec) in VectorToCArrUI8() argument
66 if (vec.size() == 0) { in VectorToCArrUI8()
69 uint8_t* result = static_cast<uint8_t*>(malloc(sizeof(uint8_t) * vec.size())); in VectorToCArrUI8()
73 for (size_t i = 0; i < vec.size(); i++) { in VectorToCArrUI8()
74 result[i] = vec[ in VectorToCArrUI8()
[all...]
/base/hiviewdfx/hilog/test/unittest/common/
H A Dhilog_print_test.cpp104 vector<string> vec; in HWTEST_F() local
106 Split(res, vec, "\n"); in HWTEST_F()
107 for (unsigned int i = 0; i < vec.size(); i++) { in HWTEST_F()
108 log = vec[i].substr(LOGINDEX); in HWTEST_F()
142 vector<string> vec; in HWTEST_F() local
144 Split(res, vec, "\n"); in HWTEST_F()
145 for (unsigned int i = 0; i < vec.size(); i++) { in HWTEST_F()
146 log = vec[i].substr(LOGINDEX); in HWTEST_F()
168 vector<string> vec; in HWTEST_F() local
170 Split(res, vec, "\ in HWTEST_F()
200 vector<string> vec; HWTEST_F() local
[all...]
H A Dhilogtool_test.cpp438 vector<string> vec; in HWTEST_F() local
440 Split(res, vec, "\n"); in HWTEST_F()
441 for (auto& it : vec) { in HWTEST_F()
558 vector<string> vec; in HWTEST_F() local
559 Split(res, vec, "\n"); in HWTEST_F()
560 for (auto& it : vec) { in HWTEST_F()
587 vector<string> vec; in HWTEST_F() local
588 Split(res, vec, "\n"); in HWTEST_F()
589 for (auto& it : vec) { in HWTEST_F()
622 vector<string> vec; in HWTEST_F() local
696 vector<string> vec; HWTEST_F() local
808 vector<string> vec; HWTEST_F() local
[all...]
/base/powermgr/powermgr_lite/services/src/
H A 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()
116 Vector *vec = &g_runningLocks[entry->lock.type]; RunningLockMgrAcquireEntry() local
131 Vector *vec = &g_runningLocks[entry->lock.type]; RunningLockMgrReleaseEntry() local
[all...]
/base/security/device_auth/common_lib/impl/src/
H A Dhc_string_vector.c25 void DestroyStrVector(StringVector *vec) in DestroyStrVector() argument
27 if (vec == NULL) { in DestroyStrVector()
32 FOR_EACH_HC_VECTOR(*vec, index, strItemPtr) { in DestroyStrVector()
35 DESTROY_HC_VECTOR(StringVector, vec); in DestroyStrVector()
/base/security/device_auth/services/identity_manager/src/mock/
H A 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/common/include/
H A 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/hiviewdfx/hidumper/test/unittest/common/
H A Dmemory_dumper_test.cpp278 std::vector<std::string> vec; in HWTEST_F() local
279 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
280 ASSERT_GT(vec.size(), 0); in HWTEST_F()
291 std::vector<std::string> vec; in HWTEST_F() local
292 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
294 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
296 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
298 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
309 std::vector<std::string> vec; in HWTEST_F() local
310 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
[all...]
/base/telephony/telephony_data/global_params/src/
H A Drdb_global_params_callback.cpp71 std::vector<EccNum> vec; in InitEccData() local
72 int ret = util.ParserEccDataJson(vec, hashCheck); in InitEccData()
87 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitEccData()
88 for (size_t i = 0; i < vec.size(); i++) { in InitEccData()
90 util.ParserEccDataToValuesBucket(value, vec[i]); in InitEccData()
107 std::vector<NumMatch> vec; in InitNumMatchData() local
108 int resultCode = util.ParserNumMatchJson(vec, hashCheck); in InitNumMatchData()
123 DATA_STORAGE_LOGD("InitData size = %{public}zu", vec.size()); in InitNumMatchData()
124 for (size_t i = 0; i < vec.size(); i++) { in InitNumMatchData()
126 util.ParserNumMatchToValuesBucket(value, vec[ in InitNumMatchData()
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A 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/hiviewdfx/hilog/frameworks/libhilog/base/
H A Dhilog_base.c65 struct iovec vec[LOG_LEN] = {0}; in SendMessage() local
66 vec[0].iov_base = header; // 0 : index of hos log header in SendMessage()
67 vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log header in SendMessage()
68 vec[1].iov_base = (void *)((char *)(tag)); // 1 : index of log tag in SendMessage()
69 vec[1].iov_len = tagLen; // 1 : index of log tag in SendMessage()
70 vec[2].iov_base = (void *)((char *)(fmt)); // 2 : index of log content in SendMessage()
71 vec[2].iov_len = fmtLen; // 2 : index of log content in SendMessage()
72 int ret = TEMP_FAILURE_RETRY(writev(socketFd, vec, LOG_LEN)); in SendMessage()
/base/update/updater/services/ui/view/layout/
H A 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 bool LayoutParser::LoadLayout(const std::vector<std::string> &layoutFiles, std::vector<UxPageInfo> &vec) const in LoadLayout()
130 return pImpl_->LoadLayout(layoutFiles, vec); in LoadLayout()
/base/security/asset/test/unittest/module_test/src/crypto_manager/
H A Dlib.rs67 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in generate_and_delete()
80 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in encrypt_and_decrypt()
86 let msg = vec![1, 2, 3, 4, 5, 6]; in encrypt_and_decrypt()
87 let aad = vec![0; AAD_SIZE as usize]; in encrypt_and_decrypt()
102 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_init()
115 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_exec()
120 let msg = vec![1, 2, 3, 4, 5, 6]; in crypto_exec()
121 let aad = vec![0; AAD_SIZE as usize]; in crypto_exec()
126 let authtoken = vec![0; 280]; in crypto_exec()
134 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![ in crypto_manager()
[all...]
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
H A Dcompatible_auth_sub_session_common.c35 GroupEntryVec *vec) in GetAccountRelatedCandidateGroups()
46 ((AccountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, param, &queryParams, vec); in GetAccountRelatedCandidateGroups()
47 if (vec->size(vec) != 0) { in GetAccountRelatedCandidateGroups()
72 GroupEntryVec *vec) in GetAccountUnrelatedCandidateGroups()
74 uint32_t groupSize = vec->size(vec); in GetAccountUnrelatedCandidateGroups()
80 if (QueryGroups(osAccountId, &queryParams, vec) != HC_SUCCESS) { in GetAccountUnrelatedCandidateGroups()
84 if (vec->size(vec) in GetAccountUnrelatedCandidateGroups()
34 GetAccountRelatedCandidateGroups(int32_t osAccountId, const CJson *param, bool isDeviceLevel, bool isClient, GroupEntryVec *vec) GetAccountRelatedCandidateGroups() argument
71 GetAccountUnrelatedCandidateGroups(int32_t osAccountId, bool isDeviceLevel, bool isClient, GroupEntryVec *vec) GetAccountUnrelatedCandidateGroups() argument
89 GetCandidateGroups(int32_t osAccountId, const CJson *param, GroupEntryVec *vec) GetCandidateGroups() argument
223 FillAuthParams(int32_t osAccountId, const CJson *param, const GroupEntryVec *vec, ParamsVecForAuth *paramsVec) FillAuthParams() argument
277 GroupEntryVec vec = CreateGroupEntryVec(); GetCandidateAuthInfo() local
575 CreateAuthParamsList(ParamsVecForAuth *vec) CreateAuthParamsList() argument
580 DestroyAuthParamsList(ParamsVecForAuth *vec) DestroyAuthParamsList() argument
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_location_info_wrapper.cpp64 ArkWebStringVector vec = ctocpp_->GetAdditions(); in GetAdditions() local
65 std::vector<std::string> result = ArkWebStringVectorStructToClass(vec); in GetAdditions()
66 ArkWebStringVectorStructRelease(vec); in GetAdditions()
H A Dark_mmi_adapter_wrapper.cpp75 ArkWebInt32Vector vec; in GetDeviceIds() local
76 int result = ctocpp_->GetDeviceIds(vec); in GetDeviceIds()
77 ids = ArkWebBasicVectorStructToClass<int32_t, ArkWebInt32Vector>(vec); in GetDeviceIds()
78 ArkWebBasicVectorStructRelease(vec); in GetDeviceIds()
/base/security/asset/test/unittest/inner_kits_rust/src/
H A 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![ in query_with_auth_challenge_without_auth_token()
[all...]
H A 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()
/base/hiviewdfx/hisysevent/frameworks/native/util/
H A 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/
H A 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/
H A 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/notification/common_event_service/services/src/
H A Dcommon_event_control_manager.cpp134 for (auto vec : record.second) { in PublishFrozenEventsInner()
135 if (!vec) { in PublishFrozenEventsInner()
141 CommonEventRecord eventRecord = *vec; in PublishFrozenEventsInner()
208 for (auto vec : eventRecord->receivers) { in NotifyUnorderedEventLocked()
209 if (vec == nullptr) { in NotifyUnorderedEventLocked()
210 EVENT_LOGE("invalid vec"); in NotifyUnorderedEventLocked()
215 if (vec->isFreeze) { in NotifyUnorderedEventLocked()
217 DelayedSingleton<CommonEventSubscriberManager>::GetInstance()->InsertFrozenEvents(vec, *eventRecord); in NotifyUnorderedEventLocked()
219 vec, *eventRecord); in NotifyUnorderedEventLocked()
221 eventRecord->commonEventData->GetWant().GetAction().c_str(), vec in NotifyUnorderedEventLocked()
[all...]
/base/msdp/device_status/rust/subsystem/input/sys/src/interaction/
H A Dextra_data.rs41 pub fn set_buffer(&mut self, vec: &Vec<u8>) -> &mut Self { in set_buffer()
42 let vec_ptr = vec.as_ptr(); in set_buffer()
44 self.buffer_size = vec.len(); in set_buffer()
/base/telephony/state_registry/services/telephony_ext_wrapper/include/
H A Dtelephony_ext_wrapper.h35 std::vector<sptr<SignalInformation>> &targetVec, const std::vector<sptr<SignalInformation>> &vec);
37 std::vector<sptr<CellInformation>> &targetVec, const std::vector<sptr<CellInformation>> &vec);
41 typedef void (*SEND_SIGNAL_INFO_CHANGED)(int32_t slotId, const std::vector<sptr<SignalInformation>> &vec);

Completed in 10 milliseconds

123456789