/base/startup/init/services/modules/sysevent/ |
D | startup_time_event.c | 30 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/ |
D | partition_update_record_unittest.cpp | 59 const int bufferLen = 4096; variable 60 std::vector<uint8_t> buffer(bufferLen); 71 write(fd, buffer.data(), bufferLen);
|
/base/hiviewdfx/hilog/frameworks/libhilog/socket/ |
D | socket_server.cpp | 73 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()
|
D | socket.cpp | 124 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/ |
D | audio_player.cpp | 52 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/ |
D | socket_server.h | 36 int Recv(void *buffer, unsigned int bufferLen, int flags = MSG_PEEK);
|
D | socket.h | 42 int Recv(void *buffer, unsigned int bufferLen, int flags = MSG_PEEK);
|
/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_sms_tpdu_encode.cpp | 84 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/ |
D | ptable.cpp | 303 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()
|
D | ptable.h | 149 …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/ |
D | js_task.cpp | 371 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()
|
D | js_initialize.cpp | 297 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/ |
D | vendor_util.h | 51 int32_t GenerateCommand(char *buffer, size_t bufferLen, const char *fmt, ...);
|
/base/startup/init/services/param/include/ |
D | param_common.h | 128 uint32_t bufferLen; member
|
/base/telephony/call_manager/services/audio/include/ |
D | audio_player.h | 91 size_t bufferLen = 0; variable
|
/base/update/updater/services/include/updater/ |
D | updater.h | 93 void HandleChildOutput(const std::string &buffer, int32_t bufferLen, bool &retryUpdate, UpdaterPara…
|
/base/account/os_account/services/accountmgr/test/unittest/account_iam/ |
D | account_iam_manager_test.cpp | 291 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/ |
D | vendor_util.c | 46 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/ |
D | param_base.c | 595 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/ |
D | pkg_zipfile.h | 167 …int32_t EncodeLocalFileHeader(uint8_t *buffer, size_t bufferLen, bool hasDataDesc, size_t nameLen);
|
D | pkg_zipfile.cpp | 407 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/ |
D | updater.cpp | 306 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/ |
D | napi_mms.h | 185 uint32_t bufferLen = 0; member
|
/base/telephony/call_manager/test/unittest/ui_client/ |
D | ui_client_test.cpp | 970 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/ |
D | napi_mms.cpp | 1409 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()
|