[2/2] Power connect/disconnect notification support

part 1/2: frameworks/base PowerUI and Settings
http://review.cyanogenmod.org/#/c/35241/

part 2/2: packages/apps/Settings Sound settings
http://review.cyanogenmod.org/#/c/35242/

patchset 3:
    set settings persistence and dependencies in xml resource file
    shrink long lines
    add the default notification tone to the ringtone picker and
        remove the now redundant "use default" checkbox
    move values/strings.xml content to the cyanogenmod section
    improve (mostly delete) wording in values/strings.xml
    remove tab whitespace

patchset 5:
    move strings to cm_strings

patchset 6:
    make vibrate optional (default on)
    change heading text: power notifications -> power sounds

patchset 7:
    hide vibrate option if hw capability doesn't exist

patchset 8:
    change vibrate to default to off

Change-Id: I7ddd8a47ae4f9a62c586023d151ac42bbe8424c7

Conflicts:
	res/values/cm_strings.xml
	res/xml/sound_settings.xml
	src/com/android/settings/SoundSettings.java
[2/3] Settings: QuietHours (SlimRoms)

add support QuiteHours

Squash commit from:

 Quiet Hours (2/2) thanks cm

remove as well depreciated ontreeclick

Change-Id: Id61ced473589e1f4a6ca30e4d3302c01f7b91ae2

by Kufikugel

 Settings: QuietHours AutoSMS && Bypass Alarm

AOKP kanged DarkSlim...
	An original Slim feature.

Hai Slim =]
	Have an original AOKP feature.

PS2: Whitespace
PS3: Use slim_arrays
PS4: Remove unused imports &&
	Use StateListDrawable
	for Alarm Dismiss (color-
	changing button)
PS5: moved services into slim folder to have all seperated
     minor code style corrections
     add dialog instance handling in QuietHours.java
PS6: the right class folder is a good idea sometimes :p
PS8: added cancel button to the dialogs
PS9: Holo Gray

Change-Id: Ia24450ac6aa60e74f8c93113a35d43b4602de189

by Jubakuba

 Settings: Quiet Hours Logic Change (2/2)

12:00am - 12:00am = 24 hours
	(Or any "==" time)
This makes more sense for the user
	if they have the direct ability
	to toggle quiet hours.
	The feature should work as-is
	and in a 24-hour on/off manner
	through using the toggle.

Dependant upon this patch as well:
	https://review.slimroms.net:8443/#/c/39226/

Change-Id: I20873f7c66ea20d247cb8764a475f0bb17ccfbfa

by Jubakuba

 settings: fix QuieHours call from fb

Change-Id: I3245828aa675e186344d5370b9ea71ee6520349e

by Kufikugel

 settings: refactor QuietHours code

PatchSet: use correct context

Change-Id: I9391e274250128af5f0e9dea4bdfde2485d9a746

by Kufikugel

 Quiet Hours Ringer (3/3)

Change-Id: Ia4b167654867425b8d7cac952de094b16002da02

by Jubakuba

Change-Id: I9ca1894f3d2a7a949082e97ba7e959d018495896

Conflicts:
	res/layout/preference_time_range.xml
	res/xml/quiet_hours_settings.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/SoundSettings.java

Conflicts:
	src/com/android/settings/SoundSettings.java
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: fix quiet hours

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

Change-Id: Ica3bff10b3147120593bbe688882404625df18be
[3/3] Settings: update Quiet Hours

follow slimroms changes

Settings: Add "Is Starred" to Quiet Hours (1/1)

Starred contacts only for bypass and response
	settings.

https://gerrit.slimroms.net/#/c/5191/

Settings: QuierHours service: call with qualified user and introduce controller

This commit fixes 2 issues:

1. Call the service with a qualified user.

2. Complete overwork of the handling. Currently the SmsCallHellper is doing
   way to much work. Especially when time change broadcasts trigger the service
   update. Which ended in certain cases to a complete system overload.
   To fix it we use now a single tone controller to take care of this all

https://gerrit.slimroms.net/#/c/5749/

Settings: calendar is not a single tone

uh man should not fix stuff on 4am morning :/

as well fix a logic derp

and another one :/

https://gerrit.slimroms.net/#/c/5756/

Settings: let the controller handle all

observer should update the service.

Fix ANR for schedulService() loop on start service
	command issued

PS:
After Juba fixed the root cause and the loop the boolean check is not needed anymore

https://gerrit.slimroms.net/#/c/5814/

Settings: Prevent GC from grabbing observer
https://gerrit.slimroms.net/#/c/5822/

Quiet Hours: Allow disabling phone ringer
https://github.com/CyanogenMod/android_packages_apps_Settings/commit/3971186ba4895791168cffaa27cc0fee4156648e

also add notification if quiet hours enabled
http://jira.omnirom.org/browse/OMNI-612

tweak de service

PS14:
always start service to trigger notification
but service is doing nothing if the specific feature is
not enabled

PS15:
-new NotificationService
-added for pause, snooze and start now

PS16:
-added start/stop broadcast
-added support for external pause e.g. quick settings tile

PS17;
-cleanup

Change-Id: If37d3f710dc277ec75c55c2b0c71d91f90059cc7

Conflicts:
	res/values/custom_arrays.xml
Settings: Driving Mode

Add option Driving mode

this will speak for:

Allow changing Volume TTS
Incoming call
new Message from
read new message
battery fully charged
charging start
charging stop
Clock speak after screen turn on
Date speak after screen turn on
Which app allowed to speak for Notifications
Speak for Music track title (thanks Utkarsh for idea :D)
fix audio focus while music playing
add less speak notification

NOTE: Requires TTS engine installed

how to use:
goto More... (below INTERFACE) => Driving Mode
Enable Drive mode then choose what you want to speak while driving :D

Drive mode will automatically check for TTS engine installed or not

have fun ^.^

Change-Id: I69acb55d26dce29677fca42b839ce07de954ba71

Conflicts:
	AndroidManifest.xml
Settings: correct update of notification on stop

Change-Id: Ibffa81aa10746fa5ddcce25aab7ae7cefc24b67a