/base/hiviewdfx/hiview/plugins/sysevent_source/test/fuzztest/common/eventserver_fuzzer/ |
D | eventserver_fuzzer.cpp | 28 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/ |
D | usb_device_pipe_test.cpp | 42 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 …]
|
D | usb_request_test.cpp | 45 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 …]
|
D | usb_bulkcallback_test.cpp | 46 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/ |
D | update_processor_unittest.cpp | 40 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/ |
D | json_parser.cpp | 34 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/ |
D | multi_thread_local_sign_test.cpp | 37 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/ |
D | hiview_util.c | 44 #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/ |
D | deflate_adapter.h | 24 static constexpr uint32_t BUFFER_SIZE = 1024 * 32;
|
D | zip_adapter.cpp | 52 buffer_.resize(BUFFER_SIZE); in Open()
|
/base/msdp/device_status/intention/ipc/socket/src/ |
D | socket_session_manager.cpp | 48 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/ |
D | partition_const.h | 22 constexpr int BUFFER_SIZE = 256; variable
|
D | partitions.cpp | 88 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/ |
D | event_server.cpp | 46 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/ |
D | do_partition_unittest.cpp | 43 constexpr size_t BUFFER_SIZE = 100; variable 125 char aaa[BUFFER_SIZE] = {0};
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/ |
D | native_token_receptor.h | 35 constexpr size_t BUFFER_SIZE = 1024; variable
|
/base/startup/appspawn/test/moduletest/ |
D | appspawn_module_test.cpp | 41 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/ |
D | usb_device_pipe_mock_test.cpp | 54 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 …]
|
D | usb_request_mock_test.cpp | 45 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/ |
D | thermal_mgr_system_test.h | 24 const int32_t BUFFER_SIZE = 512; variable
|
/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/ |
D | medical_proxy_test.cpp | 41 constexpr int32_t BUFFER_SIZE = 8; variable 84 char buf[BUFFER_SIZE] = { 0 }; in GetSensorServicePid()
|
/base/telephony/core_service/services/sim/include/ |
D | ruim_file.h | 70 static const int BUFFER_SIZE = 50; variable
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_gzipfile.cpp | 29 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/ |
D | bzip2_unittest.cpp | 251 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/ |
D | dlp_crypt.cpp | 34 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()
|