bluetooth: prevent Android restart with buggy devices

Change-Id: Ic15687b6870dcbe44e6bf54755174ed8aadffc9b
rework powered/plugged/charging logic

 * Reworks "isPowered/isPluggued/isCharging" code to correctly report
   charging status.  Note that some devices can draw more than 500mA,
   so "plugged" != "charging" (as is assumed in existing code).
   This faulty assumption can result in incorrect charging status
   reported and inability to shutdown at critical battery level.

Change-Id: I6b3282df6513a8c235b0f4cdfd9e16f531e34166
FM Radio: Remove unnecessary line breaks

Fixes keyboard glitch mentioned here: http://review.cyanogenmod.org/#/c/30390/

Change-Id: Ic7fc4ce1efc5272515d317f225b674b7a334bf43
PIN Lockscreen: Fix mdpi layout issues

Before: http://i.imgur.com/qmsy8Sr.png
After: http://i.imgur.com/rzHtwu4.png

Change-Id: Id718fde086ec5a9cebe75307d3668a54a38a37c5
Signed-off-by: kyryljan-serhij <kirilyan.sergei@gmail.com>
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
Lockscreen Media controls: Fix mdpi layout issues

Before: http://i.imgur.com/56jXhXG.png
After: http://i.imgur.com/wQJV3M1.png

Signed-off-by: kyryljan-serhij <kirilyan.sergei@gmail.com>
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ib3f23a8e2d7e545495d78fe3e6b5a5b8d0adfac9
Frameworks/SystemUI: Update Greek translations

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I0b1fa0e6ac672b3560185837e980c329e3fc64ec
FM Radio: do not try to change thread priority

The FM Radio services try to change the current thread when
instantiated, for unknown reason. This actually ends up changing the
priority of SystemServer's main thread. Probably a bad idea. This is
the cause of the various glitch fallout after the FM Radio merges.

Change-Id: I292aff3380c717ff1bc7d45f6303c0d330ef642d
Merge "FM Radio: do not try to change thread priority" into jellybean
FM Radio: avoid deadlock when disabling RDS

When RDS is being configured, the session mutex is hold. However,
when it is being disabled, RDS callbacks might still fire, and these
also try to hold the mutex, leading to a deadlock.

Temporary unlock the mutex while the vendor library is called to
work around.

Change-Id: Ic9751c7185fd8de4a7510225f54d23a22f042321
Merge "FM Radio: avoid deadlock when disabling RDS" into jellybean
Merge "PIN Lockscreen: Fix mdpi layout issues" into jellybean
Merge "Lockscreen Media controls: Fix mdpi layout issues" into jellybean
Merge "bluetooth: prevent Android restart with buggy devices" into jellybean
Samsung MSMRIL backported from ICS!

Change-Id: Iccdd1a60bf7d43a0748d7cca47754aad5616d5f6
Tethering patches for i9001

Change-Id: Ia83ce9b848b66b1f853ef2201556ae00e27ac0da
Updated RIL from ics!

Change-Id: I2b528399c8b16a9b029f8c9982bec3ca3fe6c2d5
Fix for usb tethering!

Change-Id: I507591f68e8bf6f46c3bcc03f142ca4b6f5b8ecf
Triggering EarlySuspend based on BackLight brightness

EarlySuspend is triggered currently based on just timeout. Due to this,
backlight brightness is not coming down to zero.

Allowing display turning off animation before Early suspend.

This change passes display turning off information to
animation call so that display off animation can be played
before early suspend call.
Reverted two and three changes in the below list with this patch.
Changes introduced in previous patch were:
1.Send early suspend call after display baclklight off
2.All animations off once display goes to dim.
3.Removed duration to turn off screen as i don't see this in ICS.

My edits:
PS1: Add a config option so it doesn't break non-qcom devies. Thanks to Arne for the idea
PS2: Fix up logic

Change-Id: I640ca93843bc15c7761ba2fb2b2188c8a092bb9c
Workaround fix for SIM UNLOCK PIN issue.

Retry get sim status on error after sim unlock

Change-Id: I1ee36013c43ae6500ebf52dce49b1fae8e7b991a
SamsungRIL: Don't switch off data connection when changing network type

Change-Id: I9d32d5f17d1e33515c7d27330688e7a9c54998de