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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAndroidEmulator
(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
Modifier and TypeMethodDescriptionint
getConfigHash
(Node node) A hash representing the variables that are used to determine which emulator configuration should be started to fulfil the job configuration.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
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) 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 Details
-
avdName
-
osVersion
-
screenDensity
-
screenResolution
-
deviceLocale
-
targetAbi
-
deviceDefinition
-
sdCardSize
-
avdNameSuffix
-
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
-
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
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
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
-
log
-
log
-
getAdbTimeout
public int getAdbTimeout() -
setAdbTimeout
@DataBoundSetter public void setAdbTimeout(int adbTimeout)
-