QuickSettings (1/2)

- Removed unused tiles and resources, added cm ime switcher, removed flippable tiles

Port quicksettings / ribbon from cm-10.2

Change-Id: I6710a62a82ed274eb9e8c86cd2a1faf657ae53f1

Quick Settings: Swipe to switch

Adds the ability to switch to / from Quick Settings, using a sideways
swipe gesture.

Change-Id: I3cab45f72fe3c5fa40d4631fc6a84ea7bfe51bd1

Improve notification shade auto-collapse code.

- When the user dismisses a notification by swiping, also collapse
  notification shade if there are persistent notifications remaining.
  Only skip collapsing if there are still non-persistent notifications
  pending
- When the notification is removed by the app, wait a bit until
  collapsing the shade so the removal doesn't come as a surprise to the
  user
- Centralize the collapse trigger at one place

Change-Id: I4e5114f66e799a7c80e18b38abce5678da460846

Make notification-shade-collapse-after-dismiss behaviour configurable

Change-Id: I1be0be2753b479e6d2e4fc8e17d971d03ce01bb7

QuickSettings: Update all QS drawables to fit KitKat

- Recolored all drawables according to the new color theme
- Recreated some drawables to be able to include all in xxhdpi
- Remove some unused drawables

Change-Id: Ib5430059f67ff73677821122b8f2037094ba90c5

QuickSettings: Re-add Quick pulldown

Change-Id: I7bad553fe7eb4a3e91af69f811d99b74f7572aa3
Irda: Add Irda System Service for Samsung devices
(Readded this commit to enable Irda service)

Add Irda System Service that is compatible with the Samsung devices
.
This is not a perfect solution yet, but it does work and should therefore be a starting point.
I do not know how to make this code exclusive to the S4, maybe someone can help me out with that.

PatchSet 2: Now the Irda service is not started by default. It can be enabled via overlay.

PatchSet 3: Rebase

PatchSet 4: It now uses a HAL module to communicate with sysfs. However it currently
fails when loading the module

PatchSet 5: Corrected a typo in a comment

PatchSet 6: Cleanup

PatchSet 7: Renamed native method to send_ircode_native

Patchset 8: Renamed commit message to indicate general applicability to Samsung devices
including n80xx.  Need to determine how to handle HTC and Sony...  Also added logging
when module load fails or device opening fails.

PatchSet 9: Fix missing semicolon causing breakage in the build

Change-Id: Id4da55cfbd297fa46c50aa8a6af9cd4d056086cd

Conflicts:
	core/java/android/app/ContextImpl.java
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/SystemServer.java
	services/jni/onload.cpp

Conflicts:
	core/java/android/app/ContextImpl.java
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/SystemServer.java
Battery customization

Credits to slimroms

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
More code additions related to battery customization
base: fix external sdcard mountpoint
It needs to add that line on init.xxxx.rc on rootdir folders.

"chown root root /mnt/media_rw"

Needed for devices that has some troubles mounting storages.

Credits: http://forum.xda-developers.com/showthread.php?t=2537793

Change-Id: I0c9e2ae5439c8d8a762904e2760eb6590ce77a62
Add T-Mobile theme manager(1/2)
quick settings: torch tile
onClick on/off
onLongClick opens app
torch tile: check if package is installed rather then FEATURE_CAMERA_FLASH
Quick settings: use hasTorchPackage, rather than supportsLED
Follow up 6b77eb7330bb3833d1c62b5b40e160bfaaa09c30

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
QS: Make it possible to show smaller icons (1/2)

* Remove text and show more icons on one row

Change-Id: Ie247aba1ae5fbdb8f5298e30fb2f04a985e73532
Frameworks: Port BatteryBar (1/2)
{x} Adds Battery bar with following features:
{x} location set
{x} color
{x} aligment
{x} thickness
{x} charging animation

Change-Id: Ie9a168121dc569ec3af068a4bda6b46a4e896b2d

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/attrs.xml
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Prefs.java