Settings: fix QuietHour start time

when user decide when quiethour will start/stop using time preference
alarm manager will setup the time, and call stop service in many times
before starting the service

this add some check to prevent call stop service before time to start

fix http://jira.omnirom.org/browse/OMNI-595

Change-Id: Ide4cb7f651ab153e1738d309992628b951e551c1
Settings: add device tree settings hook

Allows devices to hook "advanced settings" into the settings list
by providing an apk that is providing the activity
org.omnirom.device.DeviceSettings

The activity must be labeled "Advanced settings" to get a unified
look and feel.

PS4:
- This is hidden by default, to show, add
  <bool name="has_advanced_settings">true</bool>
  to overlay/packages/apps/Settings/res/values/bools.xml

PS5/6: fix build (accidentally added <header>)

PS6:
- Better detection if supported (don't need to add bool)
--> Automatically enabled for all supported devices
--> Hidden when app is uninstalled
- Title loaded from package -> no localisation needed

PS7:
- re-arrange advanced settings as first entry in DEVICE Menu

PS8:
- fix major derp :)

PS9:
- Move advanced settings hook to botton of DEVICE menu

Change-Id: Iefbcb0b626ee8df62115d1baa4f0ffadbf9dba36
Settings: fix quiet hours

http://jira.omnirom.org/browse/OMNI-627

Change-Id: Ica3bff10b3147120593bbe688882404625df18be
Settings: updating policy list after switching mobile data switch

Removed unnecessary call to updatePolicy() in the mDataEnabledListener since the setMobileDataEnabled() method already calls it.
Calling updatePolicy() with refreshCycle to true, so that the "change cycle..." option is enabled/disabled correctly

Change-Id: I2f8cfd898e663b644576626f00e38fff3ec0bbd8
[2/2] Settings: Add an option to change the device hostname

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

PS4
move to end of first section

Change-Id: Ib04d551b7eb31110962709e0d956db4da380175a