Home
last modified time | relevance | path

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

/base/startup/init/services/modules/sysevent/
Dstartup_time_event.c30 uint32_t bufferLen; member
55 …int len = GetServiceName(item->paramName, args->buffer + args->currLen, args->bufferLen - args->cu… in TraversalEvent()
56 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent()
60 len = sprintf_s(args->buffer + args->currLen, args->bufferLen - args->currLen, ",%u:%u,%u:%u;", in TraversalEvent()
65 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent()
/base/update/updater/test/unittest/applypatch_test/
Dpartition_update_record_unittest.cpp59 const int bufferLen = 4096; variable
60 std::vector<uint8_t> buffer(bufferLen);
71 write(fd, buffer.data(), bufferLen);
/base/hiviewdfx/hilog/frameworks/libhilog/socket/
Dsocket_server.cpp73 int SocketServer::Recv(void *buffer, unsigned int bufferLen, int flags) in Recv() argument
75 return TEMP_FAILURE_RETRY(recv(socketHandler, buffer, bufferLen, flags)); in Recv()
Dsocket.cpp124 int Socket::Recv(void *buffer, unsigned int bufferLen, int flags) in Recv() argument
126 return TEMP_FAILURE_RETRY(recv(socketHandler, buffer, bufferLen, flags)); in Recv()
/base/telephony/call_manager/services/audio/src/
Daudio_player.cpp52 if (audioRenderer_->GetBufferSize(bufferLen)) { in InitRenderer()
140 uint8_t *buffer = (uint8_t *)malloc(bufferLen + bufferLen); in Play()
156 bytesToWrite = fread(buffer, READ_SIZE, bufferLen, wavFile); in Play()
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
Dsocket_server.h36 int Recv(void *buffer, unsigned int bufferLen, int flags = MSG_PEEK);
Dsocket.h42 int Recv(void *buffer, unsigned int bufferLen, int flags = MSG_PEEK);
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_tpdu_encode.cpp84 uint16_t bufferLen = buffer.GetSize() - buffer.GetIndex() - HEX_VALUE_01; in EncodeSubmitPduPartData() local
85 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), bufferLen, dcs.data(), HEX_VALUE_01) != EOK) { in EncodeSubmitPduPartData()
324 uint16_t bufferLen = buffer.GetSize() - buffer.GetIndex() - HEX_VALUE_01; in EncodeDeliverData() local
325 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), bufferLen, dcs.data(), HEX_VALUE_01) != EOK) { in EncodeDeliverData()
413 uint16_t bufferLen = buffer.GetSize() - buffer.GetIndex() - HEX_VALUE_01; in EncodeDeliverReportPartData() local
414 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), bufferLen, dcs.data(), HEX_VALUE_01) != EOK) { in EncodeDeliverReportPartData()
/base/update/updater/services/ptable_parse/
Dptable.cpp303 bool Ptable::GetPartitionGptHeaderInfo(const uint8_t *buffer, const uint32_t bufferLen, GPTHeaderIn… in GetPartitionGptHeaderInfo() argument
305 if (buffer == nullptr || bufferLen < LBA_LENGTH) { in GetPartitionGptHeaderInfo()
311 if (!CheckIfValidGpt(buffer, bufferLen)) { in GetPartitionGptHeaderInfo()
326 bool Ptable::CheckGptHeader(uint8_t *buffer, const uint32_t bufferLen, const uint64_t lbaNum, in CheckGptHeader() argument
329 if (bufferLen < LBA_LENGTH || lbaNum == 0) { in CheckGptHeader()
334 if (gptHeaderInfo.headerSize < GPT_HEADER_SIZE || gptHeaderInfo.headerSize > bufferLen) { in CheckGptHeader()
Dptable.h149 …bool GetPartitionGptHeaderInfo(const uint8_t *buffer, const uint32_t bufferLen, GPTHeaderInfo& gpt…
180 bool CheckGptHeader(uint8_t *buffer, const uint32_t bufferLen, const uint64_t lbaNum,
/base/request/request/frameworks/js/napi/src/
Djs_task.cpp371 uint32_t bufferLen = TOKEN_MAX_BYTES + 2; in ParseTouch() local
372 char *token = new char[bufferLen]; in ParseTouch()
374 napi_status status = napi_get_value_string_utf8(env, argv[1], token, bufferLen, &len); in ParseTouch()
377 memset_s(token, bufferLen, 0, bufferLen); in ParseTouch()
382 memset_s(token, bufferLen, 0, bufferLen); in ParseTouch()
387 memset_s(token, bufferLen, 0, bufferLen); in ParseTouch()
Djs_initialize.cpp297 uint32_t bufferLen = TOKEN_MAX_BYTES + 2; in ParseToken() local
298 token = new char[bufferLen]; in ParseToken()
299 napi_status status = napi_get_value_string_utf8(env, value, token, bufferLen, &len); in ParseToken()
302 memset_s(token, bufferLen, 0, bufferLen); in ParseToken()
307 memset_s(token, bufferLen, 0, bufferLen); in ParseToken()
312 memset_s(token, bufferLen, 0, bufferLen); in ParseToken()
/base/telephony/ril_adapter/services/vendor/include/
Dvendor_util.h51 int32_t GenerateCommand(char *buffer, size_t bufferLen, const char *fmt, ...);
/base/startup/init/services/param/include/
Dparam_common.h128 uint32_t bufferLen; member
/base/telephony/call_manager/services/audio/include/
Daudio_player.h91 size_t bufferLen = 0; variable
/base/update/updater/services/include/updater/
Dupdater.h93 void HandleChildOutput(const std::string &buffer, int32_t bufferLen, bool &retryUpdate, UpdaterPara…
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_manager_test.cpp291 const int bufferLen = 128; in FscryptEnable() local
292 char fscryptValue[bufferLen] = {0}; in FscryptEnable()
293 int ret = GetParameter("fscrypt.policy.config", "", fscryptValue, bufferLen - 1); in FscryptEnable()
/base/telephony/ril_adapter/services/vendor/src/
Dvendor_util.c46 int32_t GenerateCommand(char *buffer, size_t bufferLen, const char *fmt, ...) in GenerateCommand() argument
52 ret = vsprintf_s(buffer, bufferLen, fmt, va); in GenerateCommand()
/base/startup/init/services/param/base/
Dparam_base.c595 param->bufferLen = PARAM_VALUE_LEN_MAX; in CachedParameterCreate()
602 uint32_t length = param->bufferLen; in CachedParameterCreate()
609 ret = PARAM_STRCPY(param->paramValue, param->bufferLen, defValue); in CachedParameterCreate()
636 uint32_t length = param->bufferLen; in CachedParameterCheck()
/base/update/updater/services/package/pkg_package/
Dpkg_zipfile.h167 …int32_t EncodeLocalFileHeader(uint8_t *buffer, size_t bufferLen, bool hasDataDesc, size_t nameLen);
Dpkg_zipfile.cpp407 int32_t ZipFileEntry::EncodeLocalFileHeader(uint8_t *buffer, size_t bufferLen, bool hasDataDesc, in EncodeLocalFileHeader() argument
410 if (bufferLen < sizeof(LocalFileHeader)) { in EncodeLocalFileHeader()
/base/update/updater/services/
Dupdater.cpp306 void HandleChildOutput(const std::string &buffer, int32_t bufferLen, bool &retryUpdate, UpdaterPara… in HandleChildOutput() argument
308 if (bufferLen == 0) { in HandleChildOutput()
/base/telephony/sms_mms/frameworks/js/napi/include/
Dnapi_mms.h185 uint32_t bufferLen = 0; member
/base/telephony/call_manager/test/unittest/ui_client/
Dui_client_test.cpp970 size_t bufferLen, bytesToWrite = DEFAULT_SIZE, bytesWritten = DEFAULT_SIZE; in PlayRingtone() local
971 if (audioRenderer->GetBufferSize(bufferLen)) { in PlayRingtone()
975 std::unique_ptr<uint8_t> buffer = std::make_unique<uint8_t>(bufferLen + bufferLen); in PlayRingtone()
982 bytesToWrite = fread(buffer.get(), READ_SIZE, bufferLen, wavFile); in PlayRingtone()
/base/telephony/sms_mms/frameworks/js/napi/src/
Dnapi_mms.cpp1409 auto encodeResult = mmsMsg.EncodeMsg(context->bufferLen); in NativeEncodeMms()
1418 TELEPHONY_LOGD("napi_mms NativeEncodeMms length:%{private}d", context->bufferLen); in NativeEncodeMms()
1428 for (uint32_t i = 0; i < context->bufferLen; i++) { in EncodeMmsCallback()