Home
last modified time | relevance | path

Searched refs:maxLength (Results 1 – 9 of 9) sorted by relevance

/base/telephony/sms_mms/utils/
Dtext_coder.h34 …int Utf8ToGsm7bit(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, MSG_LANGUAGE_ID…
35 int Utf8ToUcs2(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength);
36 …int CdmaUtf8ToAuto(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, DataCodingSche…
37 …int GsmUtf8ToAuto(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, DataCodingSchem…
38 …int Gsm7bitToUtf8(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, const MsgLangIn…
39 int Ucs2ToUtf8(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength);
40 int EuckrToUtf8(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength);
41 int ShiftjisToUtf8(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength) const;
46 …int Ucs2ToGsm7bit(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, MSG_LANGUAGE_ID…
47 …int Ucs2ToGsm7bitAuto(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, bool &unkno…
[all …]
Dtext_coder.cpp241 int TextCoder::Utf8ToGsm7bit(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, MSG_L… in Utf8ToGsm7bit() argument
247 if (srcLength <= 0 || src == nullptr || dest == nullptr || maxLength <= 0) { in Utf8ToGsm7bit()
270 … return Ucs2ToGsm7bit(dest, maxLength, reinterpret_cast<uint8_t *>(pUcs2Text), ucs2Length, langId); in Utf8ToGsm7bit()
273 int TextCoder::Utf8ToUcs2(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength) in Utf8ToUcs2() argument
279 if (srcLength <= 0 || src == nullptr || dest == nullptr || maxLength <= 0) { in Utf8ToUcs2()
286 gsize remainedLength = static_cast<gsize>(maxLength); in Utf8ToUcs2()
294 return (err != 0) ? -1 : (maxLength - static_cast<int>(remainedLength)); in Utf8ToUcs2()
297 int TextCoder::GsmUtf8ToAuto(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, DataC… in GsmUtf8ToAuto() argument
318 tempTextLen = (srcLength > maxLength) ? maxLength : srcLength; in GsmUtf8ToAuto()
325 …int gsm7bitLength = Ucs2ToGsm7bitAuto(dest, maxLength, reinterpret_cast<uint8_t *>(pUcs2Text), ucs… in GsmUtf8ToAuto()
[all …]
/base/web/webview/test/unittest/ohos_adapter/web_data_base_adapter_impl_test/
Dweb_data_base_adapter_impl_test.cpp169 constexpr int32_t maxLength = 256; variable
170 char password[maxLength + 1] = {0};
173 dataBase.GetHttpAuthCredentials("", TEST_REALME, username, password, maxLength + 1);
174 dataBase.GetHttpAuthCredentials(TEST_HOST, "", username, password, maxLength + 1);
175 dataBase.GetHttpAuthCredentials(TEST_HOST, TEST_REALME, username, nullptr, maxLength + 1);
176 dataBase.GetHttpAuthCredentials(TEST_HOST, TEST_REALME, username, password, maxLength + 1);
178 … g_dataBaseNull->GetHttpAuthCredentials(TEST_HOST, TEST_REALME, username, password, maxLength + 1);
180 (void)memset_s(password, maxLength + 1, 0, maxLength + 1);
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
Ddgram_socket_server.h30 DgramSocketServer(const std::string& socketName, uint16_t maxLength) in DgramSocketServer() argument
31 : SocketServer(socketName, SOCK_DGRAM), maxPacketLength(maxLength) {} in DgramSocketServer()
/base/hiviewdfx/hiview/base/event_pool/
Devent_thread_pool.cpp90 const int maxLength = 10; in TaskCallback() local
91 if (name_.length() > maxLength) { in TaskCallback()
93 name_ = name_.substr(0, maxLength - 1); in TaskCallback()
/base/customization/enterprise_device_management/interfaces/kits/common/include/
Dnapi_edm_common.h74 bool ParseCharArray(napi_env env, napi_value args, size_t maxLength, char *param);
81 bool JsObjectToCharArray(napi_env env, napi_value object, const char *filedStr, int maxLength, bool…
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_common.cpp145 bool ParseCharArray(napi_env env, napi_value args, size_t maxLength, char *param) in ParseCharArray() argument
157 if (size >= maxLength) { in ParseCharArray()
270 bool JsObjectToCharArray(napi_env env, napi_value object, const char *filedStr, int maxLength, bool… in JsObjectToCharArray() argument
284 ParseCharArray(env, prop, maxLength, result); in JsObjectToCharArray()
/base/hiviewdfx/hiview/base/
Devent_loop.cpp402 const int maxLength = 16; in Run() local
404 if (name_.length() >= maxLength) { in Run()
406 restrictedName = name_.substr(0, maxLength - 1); in Run()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp1355 int maxLength = resourceType == VIDEO ? MAX_VIDEO_SIZE : FOO_MAX_LEN; in CheckValid() local
1356 if (length <= 0 || length > maxLength) { in CheckValid()