“Like anonymous males having sex in public restrooms?”
No. The sex may be a vice, but the crime is not the sex. The crime is the public lewdness. Lewdness in public is not a vice.
The crime is delt with by the Vice Squad.