Tap X,Y position:
adb shell input tap 500 1450
Swipe X1 Y1 X2 Y2 [duration(ms)]:
adb shell input swipe 100 500 100 1450 100
LongPress X Y:
adb shell input swipe 100 500 100 500 250
References
https://stackoverflow.com/questions/7789826/adb-shell-input-events