quiet hours ported from omin/slimroms 3/3