I think police officers in general represent a cross-section of society. Yeah, there are racist cops, as there are racist citizens. Everywhere. Some are better at lurking under the radar keeping an outward low profile.
In general, I like cops. A lot. But that's just based on my engagements with them in San Francisco hitting them up for conversation and portraits on the street. And doing a couple ride-alongs. Although that represents a hundred or two engagements (a wild guess), that's still a pretty limited cross-section out of roughly 1,800 sworn officers.
I'm fully aware of *some* of their racist texting reported in the past. I'd like to believe that's an anomaly, though I have zip to support that, other than my limited and anecdotal encounters.
Still, I'm inclined to think that's probably more or less in line with a cross-section of San Francisco and surrounding cities in which they live, even though SF and the Bay Area are generally considered to be liberal.
With respect to cops having an expectation of privacy regarding text messages... If they're doing that when they're on duty, and especially if it's among other cops (whether on duty or not), that rises to systemic bad behavior and needs to be nipped in the bud when discovered. All imo...
Also... with respect to SFPD racist texting, AFAIK, that's not due to official monitoring, but from some officers either being in the texting loop, or hearing about it from other cops, and then reporting it, which then leads to an investigation.