Cal. Penal Code § 296.1
(a) The specimens, samples, and print impressions required by this chapter shall be collected from persons described in subdivision (a) of Section 296 for present and past qualifying offenses of record as follows:
(1) Collection from any adult person following arrest for a felony offense as specified in subparagraphs (A), (B), and (C) of paragraph (2) of subdivision (a) of Section 296:
(2) Collection from persons confined or in custody after conviction or adjudication:
(A) Any person, including any juvenile who is imprisoned or confined or placed in a state correctional institution, a county jail, a facility within the jurisdiction of the Department of Corrections and Rehabilitation, the Corrections Standards Authority, a residential treatment program, or any state, local, city, private, or other facility after a conviction of any felony or misdemeanor offense, or any adjudication or disposition rendered in the case of a juvenile, whether or not that crime or offense is one set forth in subdivision (a) of Section 296, shall provide buccal swab samples and thumb and palm print impressions and any blood or other specimens required pursuant to this chapter, immediately at intake, or during the prison reception center process, or as soon as administratively practicable at the appropriate custodial or receiving institution or the program in which the person is placed, if:
(3) Collection from persons on probation, parole, or other release:
(A) Any person, including any juvenile, who has a record of any past or present conviction or adjudication for an offense set forth in subdivision (a) of Section 296, and who is on probation, parole, postrelease community supervision, or mandatory supervision pursuant to paragraph (5) of subdivision (h) of Section 1170 for any felony or misdemeanor offense, whether or not that crime or offense is one set forth in subdivision (a) of Section 296, shall provide buccal swab samples and thumb and palm print impressions and any blood specimens required pursuant to this chapter, if:
(4) Collection from parole violators and others returned to custody:
(A) If a person, including any juvenile, who has been released on parole, furlough, or other release for any offense or crime, whether or not set forth in subdivision (a) of Section 296, is returned to a state correctional or other institution for a violation of a condition of his or her parole, furlough, or other release, or for any other reason, that person shall provide buccal swab samples and thumb and palm print impressions and any blood or other specimens required pursuant to this chapter, at a state correctional or other receiving institution, if:
(5) Collection from persons accepted into California from other jurisdictions:
(6) Collection from persons in federal institutions:
(A) Subject to the approval of the Director of the FBI, persons confined or incarcerated in a federal prison or federal institution who have a record of any past or present conviction or juvenile adjudication for a qualifying offense described in subdivision (a) of Section 296, or of a similar crime under the laws of the United States or any other state that would constitute an offense described in subdivision (a) of Section 296, are subject to this chapter and shall provide blood specimens, buccal swab samples, and thumb and palm print impressions pursuant to this chapter if any of the following apply: