QuickSettings: Port from cm-10.2 (Squashed commit)

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

Conflicts:
	packages/SystemUI/res/drawable-hdpi/ic_qs_2g3g_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_2g_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_3g_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_battery_neutral.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_camera.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_expanded_desktop_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_expanded_desktop_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_lock_screen_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_lock_screen_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_lte_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_lte_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_nfc_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_nfc_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_perf_profile.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_perf_profile_bal.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_perf_profile_perf.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_perf_profile_pwrsv.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_profiles.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_quiet_hours_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_quiet_hours_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_ring_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_ring_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_ring_vibrate_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_screen_timeout_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_screen_timeout_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_sleep.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_sync_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_sync_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_torch_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_torch_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_unexpected_network.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_usb_tether_connected.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_usb_tether_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_usb_tether_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_vibrate_on.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_volume.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_wifi_ap_off.png
	packages/SystemUI/res/drawable-hdpi/ic_qs_wifi_ap_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_2g3g_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_2g_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_3g_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_battery_neutral.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_camera.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_expanded_desktop_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_expanded_desktop_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_lock_screen_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_lock_screen_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_lte_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_lte_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_nfc_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_nfc_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_perf_profile.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_perf_profile_bal.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_perf_profile_perf.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_perf_profile_pwrsv.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_profiles.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_quiet_hours_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_quiet_hours_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_ring_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_ring_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_ring_vibrate_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_screen_timeout_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_screen_timeout_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_sleep.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_sync_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_sync_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_torch_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_torch_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_unexpected_network.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_usb_tether_connected.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_usb_tether_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_usb_tether_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_vibrate_on.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_volume.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_wifi_ap_off.png
	packages/SystemUI/res/drawable-mdpi/ic_qs_wifi_ap_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_2g3g_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_2g_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_3g_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_battery_neutral.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_camera.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_expanded_desktop_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_expanded_desktop_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_lock_screen_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_lock_screen_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_lte_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_lte_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_network_adb_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_nfc_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_nfc_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_perf_profile.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_perf_profile_bal.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_perf_profile_perf.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_perf_profile_pwrsv.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_profiles.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_quiet_hours_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_quiet_hours_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_ring_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_ring_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_ring_vibrate_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_screen_timeout_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_screen_timeout_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_sleep.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_sync_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_sync_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_torch_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_torch_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_unexpected_network.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_usb_tether_connected.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_usb_tether_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_usb_tether_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_vibrate_on.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_volume.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_wifi_ap_off.png
	packages/SystemUI/res/drawable-xhdpi/ic_qs_wifi_ap_on.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_perf_profile.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_perf_profile_bal.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_perf_profile_perf.png
	packages/SystemUI/res/drawable-xxhdpi/ic_qs_perf_profile_pwrsv.png