Modeling the scattering polarization of the solar Ca i 4227 A line with angle-dependent partial frequency redistribution