Home
last modified time | relevance | path

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

12

/developtools/hdc/src/host/
Dserver.cpp259 …out = Base::StringFormat("%s\t\t%s\t%s\t%s\n", hdi->connectKey.c_str(), sConn.c_str(), sStatus.c_s… in BuildDaemonVisableLine()
263 out = Base::StringFormat("%s\n", hdi->connectKey.c_str()); in BuildDaemonVisableLine()
311 string HdcServer::AdminDaemonMap(uint8_t opType, const string &connectKey, HDaemonInfo &hDaemonInfo… in AdminDaemonMap() argument
323 if (!mapDaemon[hDaemonInfoInOut->connectKey]) { in AdminDaemonMap()
324 mapDaemon[hDaemonInfoInOut->connectKey] = pdiNew; in AdminDaemonMap()
336 if (mapDaemon.count(connectKey)) { in AdminDaemonMap()
337 hDaemonInfoInOut = mapDaemon[connectKey]; in AdminDaemonMap()
344 if (mapDaemon.count(connectKey)) { in AdminDaemonMap()
345 mapDaemon.erase(connectKey); in AdminDaemonMap()
383 HDaemonInfo hdi = mapDaemon[hDaemonInfoInOut->connectKey]; in AdminDaemonMap()
[all …]
Dhost_uart.cpp323 int HdcHostUART::OpenSerialPort(const std::string &connectKey) in EnumSerialPort() argument
334 if (!GetPortFromKey(connectKey, portName, baudRate)) { in EnumSerialPort()
335 WRITE_LOG(LOG_ALL, "%s unknown format %s", __FUNCTION__, connectKey.c_str()); in EnumSerialPort()
393 if (!ConnectMyNeed(&uart, connectKey)) { in EnumSerialPort()
412 void HdcHostUART::UpdateUARTDaemonInfo(const std::string &connectKey, HSession hSession, in EnumSerialPort() argument
418 diNew.connectKey = connectKey; in EnumSerialPort()
423 connectKey.c_str(), in EnumSerialPort()
426 server.AdminDaemonMap(OP_REMOVE, connectKey, diNewPtr); in EnumSerialPort()
437 server.AdminDaemonMap(OP_QUERY, connectKey, diOldPtr); in EnumSerialPort()
440 server.AdminDaemonMap(OP_ADD, connectKey, diNewPtr); in EnumSerialPort()
[all …]
Dserver_for_client.cpp204 ptrServer->AdminDaemonMap(OP_QUERY, hChannel->connectKey, hdi); in SendToDaemon()
236 di.connectKey = lst.front(); in OrderFindTargets()
301 bool HdcServerForClient::NewConnectTry(void *ptrServer, HChannel hChannel, const string &connectKey in NewConnectTry() argument
304 WRITE_LOG(LOG_ALL, "%s %s", __FUNCTION__, connectKey.c_str()); in NewConnectTry()
306 int childRet = ((HdcServer *)ptrServer)->CreateConnect(connectKey, isCheck); in NewConnectTry()
315 size_t pos = connectKey.find(":"); in NewConnectTry()
317 string ip = connectKey.substr(0, pos); in NewConnectTry()
324 const_cast<char *>(connectKey.c_str())); in NewConnectTry()
333 bool HdcServerForClient::CommandRemoveSession(HChannel hChannel, const char *connectKey) in CommandRemoveSession() argument
337 (reinterpret_cast<HdcServer *>(ptrServer))->AdminDaemonMap(OP_QUERY, connectKey, hdiOld); in CommandRemoveSession()
[all …]
Dhost_uart.h45 HSession ConnectDaemon(const std::string &connectKey);
78 …virtual void UpdateUARTDaemonInfo(const std::string &connectKey, HSession hSession, ConnStatus con…
79 bool ConnectMyNeed(HUART hUART, std::string connectKey = "");
118 bool GetPortFromKey(const std::string &connectKey, std::string &portName, uint32_t &baudRate);
Dhost_tcp.cpp123 HSession HdcHostTCP::ConnectDaemon(const string &connectKey, bool isCheck) in ConnectDaemon() argument
127 if (Base::ConnectKey2IPPort(connectKey.c_str(), ip, &port) < 0) { in ConnectDaemon()
137 hSession->connectKey = connectKey; in ConnectDaemon()
Dclient.cpp330 connectKey = AutoConnectKey(command, connectKey); in ExecuteCommand()
341 connectKey = connectKeyIn; in Initial()
528 … WRITE_LOG(LOG_DEBUG, "Client channel handshake finished, use connectkey:%s", connectKey.c_str()); in PreHandshake()
531 … if (memset_s(hShake->connectKey, sizeof(hShake->connectKey), 0, sizeof(hShake->connectKey)) != EOK in PreHandshake()
532 …|| memcpy_s(hShake->connectKey, sizeof(hShake->connectKey), connectKey.c_str(), connectKey.size())… in PreHandshake()
Dserver_for_client.h41 …bool NewConnectTry(void *ptrServer, HChannel hChannel, const string &connectKey, bool isCheck = fa…
46 bool CommandRemoveSession(HChannel hChannel, const char *connectKey);
Dserver.h26 …virtual string AdminDaemonMap(uint8_t opType, const string &connectKey, HDaemonInfo &hDaemonInfoIn…
29 int CreateConnect(const string &connectKey, bool isCheck);
Dhost_tcp.h25 HSession ConnectDaemon(const string &connectKey, bool isCheck = false);
Dmain.cpp196 int RunClientMode(string &commands, string &serverListenString, string &connectKey, bool isPullServ… in RunClientMode() argument
220 client.Initial(connectKey); in RunClientMode()
421 void RunExternalClient(string &str, string &connectKey, string &containerInOut) in RunExternalClient() argument
424 extClient.connectKey = connectKey; in RunExternalClient()
Dext_client.h26 std::string connectKey;
Dclient.h68 string connectKey; variable
/developtools/smartperf_host/ide/src/hdc/message/
DSessionHandShake.ts28 …constructor(banner: string, authType: number, sessionId: number, connectKey: string, buf: string) {
33 this._connectKey = connectKey;
66 get connectKey(): string { method in SessionHandShake
70 set connectKey(value: string) { method in SessionHandShake
/developtools/profiler/host/smartperf/ide/src/hdc/message/
DSessionHandShake.ts28 …constructor(banner: string, authType: number, sessionId: number, connectKey: string, buf: string) {
33 this._connectKey = connectKey;
66 get connectKey(): string { method in SessionHandShake
70 set connectKey(value: string) { method in SessionHandShake
/developtools/smartperf_host/ide/test/hdc/message/
DSessionHandShake.test.ts53 expect(sessionHandShake.connectKey).toBeUndefined();
57 sessionHandShake.connectKey = true;
58 expect(sessionHandShake.connectKey).toBeTruthy();
/developtools/smartperf_host/ide/src/hdc/common/
DSerialize.ts30 let connectKey = this.serializeToString(4, handShake.connectKey);
33 … bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length + buf.length
38 mergedArray.set(connectKey, bannerValue.length + authTypeValue.length + sessionIdValue.length);
39 …ay.set(buf, bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length);
235 let connectKey = this.parseString(connectDataBuffer, connectKeySize);
245 return new SessionHandShake(banner, authType, sessionId, connectKey, buf);
/developtools/profiler/host/smartperf/ide/src/hdc/common/
DSerialize.ts30 let connectKey = this.serializeToString(4, handShake.connectKey);
33 … bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length + buf.length
38 mergedArray.set(connectKey, bannerValue.length + authTypeValue.length + sessionIdValue.length);
39 …ay.set(buf, bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length);
235 let connectKey = this.parseString(connectDataBuffer, connectKeySize);
245 return new SessionHandShake(banner, authType, sessionId, connectKey, buf);
/developtools/hdc/src/common/
Ddefine_plus.h383 std::string connectKey; member
429 oss << " connectKey:" << connectKey; in ToDebugString()
441 connectKey = ""; in HdcSession()
489 std::string connectKey; member
523 std::string connectKey; member
Dchannel.h31 vector<uint8_t> GetChannelHandshake(string &connectKey) const;
39 char connectKey[MAX_CONNECTKEY_SIZE]; member
Dchannel.cpp40 vector<uint8_t> HdcChannelBase::GetChannelHandshake(string &connectKey) const in GetChannelHandshake()
47 if (strcpy_s(handshake.connectKey, sizeof(handshake.connectKey), connectKey.c_str()) != EOK) { in GetChannelHandshake()
Dsession.h31 string connectKey; member
41 oss << " connectKey:" << connectKey; in ToDebugString()
Dserial_struct.h83 … Field<fieldFour, &Hdc::HdcSessionBase::SessionHandShake::connectKey>("connectKey"),
/developtools/hdc/test/unittest/common/
Dhost_uart_test.cpp210 EXPECT_CALL(mockHostUART, UpdateUARTDaemonInfo(mySession.connectKey, &mySession, STATUS_READY))
224 EXPECT_CALL(mockHostUART, UpdateUARTDaemonInfo(mySession.connectKey, &mySession, STATUS_READY))
255 EXPECT_CALL(mockHostUART, UpdateUARTDaemonInfo(mySession.connectKey, &mySession, STATUS_READY))
376 [&](const std::string &connectKey, HSession hSession, ConnStatus connStatus) { in __anon41276a340702() argument
377 mockHostUART.HdcHostUART::UpdateUARTDaemonInfo(connectKey, hSession, connStatus); in __anon41276a340702()
384 Field(&HdcDaemonInformation::connectKey, testSerialPortName)))
398 Field(&HdcDaemonInformation::connectKey, testSerialPortName)))
728 std::string connectKey = "dummykey"; variable
729 EXPECT_CALL(mockHostUART, OpenSerialPort(connectKey)).WillOnce(Return(0));
730 EXPECT_EQ(mockHostUART.ConnectDaemon(connectKey), nullptr);
[all …]
/developtools/smartperf_host/ide/test/hdc/common/
DSerialize.test.ts25 connectKey: 1,
/developtools/hdc/src/daemon/
Ddaemon.cpp269 hSession->connectKey = handshake.connectKey; in DaemonSessionHandshake()
285 handshake.connectKey = ""; in DaemonSessionHandshake()

12