EDIT: USA, Present day. More specifically, if necessary, the state of Washington. Apologies, I could have sworn I'd included that.
Re-Edit: As for what searches I've tried, I've looked up arrest procedure, indecent exposure, and police procedure, and pretty much worked out that it's a mild misdemeanor, the difference between indecent exposure and public indecency, that the perpetrator can be arrested immediately without a warrant, etc., and lots and lots of information about the trial procedure. But everything I found seemed to sort of fade out between the point where he got out of the cop car and got into the court room.