Class SdkToolsCommandsCurrentBase
java.lang.Object
hudson.plugins.android_emulator.sdk.cli.SdkToolsCommandsCurrentBase
- All Implemented Interfaces:
SdkToolsCommands
- Direct Known Subclasses:
SdkToolsCommands17To25_2
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 -
Method Summary
Modifier and TypeMethodDescriptiongetAdbInstallPackageCommand
(String deviceIdentifier, String packageFileName) getAdbUninstallPackageCommand
(String deviceIdentifier, String packageId) getCreatedAvdCommand
(String avdName, boolean supportsSnapshots, String sdCardSize, String screenResolutionSkinName, String deviceDefinition, String androidTarget, String systemImagePackagePath, String tag) getCreateSdkCardCommand
(String absolutePathToSdCard, String requestedSdCardSize) Creates the command (Tool
and arguments to created a sdcard-images.getEmulatorListSnapshotsCommand
(String avdName, Tool executable) getSdkInstallAndUpdateCommand
(String proxySettings, List<String> components) getUpdateLibProjectCommand
(String projectPath) getUpdateProjectCommand
(String projectPath) getUpdateTestProjectCommand
(String projectPath, String testMainClass) boolean
isImageForPlatformAndABIInstalled
(String listSystemImagesOutput, String platform, String abi)
-
Constructor Details
-
SdkToolsCommandsCurrentBase
public SdkToolsCommandsCurrentBase()
-
-
Method Details
-
getSdkInstallAndUpdateCommand
- Specified by:
getSdkInstallAndUpdateCommand
in interfaceSdkToolsCommands
-
getListSdkComponentsCommand
- Specified by:
getListSdkComponentsCommand
in interfaceSdkToolsCommands
-
getListExistingTargetsCommand
- Specified by:
getListExistingTargetsCommand
in interfaceSdkToolsCommands
-
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
- Specified by:
getAdbInstallPackageCommand
in interfaceSdkToolsCommands
-
getAdbUninstallPackageCommand
- 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
- Specified by:
getEmulatorListSnapshotsCommand
in interfaceSdkToolsCommands
-
getAdbStartServerCommand
- Specified by:
getAdbStartServerCommand
in interfaceSdkToolsCommands
-
getAdbKillServerCommand
- Specified by:
getAdbKillServerCommand
in interfaceSdkToolsCommands
-
getUpdateProjectCommand
- Specified by:
getUpdateProjectCommand
in interfaceSdkToolsCommands
-
getUpdateTestProjectCommand
- Specified by:
getUpdateTestProjectCommand
in interfaceSdkToolsCommands
-
getUpdateLibProjectCommand
- Specified by:
getUpdateLibProjectCommand
in interfaceSdkToolsCommands
-