Searched refs:usbDevicePort (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/base/print/print_fwk/services/scan_service/src/ |
H A D | scan_usb_manager.cpp | 175 std::string firstPort = usbDevicePort.substr(0, usbDevicePort.find("-")); in getNewDeviceId() 176 …std::string secondPort = usbDevicePort.substr(usbDevicePort.find("-") + 1, usbDevicePort.size() - … in getNewDeviceId() 186 if (serialNumber.empty() || usbDevicePort.empty()) { in UpdateUsbScannerId() 215 ScanServiceAbility::usbSnMap[usbDevicePort] = serialNumber; in UpdateUsbScannerId() 223 void ScanUsbManager::DisConnectUsbScanner(std::string usbDevicePort) in DisConnectUsbScanner() argument 225 if (usbDevicePort.empty()) { in DisConnectUsbScanner() 236 ScanServiceAbility::usbSnMap.erase(usbDevicePort); in DisConnectUsbScanner() 241 usbDevicePort.c_str(), serialNumber.c_str()); in DisConnectUsbScanner() 256 std::string usbDevicePort = dev->GetName(); in DealUsbDevStatusChange() local 258 DisConnectUsbScanner(usbDevicePort); in DealUsbDevStatusChange() [all …]
|
H A D | scan_system_data.cpp | 179 std::string ScanSystemData::GetNewDeviceId(std::string oldDeviceId, std::string usbDevicePort) in GetNewDeviceId() argument 188 std::string firstPort = usbDevicePort.substr(0, usbDevicePort.find("-")); in GetNewDeviceId() 189 …std::string secondPort = usbDevicePort.substr(usbDevicePort.find("-") + 1, usbDevicePort.size() - … in GetNewDeviceId() 202 …Data::UpdateScannerIdByUsbDevicePort(const std::string &uniqueId, const std::string &usbDevicePort) in UpdateScannerIdByUsbDevicePort() argument 208 std::string newDeviceId = ReplaceDeviceIdUsbPort(oldDeviceId, usbDevicePort); in UpdateScannerIdByUsbDevicePort()
|
/ohos5.0/base/print/print_fwk/services/scan_service/include/ |
H A D | scan_usb_manager.h | 40 std::string getNewDeviceId(std::string oldDeviceId, std::string usbDevicePort); 41 void UpdateUsbScannerId(std::string serialNumber, std::string usbDevicePort);
|
H A D | scan_system_data.h | 39 …bool UpdateScannerIdByUsbDevicePort(const std::string &uniqueId, const std::string &usbDevicePort); 54 std::string GetNewDeviceId(std::string oldDeviceId, std::string usbDevicePort);
|