If I reside in California less than 50% of the year, do I still have to pay income tax there?

I received a pension during 2015 but lived in California only 45% of the year.  Do I have to pay state income tax on 45% of my retirement?