Home | History | Annotate | Download | only in devices

Lines Matching refs:device

95 bool GetUsbProperty(const Device& device, const char* property_name,
135 if (!device_node || device.id.compare(device_node) != 0) {
154 bool GetUsbId(const Device& device, std::string* usb_id) {
157 if (!GetUsbProperty(device, "idVendor", &id_vendor)) {
160 if (!GetUsbProperty(device, "idProduct", &id_product)) {
170 bool GetUsbVersion(const Device& device, std::string* usb_version) {
171 return GetUsbProperty(device, "version", usb_version);