Package org.sikuli.android
Class ADBScreen
- java.lang.Object
-
- org.sikuli.script.Element
-
- org.sikuli.script.Region
-
- org.sikuli.android.ADBScreen
-
- All Implemented Interfaces:
IScreen,EventObserver
public class ADBScreen extends Region implements EventObserver, IScreen
Created by Törcsi on 2016. 06. 26. Revised by RaiMan
-
-
Field Summary
Fields Modifier and Type Field Description booleanneedsUnLockprotected OverlayCapturePromptpromptprotected IRobotrobotintwaitAfterAction-
Fields inherited from class org.sikuli.script.Region
BB, BH, BL, BM, BOTTOM, BR, C2, CH, CV, EAST, EAST_MID, EAST_NORTH, EAST_SOUTH, EH, EM, EN, ES, LB, LEFT, LH, LL, LM, logName, LT, M2, M3, MH, MID_HORIZONTAL, MID_VERTICAL, MIDDLE, MIDDLE_BIG, MM, MV, NE, NH, NM, NORTH, NORTH_EAST, NORTH_MID, NORTH_WEST, NW, otherScreen, RB, RH, RIGHT, RM, RR, RT, SE, SH, SM, SOUTH, SOUTH_EAST, SOUTH_MID, SOUTH_WEST, SW, TH, TL, TM, TOP, TR, TT, WEST, WEST_MID, WEST_NORTH, WEST_SOUTH, WH, WM, WN, WS
-
Fields inherited from class org.sikuli.script.Element
h, imageMissingHandler, lastFindTime, lastMatch, lastMatches, lastSearchTime, lastSearchTimeRepeat, logLevel, w, x, y
-
-
Method Summary
-
Methods inherited from class org.sikuli.script.Region
above, above, aboveAt, aboveAt, add, add, add, aInput, aKey, asOffset, aSwipe, aSwipeDown, aSwipeLeft, aSwipeRight, aSwipeUp, aTap, atMouse, below, below, belowAt, belowAt, checkMatch, click, click, click, contains, contains, containsMouse, copyTo, copyTo, create, create, create, create, create, create, create, delayClick, delayType, doHighlight, doubleClick, doubleClick, doubleClick, drag, dragDrop, dragDrop, dropAt, exists, exists, existsText, existsText, find, findAll, findAllByColumn, findAllByRow, findAllList, findAllText, findAny, findAnyList, findBest, findBestList, findText, get, getAll, getAutoWaitTimeout, getBottomLeft, getBottomRight, getCell, getCenter, getCol, getCol, getCols, getColW, getDefaultInstance4py, getEvent, getEvents, getFakeRegion, getFindFailedResponse, getImage, getInset, getLastScreenImage, getLastScreenImageFile, getLastScreenImageFile, getLastScreenImageFile, getLocationFromTarget, getObserver, getObserveScanRate, getRect, getRectangle, getRepeatWaitTime, getROI, getRow, getRow, getRowH, getRows, getScreenContaining, getTarget, getThrowException, getTopLeft, getTopRight, getWaitScanRate, grow, grow, grow, grow, grow, grow, grow, has, has, hasEvents, hasObserver, hasText, highlight, highlight, highlight, highlight, highlight4py, highlightAllOff, highlightOff, highlightOn, highlightOn, hover, hover, initScreen, inside, internalUseOnlyHighlightReset, intersection, isObserving, isOtherScreen, isRasterValid, isVirtual, keyDown, keyDown, keyUp, keyUp, keyUp, left, left, leftAt, leftAt, make4py, morphTo, mouseDown, mouseMove, mouseMove, mouseMove, mouseUp, mouseUp, moveTo, nearby, nearby, observe, observe, observeInBackground, observeInBackground, observeInLine, offset, offset, onAppear, onAppear, onChange, onChange, onChange, onChange, onVanish, onVanish, paste, paste, regionOnScreen, relocate, relocate, resetFindFailedResponse, resetScreens, resetThrowException, right, right, rightAt, rightAt, rightClick, rightClick, rightClick, saveCapture, saveLastScreenImage, setActive, setAutoWaitTimeout, setBottomLeft, setBottomRight, setCenter, setCols, setFindFailedHandler, setFindFailedResponse, setH, setInactive, setLocation, setObserveScanRate, setOtherScreen, setOtherScreen, setRaster, setRect, setRect, setRect, setRepeatWaitTime, setROI, setROI, setROI, setROI, setRows, setScreen, setScreen, setSize, setThrowException, setTopLeft, setTopRight, setVirtual, setW, setWaitScanRate, setX, setY, showScreens, stopObserver, stopObserver, toGlobalCoord, toStringShort, type, type, type, type, type, type, union, unionAll, unionAny, unionAnyList, virtual, wait, wait, wait, waitAny, waitAnyList, waitBest, waitBestList, waitT, waitT, waitText, waitText, waitVanish, waitVanish, wheel, wheel, wheel, write
-
Methods inherited from class org.sikuli.script.Element
collectLines, collectLinesText, collectWords, collectWordsText, existsT, findAllT, findLine, findLines, findLines, findT, findWord, findWords, findWords, getBufferedImage, getH, getImageFromTarget, getLastMatch, getLastMatches, getName, getW, getX, getY, hasT, isEmpty, log, returnThis, setImageMissingHandler, setName, text, textChar, textLine, textLines, textWord, textWords
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.sikuli.script.support.IScreen
getH, getLastScreenImageFile, getRect, getW, getX, getY, isOtherScreen
-
-
-
-
Field Detail
-
robot
protected IRobot robot
-
prompt
protected OverlayCapturePrompt prompt
-
needsUnLock
public boolean needsUnLock
-
waitAfterAction
public int waitAfterAction
-
-
Constructor Detail
-
ADBScreen
public ADBScreen()
-
ADBScreen
public ADBScreen(String adbExec)
-
ADBScreen
public ADBScreen(int id)
-
-
Method Detail
-
start
public static ADBScreen start()
-
stop
public static void stop()
-
isValid
public boolean isValid()
Description copied from class:RegionCheck wether thie Region is contained by any of the available screens
-
getDevice
public ADBDevice getDevice()
-
getDeviceDescription
public String getDeviceDescription()
-
wakeUp
public void wakeUp(int seconds)
-
getScreen
public IScreen getScreen()
-
update
public void update(EventSubject s)
- Specified by:
updatein interfaceEventObserver
-
capture
public ScreenImage capture()
-
capture
public ScreenImage capture(int x, int y, int w, int h)
-
capture
public ScreenImage capture(Region reg)
-
capture
public ScreenImage capture(Rectangle rect)
-
getIDString
public String getIDString()
- Specified by:
getIDStringin interfaceIScreen
-
getLastScreenImageFromScreen
public ScreenImage getLastScreenImageFromScreen()
- Specified by:
getLastScreenImageFromScreenin interfaceIScreen
-
userCapture
public ScreenImage userCapture(String msg)
- Specified by:
userCapturein interfaceIScreen
-
getIdFromPoint
public int getIdFromPoint(int srcx, int srcy)- Specified by:
getIdFromPointin interfaceIScreen
-
newRegion
public Region newRegion(int _x, int _y, int width, int height)
-
newLocation
public Location newLocation(int _x, int _y)
- Specified by:
newLocationin interfaceIScreen
-
newLocation
public Location newLocation(Location loc)
- Specified by:
newLocationin interfaceIScreen
-
-