Home
last modified time | relevance | path

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

/base/telephony/call_manager/services/audio/src/
Daudio_player.cpp25 size_t AudioPlayer::bufferLen = 0; member in OHOS::Telephony::AudioPlayer
52 if (audioRenderer_->GetBufferSize(bufferLen)) { in InitRenderer()
84 uint8_t *buffer = (uint8_t *)malloc(bufferLen + bufferLen); in Play()
100 bytesToWrite = fread(buffer, READ_SIZE, bufferLen, wavFile); in Play()
/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/startup/init/services/param/base/
Dparam_base.h40 uint32_t bufferLen; member
Dparam_base.c398 param->bufferLen = PARAM_VALUE_LEN_MAX; in CachedParameterCreate()
405 uint32_t length = param->bufferLen; in CachedParameterCreate()
412 ret = ParamStrCpy(param->paramValue, param->bufferLen, defValue); in CachedParameterCreate()
444 uint32_t length = param->bufferLen; in CachedParameterCheck()
/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/update/updater/services/ptable_parse/
Dptable.cpp288 bool Ptable::GetPartitionGptHeaderInfo(const uint8_t *buffer, const uint32_t bufferLen, GPTHeaderIn… in GetPartitionGptHeaderInfo() argument
290 if (buffer == nullptr || bufferLen < LBA_LENGTH) { in GetPartitionGptHeaderInfo()
296 if (!CheckIfValidGpt(buffer, bufferLen)) { in GetPartitionGptHeaderInfo()
311 bool Ptable::CheckGptHeader(uint8_t *buffer, const uint32_t bufferLen, const uint64_t lbaNum, in CheckGptHeader() argument
314 if (bufferLen < LBA_LENGTH || lbaNum == 0) { in CheckGptHeader()
319 if (gptHeaderInfo.headerSize < GPT_HEADER_SIZE || gptHeaderInfo.headerSize > bufferLen) { in CheckGptHeader()
Dptable.h147 …bool GetPartitionGptHeaderInfo(const uint8_t *buffer, const uint32_t bufferLen, GPTHeaderInfo& gpt…
178 bool CheckGptHeader(uint8_t *buffer, const uint32_t bufferLen, const uint64_t lbaNum,
/base/telephony/call_manager/services/audio/include/
Daudio_player.h73 static size_t bufferLen; variable
/base/telephony/ril_adapter/services/vendor/include/
Dvendor_util.h51 int32_t GenerateCommand(char *buffer, size_t bufferLen, const char *fmt, ...);
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_manager_test.cpp59 const int bufferLen = 128; in FscryptEnable() local
60 char fscryptValue[bufferLen] = {0}; in FscryptEnable()
61 int ret = GetParameter("fscrypt.policy.config", "", fscryptValue, bufferLen - 1); in FscryptEnable()
/base/update/updater/services/
Dupdater.cpp263 void HandleChildOutput(const std::string &buffer, int32_t bufferLen, bool &retryUpdate, UpdaterPara… in HandleChildOutput() argument
265 if (bufferLen == 0) { in HandleChildOutput()
/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/update/updater/services/package/pkg_package/
Dpkg_zipfile.h164 …int32_t EncodeLocalFileHeader(uint8_t *buffer, size_t bufferLen, bool hasDataDesc, size_t nameLen);
Dpkg_zipfile.cpp346 int32_t ZipFileEntry::EncodeLocalFileHeader(uint8_t *buffer, size_t bufferLen, bool hasDataDesc, in EncodeLocalFileHeader() argument
349 if (bufferLen < sizeof(LocalFileHeader)) { in EncodeLocalFileHeader()
/base/telephony/sms_mms/frameworks/js/napi/include/
Dnapi_mms.h196 uint32_t bufferLen; member
/base/telephony/call_manager/test/unittest/ui_client/
Dui_client_test.cpp853 size_t bufferLen, bytesToWrite = DEFAULT_SIZE, bytesWritten = DEFAULT_SIZE; in PlayRingtone() local
854 if (audioRenderer->GetBufferSize(bufferLen)) { in PlayRingtone()
858 std::unique_ptr<uint8_t> buffer = std::make_unique<uint8_t>(bufferLen + bufferLen); in PlayRingtone()
865 bytesToWrite = fread(buffer.get(), READ_SIZE, bufferLen, wavFile); in PlayRingtone()
/base/telephony/sms_mms/frameworks/js/napi/src/
Dnapi_mms.cpp1333 context->outBuffer = mmsMsg.EncodeMsg(context->bufferLen); in NativeEncodeMms()
1346 for (uint32_t i = 0; i < context->bufferLen; i++) { in EncodeMmsCallback()