Question about AP score as a UC transfer student

Hi, I took AP exam in high school and I got 5 on Cal AB and 4 on Cal BC(Worth 8 credits). But I still took calculus 1 and 2 (worth 8 credits too) class in college. So for UC schools, dose the 8 credits from ap exam transfer credit still count in total transfer credits? The total credits I can get is 8 or 16? Thanks!

UC policy is not to give credit for duplication.

http://admission.universityofcalifornia.edu/counselors/exam-credit/ap-credits/index.html

http://admission.universityofcalifornia.edu/counselors/transfer/advising/transferring-credits/index.html