tools/usb_gadget/gadget.py
def AddDeviceCapabilityDescriptor(self, device_capability):
    """Add a device capability descriptor to this device.

    Args:
      device_capability: The Descriptor object.
    """
    if self._bos_descriptor is None:
      self._bos_descriptor = usb_descriptors.BosDescriptor()
    self._bos_descriptor.AddDeviceCapability(device_capability)
Add a device capability descriptor to this device.

    Args:
      device_capability: The Descriptor object.
    
Add a device capability descriptor to this device.
Add a device capability descriptor to this device .
def AddDeviceCapabilityDescriptor(self, device_capability):
    if self._bos_descriptor is None:
      self._bos_descriptor = usb_descriptors.BosDescriptor()
    self._bos_descriptor.AddDeviceCapability(device_capability)
def AddDeviceCapabilityDescriptor ( self , device_capability ) : if self . _bos_descriptor is None : self . _bos_descriptor = usb_descriptors . BosDescriptor ( ) self . _bos_descriptor . AddDeviceCapability ( device_capability )
Add a device capability descriptor to this device.
Add a device capability descriptor to this device .
"""Add a device capability descriptor to this device.

    Args:
      device_capability: The Descriptor object.
    """
self
device_capability
The Descriptor object.
The Descriptor object .