I dont know about the military shirt, but if the police shirt has offical department patch's and say "Police" it would be unlawful to wear in public
This is probably true. Otherwise, do what you want and don't be overly concerned about the opinions of others.