public class DefaultAndroidEmulator extends AbstractDevice implements AndroidEmulator
| Modifier and Type | Field and Description |
|---|---|
static String |
ANDROID_EMULATOR_HARDWARE_CONFIG |
static String |
FILE_LOCKING_SUFIX |
apiTargetType, device, model, port, serial, WD_STATUS_ENDPOINTDISPLAY_OPTION, EMULATOR_OPTIONS, TIMEOUT_OPTION| Modifier | Constructor and Description |
|---|---|
protected |
DefaultAndroidEmulator() |
|
DefaultAndroidEmulator(String avdOutput) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAvdName() |
File |
getAvdRootFolder() |
Locale |
getLocale() |
Integer |
getPort() |
org.openqa.selenium.Dimension |
getScreenSize() |
static org.openqa.selenium.Dimension |
getScreenSizeFromSkin(String skinName) |
String |
getSerial() |
DeviceTargetPlatform |
getTargetPlatform() |
boolean |
isEmulatorAlreadyExistent() |
boolean |
isEmulatorStarted() |
static List<AndroidEmulator> |
listAvailableAvds() |
void |
setIDevice(com.android.ddmlib.IDevice iDevice) |
void |
setSerial(int port) |
void |
setWasStartedBySelendroid(boolean wasStartedBySelendroid) |
void |
start(Locale locale,
int emulatorPort,
Map<String,Object> options) |
void |
stop() |
String |
toString() |
void |
unlockScreen() |
clearUserData, equals, executeCommandQuietly, executeCommandQuietly, extractValue, forwardPort, getAPITargetType, getCrashLog, getExternalStoragePath, getLogs, getModel, getProp, getSelendroidsPort, hashCode, inputKeyevent, install, invokeActivity, isDeviceReady, isInstalled, isInstalled, isLoggingEnabled, isSelendroidRunning, isSerialConfigured, kill, listRunningThirdPartyProcesses, restartADB, runAdbCommand, screenSizeMatches, setLoggingEnabled, setVerbose, start, startSelendroid, takeScreenshot, toByteArray, uninstallclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAPITargetType, getModelpublic static final String ANDROID_EMULATOR_HARDWARE_CONFIG
public static final String FILE_LOCKING_SUFIX
protected DefaultAndroidEmulator()
public DefaultAndroidEmulator(String avdOutput)
public File getAvdRootFolder()
getAvdRootFolder in interface AndroidEmulatorpublic org.openqa.selenium.Dimension getScreenSize()
getScreenSize in interface AndroidDevicegetScreenSize in interface AndroidEmulatorpublic DeviceTargetPlatform getTargetPlatform()
getTargetPlatform in interface AndroidDevicegetTargetPlatform in interface AndroidEmulatorpublic boolean isEmulatorAlreadyExistent()
isEmulatorAlreadyExistent in interface AndroidEmulatorpublic String getAvdName()
getAvdName in interface AndroidEmulatorpublic static List<AndroidEmulator> listAvailableAvds() throws AndroidDeviceException
AndroidDeviceExceptionpublic static org.openqa.selenium.Dimension getScreenSizeFromSkin(String skinName)
public boolean isEmulatorStarted()
isEmulatorStarted in interface AndroidEmulatorpublic void setSerial(int port)
setSerial in interface AndroidEmulatorpublic Integer getPort()
getPort in interface AndroidEmulatorpublic void start(Locale locale, int emulatorPort, Map<String,Object> options) throws AndroidDeviceException
start in interface AndroidEmulatorAndroidDeviceExceptionpublic void unlockScreen()
throws AndroidDeviceException
unlockScreen in interface AndroidDeviceunlockScreen in interface AndroidEmulatorAndroidDeviceExceptionpublic void stop()
throws AndroidDeviceException
stop in interface AndroidEmulatorAndroidDeviceExceptionpublic Locale getLocale()
getLocale in interface AndroidDevicepublic void setIDevice(com.android.ddmlib.IDevice iDevice)
setIDevice in interface AndroidEmulatorpublic String getSerial()
getSerial in interface AndroidDevicegetSerial in interface AndroidEmulatorpublic void setWasStartedBySelendroid(boolean wasStartedBySelendroid)
setWasStartedBySelendroid in interface AndroidEmulatorCopyright © 2015. All rights reserved.