Home
last modified time | relevance | path

Searched refs:bufLen (Results 1 – 25 of 36) sorted by relevance

12

/base/inputmethod/imf/interfaces/kits/js/napi/inputmethod_extension_context/
Dinputmethod_extension_context_module.cpp34 const char **buf, int *bufLen) in NAPI_InputMethodExtensionContext_GetJSCode() argument
39 if (bufLen != nullptr) { in NAPI_InputMethodExtensionContext_GetJSCode()
40 …*bufLen = _binary_inputmethod_extension_context_js_end - _binary_inputmethod_extension_context_js_… in NAPI_InputMethodExtensionContext_GetJSCode()
/base/theme/wallpaper_mgr/interfaces/kits/napi/wallpaper_extension_context/
Dwallpaper_extension_context_module.cpp36 void NAPI_WallpaperExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_WallpaperExtensionContext_GetJSCode() argument
42 if (bufLen != nullptr) { in NAPI_WallpaperExtensionContext_GetJSCode()
43 …*bufLen = _binary_wallpaper_extension_context_js_end - _binary_wallpaper_extension_context_js_star… in NAPI_WallpaperExtensionContext_GetJSCode()
/base/theme/wallpaper_mgr/interfaces/kits/napi/wallpaperextension/
Dwallpaper_extension_module.cpp36 void NAPI_WallpaperExtension_GetJSCode(const char **buf, int *bufLen) in NAPI_WallpaperExtension_GetJSCode() argument
42 if (bufLen != nullptr) { in NAPI_WallpaperExtension_GetJSCode()
43 *bufLen = _binary_wallpaper_extension_js_end - _binary_wallpaper_extension_js_start; in NAPI_WallpaperExtension_GetJSCode()
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethod_extension_ability/
Dinputmethod_extension_ability_module.cpp34 const char **buf, int *bufLen) in NAPI_InputMethodExtensionAbility_GetJSCode() argument
39 if (bufLen != nullptr) { in NAPI_InputMethodExtensionAbility_GetJSCode()
40 …*bufLen = _binary_inputmethod_extension_ability_js_end - _binary_inputmethod_extension_ability_js_… in NAPI_InputMethodExtensionAbility_GetJSCode()
/base/customization/enterprise_device_management/interfaces/kits/enterprise_admin_extension/
Denterprise_admin_extension_ability_module.cpp35 const char **buf, int *bufLen) in NAPI_enterprise_EnterpriseAdminExtensionAbility_GetJSCode() argument
41 if (bufLen != nullptr) { in NAPI_enterprise_EnterpriseAdminExtensionAbility_GetJSCode()
42 *bufLen = _binary_enterprise_admin_extension_ability_js_end - in NAPI_enterprise_EnterpriseAdminExtensionAbility_GetJSCode()
/base/customization/enterprise_device_management/interfaces/kits/enterprise_admin_extension_context/
Denterprise_admin_extension_context_module.cpp35 const char **buf, int *bufLen) in NAPI_enterprise_EnterpriseAdminExtensionContext_GetJSCode() argument
41 if (bufLen != nullptr) { in NAPI_enterprise_EnterpriseAdminExtensionContext_GetJSCode()
42 *bufLen = _binary_enterprise_admin_extension_context_js_end - in NAPI_enterprise_EnterpriseAdminExtensionContext_GetJSCode()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dhap_parser.h41 size_t &bufLen, std::string &errInfo);
52 size_t &bufLen, std::string &errInfo);
62 static int32_t ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc,
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/
Dn_val.cpp62 size_t bufLen = strLen + 1; in ToUTF8String() local
63 unique_ptr<char[]> str = make_unique<char[]>(bufLen); in ToUTF8String()
64 status = napi_get_value_string_utf8(env_, val_, str.get(), bufLen, &strLen); in ToUTF8String()
137 size_t bufLen = 0; in ToArraybuffer() local
138 bool status = napi_get_arraybuffer_info(env_, val_, &buf, &bufLen); in ToArraybuffer()
139 return make_tuple(status == napi_ok, buf, bufLen); in ToArraybuffer()
156 size_t bufLen = 0; in ToDataview() local
160 bool status = napi_get_dataview_info(env_, val_, &bufLen, &buf, &arraybuffer, &byteoff); in ToDataview()
161 return make_tuple(status == napi_ok, buf, bufLen); in ToDataview()
266 NVal NVal::CreateUint8Array(napi_env env, void *buf, size_t bufLen) in CreateUint8Array() argument
[all …]
/base/global/resource_management/frameworks/resmgr/include/
Dhap_parser.h41 size_t &bufLen);
50 …int32_t ReadIndexFromFile(const char *zipFile, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen);
61 …int32_t ReadRawFileFromHap(const char *zipFile, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen,
79 static int32_t ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc,
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/
Dfaultlogger_client_test.cpp31 const int32_t bufLen = 64; in GetFaultLogName() local
37 char buf[bufLen] = {0}; in GetFaultLogName()
38 strftime(buf, bufLen - 1, "%Y%m%d%H%M%S", timeInfo); in GetFaultLogName()
/base/update/ota_lite/hals/
Dhal_hota_board.h74 int HotaHalWrite(int partition, unsigned char *buffer, unsigned int offset, unsigned int bufLen);
90 int HotaHalRead(int partition, unsigned int offset, unsigned int bufLen, unsigned char *buffer);
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dnapi_util.cpp30 void NapiUtil::JsValueToString(const napi_env &env, const napi_value &value, const int32_t bufLen, … in JsValueToString() argument
32 if (bufLen <= 0 || bufLen > MAX_STR_LENGTH) { in JsValueToString()
37 int32_t actBufLen = bufLen + 1; in JsValueToString()
49 …const napi_env &env, const napi_value &object, std::string fieldStr, const int32_t bufLen, std::st… in JsObjectToString() argument
51 if (bufLen <= 0) { in JsObjectToString()
52 USB_HILOGE(MODULE_JS_NAPI, "invalid bufLen=%{public}d", bufLen); in JsObjectToString()
67 int32_t actBufLen = bufLen + 1; in JsObjectToString()
/base/update/ota_lite/frameworks/source/updater/
Dhota_updater.c227 static int ParseHotaInfoComponent(unsigned char *infoCompBuffer, unsigned int bufLen) in ParseHotaInfoComponent() argument
233 if (bufLen <= SIGN_DATA_LEN) { in ParseHotaInfoComponent()
238 unsigned char *infoHeaderBuf = (unsigned char *)malloc(bufLen - SIGN_DATA_LEN); in ParseHotaInfoComponent()
243 …if (memcpy_s(infoHeaderBuf, bufLen - SIGN_DATA_LEN, infoCompBuffer, bufLen - SIGN_DATA_LEN) != EOK… in ParseHotaInfoComponent()
248 if (HotaSignVerify(infoHeaderBuf, bufLen - SIGN_DATA_LEN, in ParseHotaInfoComponent()
249 infoCompBuffer + (bufLen - g_signStartAddr), g_signDataLen)) { in ParseHotaInfoComponent()
275 if (HotaHalWrite(PARTITION_INFO_COMP, infoCompBuffer, 0, bufLen) != OHOS_SUCCESS) { in ParseHotaInfoComponent()
338 static int ProcessInfoCompHeader(const unsigned char *infoCompBuffer, unsigned int bufLen) in ProcessInfoCompHeader() argument
344 if (bufLen < sizeof(PkgBasicInfo)) { in ProcessInfoCompHeader()
605 int HotaRead(unsigned int offset, unsigned int bufLen, unsigned char *buf) in HotaRead() argument
[all …]
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp61 size_t &bufLen) in ReadCurrentFile() argument
64 bufLen = fileInfo.uncompressed_size; in ReadCurrentFile()
76 err = unzReadCurrentFile(uf, buffer.get(), bufLen); in ReadCurrentFile()
86 size_t &bufLen) in ReadFileFromZip() argument
95 if (ReadCurrentFile(uf, fileInfo, buffer, bufLen) != OK) { in ReadFileFromZip()
162 …eInfoFromZip(unzFile &uf, const char *fileName, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen) in ReadFileInfoFromZip() argument
164 int err = HapParser::ReadFileFromZip(uf, fileName, buffer, bufLen); in ReadFileInfoFromZip()
174 size_t &bufLen) in ReadIndexFromFile() argument
182 return ReadFileInfoFromZip(uf, "resources.index", buffer, bufLen); in ReadIndexFromFile()
185 return ReadFileInfoFromZip(uf, indexFilePath.c_str(), buffer, bufLen); in ReadIndexFromFile()
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dhap_resource.cpp93 int bufLen = inFile.tellg(); in LoadFromIndex() local
94 if (bufLen <= 0) { in LoadFromIndex()
99 void *buf = malloc(bufLen); in LoadFromIndex()
106 inFile.read(static_cast<char *>(buf), bufLen); in LoadFromIndex()
109 HILOG_DEBUG("extract success, bufLen:%d", bufLen); in LoadFromIndex()
117 int32_t out = HapParser::ParseResHex(static_cast<char *>(buf), bufLen, *resDesc, defaultConfig); in LoadFromIndex()
/base/usb/usb_manager/interfaces/kits/js/napi/include/
Dnapi_util.h26 const napi_env &env, const napi_value &value, const int32_t bufLen, std::string &target);
28 const int32_t bufLen, std::string &fieldRef);
/base/location/frameworks/native/source/
Dnapi_util.cpp270 int bufLen = MAX_BUF_LEN; in JsObjToGeoCodeRequest() local
271 CHK_ERROR_CODE("locale", JsObjectToString(env, object, "locale", bufLen, locale), false); in JsObjToGeoCodeRequest()
272 …CHK_ERROR_CODE("description", JsObjectToString(env, object, "description", bufLen, description), t… in JsObjToGeoCodeRequest()
451 int bufLen = MAX_BUF_LEN; in GetGeoAddressInfo() local
452 JsObjectToString(env, value, "locale", bufLen, address->m_localeLanguage); in GetGeoAddressInfo()
453 JsObjectToString(env, value, "placeName", bufLen, address->m_placeName); in GetGeoAddressInfo()
454 JsObjectToString(env, value, "countryCode", bufLen, address->m_countryCode); in GetGeoAddressInfo()
455 JsObjectToString(env, value, "countryName", bufLen, address->m_countryName); in GetGeoAddressInfo()
456 JsObjectToString(env, value, "administrativeArea", bufLen, address->m_administrativeArea); in GetGeoAddressInfo()
457 JsObjectToString(env, value, "subAdministrativeArea", bufLen, address->m_subAdministrativeArea); in GetGeoAddressInfo()
[all …]
/base/security/device_auth/services/group_manager/inc/channel_manager/
Dchannel_manager.h37 int32_t GetLocalConnectInfo(char *jsonAddrInfo, int32_t bufLen);
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dhap_resource_test.cpp262 size_t bufLen; in LoadFromHap() local
264 &buf, bufLen, errOut); in LoadFromHap()
269 HILOG_DEBUG("extract success, bufLen:%zu", bufLen); in LoadFromHap()
272 out = HapParser::ParseResHex((char *)buf, bufLen, *resDesc, defaultConfig); in LoadFromHap()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dhap_resource_test.cpp265 size_t bufLen; in LoadFromHap() local
266 int32_t out = HapParser::ReadIndexFromFile(hapPath, buf, bufLen); in LoadFromHap()
271 HILOG_DEBUG("extract success, bufLen:%zu", bufLen); in LoadFromHap()
274 …out = HapParser::ParseResHex(reinterpret_cast<char *>(buf.get()), bufLen, *resDesc, defaultConfig); in LoadFromHap()
/base/update/ota_lite/interfaces/kits/
Dhota_updater.h146 int HotaRead(unsigned int offset, unsigned int bufLen, unsigned char *buf);
/base/startup/init/test/unittest/init/
Dcmds_unittest.cpp181 const int bufLen = 50; variable
182 char buffer[bufLen];
183 int length = read(fd, buffer, bufLen - 1);
/base/global/resource_management/frameworks/resmgr/src/
Dhap_resource.cpp155 int bufLen = inFile.tellg(); in LoadFromIndex() local
156 if (bufLen <= 0) { in LoadFromIndex()
161 void *buf = malloc(bufLen); in LoadFromIndex()
168 inFile.read(static_cast<char *>(buf), bufLen); in LoadFromIndex()
171 HILOG_DEBUG("extract success, bufLen:%d", bufLen); in LoadFromIndex()
179 int32_t out = HapParser::ParseResHex(static_cast<char *>(buf), bufLen, *resDesc, defaultConfig); in LoadFromIndex()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp46 …apParser::ReadFileFromZip(const char *zipFile, const char *fileName, void **buffer, size_t &bufLen, in ReadFileFromZip() argument
73 bufLen = fileInfo.uncompressed_size; in ReadFileFromZip()
90 err = unzReadCurrentFile(uf, *buffer, bufLen); in ReadFileFromZip()
127 size_t &bufLen, std::string &errInfo) in ReadIndexFromFile() argument
151 return ReadFileFromZip(zipFile, indexFilePath.c_str(), buffer, bufLen, errInfo); in ReadIndexFromFile()
354 int32_t HapParser::ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc, in ParseResHex() argument
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dmbedtls_pkcs7.c581 static int ParseSignedData(unsigned char *buf, size_t bufLen, SignedData *signedData) in ParseSignedData() argument
584 unsigned char *end = buf + bufLen; in ParseSignedData()
1308 static int ParsePemFormatSignedData(const unsigned char *buf, size_t bufLen, mbedtls_pem_context *p… in ParsePemFormatSignedData() argument
1310 if (bufLen != 0 && strstr((const char *)buf, "-----BEGIN PKCS7-----") != NULL) { in ParsePemFormatSignedData()
1316 if (ret == 0 && useLen == bufLen) { in ParsePemFormatSignedData()
1329 int PKCS7_ParseSignedData(const unsigned char *buf, size_t bufLen, Pkcs7 *pkcs7) in PKCS7_ParseSignedData() argument
1336 if (buf == NULL || bufLen == 0 || pkcs7 == NULL) { in PKCS7_ParseSignedData()
1343 rc = ParsePemFormatSignedData(buf, bufLen, &pkcs7->pem, &format); in PKCS7_ParseSignedData()
1349 bufLen = pkcs7->pem.MBEDTLS_PRIVATE(buflen); in PKCS7_ParseSignedData()
1352 end = start + bufLen; in PKCS7_ParseSignedData()

12