Green’s Dictionary of Slang

uniform n.

also uniforms
[metonymy]

1. a uniformed police officer.

[US]C. McKay Home to Harlem 197: ‘What’s matter? Scared of a uniform? Pat’ — she turned to the policeman — ‘what you want to throw a scare in the company for?’.
[UK]G.F. Newman You Flash Bastard 71: Detectives followed him, and the two uniforms, one with his labrador for sniffing out dope.
[US]R. Campbell In La-La Land We Trust (1999) 27: Two uniforms got out of the squad car, setting their caps and bolstering their batons.
[US]Simon & Burns Corner (1998) 4: Curt is still on post [...] when the Western uniforms roll up for a last pass at the corner.
[US]G. Pelecanos Right As Rain 184: Ray caught a quick glimpse of the uniform behind the wheel, a big ugly spade who was staring straight ahead.
[NZ]D. Looser Boobslang [U. Canterbury D.Phil. thesis] 196/2: uniform n. guard, or metonymy.
[US]Simon & Burns ‘The Target’ Wire ep. 1 [TV script] You got the uniforms on the horn?
[Aus]L. Redhead Peepshow [ebook] ‘We’re here about the Parisi murder,’ I told a young cop [...] The uniform grinned.
[UK]G. Knight Hood Rat 179: He is surrounded by four uniform, who are turfing out his pockets.
[US]C. Stella Rough Riders 8: He took a swing at one of the uniforms and got tagged by the one with the gun.
[US]D. Winslow The Force [ebook] The ‘uniforms’ in their bags don’t look like your run-of-the-mill cops either.
[Scot]A. Parks April Dead 68: ‘Arranged for local uniforms to secure the crime scene?’ Wattie nodded.

2. (gay) a member/members of the armed or uniformed services.

[US]G. Legman ‘Lang. of Homosexuality’ Appendix VII in Henry Sex Variants.
[US]H. Rhodes Chosen Few (1966) 252: Another party of uniforms arrived.
[US]San Diego Sailor 3: [...] the assumption that a uniform was a pushover for anyone who played it right. [Ibid.] 29: The civvies were sure busy going for the uniforms.
[UK]Guardian Guide 22–28 Jan. 9: Then he took some coke and headbutted some ‘uniforms.’.

3. a prison officer.

[UK]G.F. Newman A Prisoner’s Tale 107: ‘I fetched it in with me,’ Lynn said, handing the uniform the book.
[NZ]D. Looser ‘Boob Jargon’ in NZEJ 13 36: uniform n. Prison guard.