On an Android? The equivalent is a long-press.
(You don't simulate hardware events in programming, you just run the code that the hardware event would run. So if you want the program to act as if someone long-pressed something, you call the function that would be called if they did long-press it.)