/base/hiviewdfx/hilog/frameworks/libhilog/socket/ |
H A D | hilog_input_socket_client.cpp | 42 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 D | webview_utils.cpp | 49 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 D | hilog_print_test.cpp | 104 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 D | hilogtool_test.cpp | 438 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 D | running_lock_mgr.c | 50 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 D | hc_string_vector.c | 25 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 D | identity_common_mock.c | 36 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 D | parser_util.h | 39 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 D | memory_dumper_test.cpp | 278 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 D | rdb_global_params_callback.cpp | 71 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 D | ark_cert_manager_adapter_impl.cpp | 78 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 D | hilog_base.c | 65 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 D | layout_parser.cpp | 36 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 D | lib.rs | 67 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 D | compatible_auth_sub_session_common.c | 35 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 D | ark_location_info_wrapper.cpp | 64 ArkWebStringVector vec = ctocpp_->GetAdditions(); in GetAdditions() local 65 std::vector<std::string> result = ArkWebStringVectorStructToClass(vec); in GetAdditions() 66 ArkWebStringVectorStructRelease(vec); in GetAdditions()
|
H A D | ark_mmi_adapter_wrapper.cpp | 75 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 D | query_abnormal.rs | 22 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 D | post_query_abnormal.rs | 22 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 D | string_util.cpp | 64 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 D | state_registry_observer.h | 36 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 D | state_registry_observer.h | 36 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 D | common_event_control_manager.cpp | 134 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 D | extra_data.rs | 41 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 D | telephony_ext_wrapper.h | 35 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);
|