question: @ Deprecated public static int dragViewBy ( InstrumentationTestCase test , View v , int gravity , int deltaX , int deltaY ) { int [ ] xy = new int [ 2 ] ; getStartLocation ( v , gravity , xy ) ; final int fromX = xy [ 0 ] ; final int fromY = xy [ 1 ] ; int distance = ( int ) Math . sqrt ( deltaX * deltaX + deltaY * deltaY ) ; drag ( test , fromX , fromX + deltaX , fromY , fromY + deltaY , distance ) ; return distance ; }
target:  Simulate touching a view and dragging it by the specified amount.