SystemUI : Fix NPE on Rotate

Several changes relating to Lefty & NavRing mode introduced
a condition for Non-NavBar related devices that caused SysUI FC's
at boot and during every rotation.  A simple null check for NavBarView
should fix that.

Change-Id: I2e2883f283fee5aea34c2580e874c37f884a0c35
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
AudioService: Don't adjust volume when vol-downing to vibrate or silent

Pressing vol-down to vibrate or silent would (previously) still adjust the
stream volume, setting the last audible volume to 0, which is not allowed
for voice-capable devices.  Thus, the last audible volume would reset to
default on reboot if on vibrate/silent or the lowest volume setting.

By not adjusting volume when vol-downing to vibrate or silent on
voice-capable devices, the last audible volume is always preserved across
reboot.
TextView: Allow copy/paste in Google Talk

To-do: create string array for apps for cleaner implementation

Change-Id: I81b4c7b0449e5a965b5472731ec6a341780d848b
framework: Add a version of Environment.getExternalStorageState which accepts a path parameter

Required for improved media scanner on devices with emmc

Change-Id: Id215238f3503221b06459dfa241c2c52ea6a0baa
Scroller: Adds options to control scroll friction and velocity (FWB part 1/2)

Change-Id: Ib19816424cb6803e3351c8ed22d452487192ad94

Conflicts:
	core/java/android/view/ViewConfiguration.java
Merge remote-tracking branch 'burstlam/aokpcm10' into temp
NavRing: Long press actions. 1/3

This is currently highly depended on and older patch set of the
lefty mode. it is fully fuctional however will not be ready for
merge until lefty mode is complete and I can rebase off of it.

this also requires RC and Phone commits as we made changes to
the glowpadview. Also this gives us new options when using
Glowpad where we can now add actions or events based on locking
on targets. So start thinking of cool options using this.

Change-Id: I2e18ce4dbd2a15f419782d1e00f722df939f4d59
Merge "NavRing: Long press actions. 1/3" into jb
TransportControl: Remove unnecessary check, also #blamexoomdev

Change-Id: I0f49355d87a29d0d24f51e4de4f0c3f2a107caa0
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Fix volume track skip control with 3rd party applications

Current code is using ordered broadcast to message the audio
framework of a track-skip. This breaks many 3rd party audio
players as the broadcast will be received by the application
with the highest priority. This change uses
"dispatchMediaKeyWithWakeLockToAudioService" to send the event
to the Audio Service which always knows which audio application
is active.

This change was comitted to CM and this commit is based on the
CM one (though key logic in AOKP is different).

Patch set 2: Original authorship changed.

Change-Id: I51e5e58b56159bc2d835cc24962a560257a30b20
Frameworks: update Swedish translation

Change-Id: Icefa576a511e733e6ae0fb5952ddd0d86084a96b
Merge remote-tracking branch 'aokp/jb' into aokpcm10
CirclesView: remove separate id for circles view /
use common unlock methods.

Change-Id: I9c5b3cc82b89843695eac21e6d3a930df67dbf50
SystemUI: Fix/Update Cog Circle battery mod

Recolor to better match status bar.  Resize to be easier on the eyes and
hopefully fix the issues on small drawing on mdpi.

Change-Id: I91372a6a001f4f1c3d7c7de43f3b7250f4283281
Signed-off-by: Kyle Teague <kwesley1020@gmail.com>
Revert "NavRing: Long press actions. 1/3"

This reverts commit 7f96662330cd36a1c329ec2e80cf7a1c48a7262a.
Revert "SystemUI: Fix/Update Cog Circle battery mod"

This reverts commit c6e593d35a9e96ca5609a0aa2e8d564e427ef027.
Add alpha settings to Circles lockscreen rings

Change-Id: I294128bd93065856ef3fe0817ed2ddd9061bc1cd
Increasing ringtone volume option (1/3)

Change-Id: I54ab79ac56792ab83d80243fcd26fcedeb40d052
Signed-off-by: Petr Reznicek <kecinzer@gmail.com>
Merge remote-tracking branch 'burstlam/aokpcm10' into temp
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.

Change-Id: If89ec6650308109630dbb7ee1be0b96df4ed3534
CRs-Fixed: 381087

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.

Change-Id: Id411fe2c4d4fd219fc198405d6c2f221a87874ff