/developtools/hdc/src/test/ |
D | ut_mod.cpp | 78 char bufString[BUF_SIZE_DEFAULT4] = ""; in TestShellExecute() local 88 Base::RunPipeComand(const_cast<const char *>("id"), bufString, sizeof(bufString), false); in TestShellExecute() 89 if (strcmp(bufString, reinterpret_cast<char *>(bufPtr))) { in TestShellExecute() 102 …se::RunPipeComand(const_cast<const char *>("cat /etc/passwd"), bufString, sizeof(bufString), false… in TestShellExecute() 103 if (strcmp(bufString, reinterpret_cast<char *>(bufPtr))) { in TestShellExecute() 134 char bufString[BUF_SIZE_DEFAULT] = ""; in TestFileCommand() local 144 Base::RunPipeComand(cmd.c_str(), bufString, sizeof(bufString), false); in TestFileCommand() 289 char bufString[BUF_SIZE_DEFAULT] = ""; in TestAppCommand() local 292 Base::RunPipeComand(cmd.c_str(), bufString, sizeof(bufString), false); in TestAppCommand() 296 …e::ReadBinFile((UT_TMP_PATH + "/appinstall.result").c_str(), reinterpret_cast<void **>(&bufString), in TestAppCommand() [all …]
|
D | ut_command.cpp | 40 string bufString = "tconn "; in PreConnectDaemon() local 41 bufString += debugConnectKey; in PreConnectDaemon() 43 TestRunClient(debugServerPort, "", bufString.c_str()); in PreConnectDaemon() 68 string bufString; in TestTaskCommand() local 83 … bufString = Base::StringFormat("file send %s/file.local %s/file.remote", UT_TMP_PATH.c_str(), in TestTaskCommand() 85 TestRunClient(debugServerPort, debugConnectKey, bufString); in TestTaskCommand() 105 bufString = Base::StringFormat("install %s/app.hap", UT_TMP_PATH.c_str()); in TestTaskCommand() 106 TestRunClient(debugServerPort, debugConnectKey, bufString); in TestTaskCommand()
|
D | main.cpp | 21 char bufString[256] = ""; in TEST() local 26 GTEST_ASSERT_EQ(0, Base::ConnectKey2IPPort("127.0.0.1:8080", bufString, &num)); in TEST()
|
/developtools/hdc/src/daemon/ |
D | daemon.cpp | 209 string bufString = SerialStruct::SerializeToString(handshake); in HandDaemonAuth() local 211 reinterpret_cast<uint8_t *>(const_cast<char *>(bufString.c_str())), in HandDaemonAuth() 212 bufString.size()); in HandDaemonAuth() 229 string bufString = SerialStruct::SerializeToString(handshake); in HandDaemonAuth() local 231 … reinterpret_cast<uint8_t *>(const_cast<char *>(bufString.c_str())), bufString.size()); in HandDaemonAuth() 319 string bufString = SerialStruct::SerializeToString(handshake); in DaemonSessionHandshake() local 321 reinterpret_cast<uint8_t *>(const_cast<char *>(bufString.c_str())), bufString.size()); in DaemonSessionHandshake()
|
D | daemon_app.cpp | 56 string bufString(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch() 57 SerialStruct::ParseFromString(ctxNow.transferConfig, bufString); in CommandDispatch() 80 string bufString(reinterpret_cast<char *>(payload), payloadSize); in CommandDispatch() 84 Base::SplitString(bufString, " ", segments); in CommandDispatch()
|
/developtools/hdc/src/host/ |
D | host_tcp.cpp | 36 char bufString[BUF_SIZE_TINY]; in RecvUDPEntry() local 46 uv_ip6_name((sockaddr_in6 *)addrSrc, bufString, sizeof(bufString)); in RecvUDPEntry() 47 string addrPort = string(bufString); in RecvUDPEntry()
|
D | host_app.cpp | 114 string bufString = SerialStruct::SerializeToString(context->transferConfig); in CheckMaster() local 115 …SendToAnother(CMD_APP_CHECK, const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(bufString.c_s… in CheckMaster() 116 bufString.size()); in CheckMaster()
|
D | host_updater.cpp | 137 std::string bufString = SerialStruct::SerializeToString(context->transferConfig); in CheckMaster() local 143 buffer.insert(buffer.end(), bufString.begin(), bufString.end()); in CheckMaster()
|
D | server.cpp | 431 string bufString; in HandServerAuth() local 440 bufString = SerialStruct::SerializeToString(handshake); in HandServerAuth() 442 … reinterpret_cast<uint8_t *>(const_cast<char *>(bufString.c_str())), bufString.size()); in HandServerAuth() 454 bufString = SerialStruct::SerializeToString(handshake); in HandServerAuth() 456 … reinterpret_cast<uint8_t *>(const_cast<char *>(bufString.c_str())), bufString.size()); in HandServerAuth()
|
D | server_for_client.cpp | 252 string bufString = std::to_string(count); in OrderFindTargets() local 253 …le((UT_TMP_PATH + "/base-discover.result").c_str(), (uint8_t *)bufString.c_str(), bufString.size(), in OrderFindTargets()
|
/developtools/hdc/src/common/ |
D | forward.cpp | 547 char bufString[BUF_SIZE_SMALL] = ""; in BeginForward() local 582 int maxBufSize = sizeof(bufString) - forwardParameterBufSize; in BeginForward() 583 …if (snprintf_s(bufString + forwardParameterBufSize, maxBufSize, maxBufSize - 1, "%s", argv[1]) > 0… in BeginForward() 584 SendToTask(ctxPoint->id, CMD_FORWARD_CHECK, reinterpret_cast<uint8_t *>(bufString), in BeginForward() 585 forwardParameterBufSize + strlen(bufString + forwardParameterBufSize) + 1); in BeginForward()
|
D | base.cpp | 582 char bufString[BUF_SIZE_TINY] = ""; in ConnectKey2IPPort() local 583 if (strncpy_s(bufString, sizeof(bufString), connectKey, strlen(connectKey))) { in ConnectKey2IPPort() 586 char *p = strrchr(bufString, ':'); in ConnectKey2IPPort() 591 if (!strlen(bufString) || strlen(bufString) > 40) { // 40 : bigger than length of ipv6 in ConnectKey2IPPort() 595 if (EOK != strcpy_s(outIP, BUF_SIZE_TINY, bufString)) { in ConnectKey2IPPort()
|