Class AndroidEmulator

All Implemented Interfaces:
ExtensionPoint, Describable<BuildWrapper>, Serializable

public class AndroidEmulator extends BuildWrapper implements Serializable
See Also:
  • Field Details

    • avdName

      @Exported public final String avdName
    • osVersion

      @Exported public final String osVersion
    • screenDensity

      @Exported public final String screenDensity
    • screenResolution

      @Exported public final String screenResolution
    • deviceLocale

      @Exported public final String deviceLocale
    • targetAbi

      @Exported public final String targetAbi
    • deviceDefinition

      @Exported public final String deviceDefinition
    • sdCardSize

      @Exported public final String sdCardSize
    • avdNameSuffix

      @Exported public final String avdNameSuffix
    • hardwareProperties

      @Exported public final AndroidEmulator.HardwareProperty[] hardwareProperties
    • wipeData

      @Exported public final boolean wipeData
    • showWindow

      @Exported public final boolean showWindow
    • useSnapshots

      @Exported public final boolean useSnapshots
    • deleteAfterBuild

      @Exported public final boolean deleteAfterBuild
    • startupDelay

      @Exported public final int startupDelay
    • startupTimeout

      @Exported public final int startupTimeout
    • commandLineOptions

      @Exported public final String commandLineOptions
    • executable

      @Exported public final String executable
  • Constructor Details

    • AndroidEmulator

      @DataBoundConstructor public AndroidEmulator(String avdName, String osVersion, String screenDensity, String screenResolution, String deviceLocale, String sdCardSize, AndroidEmulator.HardwareProperty[] hardwareProperties, boolean wipeData, boolean showWindow, boolean useSnapshots, boolean deleteAfterBuild, int startupDelay, int startupTimeout, String commandLineOptions, String targetAbi, String deviceDefinition, String executable, String avdNameSuffix)
  • Method Details

    • getUseNamedEmulator

      public boolean getUseNamedEmulator()
    • getConfigHash

      public String getConfigHash(Node node)
      A hash representing the variables that are used to determine which emulator configuration should be started to fulfil the job configuration.
      Parameters:
      node - The Node on which the emulator would be run.
      Returns:
      A hash representing the emulator configuration for this instance.
    • getConfigHash

      public String getConfigHash(Node node, hudson.matrix.Combination combination)
      A hash representing the variables that are used to determine which emulator configuration should be started to fulfil the job configuration.
      Parameters:
      node - The Node on which the emulator would be run.
      combination - The matrix combination values used to expand emulator config variables.
      Returns:
      A hash representing the emulator configuration for this instance.
    • setUp

      Overrides:
      setUp in class BuildWrapper
      Throws:
      IOException
      InterruptedException
    • log

      public static void log(PrintStream logger, String message)
    • log

      public static void log(PrintStream logger, String message, Throwable t)
    • log

      public static void log(PrintStream logger, String message, boolean indent)
    • getAdbTimeout

      public int getAdbTimeout()
    • setAdbTimeout

      @DataBoundSetter public void setAdbTimeout(int adbTimeout)