/ohos5.0/base/security/huks/frameworks/crypto_lite/cipher/src/ |
H A D | cipher_aes.c | 192 data->textLen = strlen(text); in InitAesCryptDataText() 194 if ((data->textLen + 1) <= 0) { in InitAesCryptDataText() 197 data->text = malloc(data->textLen + 1); in InitAesCryptDataText() 201 (void)memset_s(data->text, data->textLen + 1, 0, data->textLen + 1); in InitAesCryptDataText() 210 size_t textLen = (size_t)data->textLen; in InitAesCryptDataText() local 212 data->textLen = (uint32_t)textLen; in InitAesCryptDataText() 216 data->textLen -= data->textLen % AES_BLOCK_SIZE; in InitAesCryptDataText() 298 size_t textLen = ctx->data.textLen; in DoAesCbcEncrypt() local 300 ctx->data.textLen = (uint32_t)textLen; in DoAesCbcEncrypt() 307 ctx->data.textLen = UnpaddingPkcs5(ctx->data.text, ctx->data.textLen); in DoAesCbcEncrypt() [all …]
|
/ohos5.0/base/hiviewdfx/hilog_lite/frameworks/featured/ |
H A D | hiview_log.c | 404 int textLen; in SecDecodeTypeC() local 427 textLen = 1; /* only 1 wide character */ in SecDecodeTypeC() 434 textLen = wctomb(buffer->str, wchar); in SecDecodeTypeC() 436 if (textLen < 0) { in SecDecodeTypeC() 444 textLen = 1; in SecDecodeTypeC() 449 return textLen; in SecDecodeTypeC() 462 int textLen; in SecDecodeTypeS() local 481 for (textLen = 0; textLen < finalPrecision && *strEnd; textLen++) { in SecDecodeTypeS() 528 return textLen; in SecDecodeTypeS() 625 textLen = 0; in HiLogSecOutputS() [all …]
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
H A D | cipher_sm2_openssl.c | 161 size_t textLen = 0; in GetTextLen() local 169 if (OpensslSm2PlainTextSize(input->data, input->len, &textLen) != HCF_OPENSSL_SUCCESS) { in GetTextLen() 177 return textLen; in GetTextLen() 181 int32_t mode, size_t textLen) in DoSm2EncryptAndDecrypt() argument 183 uint8_t *outputText = (uint8_t *)HcfMalloc(sizeof(uint8_t) * textLen, 0); in DoSm2EncryptAndDecrypt() 190 …pensslOsslSm2Encrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &textLen); in DoSm2EncryptAndDecrypt() 192 …pensslOsslSm2Decrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &textLen); in DoSm2EncryptAndDecrypt() 205 output->len = textLen; in DoSm2EncryptAndDecrypt() 211 size_t textLen = GetTextLen(impl, input, mode); in DoSm2Crypt() local 212 if (textLen == 0) { in DoSm2Crypt() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/ |
H A D | text.cpp | 91 uint32_t textLen = static_cast<uint32_t>(strlen(text)); in SetText() local 92 if (textLen > MAX_TEXT_LENGTH) { in SetText() 93 textLen = MAX_TEXT_LENGTH; in SetText() 102 text_ = static_cast<char*>(UIMalloc(textLen + 1)); in SetText() 106 if (strncpy_s(text_, textLen + 1, text, textLen) != EOK) { in SetText() 417 uint32_t textLen = GetTextStrLen(); in GetLine() local 419 textLen = ellipsisIndex; in GetLine() 479 if (nextLineBytes + begin > textLen) { in GetTextLine() 480 nextLineBytes = textLen - begin; in GetTextLine() 560 uint32_t textLen = static_cast<uint32_t>(strlen(text_)); in GetLetterIndexByPosition() local [all …]
|
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/ |
H A D | output_p.inl | 276 int textLen; local 308 if (textLen < 0) { 316 textLen = 1; 321 return textLen; 334 int textLen; local 353 for (textLen = 0; textLen < finalPrecision && *strEnd; textLen++) { 401 return textLen; 488 textLen = 0; 632 if (textLen < 0) { 1181 textLen = 5; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/ |
H A D | js_render_image.cpp | 123 size_t textLen = 0; in Constructor() local 124 auto status = napi_get_value_string_utf8(env, argv[0], nullptr, 0, &textLen); in Constructor() 130 std::string textString = GetSrcString(env, argv[0], textLen); in Constructor() 157 std::string JSRenderImage::GetSrcString(napi_env env, napi_value value, size_t textLen) in GetSrcString() argument 159 std::unique_ptr<char[]> text = std::make_unique<char[]>(textLen + 1); in GetSrcString() 160 auto status = napi_get_value_string_utf8(env, value, text.get(), textLen + 1, &textLen); in GetSrcString()
|
H A D | js_offscreen_canvas.cpp | 368 size_t textLen = 0; in onGetContext() local 370 napi_get_value_string_utf8(env, argv[0], nullptr, 0, &textLen); in onGetContext() 371 std::unique_ptr<char[]> text = std::make_unique<char[]>(textLen + 1); in onGetContext() 372 napi_get_value_string_utf8(env, argv[0], text.get(), textLen + 1, &textLen); in onGetContext()
|
H A D | js_render_image.h | 158 static std::string GetSrcString(napi_env env, napi_value value, size_t textLen);
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_edit_text_unit_test.cpp | 34 uint32_t textLen = static_cast<uint32_t>(strlen(value)); in OnChange() local 39 value_ = static_cast<char*>(UIMalloc(textLen + 1)); in OnChange() 43 if (strncpy_s(value_, textLen + 1, value, textLen) != EOK) { in OnChange()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_edit_text.cpp | 240 uint32_t textLen = wideText.length(); in UpdateTextString() local 242 if (textLen > maxLength) { in UpdateTextString() 243 textLen = maxLength; in UpdateTextString() 245 std::wstring newWideText = wideText.substr(0, textLen); in UpdateTextString() 555 uint32_t textLen = wideText.length(); in InsertTextByCursorIndex() local 557 if (cursorIndex_ > textLen || insertWTextLen + textLen > maxLength_) { in InsertTextByCursorIndex()
|
H A D | text_adapter.cpp | 21 bool TextFormatter::Format(int16_t value, char* outText, uint16_t textLen) in Format() argument 23 if (sprintf_s(outText, textLen, "%d", value) < 0) { in Format()
|
/ohos5.0/base/telephony/sms_mms/utils/ |
H A D | text_coder.cpp | 283 gsize textLen = static_cast<gsize>(srcLength); in Utf8ToUcs2() local 289 …(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in Utf8ToUcs2() 441 gsize textLen = static_cast<gsize>(srcLength); in Ucs2ToUtf8() local 446 …(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in Ucs2ToUtf8() 472 gsize textLen = static_cast<gsize>(srcLength); in EuckrToUtf8() local 476 …(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in EuckrToUtf8() 502 gsize textLen = static_cast<gsize>(srcLength); in ShiftjisToUtf8() local 507 …(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in ShiftjisToUtf8()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | png_image_chunk_utils.cpp | 205 …const size_t textLen = chunkData.Size() - (keySize + 3 + languageTextLen + 1 + translatedKeyTextLe… in GetRawTextFromItxtChunk() local 206 if (textLen == 0) { in GetRawTextFromItxtChunk() 213 rawText = DataBuf(textPtr, textLen); in GetRawTextFromItxtChunk() 215 int ret = DecompressText(textPtr, textLen, rawText); in GetRawTextFromItxtChunk()
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
H A D | hap_cert_verify_openssl_utils.cpp | 565 int32_t textLen = X509_NAME_get_text_by_NID(name, nId, nullptr, 0); in GetTextFromX509Name() local 566 if (textLen <= 0) { in GetTextFromX509Name() 570 std::unique_ptr<char[]> buffer = std::make_unique<char[]>(textLen + 1); in GetTextFromX509Name() 571 if (X509_NAME_get_text_by_NID(name, nId, buffer.get(), textLen + 1) != textLen) { in GetTextFromX509Name()
|
/ohos5.0/base/security/huks/frameworks/crypto_lite/cipher/include/ |
H A D | cipher.h | 47 int32_t textLen; member
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | span_string.cpp | 405 auto textLen = static_cast<int32_t>(text.length()); in ChangeStartToCorrectNum() local 406 if (textLen == 0) { in ChangeStartToCorrectNum() 412 if (tmpStart == textLen) { in ChangeStartToCorrectNum() 430 auto textLen = static_cast<int32_t>(text.length()); in ChangeEndToCorrectNum() local 431 if (textLen == 0) { in ChangeEndToCorrectNum() 437 if (tmpEnd == textLen) { in ChangeEndToCorrectNum() 441 if (tmpEnd >= textLen) { in ChangeEndToCorrectNum()
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | text_adapter.h | 60 virtual bool Format(int16_t value, char* outText, uint16_t textLen);
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/common/ |
H A D | text.h | 581 …GetTextLine(uint32_t begin, uint32_t textLen, int16_t width, uint16_t lineNum, uint8_t letterSpace, 598 uint32_t CalculateLineWithEllipsis(uint32_t begin, uint32_t textLen, int16_t width,
|
/ohos5.0/foundation/communication/nfc/frameworks/js/napi/tag/ |
H A D | nfc_napi_tag.cpp | 115 uint32_t textLen = NfcSdkCommon::GetHexStrBytesLen(hexText); in RegisterEnumRtdType() local 116 napi_create_array_with_length(env, textLen, &rtdText); in RegisterEnumRtdType() 117 for (uint32_t i = 0; i < textLen; i++) { in RegisterEnumRtdType()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_pattern.cpp | 8806 int32_t textLen = static_cast<int32_t>(wideText.length()); in OnBackPressed() local 8807 if (obj.offsetInSpan[0] < textLen && obj.offsetInSpan[1] <= textLen) { in OnBackPressed()
|