I'm white, and have been pulled over a couple of times, with no real issue. The one time I was riding with a black family member (who had done nothing ticket-able, or suspicious) was one of the longest and most troublesome police incidents I've ever seen. Anecdotal? yes, but it mirrors statistics that I've seen.
My wife is not, though, and her experiences have mirrored mine. But anecdotes, etc.
I'm not saying that it's always going to work out, nor that there's never a time and place that OP's method is appropriate - only that starting a dialog that way is unnecessarily antagonistic.
Every time I've been pulled over, the police office has walked to my passenger side window with their hand on their sidearm. I'd say the subtext starts way before mentioning any actual rights I might have (and that the Supreme Court has stated that must I explicitly use in order to keep)
I say this having never been searched nor asked to take a field sobriety test, but I've always found that a modicum of respect and politeness keeps things quite civil and ensures no trouble.