advanceTimeBy

Advances the main looper's clock, running anything scheduled in the interval. Long-press detection is a delayed message, so timing-sensitive gestures advance time rather than sleep.

Robolectric only, as is anything that calls it (longClick). On an instrumentation test there is no shadow clock to move, so drive those gestures with real waits instead.