Where to claim residence?

I was full-time student in Massachusetts Jan-May 2016.
July 2016 I started 1 year job in CA (have rented apartment there).
I have Texas Drivers Lic (my parents moved there a year ago, so I took up residence there too).
I am filing this year as non-dependent single, with no dependents.
I know that I will need to file Mass and CA state income, but not sure where to show as "State of Residence"