Make "SD Card removed" notification dismissible if the removed SD Card is not the primary storage

The Galaxy S uses the "external SD Card" as the extended storage
and it the notification should be dismissible as it's okay not
to have it.

Additionally, this patch also not hide the USB storage mount dialog
if the removed storage is not the primary storage

Adapted for CM 11

This also includes this commit by @pawitp

https://github.com/CyanogenMod/android_frameworks_base/commit/d07929e4f7182b1684b8a7ed89c58c177ae12c93

Change-Id: I8bab6573766dea68afc919d5fdb3aa606404c2fa
Fix memory leak in system_server when screen on/off

Change-Id: I3ed7be519fc9301dd45d162773a6d0d62de12d76
[2/2] Left handed navbar during landscape mode

This patch allows for the navbar to be moved to the left side of the
screen during landscape mode. Left handed people are more used to this
option.

This patch must go with another patch that changes
packages/apps/Settings

Screenshot: http://i.imgur.com/jWqJcEV.png

Change-Id: Ic95e3fda1f55efd2ec908c8d7226e638ec0ab80a
Correct the lockscreen carrier text case

The carrier text is no longer set to all caps in AOSP

Change-Id: I6a28a2d54a3b748f418af9f867b8be562911ef59
Fix volume key music controls and wake up

- Forward port code from cm-11.0 and adjust for 5.0
- Fix not being able to adjust volume when music control is on
- Disable screen off volume/music control when wake key is enabled

Change-Id: Ie0ad83965c41fd33120490c25a4ff3d9b2cbeb37
Merge remote-tracking branch 'upstream/cm-12.0' into cm-12.0

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Patchset 9

Improve HeadsUp [1/2]

Rework stock behaviours.

* Don't show if we're on expanded status bar, right?
* Ensure there is a strong reparenting since we are manipulating now,
  avoid blank notifications, broken clicks and other evil cases.
* Add some comments
* Add experimental settings to enable rich non-noisy notifications that have
  a not empty ticker. Stored in Developer options.
* Add multiuser support, provide a system setting to override heads up
  showing. User can disable heads up within this one so we don't need to
  mess with Settings.Global heads up dependencies and break Google wide
  implementations like priority filtering etc.
* Check if view is attached/detached before removing/adding it, even if the
  workflow shouldn't face this issue (it's handled by a single observer) but
  better be safe i guess, doesn't hurt :) And if we somehow add Theme Engine
  or whatever needs status bar recreating this will come handy.
* Add FLAG_WATCH_OUTSIDE_TOUCH, since we manage outside touch events.
* Hide heads up after 1.0 second on touch outside and/or on home button
  pressing (more specifically when animateCollapsePanels() is called).
* Rework Edge swipe helper, don't, for UX sake, expand status bar when we
  swipe down from top and heads up is showing. Leave stock handling there only
  for debug case, on swipe up just HIDE the notification, don't dismiss it too.
* Code Cleanup.
* Use HEADS_UP_REQUESTED extra. See https://gerrit.slimroms.net/#/c/19496/
* Don't show heads up while IME is showing.
* Other little miscs.

Signed-off-by: @BigBrother1984 <carlosavignano@aospa.co>
Change-Id: Ie7eff5934331f3ea995cac05c61b12eaf654fd26

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java