Default [Q] Powering off phone without button? no root!

Hey XDA!

Does anyone know how I can turn off a phone/reboot without using the power button, and if the phone isn't rooted?
Nexus 4

Thanks!