Searched refs:pid_location (Results 1 – 4 of 4) sorted by relevance
42 const size_t pid_location = device.id.find(pid); in GetUsbId() local43 if (pid_location == std::string::npos || in GetUsbId()44 pid_location + sizeof(pid) - 1 + id_size > device.id.size()) { in GetUsbId()49 std::string id_product = device.id.substr(pid_location + sizeof(pid) -1, in GetUsbId()
42 const size_t pid_location = device.id.size() - id_size; in GetUsbId() local43 std::string id_product = device.id.substr(pid_location, id_size); in GetUsbId()
202 const size_t pid_location = unique_id_.find(kPidPrefix); in GetModel() local203 if (pid_location == std::string::npos || in GetModel()204 pid_location + pid_prefix_size + kVidPidSize > unique_id_.size()) { in GetModel()210 unique_id_.substr(pid_location + pid_prefix_size, kVidPidSize); in GetModel()
343 const size_t pid_location = unique_id_.size() - kVidPidSize;344 std::string id_product = unique_id_.substr(pid_location, kVidPidSize);