Searched refs:elementRect (Results 1 – 2 of 2) sorted by relevance
/external/droiddriver/src/io/appium/droiddriver/actions/ |
D | SwipeAction.java | 145 Rect elementRect = element.getVisibleBounds(); in perform() local 147 int topMargin = (int) (elementRect.height() * topMarginRatio); in perform() 148 int bottomMargin = (int) (elementRect.height() * bottomMarginRatio); in perform() 149 int leftMargin = (int) (elementRect.width() * leftMarginRatio); in perform() 150 int rightMargin = (int) (elementRect.width() * rightMarginRatio); in perform() 151 int adjustedbottom = elementRect.bottom - bottomMargin; in perform() 152 int adjustedTop = elementRect.top + topMargin; in perform() 153 int adjustedLeft = elementRect.left + leftMargin; in perform() 154 int adjustedRight = elementRect.right - rightMargin; in perform() 162 startX = elementRect.centerX(); in perform() [all …]
|
D | ClickAction.java | 57 Rect elementRect = element.getVisibleBounds(); in perform() local 58 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY()); in perform() 61 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY()); in perform() 73 Rect elementRect = element.getVisibleBounds(); in perform() local 74 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY()); in perform() 78 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY()); in perform()
|