State tax filing

I was in AZ until the 5th of January but did not work during that time. I was under the assumption that it took a year of living in a state to become a 'resident'. Thank you for your answers!