Home
last modified time | relevance | path

Searched refs:device_descriptor (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/chrome/browser/extensions/api/image_writer_private/
Dremovable_storage_provider_win.cc121 STORAGE_DEVICE_DESCRIPTOR* device_descriptor = in AddDeviceInfo() local
124 if (!device_descriptor->RemovableMedia && in AddDeviceInfo()
125 !(device_descriptor->BusType == BusTypeUsb)) { in AddDeviceInfo()
155 device->removable = device_descriptor->RemovableMedia == TRUE; in AddDeviceInfo()
157 if (device_descriptor->VendorIdOffset && in AddDeviceInfo()
158 output_buf[device_descriptor->VendorIdOffset]) { in AddDeviceInfo()
159 device->vendor.assign(output_buf.get() + device_descriptor->VendorIdOffset); in AddDeviceInfo()
163 if (device_descriptor->ProductIdOffset && in AddDeviceInfo()
164 output_buf[device_descriptor->ProductIdOffset]) { in AddDeviceInfo()
165 device->model.assign(output_buf.get() + device_descriptor->ProductIdOffset); in AddDeviceInfo()
/external/chromium_org/chrome/utility/image_writer/
Dimage_writer_win.cc52 STORAGE_DEVICE_DESCRIPTOR* device_descriptor = in IsValidDevice() local
55 return device_descriptor->RemovableMedia == TRUE || in IsValidDevice()
56 device_descriptor->BusType == BusTypeUsb; in IsValidDevice()
/external/chromium_org/third_party/libusb/src/libusb/
Ddescriptor.c524 r = usbi_backend->get_device_descriptor(dev, (unsigned char *) &dev->device_descriptor, in usbi_device_cache_descriptor()
530 dev->device_descriptor.bcdUSB = libusb_le16_to_cpu(dev->device_descriptor.bcdUSB); in usbi_device_cache_descriptor()
531 dev->device_descriptor.idVendor = libusb_le16_to_cpu(dev->device_descriptor.idVendor); in usbi_device_cache_descriptor()
532 dev->device_descriptor.idProduct = libusb_le16_to_cpu(dev->device_descriptor.idProduct); in usbi_device_cache_descriptor()
533 dev->device_descriptor.bcdDevice = libusb_le16_to_cpu(dev->device_descriptor.bcdDevice); in usbi_device_cache_descriptor()
555 memcpy((unsigned char *) desc, (unsigned char *) &dev->device_descriptor, in libusb_get_device_descriptor()
556 sizeof (dev->device_descriptor)); in libusb_get_device_descriptor()
Dhotplug.c160 hotplug_cb->vendor_id != dev->device_descriptor.idVendor) { in usbi_hotplug_match_cb()
165 hotplug_cb->product_id != dev->device_descriptor.idProduct) { in usbi_hotplug_match_cb()
170 hotplug_cb->dev_class != dev->device_descriptor.bDeviceClass) { in usbi_hotplug_match_cb()
Dlibusbi.h308 struct libusb_device_descriptor device_descriptor; member
Dcore.c600 num_configurations = dev->device_descriptor.bNumConfigurations; in usbi_sanitize_device()
/external/chromium_org/components/metrics/
Dmachine_id_provider_win.cc89 const STORAGE_DEVICE_DESCRIPTOR* device_descriptor = in GetMachineId() local
94 const DWORD offset = device_descriptor->SerialNumberOffset; in GetMachineId()