/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_hexstring.c | 37 void DslmByteToHexString(const uint8_t *hex, uint32_t hexLen, uint8_t *str, uint32_t strLen) in DslmByteToHexString() argument 39 if ((hex == NULL) || (str == NULL) || (strLen < hexLen * BYTE_TO_HEX_OPER_LENGTH)) { in DslmByteToHexString() 49 int32_t DslmHexStringToByte(const char *str, uint32_t strLen, uint8_t *hex, uint32_t hexLen) in DslmHexStringToByte() argument 51 if ((str == NULL) || (hex == NULL) || (strLen % BYTE_TO_HEX_OPER_LENGTH)) { /* even number or not */ in DslmHexStringToByte() 54 uint32_t outLen = strLen / BYTE_TO_HEX_OPER_LENGTH; in DslmHexStringToByte()
|
/base/security/device_security_level/baselib/utils/include/ |
H A D | utils_hexstring.h | 25 void DslmByteToHexString(const uint8_t *hex, uint32_t hexLen, uint8_t *str, uint32_t strLen); 27 int32_t DslmHexStringToByte(const char *str, uint32_t strLen, uint8_t *hex, uint32_t hexLen);
|
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
H A D | hilog_string.cpp | 52 size_t HilogString::Puts(const char *src, HilogString *str, size_t strLen) in Puts() argument 59 len = (len > strLen) ? ((strLen == 0) ? len : strLen) : len; in Puts()
|
/base/security/crypto_framework/common/src/ |
H A D | hcf_string.c | 74 uint32_t strLen = strlen(str); in StringSetPointerWithLength() local 75 if (strLen < len) { in StringSetPointerWithLength() 135 uint32_t strLen = StringLength(self); in StringFind() local 136 if (strLen >= MAX_INT) { in StringFind() 141 while (p < strLen) { in StringFind()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/inc/ |
H A D | mbedtls_ec_adapter.h | 33 int32_t MbedtlsBase64Encode(const uint8_t *byte, uint32_t byteLen, char *base64Str, uint32_t strLen, uint32_t *outLen);
34 int32_t MbedtlsBase64Decode(const char *base64Str, uint32_t strLen, uint8_t *byte, uint32_t byteLen, uint32_t *outLen);
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
H A D | n_val.cpp | 56 size_t strLen = 0;
in ToUTF8String() local 57 napi_status status = napi_get_value_string_utf8(env_, val_, nullptr, -1, &strLen);
in ToUTF8String() 62 size_t bufLen = strLen + 1;
in ToUTF8String() 64 status = napi_get_value_string_utf8(env_, val_, str.get(), bufLen, &strLen);
in ToUTF8String() 65 return make_tuple(status == napi_ok, move(str), strLen);
in ToUTF8String() 71 size_t strLen = 0;
in ToUTF16String() local 72 napi_status status = napi_get_value_string_utf16(env_, val_, nullptr, -1, &strLen);
in ToUTF16String() 77 auto str = make_unique<char16_t[]>(++strLen);
in ToUTF16String() 78 status = napi_get_value_string_utf16(env_, val_, str.get(), strLen, nullptr);
in ToUTF16String() 83 strLen in ToUTF16String() [all...] |
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_content.cpp | 155 size_t strLen = 0; in GetNotificationBasicContentDetailed() local 163 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationBasicContentDetailed() 177 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationBasicContentDetailed() 193 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationBasicContentDetailed() 246 size_t strLen = 0; in GetNotificationLongTextContentDetailed() local 264 NAPI_CALL(env, napi_get_value_string_utf8(env, longContentResult, long_str, LONG_STR_MAX_SIZE, &strLen)); in GetNotificationLongTextContentDetailed() 284 NAPI_CALL(env, napi_get_value_string_utf8(env, longContentResult, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationLongTextContentDetailed() 304 NAPI_CALL(env, napi_get_value_string_utf8(env, longContentResult, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationLongTextContentDetailed() 356 size_t strLen = 0; in GetNotificationPictureContentDetailed() local 374 NAPI_CALL(env, napi_get_value_string_utf8(env, pictureContentResult, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationPictureContentDetailed() 524 size_t strLen = 0; GetMessageUserByString() local 665 size_t strLen = 0; GetNotificationConversationalContentTitle() local 784 size_t strLen = 0; GetConversationalMessageBasicInfo() local 859 size_t strLen = 0; GetConversationalMessageOtherInfo() local 910 size_t strLen = 0; GetNotificationMultiLineContent() local 995 size_t strLen = 0; GetNotificationMultiLineContentLines() local [all...] |
H A D | notification_napi.cpp | 47 size_t strLen = 0; in GetNotificationSubscriberInfo() local 76 NAPI_CALL(env, napi_get_value_string_utf8(env, nBundleName, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationSubscriberInfo() 135 size_t strLen = 0; in GetNotificationUserInputByInputKey() local 149 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByInputKey() 169 size_t strLen = 0; in GetNotificationUserInputByTag() local 187 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByTag() 203 size_t strLen = 0; in GetNotificationUserInputByOptions() local 239 NAPI_CALL(env, napi_get_value_string_utf8(env, option, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByOptions() 255 size_t strLen = 0; in GetNotificationUserInputByPermitMimeTypes() local 287 NAPI_CALL(env, napi_get_value_string_utf8(env, permitMimeType, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByPermitMimeTypes() 493 size_t strLen = 0; GetNotificationSlotByString() local 718 size_t strLen = 0; GetBundleOption() local 761 size_t strLen = 0; GetButtonOption() local 800 size_t strLen = 0; GetHashCodes() local 834 size_t strLen = 0; GetNotificationKey() local 925 size_t strLen = 0; GetNotificationTemplateInfo() local [all...] |
/base/powermgr/power_manager/frameworks/napi/utils/ |
H A D | napi_utils.cpp | 37 size_t strLen; in GetStringFromNapi() local 38 if (napi_ok != napi_get_value_string_utf8(env, napiStr, str, MAX_SIZE - 1, &strLen)) { in GetStringFromNapi()
|
/base/powermgr/battery_manager/frameworks/napi/src/ |
H A D | napi_utils.cpp | 37 size_t strLen; in GetStringFromNapi() local 38 if (napi_ok != napi_get_value_string_utf8(env, napiStr, str, MAX_SIZE - 1, &strLen)) { in GetStringFromNapi()
|
/base/startup/init/services/init/ |
H A D | init_service_manager.c | 199 static char *GetStringValue(const cJSON *json, const char *name, size_t *strLen) in GetStringValue() argument 203 *strLen = strlen(fieldStr); in GetStringValue() 355 size_t strLen = 0; in ParseSocketFamily() local 356 char *stringValue = GetStringValue(json, "family", &strLen); in ParseSocketFamily() 357 INIT_ERROR_CHECK((stringValue != NULL) && (strLen > 0), return SERVICE_FAILURE, in ParseSocketFamily() 361 } else if (strncmp(stringValue, "AF_NETLINK", strLen) == 0) { in ParseSocketFamily() 370 size_t strLen = 0; in ParseSocketType() local 371 char *stringValue = GetStringValue(json, "type", &strLen); in ParseSocketType() 372 INIT_ERROR_CHECK((stringValue != NULL) && (strLen > 0), return SERVICE_FAILURE, in ParseSocketType() 374 if (strncmp(stringValue, "SOCK_SEQPACKET", strLen) in ParseSocketType() 387 size_t strLen = 0; ParseSocketProtocol() local 435 size_t strLen = 0; AddServiceSocket() local 868 size_t strLen = 0; ParseOneServiceArgs() local 906 size_t strLen = 0; GetServiceEnv() local 1099 size_t strLen = 0; ParseAllServices() local [all...] |
/base/notification/common_event_service/interfaces/kits/napi/common_event/src/ |
H A D | common_event_parse.cpp | 276 size_t strLen = 0; in ParseParametersBySetData() local 285 NAPI_CALL(env, napi_get_value_string_utf8(env, argv[0], str, STR_DATA_MAX_SIZE, &strLen)); in ParseParametersBySetData() 287 if (strLen > STR_DATA_MAX_SIZE - 1) { in ParseParametersBySetData() 330 size_t strLen = 0; in ParseParametersBySetCodeAndData() local 347 NAPI_CALL(env, napi_get_value_string_utf8(env, argv[1], str, STR_DATA_MAX_SIZE, &strLen)); in ParseParametersBySetCodeAndData() 349 if (strLen > STR_DATA_MAX_SIZE - 1) { in ParseParametersBySetCodeAndData() 609 size_t strLen = 0; in GetBundlenameByPublish() local 620 NAPI_CALL(env, napi_get_value_string_utf8(env, result, str, STR_MAX_SIZE - 1, &strLen)); in GetBundlenameByPublish() 634 size_t strLen = 0; in GetDataByPublish() local 645 NAPI_CALL(env, napi_get_value_string_utf8(env, result, str, STR_DATA_MAX_SIZE, &strLen)); in GetDataByPublish() 689 size_t strLen = 0; GetSubscriberPermissionsByPublish() local 807 size_t strLen = 0; ParseParametersByPublish() local 900 size_t strLen = 0; ParseParametersByPublishAsUser() local 1017 size_t strLen = 0; GetEventsByCreateSubscriber() local 1061 size_t strLen = 0; GetPublisherPermissionByCreateSubscriber() local 1087 size_t strLen = 0; GetPublisherDeviceIdByCreateSubscriber() local [all...] |
/base/startup/init/interfaces/kits/syscap_ts/src/ |
H A D | syscap_ts.cpp | 74 size_t strLen = 0; in CanIUse() local 75 napi_get_value_string_utf8(env, argv[0], syscap, sizeof(syscap), &strLen); in CanIUse()
|
/base/telephony/core_service/utils/codec/src/ |
H A D | asn1_builder.cpp | 182 uint32_t strLen = 0; in Asn1BuilderToHexStr() local 185 return strLen; in Asn1BuilderToHexStr() 187 strLen = node->Asn1NodeToHexStr(destStr); in Asn1BuilderToHexStr() 188 return strLen; in Asn1BuilderToHexStr()
|
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/include/ |
H A D | hilog_string.h | 30 static size_t Puts(const char *src, HilogString *str, size_t strLen = 0);
|
/base/web/webview/interfaces/kits/cj/src/ |
H A D | webview_javascript_result_callback.cpp | 208 void* mem, int flowbufIndex, int* argIndex, int* strLen) in FlowbufStrAtIndex() 233 if (strLen == nullptr) { in FlowbufStrAtIndex() 236 *strLen = *(header + (i * INDEX_SIZE) + 1) - 1; in FlowbufStrAtIndex() 254 int strLen = 0; in ConstructArgv() local 255 char* flowbufStr = FlowbufStrAtIndex(ashmem, flowbufIndex, &argIndex, &strLen); in ConstructArgv() 260 flowbufStr = FlowbufStrAtIndex(ashmem, flowbufIndex, &argIndex, &strLen); in ConstructArgv() 268 flowbufStr = FlowbufStrAtIndex(ashmem, flowbufIndex, &argIndex, &strLen); in ConstructArgv() 278 flowbufStr = FlowbufStrAtIndex(ashmem, flowbufIndex, &argIndex, &strLen); in ConstructArgv() 207 FlowbufStrAtIndex( void* mem, int flowbufIndex, int* argIndex, int* strLen) FlowbufStrAtIndex() argument
|
/base/msdp/device_status/utils/common/src/ |
H A D | util.cpp | 181 size_t strLen = value.length(); in GetAnonyString() local 182 if (strLen == 0) { in GetAnonyString() 183 FI_HILOGE("strLen is 0, value will overflow"); in GetAnonyString() 185 } else if (strLen <= SHORT_KEY_LENGTH) { in GetAnonyString() 188 str += value[strLen - 1]; in GetAnonyString() 192 str.append(value, strLen - PLAINTEXT_LENGTH, PLAINTEXT_LENGTH); in GetAnonyString()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_content.cpp | 548 size_t strLen = 0; in GetNotificationBasicContentDetailed() local 556 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationBasicContentDetailed() 570 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationBasicContentDetailed() 586 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationBasicContentDetailed() 644 size_t strLen = 0; in GetNotificationLongTextContentDetailed() local 662 NAPI_CALL(env, napi_get_value_string_utf8(env, longContentResult, long_str, LONG_STR_MAX_SIZE, &strLen)); in GetNotificationLongTextContentDetailed() 682 NAPI_CALL(env, napi_get_value_string_utf8(env, longContentResult, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationLongTextContentDetailed() 702 NAPI_CALL(env, napi_get_value_string_utf8(env, longContentResult, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationLongTextContentDetailed() 758 size_t strLen = 0; in GetNotificationPictureContentDetailed() local 776 NAPI_CALL(env, napi_get_value_string_utf8(env, pictureContentResult, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationPictureContentDetailed() 930 size_t strLen = 0; GetMessageUserByString() local 1069 size_t strLen = 0; GetNotificationConversationalContentTitle() local 1187 size_t strLen = 0; GetConversationalMessageBasicInfo() local 1259 size_t strLen = 0; GetConversationalMessageOtherInfo() local 1310 size_t strLen = 0; GetNotificationMultiLineContent() local 1400 size_t strLen = 0; GetNotificationMultiLineContentLines() local [all...] |
H A D | common.cpp | 297 size_t strLen = 0; in GetNotificationSubscriberInfo() local 326 NAPI_CALL(env, napi_get_value_string_utf8(env, nBundleName, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationSubscriberInfo() 351 size_t strLen = 0; in GetNotificationSubscriberInfo() local 358 NAPI_CALL(env, napi_get_value_string_utf8(env, nDeviceType, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationSubscriberInfo() 406 size_t strLen = 0; in GetNotificationUserInputByInputKey() local 420 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByInputKey() 440 size_t strLen = 0; in GetNotificationUserInputByTag() local 458 NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByTag() 474 size_t strLen = 0; in GetNotificationUserInputByOptions() local 510 NAPI_CALL(env, napi_get_value_string_utf8(env, option, str, STR_MAX_SIZE - 1, &strLen)); in GetNotificationUserInputByOptions() 526 size_t strLen = 0; GetNotificationUserInputByPermitMimeTypes() local 763 size_t strLen = 0; GetNotificationSlotByString() local 984 size_t strLen = 0; GetBundleOption() local 1026 size_t strLen = 0; GetButtonOption() local 1064 size_t strLen = 0; GetHashCodes() local 1098 size_t strLen = 0; GetNotificationKey() local 1245 size_t strLen = 0; GetNotificationTemplateInfo() local [all...] |
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/ |
H A D | common_event_parse.cpp | 465 size_t strLen = 0; in ParseParametersBySetData() local 475 NAPI_CALL(env, napi_get_value_string_utf8(env, argv[0], str, STR_DATA_MAX_SIZE, &strLen)); in ParseParametersBySetData() 477 if (strLen > STR_DATA_MAX_SIZE - 1) { in ParseParametersBySetData() 506 size_t strLen = 0; in ParseParametersBySetCodeAndData() local 527 NAPI_CALL(env, napi_get_value_string_utf8(env, argv[1], str, STR_DATA_MAX_SIZE, &strLen)); in ParseParametersBySetCodeAndData() 529 if (strLen > STR_DATA_MAX_SIZE - 1) { in ParseParametersBySetCodeAndData() 745 size_t strLen = 0; in GetBundlenameByPublish() local 757 NAPI_CALL(env, napi_get_value_string_utf8(env, result, str, STR_MAX_SIZE - 1, &strLen)); in GetBundlenameByPublish() 772 size_t strLen = 0; in GetDataByPublish() local 784 NAPI_CALL(env, napi_get_value_string_utf8(env, result, str, STR_DATA_MAX_SIZE, &strLen)); in GetDataByPublish() 832 size_t strLen = 0; GetSubscriberPermissionsByPublish() local 963 size_t strLen = 0; ParseParametersByPublish() local 1060 size_t strLen = 0; ParseParametersByPublishAsUser() local 1202 size_t strLen = 0; ParseParametersByRemoveSticky() local 1236 size_t strLen = 0; GetEventsByCreateSubscriber() local 1288 size_t strLen = 0; GetPublisherPermissionByCreateSubscriber() local 1317 size_t strLen = 0; GetPublisherDeviceIdByCreateSubscriber() local 1399 size_t strLen = 0; GetPublisherBundleNameByCreateSubscriber() local [all...] |
/base/security/access_token/frameworks/test/unittest/ |
H A D | common_test.cpp | 135 size_t strLen = strlen(TEST_STR.c_str());
in HWTEST_F() local 136 write(fd, TEST_STR.c_str(), strLen);
in HWTEST_F()
|
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
H A D | hisysevent_c_test.cpp | 571 size_t strLen = MAX_STRING_LENGTH + 1;
in HWTEST_F() local 572 char* longStr = new char[strLen + 1];
in HWTEST_F() 573 for (size_t i = 0; i < strLen; ++i) {
in HWTEST_F() 576 longStr[strLen] = '\0';
in HWTEST_F() 645 size_t strLen = MAX_STRING_LENGTH;
in HWTEST_F() local 646 char* longStr = new char[strLen + 1];
in HWTEST_F() 647 for (size_t i = 0; i < strLen; ++i) {
in HWTEST_F() 650 longStr[strLen] = '\0';
in HWTEST_F()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/src/ |
H A D | hks_rkc.c | 342 const uint32_t strLen = strlen(srcStr); in CloneNewStr() local 343 if ((strLen == 0) || (strLen > strLenMax)) { in CloneNewStr() 344 HKS_LOG_E("Invalid input string! len = 0x%" LOG_PUBLIC "X, maxLen = 0x%" LOG_PUBLIC "X", strLen, strLenMax); in CloneNewStr() 348 char *newBuf = (char *)HksMalloc(strLen + 1); /* 1: end char */ in CloneNewStr() 351 if (memcpy_s(newBuf, strLen, srcStr, strLen) != EOK) { in CloneNewStr() 356 newBuf[strLen] = '\0'; in CloneNewStr()
|
/base/update/updater/services/package/pkg_verify/ |
H A D | openssl_util.cpp | 97 int strLen = static_cast<int>(pemString.size()); in GetX509CertFromPemString() local 98 if (BIO_write(pemBio, pemString.c_str(), strLen) != strLen) { in GetX509CertFromPemString()
|
/base/security/device_security_level/test/dslm_unit_test/ |
H A D | dslm_baselib_utils_test.cpp | 621 uint32_t strLen = 10; in HWTEST_F() local 623 DslmByteToHexString(nullptr, 0, str, strLen); in HWTEST_F() 629 DslmByteToHexString(hex, hexLen, str, strLen - 1); in HWTEST_F() 642 uint32_t strLen = 10; in HWTEST_F() local 653 int32_t ret = DslmHexStringToByte(str, strLen, nullptr, 0); in HWTEST_F() 659 int32_t ret = DslmHexStringToByte(str, strLen, hex, hexLen - 2); in HWTEST_F()
|