Home
last modified time | relevance | path

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

12

/base/hiviewdfx/hiview/plugins/sysevent_source/test/fuzztest/common/eventserver_fuzzer/
Deventserver_fuzzer.cpp28 constexpr size_t BUFFER_SIZE = 384 * 1024 + 1; variable
35 char* buffer = new char[BUFFER_SIZE](); in SysEventServerFuzzTest()
36 if (memcpy_s(buffer, BUFFER_SIZE, data, size) != EOK) { in SysEventServerFuzzTest()
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_device_pipe_test.cpp42 constexpr int32_t BUFFER_SIZE = 255; variable
157 uint8_t buffer[BUFFER_SIZE] = {0};
194 uint8_t buffer[BUFFER_SIZE] = {0};
195 pipe.SetBusNum(BUFFER_SIZE);
233 uint8_t buffer[BUFFER_SIZE] = {0};
234 pipe.SetDevAddr(BUFFER_SIZE);
272 uint8_t buffer[BUFFER_SIZE] = {0};
309 uint8_t buffer[BUFFER_SIZE] = {0};
310 pipe.SetBusNum(BUFFER_SIZE);
348 uint8_t buffer[BUFFER_SIZE] = {0};
[all …]
Dusb_request_test.cpp45 constexpr int32_t BUFFER_SIZE = 255; variable
150 uint8_t buffer[BUFFER_SIZE] = "usb request test!";
195 pip.SetBusNum(BUFFER_SIZE);
238 pip.SetDevAddr(BUFFER_SIZE);
281 uint8_t buffer[BUFFER_SIZE] = "usb request test!";
284 pip.SetBusNum(BUFFER_SIZE);
327 uint8_t buffer[BUFFER_SIZE] = "usb request test!";
330 pip.SetDevAddr(BUFFER_SIZE);
371 uint8_t buffer[BUFFER_SIZE] = "request queue read001";
374 uint8_t buffer1[BUFFER_SIZE] = {0};
[all …]
Dusb_bulkcallback_test.cpp46 constexpr int32_t BUFFER_SIZE = 255; variable
237 pipe.SetBusNum(BUFFER_SIZE);
287 pipe.SetDevAddr(BUFFER_SIZE);
337 pipe.SetDevAddr(BUFFER_SIZE);
387 pipe.SetBusNum(BUFFER_SIZE);
549 pipe.SetBusNum(BUFFER_SIZE);
605 pipe.SetDevAddr(BUFFER_SIZE);
715 pipe.SetBusNum(BUFFER_SIZE);
771 pipe.SetDevAddr(BUFFER_SIZE);
829 pipe.SetBusNum(BUFFER_SIZE);
[all …]
/base/update/updater/test/unittest/updater_binary/
Dupdate_processor_unittest.cpp40 constexpr const uint32_t BUFFER_SIZE = 1024 * 1024 * 2; variable
107 PkgBuffer buffer(BUFFER_SIZE);
113 BUFFER_SIZE, 0, false, &ringBuffer), 0);
122 EXPECT_EQ(len, BUFFER_SIZE);
/base/security/access_token/frameworks/common/src/
Djson_parser.cpp34 constexpr size_t BUFFER_SIZE = 1024; variable
100 char buff[BUFFER_SIZE] = { 0 }; in ReadCfgFile()
102 while ((readLen = read(fd, buff, BUFFER_SIZE)) > 0) { in ReadCfgFile()
/base/security/code_signature/test/unittest/
Dmulti_thread_local_sign_test.cpp37 static constexpr int64_t BUFFER_SIZE = 1024; variable
68 char buffer[BUFFER_SIZE]; in DupFile()
71 ssize_t len = read(fin, buffer, BUFFER_SIZE); in DupFile()
/base/hiviewdfx/hiview_lite/
Dhiview_util.c44 #define BUFFER_SIZE 128 macro
242 uint8 *dataBuf = (uint8 *)HIVIEW_MemAlloc(MEM_POOL_HIVIEW_ID, BUFFER_SIZE); in HIVIEW_FileCopy()
247 int32 nLen = HIVIEW_FileRead(fdSrc, dataBuf, BUFFER_SIZE); in HIVIEW_FileCopy()
252 nLen = HIVIEW_FileRead(fdSrc, dataBuf, BUFFER_SIZE); in HIVIEW_FileCopy()
/base/update/updater/services/diffpatch/bzip2/
Ddeflate_adapter.h24 static constexpr uint32_t BUFFER_SIZE = 1024 * 32;
Dzip_adapter.cpp52 buffer_.resize(BUFFER_SIZE); in Open()
/base/msdp/device_status/intention/ipc/socket/src/
Dsocket_session_manager.cpp48 static constexpr size_t BUFFER_SIZE { 32 * 1024 }; in AllocSocketFd() local
52 if (!SetBufferSize(sockFds[0], BUFFER_SIZE)) { in AllocSocketFd()
55 …tBufferSize(sockFds[1], tokenType == TokenType::TOKEN_NATIVE ? NATIVE_BUFFER_SIZE : BUFFER_SIZE)) { in AllocSocketFd()
/base/update/updater/services/fs_manager/
Dpartition_const.h22 constexpr int BUFFER_SIZE = 256; variable
Dpartitions.cpp88 char buf[BUFFER_SIZE]; in ReadDeviceSysfsFile()
103 if (fgets(buf, BUFFER_SIZE, f) == nullptr) { in ReadDeviceSysfsFile()
158 char buf[BUFFER_SIZE] = {0}; in ReadPartitionFromSys()
180 if (fgets(buf, BUFFER_SIZE, f) == nullptr) { in ReadPartitionFromSys()
/base/hiviewdfx/hiview/plugins/sysevent_source/
Devent_server.cpp46 constexpr int BUFFER_SIZE = 384 * 1024; variable
89 int bufferSizeSet = BUFFER_SIZE; in InitSocketBuf()
209 char* buffer = new char[BUFFER_SIZE + 1](); in ReceiveMsg()
213 int n = recvfrom(socketId_, buffer, sizeof(char) * BUFFER_SIZE, 0, in ReceiveMsg()
/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.h35 constexpr size_t BUFFER_SIZE = 1024; variable
/base/startup/appspawn/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()
151 if (groupsPtr == nullptr || strlen(groupsPtr) > BUFFER_SIZE) { in getGids()
160 if (groupsPtr == nullptr || strlen(groupsPtr) > BUFFER_SIZE) { in getGids()
165 if (line == nullptr || strlen(line) > BUFFER_SIZE) { in getGids()
221 char procName[BUFFER_SIZE]; in checkProcName()
268 char pid[BUFFER_SIZE]; in checkAppspawnPID()
334 auto ret = memset_s(buffer, sizeof(buffer), 0x00, BUFFER_SIZE); in SetUp()
/base/usb/usb_manager/test/native/mock/src/
Dusb_device_pipe_mock_test.cpp54 constexpr int32_t BUFFER_SIZE = 255; variable
295 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
313 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
334 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
353 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
370 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
390 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
410 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
428 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
449 std::vector<uint8_t> ctrlBuffer(BUFFER_SIZE);
[all …]
Dusb_request_mock_test.cpp45 constexpr int32_t BUFFER_SIZE = 255; variable
132 std::vector<uint8_t> bufferData(BUFFER_SIZE);
168 std::vector<uint8_t> bufferData(BUFFER_SIZE);
190 std::vector<uint8_t> bufferData(BUFFER_SIZE);
395 std::vector<uint8_t> bufferData(BUFFER_SIZE);
421 std::vector<uint8_t> bufferData(BUFFER_SIZE);
525 std::vector<uint8_t> bufferData(BUFFER_SIZE);
547 std::vector<uint8_t> bufferData(BUFFER_SIZE);
573 std::vector<uint8_t> bufferData(BUFFER_SIZE);
/base/powermgr/thermal_manager/test/systemtest/include/
Dthermal_mgr_system_test.h24 const int32_t BUFFER_SIZE = 512; variable
/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/
Dmedical_proxy_test.cpp41 constexpr int32_t BUFFER_SIZE = 8; variable
84 char buf[BUFFER_SIZE] = { 0 }; in GetSensorServicePid()
/base/telephony/core_service/services/sim/include/
Druim_file.h70 static const int BUFFER_SIZE = 50; variable
/base/update/updater/services/package/pkg_package/
Dpkg_gzipfile.cpp29 constexpr int32_t BUFFER_SIZE = 1024; variable
111 PkgBuffer buffer(BUFFER_SIZE); in EncodeHeader()
366 PkgBuffer buffer(nullptr, BUFFER_SIZE); in LoadPackage()
/base/update/updater/test/unittest/diffpatch/
Dbzip2_unittest.cpp251 size_t writeSize = (memInfo.length > (offset + DeflateAdapter::BUFFER_SIZE)) ? in DeflateAdapterTest()
252 DeflateAdapter::BUFFER_SIZE : (memInfo.length - offset); in DeflateAdapterTest()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
Ddlp_crypt.cpp34 const uint32_t BUFFER_SIZE = 1048576; variable
964 auto buf = std::make_unique<unsigned char[]>(BUFFER_SIZE); in DlpHmacEncode()
966 while ((readSize = read(fd, buf.get(), BUFFER_SIZE)) > 0) { in DlpHmacEncode()

12