parameters: (self, directory, partitions=None, wipe=False)
docstring: Flash device with build in |directory|.
  
      Directory must contain bootloader, radio, boot, recovery, system, userdata,
      and cache .img files from an android build. This is a dangerous operation so
      use with care.
  
      Args:
        fastboot: A FastbootUtils instance.
        directory: Directory with build files.
        wipe: Wipes cache and userdata if set to true.
        partitions: List of partitions to flash. Defaults to all.
docstring_summary: Flash device with build in |directory|.
docstring_tokens: Flash device with build in |directory| .
function: def FlashDevice(self, directory, partitions=None, wipe=False):
      """Flash device with build in |directory|.
  
      Directory must contain bootloader, radio, boot, recovery, system, userdata,
      and cache .img files from an android build. This is a dangerous operation so
      use with care.
  
      Args:
        fastboot: A FastbootUtils instance.
        directory: Directory with build files.
        wipe: Wipes cache and userdata if set to true.
        partitions: List of partitions to flash. Defaults to all.
      """
      if partitions is None:
        partitions = ALL_PARTITIONS
      # If a device is wiped, then it will no longer have adb keys so it cannot be
      # communicated with to verify that it is rebooted. It is up to the user of
      # this script to ensure that the adb keys are set on the device after using
      # this to wipe a device.
      with self.FastbootMode(wait_for_reboot=not wipe):
        self._FlashPartitions(partitions, directory, wipe=wipe)
function_tokens: def FlashDevice ( self , directory , partitions = None , wipe = False ) : if partitions is None : partitions = ALL_PARTITIONS # If a device is wiped, then it will no longer have adb keys so it cannot be # communicated with to verify that it is rebooted. It is up to the user of # this script to ensure that the adb keys are set on the device after using # this to wipe a device. with self . FastbootMode ( wait_for_reboot = not wipe ) : self . _FlashPartitions ( partitions , directory , wipe = wipe )