/developtools/profiler/host/smartperf/ide/src/hdc/message/ |
D | SessionHandShake.ts | 28 …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/hdc/src/host/ |
D | host_uart.cpp | 321 int HdcHostUART::OpenSerialPort(const std::string &connectKey) in EnumSerialPort() argument 332 if (!GetPortFromKey(connectKey, portName, baudRate)) { in EnumSerialPort() 333 WRITE_LOG(LOG_ALL, "%s unknown format %s", __FUNCTION__, connectKey.c_str()); in EnumSerialPort() 391 if (!ConnectMyNeed(&uart, connectKey)) { in EnumSerialPort() 410 void HdcHostUART::UpdateUARTDaemonInfo(const std::string &connectKey, HSession hSession, in EnumSerialPort() argument 416 diNew.connectKey = connectKey; in EnumSerialPort() 421 connectKey.c_str(), in EnumSerialPort() 424 server.AdminDaemonMap(OP_REMOVE, connectKey, diNewPtr); in EnumSerialPort() 435 server.AdminDaemonMap(OP_QUERY, connectKey, diOldPtr); in EnumSerialPort() 438 server.AdminDaemonMap(OP_ADD, connectKey, diNewPtr); in EnumSerialPort() [all …]
|
D | server.cpp | 255 …out = Base::StringFormat("%s\t\t%s\t%s\t%s\n", hdi->connectKey.c_str(), sConn.c_str(), sStatus.c_s… in BuildDaemonVisableLine() 259 out = Base::StringFormat("%s\n", hdi->connectKey.c_str()); in BuildDaemonVisableLine() 307 string HdcServer::AdminDaemonMap(uint8_t opType, const string &connectKey, HDaemonInfo &hDaemonInfo… in AdminDaemonMap() argument 319 if (!mapDaemon[hDaemonInfoInOut->connectKey]) { in AdminDaemonMap() 320 mapDaemon[hDaemonInfoInOut->connectKey] = pdiNew; in AdminDaemonMap() 332 if (mapDaemon.count(connectKey)) { in AdminDaemonMap() 333 hDaemonInfoInOut = mapDaemon[connectKey]; in AdminDaemonMap() 340 if (mapDaemon.count(connectKey)) { in AdminDaemonMap() 341 mapDaemon.erase(connectKey); in AdminDaemonMap() 379 HDaemonInfo hdi = mapDaemon[hDaemonInfoInOut->connectKey]; in AdminDaemonMap() [all …]
|
D | server_for_client.cpp | 160 ptrServer->AdminDaemonMap(OP_QUERY, hChannel->connectKey, hdi); in SendToDaemon() 192 di.connectKey = lst.front(); in OrderFindTargets() 256 bool HdcServerForClient::NewConnectTry(void *ptrServer, HChannel hChannel, const string &connectKey… in NewConnectTry() argument 259 WRITE_LOG(LOG_ALL, "%s %s", __FUNCTION__, connectKey.c_str()); in NewConnectTry() 261 int childRet = ((HdcServer *)ptrServer)->CreateConnect(connectKey, isCheck); in NewConnectTry() 271 const_cast<char *>(connectKey.c_str())); in NewConnectTry() 280 bool HdcServerForClient::CommandRemoveSession(HChannel hChannel, const char *connectKey) in CommandRemoveSession() argument 284 (reinterpret_cast<HdcServer *>(ptrServer))->AdminDaemonMap(OP_QUERY, connectKey, hdiOld); in CommandRemoveSession() 343 string connectKey = hdi->connectKey; in GetAnyTarget() local 344 bool ret = NewConnectTry(ptrServer, hChannel, connectKey); in GetAnyTarget() [all …]
|
D | host_uart.h | 45 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);
|
D | client.cpp | 195 connectKey = AutoConnectKey(command, connectKey); in ExecuteCommand() 206 connectKey = connectKeyIn; in Initial() 379 … WRITE_LOG(LOG_DEBUG, "Client channel handshake finished, use connectkey:%s", connectKey.c_str()); in PreHandshake() 382 … if (memset_s(hShake->connectKey, sizeof(hShake->connectKey), 0, sizeof(hShake->connectKey)) != EOK in PreHandshake() 383 …|| memcpy_s(hShake->connectKey, sizeof(hShake->connectKey), connectKey.c_str(), connectKey.size())… in PreHandshake()
|
D | host_tcp.cpp | 123 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()
|
D | server_for_client.h | 41 …bool NewConnectTry(void *ptrServer, HChannel hChannel, const string &connectKey, bool isCheck = fa… 46 bool CommandRemoveSession(HChannel hChannel, const char *connectKey);
|
D | server.h | 26 …virtual string AdminDaemonMap(uint8_t opType, const string &connectKey, HDaemonInfo &hDaemonInfoIn… 29 int CreateConnect(const string &connectKey, bool isCheck);
|
D | host_tcp.h | 25 HSession ConnectDaemon(const string &connectKey, bool isCheck = false);
|
D | main.cpp | 197 int RunClientMode(string &commands, string &serverListenString, string &connectKey, bool isPullServ… in RunClientMode() argument 221 client.Initial(connectKey); in RunClientMode() 423 void RunExternalClient(string &str, string &connectKey, string &containerInOut) in RunExternalClient() argument 426 extClient.connectKey = connectKey; in RunExternalClient()
|
D | client.h | 60 string connectKey; variable
|
D | ext_client.h | 26 std::string connectKey;
|
D | ext_client.cpp | 342 if (!connectKey.empty()) { in WithConnectKey() 343 value = "-t " + connectKey + " "; in WithConnectKey()
|
/developtools/profiler/host/smartperf/ide/test/hdc/message/ |
D | SessionHandShake.test.ts | 53 expect(sessionHandShake.connectKey).toBeUndefined() 57 sessionHandShake.connectKey = true 58 expect(sessionHandShake.connectKey).toBeTruthy()
|
/developtools/profiler/host/smartperf/ide/src/hdc/common/ |
D | Serialize.ts | 30 let connectKey = this.serializeToString(4, handShake.connectKey); 32 …ay(bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length + buf.len… 36 … mergedArray.set(connectKey, bannerValue.length + authTypeValue.length + sessionIdValue.length) 37 …ray.set(buf, bannerValue.length + authTypeValue.length + sessionIdValue.length + connectKey.length) 219 let connectKey = this.parseString(connectDataBuffer, connectKeySize); 229 return new SessionHandShake(banner, authType, sessionId, connectKey, buf);
|
/developtools/hdc/src/common/ |
D | define_plus.h | 356 std::string connectKey; member 402 oss << " connectKey:" << connectKey; in ToDebugString() 414 connectKey = ""; in HdcSession() 459 std::string connectKey; member 492 std::string connectKey; member
|
D | channel.h | 31 vector<uint8_t> GetChannelHandshake(string &connectKey) const; 39 char connectKey[MAX_CONNECTKEY_SIZE]; member
|
D | channel.cpp | 40 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()
|
D | session.h | 31 string connectKey; member 41 oss << " connectKey:" << connectKey; in ToDebugString()
|
D | serial_struct.h | 83 … Field<fieldFour, &Hdc::HdcSessionBase::SessionHandShake::connectKey>("connectKey"),
|
D | base.h | 42 int ConnectKey2IPPort(const char *connectKey, char *outIP, uint16_t *outPort);
|
/developtools/hdc/test/unittest/common/ |
D | host_uart_test.cpp | 209 EXPECT_CALL(mockHostUART, UpdateUARTDaemonInfo(mySession.connectKey, &mySession, STATUS_READY)) 223 EXPECT_CALL(mockHostUART, UpdateUARTDaemonInfo(mySession.connectKey, &mySession, STATUS_READY)) 254 EXPECT_CALL(mockHostUART, UpdateUARTDaemonInfo(mySession.connectKey, &mySession, STATUS_READY)) 375 [&](const std::string &connectKey, HSession hSession, ConnStatus connStatus) { in __anona7a4f2970702() argument 376 mockHostUART.HdcHostUART::UpdateUARTDaemonInfo(connectKey, hSession, connStatus); in __anona7a4f2970702() 383 Field(&HdcDaemonInformation::connectKey, testSerialPortName))) 397 Field(&HdcDaemonInformation::connectKey, testSerialPortName))) 727 std::string connectKey = "dummykey"; variable 728 EXPECT_CALL(mockHostUART, OpenSerialPort(connectKey)).WillOnce(Return(0)); 729 EXPECT_EQ(mockHostUART.ConnectDaemon(connectKey), nullptr); [all …]
|
/developtools/profiler/host/smartperf/ide/test/hdc/common/ |
D | Serialize.test.ts | 25 connectKey:1,
|
/developtools/hdc/src/daemon/ |
D | daemon.cpp | 267 hSession->connectKey = handshake.connectKey; in DaemonSessionHandshake() 283 handshake.connectKey = ""; in DaemonSessionHandshake()
|