Home
last modified time | relevance | path

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

/base/hiviewdfx/hiview_lite/
Dhiview_util.c45 #define BUFFER_SIZE 128 macro
211 uint8 *dataBuf = (uint8 *)HIVIEW_MemAlloc(MEM_POOL_HIVIEW_ID, BUFFER_SIZE); in HIVIEW_FileCopy()
216 int32 nLen = HIVIEW_FileRead(fdSrc, dataBuf, BUFFER_SIZE); in HIVIEW_FileCopy()
221 nLen = HIVIEW_FileRead(fdSrc, dataBuf, BUFFER_SIZE); in HIVIEW_FileCopy()
/base/hiviewdfx/hiview/core/
Devent_server.cpp46 constexpr int BUFFER_SIZE = 384 * 1024; variable
61 int sendBuffSize = BUFFER_SIZE; in InitRecvBuffer()
142 char* recvbuf = new char[BUFFER_SIZE]; in ReceiveMsg()
143 int n = recvfrom(socketId_, recvbuf, sizeof(char) * BUFFER_SIZE, 0, in ReceiveMsg()
149 recvbuf[BUFFER_SIZE - 1] = 0; in ReceiveMsg()
/base/update/updater/services/fs_manager/
Dpartitions.cpp76 char buf[BUFFER_SIZE]; in ReadDeviceSysfsFile()
84 …UPDATER_CHECK_ONLY_RETURN(fgets(buf, BUFFER_SIZE, f) != nullptr, fclose(f); free(realPath); return… in ReadDeviceSysfsFile()
133 char buf[BUFFER_SIZE] = {0}; in ReadPartitionFromSys()
136 char *partInf = (char *)calloc(BUFFER_SIZE, sizeof(char)); in ReadPartitionFromSys()
150 …UPDATER_CHECK_ONLY_RETURN(fgets(buf, BUFFER_SIZE, f) != nullptr, fclose(f); free(partInf); return … in ReadPartitionFromSys()
154 UPDATER_CHECK_ONLY_RETURN(memcpy_s(partInf, BUFFER_SIZE, buf + table.size(), in ReadPartitionFromSys()
161 UPDATER_CHECK_ONLY_RETURN(memcpy_s(partInf, BUFFER_SIZE, buf, sizeof(buf) - 1) == 0, in ReadPartitionFromSys()
167 UPDATER_CHECK_ONLY_RETURN(memcpy_s(partInf, BUFFER_SIZE, buf, sizeof(buf) - 1) == 0, in ReadPartitionFromSys()
Dpartition_const.h22 constexpr int BUFFER_SIZE = 256; variable
/base/update/updater/services/diffpatch/bzip2/
Ddeflate_adapter.h24 static constexpr uint32_t BUFFER_SIZE = 1024 * 32;
Dzip_adapter.cpp43 buffer_.resize(BUFFER_SIZE); in Open()
/base/update/updater/test/unittest/fs_manager/
Ddo_partition_unittest.cpp43 constexpr size_t BUFFER_SIZE = 100; variable
125 char aaa[BUFFER_SIZE] = {0};
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Dnative_token_receptor.h32 constexpr size_t BUFFER_SIZE = 1024; variable
/base/startup/appspawn_standard/test/moduletest/
Dappspawn_module_test.cpp41 const int32_t BUFFER_SIZE = 512; variable
51 char buffer[BUFFER_SIZE] = {"\0"};
89 int t = read(fd, buffer, BUFFER_SIZE); in readFileInfo()
152 if (groupsPtr == nullptr || strlen(groupsPtr) > BUFFER_SIZE) { in getGids()
161 if (groupsPtr == nullptr || strlen(groupsPtr) > BUFFER_SIZE) { in getGids()
166 if (line == nullptr || strlen(line) > BUFFER_SIZE) { in getGids()
222 char procName[BUFFER_SIZE]; in checkProcName()
269 char pid[BUFFER_SIZE]; in checkAppspawnPID()
335 auto ret = memset_s(buffer, sizeof(buffer), 0x00, BUFFER_SIZE); in SetUp()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dnative_token_receptor.cpp139 char buff[BUFFER_SIZE] = { 0 }; in ReadCfgFile()
141 while ((readLen = read(fd, buff, BUFFER_SIZE)) > 0) { in ReadCfgFile()
/base/update/updater/services/flashd/
Dflash_utils.h36 static constexpr size_t BUFFER_SIZE = 64 * 1024; variable
Dpartition.cpp80 std::vector<uint8_t> content(BUFFER_SIZE); in DoFlash()
/base/powermgr/thermal_manager/test/systemtest/include/
Dthermal_mgr_system_test.h24 const int32_t BUFFER_SIZE = 512; variable
/base/telephony/core_service/services/sim/include/
Druim_file.h69 static const int BUFFER_SIZE = 50; variable
/base/update/updater/services/package/pkg_package/
Dpkg_gzipfile.cpp28 constexpr int32_t BUFFER_SIZE = 1024; variable
70 PkgBuffer buffer(BUFFER_SIZE); in EncodeHeader()
290 PkgBuffer buffer(BUFFER_SIZE); in LoadPackage()
Dpkg_upgradefile.cpp46 constexpr size_t BUFFER_SIZE = 4 * 1024 * 1024; variable
223 size_t buffSize = BUFFER_SIZE; in Verify()
/base/update/updater/test/unittest/diffpatch/
Dbzip2_unittest.cpp235 size_t writeSize = (memInfo.length > (offset + DeflateAdapter::BUFFER_SIZE)) ? in DeflateAdapterTest()
236 DeflateAdapter::BUFFER_SIZE : (memInfo.length - offset); in DeflateAdapterTest()
/base/telephony/core_service/services/sim/src/
Druim_file.cpp285 unsigned char spnData[BUFFER_SIZE] = {0}; in ProcessGetSpnDone()
/base/update/updater/services/package/pkg_manager/
Dpkg_managerImpl.cpp34 constexpr int32_t BUFFER_SIZE = 4096; variable
584 size_t buffSize = BUFFER_SIZE; in GenerateFileDigest()
/base/powermgr/thermal_manager/test/systemtest/src/
Dthermal_mgr_system_test.cpp85 char pid[BUFFER_SIZE]; in CheckThermalProtectorPID()