hudson.plugins.android_emulator
Class AndroidEmulator

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by hudson.plugins.android_emulator.AndroidEmulator
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>, java.io.Serializable

public class AndroidEmulator
extends hudson.tasks.BuildWrapper
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class AndroidEmulator.DescriptorImpl
           
static class AndroidEmulator.HardwareProperty
           
 
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
hudson.tasks.BuildWrapper.Environment
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 java.lang.String avdName
           
 java.lang.String commandLineOptions
           
 java.lang.String deviceLocale
           
 AndroidEmulator.HardwareProperty[] hardwareProperties
           
 java.lang.String osVersion
           
 java.lang.String screenDensity
           
 java.lang.String screenResolution
           
 java.lang.String sdCardSize
           
 boolean showWindow
           
 int startupDelay
           
 boolean useSnapshots
           
 boolean wipeData
           
 
Constructor Summary
AndroidEmulator(java.lang.String avdName, java.lang.String osVersion, java.lang.String screenDensity, java.lang.String screenResolution, java.lang.String deviceLocale, java.lang.String sdCardSize, boolean wipeData, AndroidEmulator.HardwareProperty[] hardwareProperties, boolean showWindow, boolean useSnapshots, java.lang.String commandLineOptions, int startupDelay)
           
 
Method Summary
 java.lang.String getConfigHash(hudson.model.Node node)
          A hash representing the variables that are used to determine which emulator configuration should be started to fulfil the job configuration.
 java.lang.String getConfigHash(hudson.model.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.
 boolean getUseNamedEmulator()
           
static void log(java.io.PrintStream logger, java.lang.String message)
          Helper method for writing to the build log in a consistent manner.
static void log(java.io.PrintStream logger, java.lang.String message, boolean indent)
          Helper method for writing to the build log in a consistent manner.
 hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, setUp
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

avdName

@Exported
public final java.lang.String avdName

osVersion

@Exported
public final java.lang.String osVersion

screenDensity

@Exported
public final java.lang.String screenDensity

screenResolution

@Exported
public final java.lang.String screenResolution

deviceLocale

@Exported
public final java.lang.String deviceLocale

sdCardSize

@Exported
public final java.lang.String sdCardSize

wipeData

@Exported
public final boolean wipeData

showWindow

@Exported
public final boolean showWindow

useSnapshots

@Exported
public final boolean useSnapshots

commandLineOptions

@Exported
public final java.lang.String commandLineOptions

startupDelay

@Exported
public final int startupDelay

hardwareProperties

@Exported
public final AndroidEmulator.HardwareProperty[] hardwareProperties
Constructor Detail

AndroidEmulator

@DataBoundConstructor
public AndroidEmulator(java.lang.String avdName,
                                            java.lang.String osVersion,
                                            java.lang.String screenDensity,
                                            java.lang.String screenResolution,
                                            java.lang.String deviceLocale,
                                            java.lang.String sdCardSize,
                                            boolean wipeData,
                                            AndroidEmulator.HardwareProperty[] hardwareProperties,
                                            boolean showWindow,
                                            boolean useSnapshots,
                                            java.lang.String commandLineOptions,
                                            int startupDelay)
Method Detail

getUseNamedEmulator

public boolean getUseNamedEmulator()

getConfigHash

public java.lang.String getConfigHash(hudson.model.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 java.lang.String getConfigHash(hudson.model.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

public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
                                                   hudson.Launcher launcher,
                                                   hudson.model.BuildListener listener)
                                            throws java.io.IOException,
                                                   java.lang.InterruptedException
Overrides:
setUp in class hudson.tasks.BuildWrapper
Throws:
java.io.IOException
java.lang.InterruptedException

log

public static void log(java.io.PrintStream logger,
                       java.lang.String message)
Helper method for writing to the build log in a consistent manner.


log

public static void log(java.io.PrintStream logger,
                       java.lang.String message,
                       boolean indent)
Helper method for writing to the build log in a consistent manner.



Copyright © 2011. All Rights Reserved.