Home
last modified time | relevance | path

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

/base/print/print_fwk/services/scan_service/src/
H A Dscan_system_data.cpp116 std::string oldDeviceId = scanDevIt.second->deviceId; in RefreshUsbDeviceId() local
118 if (oldDeviceId.find_last_of(":") == std::string::npos || in RefreshUsbDeviceId()
119 oldDeviceId.find_last_of(":") < USB_DEVICEID_FIRSTID_LEN_3 || in RefreshUsbDeviceId()
121 SCAN_HILOGE("oldDeviceId or usbPort string format fail"); in RefreshUsbDeviceId()
124 std::string newDeviceId = GetNewDeviceId(oldDeviceId, usbPort); in RefreshUsbDeviceId()
132 std::string ScanSystemData::GetNewDeviceId(std::string oldDeviceId, std::string usbDevicePort) in GetNewDeviceId() argument
134 std::string deviceIdHead = oldDeviceId.substr(0, oldDeviceId.find_last_of(":") - USB_DEVICEID_FIRSTID_LEN_3); in GetNewDeviceId()
154 std::string oldDeviceId = iter->second->deviceId; in UpdateScannerIdByUsbDevicePort() local
155 if (oldDeviceId in UpdateScannerIdByUsbDevicePort()
[all...]
H A Dscan_usb_manager.cpp170 std::string ScanUsbManager::getNewDeviceId(std::string oldDeviceId, std::string usbDevicePort) in getNewDeviceId() argument
172 std::string deviceIdHead = oldDeviceId.substr(0, oldDeviceId.find_last_of(":") in getNewDeviceId()
/base/print/print_fwk/services/scan_service/include/
H A Dscan_usb_manager.h40 std::string getNewDeviceId(std::string oldDeviceId, std::string usbDevicePort);
H A Dscan_system_data.h52 std::string GetNewDeviceId(std::string oldDeviceId, std::string usbDevicePort);

Completed in 2 milliseconds