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

Conflicts:
	core/java/android/app/ContextImpl.java
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/InputMethodManagerService.java

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
Active display [squashed] (1/3)

Change-Id: I709196b232609a1dab8e9d7fdd0a6a655d487d93

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	core/res/res/values/cr_symbols.xml

Conflicts:
	core/res/res/values/cr_strings.xml
	core/res/res/values/cr_symbols.xml
	packages/SystemUI/res/values/cr_dimens.xml
	packages/SystemUI/res/values/cr_styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java

Conflicts:
	core/res/res/values/oct_strings.xml
	core/res/res/values/oct_symbols.xml
Battery customization(1/2)

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

Conflicts:
	packages/SystemUI/res/values/oct_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Status bar brightness control

Change-Id: Ibc5cc15a9b43eade73670d308d5cc788c93b6210

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
Fix battery icon style
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

Conflicts:
	core/java/android/provider/Settings.java
Screenshot Delete thanks to DvTonder and

PA where I saw this patch. Changes to original:

minor cleanup + added all needed drawables (xxhpdi and mpdi)

Change-Id: Id458312cd6a66d12caa6ceffba3ba13547caa939
Signed-off-by: Andre Saddler <dresadd09691@gmail.com>

Conflicts:
	packages/SystemUI/res/values/oct_strings.xml
Clear All button added in  Recent Panelview.

Ref: https://github.com/temasek/android_frameworks_base/commit/a129580ee886b48c124de716236c2bae2b93a77b

PS3: capability to show/hide based on setting added

Change-Id: Iab4db7abec6f8caee4c0faad0960fa0f9fb9a1fd
PS6: capability to change button layout_gravity

Conflicts:
	core/java/android/provider/Settings.java
Add a circlular memory indicator to the recent panel view (1/2)

Originally picked from Chameleon OS
http://goo.gl/vgL71x

Modifications:
It allows to be toggled on/off as well as setting a custom location.

Colors are not solid, they have an alpha channel to provide
transparency, this way it doesnt interfer much with the recents
panel view.

Screenshot:
http://goo.gl/Th7g0j

OmniGears Part:
https://gerrit.omnirom.org/#/c/3057/

Change-Id: I07999d476a16d24ddf9c6de441ae646887da8074

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Conflicts:
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Quicktile row option:set 3,4,5 tiles per row (1/2)
PS2: some fixups for 4.4 compat with vanir

PS3: some more fixups for 4.4 compat with vanir

PS4: fix text padding in tiles but still not perfect but close

PS5: remove single line from layouts
Show owner info creation if no owner is set for UserTile

Forward port from cm-10.2.
Squash of the following commits:

Show owner info creation if no owner is set for UserTile

Fix showing owner info creation from UserTile if no owner is set

* Turns out the default user will always be present, meaning a check of
  user count == 0 fails.

Show default profile name if no profile exists

UserTile : Check if profile has a photo

In the event that the profile doesn't have a photo, don't default to the
user's photo, instead show a default avatar.

Change-Id: I89de06f8578280e4671526418b2cabcc5f4348c7

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/UserTile.java
Add native java screen recorder [1/2]

This is based on the screenrecorder binary found in frameworks/av.
It has been converted to a native library with the necessary jni
hooks for interfacing withit via a ScreenRecorder java class.

Volume up + power chord is used to start and stop recording by
binding to the service found in the ScreenRecorder app:
https://github.com/ChameleonOS/android_packages_apps_ScreenRecorder

PS1:
Clean up white space.

PS2:
Fix naming convention for state field.

PS3:
Rebase

PS4:
Post mScreenRecordTimeout with 1000 millisecond delay instead
of 10000.

PS5:
Send record screen broadcast instead of using the service
directly.

PS6:
SCREEN_RECORDER_FRAMERATE should be SCREEN_RECORDER_BITRATE

Conflicts:

	core/java/android/provider/Settings.java

Change-Id: I5b7af9b4b4f24a8c54ac0f9dcb36ace16672e2cf

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Conflicts:
	core/java/android/provider/Settings.java
    fb: qs tweeks

    - fix fc problem on tablets
    - fix filtering of unsupported tiles
    - add music tile options (disable artwork, disable track title optional)
    - add instance handling as well to the tile chooser dialog
    - add cancel button to chooser dialog
    - battery tile short press now battery stats - longpress batteryicon settings
    - rotation tile lonpress - rotation settings
    - collapse drawer on go to sleep tile

Change-Id: I98e5c0c3fd7914de6a6b470f0d816af6028a3c5c

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/quicksettings/BatteryTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/MusicTile.java

Conflicts:
	core/java/android/provider/Settings.java
Frameworks: Fix 0% battery QS tile

when tile is recreated. Fetch the values from
BatteryController

Change-Id: Id0539016e1c479ac1f75535647d91a26f69a76b5
alarms: clean up duplicated sounds

another mess...

Alarm_Classic == Oxygen == Cesium
Promethium == Platinum
Argon == Fermium
Nobelium == Neon
Helium == Hassium
Plutonium == Krypton
Neptunium == Carbon

Change-Id: I29330a50a2538a5e3cf3af99d4f7bf1b17de7aca
Fix up quicksettings(1/?)
This fixed the custom tile row number problem but not the battery icon style updating properly in quick tiles

revisit tile colors
Almost there
Battery tile fixed
Add back code in QuickSettings.java
Change-Id: I8fbdcc5dd6f2ada7e22d2b5b2c193153eaaa655f

Conflicts:
	packages/SystemUI/res/drawable/qs_tile_background.xml
	packages/SystemUI/res/values-land/config.xml
	packages/SystemUI/res/values/cm_colors.xml
	packages/SystemUI/src/com/android/systemui/quicksettings/BatteryTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/UserTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsContainerView.java
Fix Quick Settings Container

Change-Id: Ia9985f154239de3f4b313919304e2505c800c549
Add Music Tile (1/2)

Tap to play/pause. Longpress for next track

Author: kufikugel

Change-Id: I7bde0969adc2de15fbf8c3243d0d216006cf363a

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/MusicTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
Status bar: double-tap to sleep

Conflicts:
	core/java/android/provider/Settings.java