Turning traffic at intersections is also dangerous for pedestrians. Even though you may have a green as a driver, you must still yield to pedestrians. Drivers making right turns must look and allow the pedestrian to step off on the green. Drivers making left turns across the intersection must make sure that not only is oncoming traffic clear, but that there are not pedestrians in the crosswalk in the path of their turn. Again, use courtesy and common sense. If the ped is well across the intersection or past the median point, you may complete your turn. If the ped is approaching you or on your side of the roadway, YIELD to them!
The DMV has a page dedicated to right of way rules regarding pedestrians, crosswalks, and other situations. Take a look for additional information.
Pedestrians outside of a crosswalk or unmarked intersection are also held responsible by the Vehicle Code. The pedestrian may only cross the road when safe to do so and must yield to traffic. The pedestrian may not cross between two signalized intersections. This is what is known as "jaywalking".