Contempt of cop

"Contempt of cop" is law enforcement jargon in the United States for behavior by people toward law enforcement officers that the officers perceive as disrespectful or insufficiently deferential to their authority. It is a play on the phrase "contempt of court", and is not an actual offense. The phrase is associated with unlawful arbitrary arrest and detention of individuals, often for expressing or exercising rights guaranteed to them by the United States Constitution. Contempt of cop is often discussed in connection to police misconduct such as use of excessive force or even police brutality as a reaction to perceived disrespectful behavior rather than for any legitimate law enforcement purpose.
Arrests for contempt of cop may stem from a type of "occupational arrogance" when a police officer thinks his or her authority cannot or should not be challenged or questioned.
From such officers' perspective, contempt of cop may involve perceived or actual challenges to their authority, including a lack of deference (such as disobeying instructions, or expressing interest in filing a complaint against the officer). Fleeing from the police is sometimes considered a variant of contempt of cop. Contempt of cop situations may be exacerbated if other officers witness the allegedly contemptuous behavior.
Charges such as disorderly conduct, resisting arrest, fleeing from police and assaulting an officer may be cited as official reasons in a contempt of cop arrest. Obstructing a police officer or failure to obey a police order is also cited in arrests in some jurisdictions, particularly as a stand-alone charge without any other charges brought.
Legality.
Freedom of speech is protected under the First Amendment to the United States Constitution, so non-threatening verbal "abuse" of a police officer is not in itself criminal behavior, though some courts have disagreed on what constitutes protected speech in this regard.
The United States Supreme Court ruled in 1942 that fighting words that "tend to incite an immediate breach of the peace" are not protected speech, but later cases have interpreted this narrowly, especially in relation to law enforcement officers. In 2013, a federal appeals court ruled that giving the finger "alone cannot establish probable cause to believe a disorderly conduct violation has occurred".
In the case of "Nieves v. Bartlett", the Supreme Court of the United States held that the existence of probable cause to make an arrest could generally defeat a retaliatory arrest claim. However, it made an exception "for circumstances where officers have probable cause to make arrests, but typically exercise their discretion not to do so." The majority opinion held that a plaintiff may still prevail on a retaliatory arrest claim "when a plaintiff presents objective evidence that he was arrested when otherwise similarly situated individuals not engaged in the same sort of protected speech had not been." 
Racial aspects.
The "Seattle Post-Intelligencer" conducted a study in 2008 that found that in the city of Seattle, "African-Americans were arrested for the sole crime of obstructing eight times as often as whites when population is taken into account." In 2009 the New Jersey Attorney General also found a significant number of contempt of cop cases while investigating racial profiling by the New Jersey State Police, and concluded that "improper attitude and demeanor" of officers toward the public was a nationwide problem.
Terminology.
"Contempt of cop" has been in use since the 1960s. The word "cop" is slang for "police officer"; the phrase is derived by analogy from "contempt of court", which, unlike contempt of cop, is an offense in many jurisdictions (e.g., California Penal Code section 166, making contempt of court a misdemeanor). Similar to this is the phrase "disturbing the police", a play on "disturbing the peace". It has also been referred to as "flunking the attitude test". In some areas it is called P.O.P. (for "Pissing Off the Police") when a suspect's demeanor influences officer's response to people. "Leniency might be afforded to persons who treat officers with respect, whereas the heavy hand of the law is extended to persons who are disrespectful, ill mannered or rude."
In crime writing and works about police misconduct, it has become something of a cliché to sardonically refer to contempt of cop as the worst possible crime.
Federal case law.
Several federal court decisions have found that expressing contempt for police officers is protected speech under the First Amendment. In "City of Houston v. Hill" (1987), the Supreme Court ruled that the First Amendment "protects a significant amount of verbal criticism and challenge directed at police officers." In "Swartz v. Insogna" (2013), the Court of Appeals for the Second Circuit ruled that extending the middle finger at an officer is not grounds to stop or arrest an individual. However, individual state laws that do not directly pertain to police officers, such as statutes for disorderly conduct and curse and abuse, can be legally used in such an arrest.
In March 2019, the Federal Court of Appeals for the Sixth Circuit ruled in favor of a woman who filed suit against a police officer who increased the severity of a traffic ticket after she extended her middle finger at him upon receiving the original ticket. In June 2019, the Federal Court of Appeals for the Eighth Circuit ruled in favor of a man who filed suit against a police officer who arrested him for shouting a derogatory obscenity at him. In both cases, the courts ruled that the plaintiffs' First Amendment rights had been violated and rejected the officers' assertions of qualified immunity.