How to use TouchActions's Up(int x,int y) and Down(int x,int y)

How to use TouchActions’s Up(int x,int y) and Down(int x,int y) ,scroll(xOffset, yOffset) in Andoird apk?
i have written a coordinates but its not executing .
TouchActions ta = new TouchActions(wd);
ta.up(100, 500).perform();

There is no “up” and “down” method directly supported from TouchAction.

Following are supported methods:

press
release
moveTo
tap
wait
longPress
cancel
perform