Note that CSU and UC may give different numbers of credits for each AP score of 3 or higher. Note that subject credit or advanced placement may require a 4 or 5 score, depending on the CSU or UC campus.
https://www2.calstate.edu/apply/transfer/Pages/advanced-placement-ap.aspx
http://admission.universityofcalifornia.edu/counselors/exam-credit/ap-credits/index.html
(semester units)
AP biology = 6 at CSU, 5.3 at UC
AP calculus AB = 3 at CSU, 2.6 at UC
AP psychology = 3 at CSU, 2.6 at UC
AP English literature = 6 at CSU, 5.3 at UC
AP physics = depends on which exam(s) (1, 2, B, C mechanics, C E&M)
AP Spanish = 6 at CSU, 5.3 at UC
AP statistics = 3 at CSU, 2.6 at UC
Also, if you take a college course that covers similar material as your AP credit, you will only get credit once. For example, if you take calculus 1 in college, you should not expect to get credit units for both that course and AP calculus AB.