[1/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:
    shrink a couple of long lines
    remove power_notifications_use_default option (folded into ringtone option)
    load default settings in global instead of system

patchset 5:
    support vibrate toggle
    ignore first power state change (on boot) if it's a DISCONNECT

patchset 6:
    fix ignore first power state change

patchset 7:
    change vibrate to default to off
    simplify first power state change ignore logic

Change-Id: I36a6b9f924d2cd52191a8e83a744745b37c5b068
Audio continue to played even if paused manually

Currently, audio will resume playing after a phone call
or notification even if the user had manually paused playback.

This patch addresses that by introducing a new player state
to distinguish the user pausing playback and the browser
losing audio focus for some other reason. Audio will only
 resume if the browser temporarily lost audio focus and
not when the user has manually paused playback.

Change-Id: I9e8beaedb0fcc5afe920068297ed9c387eab2ac8
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Duplicate Media cleanup

Clean duplicate notifications and ringtones.
JIRA : https://jira.cyanogenmod.org/browse/CYAN-292

Change-Id: Icab24ca455891c2347fd521e4d8c804cb024c51f
Fix: Navring error

introduced with this commit
https://github.com/SlimRoms/frameworks_base/commit/8c8769815c0f1e58657e4e31ef7f7014e45b0831
the placeholders react on touch which ends up in open gnow permanently
disable the placeholders. Sorry for that

as well a small change (even if this case should never happen) to
be 100% sure the listeners are attached before unregistering

cheers

Change-Id: Iab783861020ed03645d60aa7e121edee29688841
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
Option to hide QS panel toggle
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: I2f679887e3546d7c7b9dddb1979c01e83417086d
Frameworks: toggleQSShade (1/2)

we have a notfication shade toggle....but we cannot toggle
directly the QS drawer via SlimPIE, navbar or hw keys.

This commit does:
- bind qs shade toggle to slimpie, navbar or hw key
- logic detects if you are already in the notification drawer
  and switches then between qs and notification area. If not
  it closes the notification drawer or qs panel depending
  which of both is open
- icon changed to the same icons which are used in the notification
  drawer to have a visual consistence
- as well like the notificationshade toggle it is toggleable
  in expanded desktop mode or on fullscreen apps
- bindable as usual on normal and longpress actions
- for tablets it is of course just opening and closing
  due they have seperat notfication drawer and qs

small demonstration:

https://dl.dropboxusercontent.com/u/106208842/qstoggle.mp4

Change-Id: I0766f837fdfc19da8d4d136cee3022d4484feec9
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Revert "Option to hide QS panel toggle"

This reverts commit 82a91782a9b46b88aa6e08caeba61ed18f963259.
Further modifications to QSToggle to work on BeanStalk.
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: I33b00b5195fdf2c49642c590423bdee2c9f86bb9
Oops... ok... QS toggle working as it should now.
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: Iec742c222d459d349a1d2e6b7ef1703fb2db4f86
Add turn off action to WiFi Tether notification

PS 2+3 : Fixed Icon + Add persistence to WiFi state [mnazim]

Change-Id: I320405ed7e90e4c06ecdb127cd4c1cad6bedbcdd
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Frameworks: Allow smaller SlimPIE sizes + multiDpi fixes (1/2)

Due team, user and kanger wishes I needed to do again something :p
Hopefully now really the last thing :D Is now in full range as well usable
for higher dpi then our stock dpi

This commit does:
- allow bigger size range for SlimPIE layout
- icon are now resized on smaller sizes (only then) then default size
  which allows much smaller overall size
- slight better positiong of the icons in the button item
- Fix: reported issues custom Icons are sometimes to small
- Fix: reported issue that estimated container size took not PIE_SIZE
  into account (follows now on every dpi and size the activation point)
- Fix: Settings style seekbar resets sometimes to last setted value
- Settings: a bit code rearrangement (not needed but I was bored lol)

And now really finished :p

cheers

Change-Id: Ic3e69be4de0b0be8758d9d56ced6a65f104693c4
Frameworks: revert to our old default size (1/2)

played so much with the stock dpi values to optimize that
I set the default value for our slim dpi a bit to low :p

Roms which use stock phon dpi can leaver it like it is

But should kang the correspondent frameworks patch which
allows more flexible size changes

NOTE: check that the default size value is same like settings

cheers

Change-Id: I8e0c44185e8789cf8599868e791456e6856f08bb
added contact lockscreen icon

Change-Id: I204e3a43d3e2beed391e605f3d3add55b24bb4b7
PowerMenu : Profile entry fix

Always reinflate views
Jira : https://jira.cyanogenmod.org/browse/CYAN-1017

Change-Id: Ib348bb4c9a85b6433a86eeed1b0de9deff9d50bc