4 B and 2 A grades is an unweighted GPA of 3.33, not 3.5.
Since you live in California, you can use https://rogerhub.com/gpa-calculator-uc/ to calculate your GPA for UCs and CSUs. You will get three versions: unweighted, weighted-capped, and fully weighted. Most high school GPAs you seen on UC and CSU web sites will be the weighted-capped version.
You can also calculate your unweighted GPA including all courses from 9th grade (instead of from 10th grade for UCs and CSUs) to get an idea of where you stand for other colleges.
3.2 weighted GPA gives no information to people outside of your high school, since each high school’s weighting method could be different. Others do not know if it comes from a 3.1 unweighted GPA with light weighting, or 2.2 unweighted GPA with heavy weighting.