Class SdkToolsCommandsCurrentBase
- java.lang.Object
-
- hudson.plugins.android_emulator.sdk.cli.SdkToolsCommandsCurrentBase
-
- All Implemented Interfaces:
SdkToolsCommands
- Direct Known Subclasses:
SdkToolsCommands17To25_2
public class SdkToolsCommandsCurrentBase extends Object implements SdkToolsCommands
This class holds the implementations for all used commands in the latest SDK version. As some calls have never changed in history, it is most likely that this class is used as base for the other version implementations.
-
-
Constructor Summary
Constructors Constructor Description SdkToolsCommandsCurrentBase()
-
Method Summary
-
-
-
Method Detail
-
getSdkInstallAndUpdateCommand
public SdkCliCommand getSdkInstallAndUpdateCommand(String proxySettings, List<String> components)
- Specified by:
getSdkInstallAndUpdateCommand
in interfaceSdkToolsCommands
-
getListSdkComponentsCommand
public SdkCliCommand getListSdkComponentsCommand()
- Specified by:
getListSdkComponentsCommand
in interfaceSdkToolsCommands
-
getListExistingTargetsCommand
public SdkCliCommand getListExistingTargetsCommand()
- Specified by:
getListExistingTargetsCommand
in interfaceSdkToolsCommands
-
getListSystemImagesCommand
public SdkCliCommand getListSystemImagesCommand()
- Specified by:
getListSystemImagesCommand
in interfaceSdkToolsCommands
-
isImageForPlatformAndABIInstalled
public boolean isImageForPlatformAndABIInstalled(String listSystemImagesOutput, String platform, String abi)
- Specified by:
isImageForPlatformAndABIInstalled
in interfaceSdkToolsCommands
-
getCreatedAvdCommand
public SdkCliCommand getCreatedAvdCommand(String avdName, boolean supportsSnapshots, String sdCardSize, String screenResolutionSkinName, String deviceDefinition, String androidTarget, String systemImagePackagePath, String tag)
- Specified by:
getCreatedAvdCommand
in interfaceSdkToolsCommands
-
getAdbInstallPackageCommand
public SdkCliCommand getAdbInstallPackageCommand(String deviceIdentifier, String packageFileName)
- Specified by:
getAdbInstallPackageCommand
in interfaceSdkToolsCommands
-
getAdbUninstallPackageCommand
public SdkCliCommand getAdbUninstallPackageCommand(String deviceIdentifier, String packageId)
- Specified by:
getAdbUninstallPackageCommand
in interfaceSdkToolsCommands
-
getCreateSdkCardCommand
public SdkCliCommand getCreateSdkCardCommand(String absolutePathToSdCard, String requestedSdCardSize)
Description copied from interface:SdkToolsCommands
Creates the command (Tool
and arguments to created a sdcard-images.- Specified by:
getCreateSdkCardCommand
in interfaceSdkToolsCommands
- Parameters:
absolutePathToSdCard
- The absolute path where the images should be createdrequestedSdCardSize
- The requested size of the sdcard-image in bytes (may be suffixed with 'K', 'M', 'G')- Returns:
- a
SdkCommand
which holds the command to use and the arguments
-
getEmulatorListSnapshotsCommand
public SdkCliCommand getEmulatorListSnapshotsCommand(String avdName, Tool executable)
- Specified by:
getEmulatorListSnapshotsCommand
in interfaceSdkToolsCommands
-
getAdbStartServerCommand
public SdkCliCommand getAdbStartServerCommand()
- Specified by:
getAdbStartServerCommand
in interfaceSdkToolsCommands
-
getAdbKillServerCommand
public SdkCliCommand getAdbKillServerCommand()
- Specified by:
getAdbKillServerCommand
in interfaceSdkToolsCommands
-
getUpdateProjectCommand
public SdkCliCommand getUpdateProjectCommand(String projectPath)
- Specified by:
getUpdateProjectCommand
in interfaceSdkToolsCommands
-
getUpdateTestProjectCommand
public SdkCliCommand getUpdateTestProjectCommand(String projectPath, String testMainClass)
- Specified by:
getUpdateTestProjectCommand
in interfaceSdkToolsCommands
-
getUpdateLibProjectCommand
public SdkCliCommand getUpdateLibProjectCommand(String projectPath)
- Specified by:
getUpdateLibProjectCommand
in interfaceSdkToolsCommands
-
-