Class AndroidEmulator

    • 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
      • 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.
      • log

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

        public int getAdbTimeout()
      • setAdbTimeout

        @DataBoundSetter
        public void setAdbTimeout​(int adbTimeout)