The way I understand UC and CSU GPA calculation with college courses is that college courses count if they are transferable (and they would be in the ‘g’ category of the a-g requirements if they do not fit in any other category).
A subtle difference between UC and CSU GPA calculation with college courses is that UC counts a semester college course as one course/grade, but CSU counts a semester college course as two courses/grades.
https://www2.calstate.edu/apply/eligibility-index (click “GPA calculator”)