Searched refs:serialNumber (Results 1 – 18 of 18) sorted by relevance
/developtools/smartperf_host/ide/src/hdc/ |
D | HdcDeviceManager.ts | 76 public static async connect(serialNumber: string): Promise<boolean> { 77 const client = this.clientList.get(serialNumber); 83 if (SpRecordTrace.serialNumber === serialNumber) { 84 SpRecordTrace.serialNumber = ''; 90 const connectDevice = await this.getDeviceBySerialNumber(serialNumber); 97 this.clientList.set(serialNumber, hdcClient); 109 public static async getDeviceBySerialNumber(serialNumber: string): Promise<USBDevice> { 113 return devices.find((dev): boolean => dev.serialNumber === serialNumber); 121 public static async disConnect(serialNumber: string): Promise<boolean> { 122 const hdcClient = this.clientList.get(serialNumber); [all …]
|
/developtools/smartperf_host/ide/src/command/ |
D | Cmd.ts | 93 static execHdcTraceCmd(command: string, serialNumber: string, callback: Function): void { 101 serialNumber: serialNumber, 209 …et cmd = Cmd.formatString(CmdConstant.CMD_GET_DEBUG_PROCESS_DEVICES, [SpRecordTrace.serialNumber]); 214 HdcDeviceManager.connect(SpRecordTrace.serialNumber).then((conn) => { 230 … let cmd = Cmd.formatString(CmdConstant.CMD_GET_PROCESS_DEVICES, [SpRecordTrace.serialNumber]); 235 HdcDeviceManager.connect(SpRecordTrace.serialNumber).then((conn): void => { 249 HdcDeviceManager.connect(SpRecordTrace.serialNumber).then((conn) => {
|
/developtools/smartperf_host/ide/src/trace/component/ |
D | SpRecordTrace.ts | 72 public static serialNumber: string = ''; property in SpRecordTrace 182 if (typeof dev.serialNumber === 'string') { 183 let res = await HdcDeviceManager.connect(dev.serialNumber); 186 option.value = dev.serialNumber; 187 option.textContent = dev!.serialNumber ? dev!.serialNumber!.toString() : 'hdc Device'; 197 SpRecordTrace.serialNumber = option.value; 272 SpRecordTrace.serialNumber = option.value; 493 SpRecordTrace.serialNumber = value; 495 let cmd = Cmd.formatString(CmdConstant.CMD_GET_VERSION_DEVICES, [SpRecordTrace.serialNumber]); 556 SpRecordTrace.serialNumber = item.value; [all …]
|
/developtools/smartperf_host/ide/src/trace/component/setting/ |
D | SpVmTracker.ts | 71 if (SpRecordTrace.serialNumber === '') { 77 if (SpRecordTrace.serialNumber === '') {
|
D | SpRecordPerf.ts | 278 if (SpRecordTrace.serialNumber === '') { 299 if (SpRecordTrace.serialNumber === '') { 305 if (SpRecordTrace.serialNumber === '') { 313 … let cmd = Cmd.formatString(CmdConstant.CMD_GET_CPU_COUNT_DEVICES, [SpRecordTrace.serialNumber]); 324 HdcDeviceManager.connect(SpRecordTrace.serialNumber).then((conn) => { 346 if (SpRecordTrace.serialNumber === '') { 352 if (SpRecordTrace.serialNumber === '') { 360 …et cmd = Cmd.formatString(CmdConstant.CMD_GET_HIPERF_EVENTS_DEVICES, [SpRecordTrace.serialNumber]); 372 HdcDeviceManager.connect(SpRecordTrace.serialNumber).then((conn) => {
|
D | SpHisysEvent.ts | 102 if (SpRecordTrace.serialNumber === '') { 125 if (SpRecordTrace.serialNumber === '') {
|
D | SpHilogRecord.ts | 67 if (SpRecordTrace.serialNumber === '') {
|
D | SpArkTs.ts | 118 if (SpRecordTrace.serialNumber === '') { 124 if (SpRecordTrace.serialNumber === '') {
|
D | SpWebHdcShell.ts | 120 HdcDeviceManager.connect(SpRecordTrace.serialNumber).then((connected) => { 122 if (this.sendCallBack && this.startShellDevice === SpRecordTrace.serialNumber) { 132 this.startShellDevice = SpRecordTrace.serialNumber;
|
D | SpFileSystem.ts | 139 if (SpRecordTrace.serialNumber === '') {
|
D | SpAllocations.ts | 531 if (this.startSamp && (SpRecordTrace.serialNumber === '' || this.startup_mode)) {
|
/developtools/hdc/src/host/ |
D | host_usb.cpp | 157 hUSB->serialNumber.c_str()); in DetectMyNeed() 166 hSession->connectKey = hUSB->serialNumber; in DetectMyNeed() 193 …WRITE_LOG(LOG_WARN, "KickoutZombie LIBUSB_ERROR_NO_DEVICE serialNumber:%s", hUSB->serialNumber.c_s… in KickoutZombie() 315 hUSB->serialNumber = serialNum; in CheckDescriptor() 327 di.connectKey = hUSB->serialNumber; in UpdateUSBDaemonInfo() 336 pServer->AdminDaemonMap(OP_QUERY, hUSB->serialNumber, pDi); in UpdateUSBDaemonInfo() 338 pServer->AdminDaemonMap(OP_ADD, hUSB->serialNumber, hdiNew); in UpdateUSBDaemonInfo() 340 pServer->AdminDaemonMap(OP_UPDATE, hUSB->serialNumber, hdiNew); in UpdateUSBDaemonInfo()
|
/developtools/hdc/hdc_rust/src/cffi/host/ |
D | host_usb.cpp | 181 mapUsbDevice[hUSB->serialNumber] = hUSB; in DetectMyNeed() 189 di.connectKey = hUSB->serialNumber; in UpdateUSBDaemonInfo() 197 AdminDaemonMap(OP_QUERY, hUSB->serialNumber, pDi); in UpdateUSBDaemonInfo() 199 AdminDaemonMap(OP_ADD, hUSB->serialNumber, hdiNew); in UpdateUSBDaemonInfo() 201 AdminDaemonMap(OP_UPDATE, hUSB->serialNumber, hdiNew); in UpdateUSBDaemonInfo() 262 hUSB->serialNumber = serialNum; in OpenDeviceMyNeed()
|
D | host_usb.h | 101 std::string serialNumber; member
|
/developtools/smartperf_host/ide/src/hdc/hdcclient/ |
D | HdcClient.ts | 60 this.usbDevice.serialNumber,
|
/developtools/smartperf_host/ide/server/ |
D | main.go | 90 serialNumber, _ := rand.Int(rand.Reader, max) 97 SerialNumber: serialNumber,
|
/developtools/smartperf_host/ide/test/trace/component/ |
D | SpRecordTrace.test.ts | 127 serialNumber: 'string',
|
/developtools/hdc/src/common/ |
D | define_plus.h | 335 std::string serialNumber; member
|