/base/web/webview/interfaces/kits/napi/js/ |
D | webview_export_module.cpp | 21 …attribute__((visibility("default"))) void NAPI_web_webview_GetJSCode(const char **buf, int *bufLen) in NAPI_web_webview_GetJSCode() argument 27 if (bufLen != nullptr) { in NAPI_web_webview_GetJSCode() 28 *bufLen = _binary_webview_export_js_end - _binary_webview_export_js_start; in NAPI_web_webview_GetJSCode()
|
/base/notification/common_event_service/interfaces/kits/napi/static_subscriber_extension_context/ |
D | static_subscriber_extension_context_module.cpp | 36 void NAPI_application_StaticSubscriberExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_StaticSubscriberExtensionContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_StaticSubscriberExtensionContext_GetJSCode() 43 *bufLen = _binary_static_subscriber_extension_context_js_end - in NAPI_application_StaticSubscriberExtensionContext_GetJSCode()
|
/base/print/print_fwk/interfaces/kits/jsnapi/extensionctx/ |
D | print_extension_context_module.cpp | 35 const char **buf, int *bufLen) in NAPI_PrintExtensionContext_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_PrintExtensionContext_GetJSCode() 42 *bufLen = _binary_print_extension_context_js_end - _binary_print_extension_context_js_start; in NAPI_PrintExtensionContext_GetJSCode()
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth_extension/user_auth_extension/ |
D | user_auth_extension_ability_module.cpp | 36 const char **buf, int *bufLen) in NAPI_app_ability_UserAuthExtensionAbility_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_app_ability_UserAuthExtensionAbility_GetJSCode() 43 …*bufLen = _binary_user_auth_extension_ability_js_end - _binary_user_auth_extension_ability_js_star… in NAPI_app_ability_UserAuthExtensionAbility_GetJSCode()
|
/base/customization/enterprise_device_management/interfaces/kits/enterprise_admin_extension/ |
D | enterprise_admin_extension_ability_module.cpp | 35 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/theme/wallpaper_mgr/frameworks/js/napi/wallpaper_extension_context/ |
D | wallpaper_extension_context_module.cpp | 35 int *bufLen) in NAPI_WallpaperExtensionContext_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_WallpaperExtensionContext_GetJSCode() 42 …*bufLen = _binary_wallpaper_extension_context_js_end - _binary_wallpaper_extension_context_js_star… in NAPI_WallpaperExtensionContext_GetJSCode()
|
/base/customization/enterprise_device_management/interfaces/kits/enterprise_admin_extension_context/ |
D | enterprise_admin_extension_context_module.cpp | 35 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/print/print_fwk/interfaces/kits/jsnapi/extension/ |
D | print_extension_module.cpp | 34 …ribute__((visibility("default"))) void NAPI_PrintExtension_GetJSCode(const char **buf, int *bufLen) in NAPI_PrintExtension_GetJSCode() argument 40 if (bufLen != nullptr) { in NAPI_PrintExtension_GetJSCode() 41 *bufLen = _binary_print_extension_js_end - _binary_print_extension_js_start; in NAPI_PrintExtension_GetJSCode()
|
/base/notification/common_event_service/interfaces/kits/napi/static_subscriber_extension/ |
D | static_subscriber_extension_ability_module.cpp | 36 void NAPI_application_StaticSubscriberExtensionAbility_GetJSCode(const char **buf, int *bufLen) in NAPI_application_StaticSubscriberExtensionAbility_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_StaticSubscriberExtensionAbility_GetJSCode() 43 *bufLen = _binary_static_subscriber_extension_ability_js_end - in NAPI_application_StaticSubscriberExtensionAbility_GetJSCode()
|
/base/theme/wallpaper_mgr/frameworks/js/napi/wallpaperextensionability/ |
D | wallpaper_extension_ability_module.cpp | 35 const char **buf, int *bufLen) in NAPI_WallpaperExtensionAbility_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_WallpaperExtensionAbility_GetJSCode() 42 …*bufLen = _binary_wallpaper_extension_ability_js_end - _binary_wallpaper_extension_ability_js_star… in NAPI_WallpaperExtensionAbility_GetJSCode()
|
/base/inputmethod/imf/frameworks/js/napi/inputmethod_extension_ability/ |
D | inputmethod_extension_ability_module.cpp | 36 const char **buf, int *bufLen) in NAPI_InputMethodExtensionAbility_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_InputMethodExtensionAbility_GetJSCode() 42 …*bufLen = _binary_inputmethod_extension_ability_js_end - _binary_inputmethod_extension_ability_js_… in NAPI_InputMethodExtensionAbility_GetJSCode()
|
/base/inputmethod/imf/frameworks/js/napi/inputmethod_extension_context/ |
D | inputmethod_extension_context_module.cpp | 36 const char **buf, int *bufLen) in NAPI_InputMethodExtensionContext_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_InputMethodExtensionContext_GetJSCode() 42 …*bufLen = _binary_inputmethod_extension_context_js_end - _binary_inputmethod_extension_context_js_… in NAPI_InputMethodExtensionContext_GetJSCode()
|
/base/account/os_account/interfaces/kits/napi/appaccount/authorization_extension_context/ |
D | authorization_extension_context_module.cpp | 36 const char **buf, int *bufLen) in NAPI_account_appAccount_AuthorizationExtensionContext_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_account_appAccount_AuthorizationExtensionContext_GetJSCode() 42 …*bufLen = _binary_authorization_extension_context_js_end - _binary_authorization_extension_context… in NAPI_account_appAccount_AuthorizationExtensionContext_GetJSCode()
|
/base/account/os_account/interfaces/kits/napi/appaccount/authorization_extension_ability/ |
D | authorization_extension_ability_module.cpp | 37 const char **buf, int *bufLen) in NAPI_account_appAccount_AuthorizationExtensionAbility_GetJSCode() argument 43 if (bufLen != nullptr) { in NAPI_account_appAccount_AuthorizationExtensionAbility_GetJSCode() 44 …*bufLen = _binary_authorization_extension_ability_js_end - _binary_authorization_extension_ability… in NAPI_account_appAccount_AuthorizationExtensionAbility_GetJSCode()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | hap_parser.h | 41 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/ |
D | n_val.cpp | 62 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/update/sys_installer_lite/hals/ |
D | hal_hota_board.h | 74 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/hiviewdfx/hiview/plugins/faultlogger/test/common/ |
D | faultlogger_client_test.cpp | 31 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/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | napi_util.cpp | 30 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/sys_installer_lite/frameworks/source/updater/ |
D | hota_updater.c | 227 static int ParseHotaInfoComponent(unsigned char *infoCompBuffer, unsigned short 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/telephony/sms_mms/services/sms/gsm/ |
D | gsm_sms_tpdu_codec.cpp | 38 …ec::EncodeSmsPdu(std::shared_ptr<SmsTpdu> sourceData, char *pdu, uint16_t pduLen, uint16_t &bufLen) in EncodeSmsPdu() argument 73 bufLen = pduBuffer.GetIndex(); in EncodeSmsPdu() 74 if (!encodeRet || bufLen > pduLen) { in EncodeSmsPdu() 84 for (uint16_t locate = 0; locate < bufLen; locate++) { in EncodeSmsPdu()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | hap_resource.cpp | 93 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/global/resource_management/frameworks/resmgr/include/ |
D | hap_parser.h | 46 size_t &bufLen); 55 …int32_t ReadIndexFromFile(const char *zipFile, std::unique_ptr<uint8_t[]> &buffer, size_t &bufLen); 129 static int32_t ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc,
|
/base/usb/usb_manager/interfaces/kits/js/napi/include/ |
D | napi_util.h | 26 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/ |
D | napi_util.cpp | 321 int bufLen = MAX_BUF_LEN; in JsObjToGeoCodeRequest() local 322 CHK_ERROR_CODE("locale", JsObjectToString(env, object, "locale", bufLen, locale), false); in JsObjToGeoCodeRequest() 323 …CHK_ERROR_CODE("description", JsObjectToString(env, object, "description", bufLen, description), t… in JsObjToGeoCodeRequest() 476 int bufLen = MAX_BUF_LEN; in GetGeoAddressInfo() local 479 JsObjectToString(env, value, "locale", bufLen, address->locale_); in GetGeoAddressInfo() 480 JsObjectToString(env, value, "placeName", bufLen, address->placeName_); in GetGeoAddressInfo() 481 JsObjectToString(env, value, "countryCode", bufLen, address->countryCode_); in GetGeoAddressInfo() 482 JsObjectToString(env, value, "countryName", bufLen, address->countryName_); in GetGeoAddressInfo() 483 JsObjectToString(env, value, "administrativeArea", bufLen, address->administrativeArea_); in GetGeoAddressInfo() 484 JsObjectToString(env, value, "subAdministrativeArea", bufLen, address->subAdministrativeArea_); in GetGeoAddressInfo() [all …]
|