About 15 years ago, in the SF bay area I was on foot and two policemen confronted me and as required, I told them I had a CCW and was armed. Everything was cordial up to that point. They then slammed me to the ground. Both were on me and one was reaching for my holster to get the gun. I screamed it was loaded and ready to fire. I really didn’t want to get shot with my own Glock. They detained me almost and hour and had to let me go because everything was legal.
I’ve been stopped twice in my car when I had a visible handgun. I did not get a ticket. One gun was on the console and one was seen when I opened the glovebox. The highway patrol officer never made a comment either time. I was not in CA. I am sorry you went thru your ordeal.
First mistake .... was in SF!!!!! (or substitute Chicago, etc.)