In determining residence for purposes of transportation, a person who has lived continuously in this State for a period of one year and who has not acquired a residence in another State by living continuously therein for at least one year subsequent to his residence in this State shall be deemed to be a resident of this State. Time spent in a public institution or on parole therefrom shall not be counted in determining the matter of residence in this or another State. In determining the residence of a ward of the juvenile court committed to the Youth Authority or confined in any institution under its jurisdiction, due consideration shall be given to the residence of the parents of such ward, and if either one or both parents of the ward are residents of this State the ward shall also be deemed a resident of this State.
Ca. Welf. and Inst. Code § 1010