Package hudson.plugins.android_emulator
Class AndroidEmulator
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BuildWrapper>
-
- hudson.tasks.BuildWrapper
-
- hudson.plugins.android_emulator.AndroidEmulator
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
,Serializable
public class AndroidEmulator extends BuildWrapper implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AndroidEmulator.DescriptorImpl
static class
AndroidEmulator.HardwareProperty
-
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description String
avdName
String
avdNameSuffix
String
commandLineOptions
boolean
deleteAfterBuild
String
deviceDefinition
String
deviceLocale
String
executable
AndroidEmulator.HardwareProperty[]
hardwareProperties
String
osVersion
String
screenDensity
String
screenResolution
String
sdCardSize
boolean
showWindow
int
startupDelay
int
startupTimeout
String
targetAbi
boolean
useSnapshots
boolean
wipeData
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAdbTimeout()
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.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.boolean
getUseNamedEmulator()
static void
log(PrintStream logger, String message)
static void
log(PrintStream logger, String message, boolean indent)
static void
log(PrintStream logger, String message, Throwable t)
void
setAdbTimeout(int adbTimeout)
BuildWrapper.Environment
setUp(AbstractBuild build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
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 Detail
-
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 Detail
-
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
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
- Overrides:
setUp
in classBuildWrapper
- 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)
-
-