At least in my time they were pretty much banned. You could have your phone on you but if you got caught using it during class, they'd just confiscate it. Of course, some exceptions apply like if a teacher informed of some upcoming event, you could pull up your phone and set it in your calendar without getting chewed out. Not sure what's happened since.