A trial is underway for a man accused of punching a San Diego police officer in the face after he was allegedly told to stop walking in the middle of the street.