that guy was a moron for trying to provoke the cops (UC police are a state police force). Of course, the cops showed their comprehension abilities too, if what he said was true, that he asked "whether he should get a gun to protect myself", rather than there was an intruder with a gun.
He can scream all he wants for his second amendment rights, but by agreeing to live in UCI housing (which is state owned), he agreed to abide by the laws governing gun possession on state property, which are more restrictive than the 2nd. Same as if he entered a courtroom.