Cal. Penal Code § 647.3
(a) A person who reports being a victim of, or a witness to, a serious felony as defined in subdivision (c) of Section 1192.7, an assault in violation of subdivision (a) of Section 245, domestic violence in violation of Section 273.5, extortion in violation of Section 518, human trafficking in violation of Section 236.1, sexual battery in violation of subdivision (a) of Section 243.4, or stalking in violation of Section 646.9 shall not be arrested for any of the following offenses if that offense is related to the crime that the person is reporting or if the person was engaged in that offense at or around the time that the person was the victim of or witness to the crime they are reporting: