Home
last modified time | relevance | path

Searched refs:serialNumber (Results 1 – 18 of 18) sorted by relevance

/developtools/smartperf_host/ide/src/hdc/
DHdcDeviceManager.ts76 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/
DCmd.ts93 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/
DSpRecordTrace.ts72 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/
DSpVmTracker.ts71 if (SpRecordTrace.serialNumber === '') {
77 if (SpRecordTrace.serialNumber === '') {
DSpRecordPerf.ts278 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) => {
DSpHisysEvent.ts102 if (SpRecordTrace.serialNumber === '') {
125 if (SpRecordTrace.serialNumber === '') {
DSpHilogRecord.ts67 if (SpRecordTrace.serialNumber === '') {
DSpArkTs.ts118 if (SpRecordTrace.serialNumber === '') {
124 if (SpRecordTrace.serialNumber === '') {
DSpWebHdcShell.ts120 HdcDeviceManager.connect(SpRecordTrace.serialNumber).then((connected) => {
122 if (this.sendCallBack && this.startShellDevice === SpRecordTrace.serialNumber) {
132 this.startShellDevice = SpRecordTrace.serialNumber;
DSpFileSystem.ts139 if (SpRecordTrace.serialNumber === '') {
DSpAllocations.ts531 if (this.startSamp && (SpRecordTrace.serialNumber === '' || this.startup_mode)) {
/developtools/hdc/src/host/
Dhost_usb.cpp157 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/
Dhost_usb.cpp181 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()
Dhost_usb.h101 std::string serialNumber; member
/developtools/smartperf_host/ide/src/hdc/hdcclient/
DHdcClient.ts60 this.usbDevice.serialNumber,
/developtools/smartperf_host/ide/server/
Dmain.go90 serialNumber, _ := rand.Int(rand.Reader, max)
97 SerialNumber: serialNumber,
/developtools/smartperf_host/ide/test/trace/component/
DSpRecordTrace.test.ts127 serialNumber: 'string',
/developtools/hdc/src/common/
Ddefine_plus.h335 std::string serialNumber; member