It's against the law, so if you're drinking and driving...don't carry your AR with you. And, don't show (smoke) your 30 round mags in public.
But, if you have such things snuggled away at home, there is almost NO danger of somebody knocking on your door.
And there's zero chance they can get a warrant to search.
Not quite so. I had 4 members of the CA state DOJ in swat gear knock on my door one eve wanting firearms, ammo belonging to my son who they thought lived with me. They had a list of every handgun he ever bought/sold. Now of course, long guns must be registered too.