Searched refs:vid_location (Results 1 – 4 of 4) sorted by relevance
36 const size_t vid_location = device.id.find(vid); in GetUsbId() local37 if (vid_location == std::string::npos || in GetUsbId()38 vid_location + sizeof(vid) - 1 + id_size > device.id.size()) { in GetUsbId()47 std::string id_vendor = device.id.substr(vid_location + sizeof(vid) - 1, in GetUsbId()
40 const size_t vid_location = device.id.size() - 2 * id_size; in GetUsbId() local41 std::string id_vendor = device.id.substr(vid_location, id_size); in GetUsbId()
197 const size_t vid_location = unique_id_.find(kVidPrefix); in GetModel() local198 if (vid_location == std::string::npos || in GetModel()199 vid_location + vid_prefix_size + kVidPidSize > unique_id_.size()) { in GetModel()208 unique_id_.substr(vid_location + vid_prefix_size, kVidPidSize); in GetModel()
341 const size_t vid_location = unique_id_.size() - 2 * kVidPidSize;342 std::string id_vendor = unique_id_.substr(vid_location, kVidPidSize);