Home
last modified time | relevance | path

Searched refs:usbDevicePort (Results 1 - 4 of 4) sorted by relevance

/base/print/print_fwk/services/scan_service/src/
H A Dscan_usb_manager.cpp170 std::string ScanUsbManager::getNewDeviceId(std::string oldDeviceId, std::string usbDevicePort) in getNewDeviceId() argument
174 std::string firstPort = usbDevicePort.substr(0, usbDevicePort.find("-")); in getNewDeviceId()
175 std::string secondPort = usbDevicePort.substr(usbDevicePort.find("-") + 1, usbDevicePort.size() - 1); in getNewDeviceId()
183 void ScanUsbManager::UpdateUsbScannerId(std::string serialNumber, std::string usbDevicePort) in UpdateUsbScannerId() argument
185 if (serialNumber.empty() || usbDevicePort.empty()) { in UpdateUsbScannerId()
186 SCAN_HILOGE("UpdateUsbScannerId serialNumber or usbDevicePort is null."); in UpdateUsbScannerId()
190 if (ScanSystemData::GetInstance().UpdateScannerIdByUsbDevicePort(uniqueId, usbDevicePort)) { in UpdateUsbScannerId()
215 DisConnectUsbScanner(std::string usbDevicePort) DisConnectUsbScanner() argument
248 std::string usbDevicePort = dev->GetName(); DealUsbDevStatusChange() local
[all...]
H A Dscan_system_data.cpp132 std::string ScanSystemData::GetNewDeviceId(std::string oldDeviceId, std::string usbDevicePort) in GetNewDeviceId() argument
135 std::string firstPort = usbDevicePort.substr(0, usbDevicePort.find("-")); in GetNewDeviceId()
136 std::string secondPort = usbDevicePort.substr(usbDevicePort.find("-") + 1, usbDevicePort.size() - 1); in GetNewDeviceId()
149 bool ScanSystemData::UpdateScannerIdByUsbDevicePort(const std::string &uniqueId, const std::string &usbDevicePort) in UpdateScannerIdByUsbDevicePort() argument
157 usbDevicePort.find("_") == std::string::npos) { in UpdateScannerIdByUsbDevicePort()
161 std::string newDeviceId = GetNewDeviceId(oldDeviceId, usbDevicePort); in UpdateScannerIdByUsbDevicePort()
/base/print/print_fwk/services/scan_service/include/
H A Dscan_usb_manager.h40 std::string getNewDeviceId(std::string oldDeviceId, std::string usbDevicePort);
41 void UpdateUsbScannerId(std::string serialNumber, std::string usbDevicePort);
H A Dscan_system_data.h39 bool UpdateScannerIdByUsbDevicePort(const std::string &uniqueId, const std::string &usbDevicePort);
52 std::string GetNewDeviceId(std::string oldDeviceId, std::string usbDevicePort);

Completed in 3 milliseconds