Home
last modified time | relevance | path

Searched refs:bufString (Results 1 – 12 of 12) sorted by relevance

/developtools/hdc/src/test/
Dut_mod.cpp78 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 …]
Dut_command.cpp40 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
83bufString = 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()
Dmain.cpp21 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/
Ddaemon.cpp209 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()
Ddaemon_app.cpp56 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/
Dhost_tcp.cpp36 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()
Dhost_app.cpp114 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()
Dhost_updater.cpp137 std::string bufString = SerialStruct::SerializeToString(context->transferConfig); in CheckMaster() local
143 buffer.insert(buffer.end(), bufString.begin(), bufString.end()); in CheckMaster()
Dserver.cpp431 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()
Dserver_for_client.cpp252 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/
Dforward.cpp547 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()
Dbase.cpp582 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()