The University of California, Irvine guarantees an offer of on-campus housing to every newly admitted, full-time Ph.D. student. This housing is for a term of one year less than normal time to degree for their academic program. As the average time to acquire the degree is 5 years, housing is offered for 4 years.
Please see http://www.housing.uci.edu/
for specific information on the various housing options.