public class DriverProcessor extends SAFSProcessor implements CacheReferenceInterface
Modifier and Type | Field and Description |
---|---|
boolean |
chainedSolo
set to true by internal processes when SoloProcessor has been chained.
|
(package private) java.lang.String |
debugPrefix |
command_timeout, compname, compobj, comprec, dgcd, dgov, inst, KEY_COMPOBJ, params, resourceDetailMsg, resourceMsg, robot, secsWaitForComponent, secsWaitForWindow, solo, TAG, testObjectCache, testrunner, winname, winobj, winrec
INITIAL_CACHE_SIZE, remoteCommand, testRunner
Constructor and Description |
---|
DriverProcessor(DSAFSTestRunner testrunner) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
_hideSoftKeyboard(java.util.Properties props)
Hide the soft keyboard.
|
(package private) void |
_showSoftKeyboard(java.util.Properties props)
Show the soft keyboard.
|
(package private) void |
_takeScreenShot(java.util.Properties props)
The screenshot of the device will be got through AndroidDebugBridge at the remote-control computer
Here, this method will only return the rotation of the device. As the image got by AndroidDebugBridge is always that you put your device with default direction. If you rotate you device, that returned image will be upside down, left-turned or right-turned. So we need this device rotation to rotate the image back |
void |
addCacheReferenceInterface(CacheReferenceInterface cache)
CacheReferenceInterface implementation.
|
void |
clearCache(boolean useChain)
CacheReferenceInterface implementation.
|
java.lang.Object |
getCachedObject(java.lang.String key,
boolean useChain)
CacheReferenceInterface implementation.
|
(package private) boolean |
isGuiDriverCommand() |
MessageResult |
processMessage(java.lang.String message) |
void |
processProperties(java.util.Properties props)
Routes commands appropriately.
|
void |
removeCacheReferenceInterface(CacheReferenceInterface cache)
CacheReferenceInterface implementation.
|
clearTestObjectCache, extractComponentProperties, getDgcd, getInstrumentation, getParams, getSecsWaitForComponent, getSecsWaitForWindow, getSolo, getTestObject, setDgcd, setGeneralErrorWithBundleMessage, setGeneralSuccessWithBundleMessage, setParams, setSecsWaitForComponent, setSecsWaitForWindow, setSolo, setTestObject
convertToKey, convertToKeys, convertToKeys, debug, getCachedItem, getStackTrace, makeUniqueCacheKey, putCachedItem, removeCachedItem, resetExternalModeCache, setGeneralError, setGeneralError, setGeneralErrorWithSpecialInfo, setGeneralErrorWithSpecialInfo, setGeneralSuccess, setGeneralSuccess, setGeneralSuccessWithSpecialInfo, setGeneralWarningWithSpecialInfo, setRemoteCommand, stringIsMatched
java.lang.String debugPrefix
public boolean chainedSolo
public DriverProcessor(DSAFSTestRunner testrunner)
boolean isGuiDriverCommand()
public void processProperties(java.util.Properties props)
processProperties
in interface ProcessorInterface
processProperties
in class AbstractProcessor
ProcessorInterface.processProperties(Properties)
void _takeScreenShot(java.util.Properties props)
void _hideSoftKeyboard(java.util.Properties props)
void _showSoftKeyboard(java.util.Properties props)
public MessageResult processMessage(java.lang.String message)
processMessage
in interface ProcessorInterface
processMessage
in class AbstractProcessor
ProcessorInterface.processMessage(String)
public java.lang.Object getCachedObject(java.lang.String key, boolean useChain)
getCachedObject
in interface CacheReferenceInterface
key
- -- String key for identifying the object stored in cache.useChain
- -- true if the instance should search in all chained caches,
false if only the individual local cache should be searched.public void addCacheReferenceInterface(CacheReferenceInterface cache)
addCacheReferenceInterface
in interface CacheReferenceInterface
CacheReferenceInterface.addCacheReferenceInterface(CacheReferenceInterface)
public void removeCacheReferenceInterface(CacheReferenceInterface cache)
removeCacheReferenceInterface
in interface CacheReferenceInterface
CacheReferenceInterface.removeCacheReferenceInterface(CacheReferenceInterface)
public void clearCache(boolean useChain)
clearCache
in interface CacheReferenceInterface
useChain
- -- true if the instance should clear all chained caches,
false if only the individual local cache should be cleared.CacheReferenceInterface.clearCache(boolean)
Copyright © SAS Institute. All Rights Reserved.