Searched defs:usb_constants (Results 1 - 14 of 14) sorted by relevance

/external/chromium_org/tools/usb_gadget/
H A Ddefault_gadget.py8 import usb_constants namespace
16 idVendor=usb_constants.VendorID.GOOGLE,
17 idProduct=usb_constants.ProductID.GOOGLE_TEST_GADGET,
H A Dkeyboard_gadget_test.py12 import usb_constants namespace
20 g.Connected(chip, usb_constants.Speed.FULL)
35 g.Connected(chip, usb_constants.Speed.FULL)
54 g.Connected(chip, usb_constants.Speed.FULL)
H A Dmouse_gadget_test.py12 import usb_constants namespace
20 g.Connected(chip, usb_constants.Speed.FULL)
32 g.Connected(chip, usb_constants.Speed.FULL)
39 g.Connected(chip, usb_constants.Speed.FULL)
H A Decho_gadget.py15 import usb_constants namespace
27 idVendor=usb_constants.VendorID.GOOGLE,
28 idProduct=usb_constants.ProductID.GOOGLE_ECHO_GADGET,
40 bInterfaceClass=usb_constants.DeviceClass.VENDOR,
47 bmAttributes=usb_constants.TransferType.INTERRUPT,
53 bmAttributes=usb_constants.TransferType.INTERRUPT,
61 bInterfaceClass=usb_constants.DeviceClass.VENDOR,
68 bmAttributes=usb_constants.TransferType.BULK,
74 bmAttributes=usb_constants.TransferType.BULK,
82 bInterfaceClass=usb_constants
[all...]
H A Dhid_echo_gadget.py19 import usb_constants namespace
87 vendor_id=usb_constants.VendorID.GOOGLE,
88 product_id=usb_constants.ProductID.GOOGLE_HID_ECHO_GADGET,
H A Dgadget.py10 import usb_constants namespace
28 self._speed = usb_constants.Speed.UNKNOWN
48 if self._speed == usb_constants.Speed.FULL:
50 elif self._speed == usb_constants.Speed.HIGH:
89 self._speed = usb_constants.Speed.UNKNOWN
110 assert request_type & usb_constants.Dir.IN
111 typ = request_type & usb_constants.Type.MASK
112 recipient = request_type & usb_constants.Recipient.MASK
113 if typ == usb_constants.Type.STANDARD:
116 elif typ == usb_constants
[all...]
H A Dhid_gadget.py19 import usb_constants namespace
59 bInterfaceClass=usb_constants.DeviceClass.HID,
70 bInterfaceClass=usb_constants.DeviceClass.HID,
89 bmAttributes=usb_constants.TransferType.INTERRUPT,
101 bmAttributes=usb_constants.TransferType.INTERRUPT,
109 bmAttributes=usb_constants.TransferType.INTERRUPT,
115 bmAttributes=usb_constants.TransferType.INTERRUPT,
136 if recipient == usb_constants.Recipient.INTERFACE:
161 if recipient != usb_constants.Recipient.INTERFACE:
188 if recipient != usb_constants
[all...]
H A Dkeyboard_gadget.py17 import usb_constants namespace
145 vendor_id=usb_constants.VendorID.GOOGLE,
146 product_id=usb_constants.ProductID.GOOGLE_KEYBOARD_GADGET,
H A Dmouse_gadget.py17 import usb_constants namespace
106 vendor_id=usb_constants.VendorID.GOOGLE,
107 product_id=usb_constants.ProductID.GOOGLE_MOUSE_GADGET,
H A Dhid_gadget_test.py13 import usb_constants namespace
88 g.Connected(chip, usb_constants.Speed.HIGH)
96 g.Connected(chip, usb_constants.Speed.HIGH)
141 g.Connected(chip, usb_constants.Speed.HIGH)
191 g.Connected(chip, usb_constants.Speed.HIGH)
201 g.Connected(chip, usb_constants.Speed.HIGH)
211 g.Connected(chip, usb_constants.Speed.HIGH)
H A Dlinux_gadgetfs.py20 import usb_constants namespace
34 usb_constants.TransferType.BULK: BULK,
35 usb_constants.TransferType.INTERRUPT: INTERRUPT,
36 usb_constants.TransferType.ISOCHRONOUS: ISOCHRONOUS
158 if request_type & usb_constants.Dir.IN:
212 endpoint_desc.bmAttributes & usb_constants.TransferType.MASK]
226 if self._gadget.GetSpeed() == usb_constants.Speed.HIGH:
244 if endpoint_addr & usb_constants.Dir.IN:
280 if not endpoint_addr & usb_constants.Dir.IN:
295 if endpoint_addr & usb_constants
[all...]
H A Dusb_descriptors.py13 import usb_constants namespace
202 usb_constants.DescriptorType.DEVICE)
205 default=usb_constants.DeviceClass.PER_INTERFACE)
207 default=usb_constants.DeviceSubClass.PER_INTERFACE)
209 default=usb_constants.DeviceProtocol.PER_INTERFACE)
278 'bDescriptorType', 'B', usb_constants.DescriptorType.CONFIGURATION)
314 usb_constants.DescriptorType.INTERFACE)
319 default=usb_constants.InterfaceClass.VENDOR)
321 default=usb_constants.InterfaceSubClass.VENDOR)
323 default=usb_constants
[all...]
H A Dgadget_test.py11 import usb_constants namespace
36 bmAttributes=usb_constants.TransferType.BULK,
44 bmAttributes=usb_constants.TransferType.BULK,
58 bmAttributes=usb_constants.TransferType.INTERRUPT,
66 bmAttributes=usb_constants.TransferType.INTERRUPT,
83 bmAttributes=usb_constants.TransferType.BULK,
91 bmAttributes=usb_constants.TransferType.BULK,
105 bmAttributes=usb_constants.TransferType.INTERRUPT,
113 bmAttributes=usb_constants.TransferType.INTERRUPT,
132 g.Connected(mock.Mock(), usb_constants
[all...]
H A Dhid_constants.py8 import usb_constants namespace
17 HID = usb_constants.Type.CLASS | 0x01
18 REPORT = usb_constants.Type.CLASS | 0x02
19 PHYSICAL = usb_constants.Type.CLASS | 0x03

Completed in 240 milliseconds