Home
last modified time | relevance | path

Searched refs:MSG_MAX_SIZE (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_input/services/source/transport/test/sourcetransunittest/
H A Ddistributed_input_sourcetrans_test.cpp493 std::string message(MSG_MAX_SIZE + 1, 'a');
505 std::string message(MSG_MAX_SIZE + 1, 'a');
523 std::string message(MSG_MAX_SIZE + 1, 'a');
536 std::string message(MSG_MAX_SIZE + 1, 'a');
550 std::string message(MSG_MAX_SIZE + 1, 'a');
571 std::string message(MSG_MAX_SIZE + 1, 'a');
593 std::string message(MSG_MAX_SIZE + 1, 'a');
612 std::string message(MSG_MAX_SIZE + 1, 'a');
630 std::string message(MSG_MAX_SIZE + 1, 'a');
660 std::string message(MSG_MAX_SIZE + 1, 'a');
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/authentication/
H A Dauth_message_processor.cpp25 const int32_t MSG_MAX_SIZE = 45 * 1024; variable
81 …int32_t thumbnailSlice = ((thumbnailSize / MSG_MAX_SIZE) + (thumbnailSize % MSG_MAX_SIZE) == 0 ? 0… in CreateAuthRequestMessage()
95 int32_t leftLen = thumbnailSize - idx * MSG_MAX_SIZE; in CreateAuthRequestMessage()
96 int32_t sliceLen = (leftLen > MSG_MAX_SIZE) ? MSG_MAX_SIZE : leftLen; in CreateAuthRequestMessage()
99 …jsonObj[TAG_APP_THUMBNAIL] = authRequestContext_->appThumbnail.substr(idx * MSG_MAX_SIZE, sliceLen… in CreateAuthRequestMessage()
/ohos5.0/foundation/distributedhardware/distributed_input/services/transportbase/src/
H A Ddistributed_input_transport_base.cpp469 if (sessionId < 0 || data == nullptr || dataLen == 0 || dataLen > MSG_MAX_SIZE) { in OnBytesReceived()
527 if (message.size() > MSG_MAX_SIZE) { in SendMsg()
531 uint8_t *buf = reinterpret_cast<uint8_t *>(calloc((MSG_MAX_SIZE), sizeof(uint8_t))); in SendMsg()
537 …if (memcpy_s(buf, MSG_MAX_SIZE, reinterpret_cast<const uint8_t *>(message.c_str()), message.size()… in SendMsg()
/ohos5.0/foundation/distributedhardware/distributed_input/services/transportbase/test/transbaseunittest/
H A Ddistributed_input_transbase_test.cpp164 std::string message(MSG_MAX_SIZE + 1, 'a');
168 std::string messageData(MSG_MAX_SIZE - 1, 'a');
/ohos5.0/foundation/distributedhardware/distributed_input/services/common/include/
H A Ddinput_softbus_define.h38 const uint32_t MSG_MAX_SIZE = 45 * 1024; variable