SystemUI: add signal text (1/2)

PS9:
 - default colors to white
 - use PhoneStateListener instead of deprecated implementation
 - removed unused code

PS11: Fix build error

Change-Id: I96fe28fdf946e1372ec4dd8df3adae4aece4b509
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/signal_cluster_view.xml
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
SystemUI: Add option to hide signal bars

Patch set 1: Bring back option from jb
Patch set 2: Update for Settings.AOKP
Patch set 3: Add needed dependency

Change-Id: I93e78d48412e1a82a271d002066fa8a4c0101d16
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
[1/2] Add network stats to status bar

Also includes
http://gerrit.aokp.co/#/c/13356/
http://gerrit.aokp.co/#/c/13360/

PS2:
Get the time delta between updates and use that to show
average bytes per second.

Change-Id: Ib06a713e6d93649ae8c8e5be5fd62c4f44a48416

PS3:
Code cleanup, change default text color and size to fit
AOKP and add ability to change text color.

PS4:
Fix up layout for cleaner spacing and add for tablets

PS8: Moved indicator before status icons

Change-Id: Ie3cdb038fecfe8cbb9b7a670c50dc7ebd22690e1
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	packages/SystemUI/res/values/dimens_custom.xml
	packages/SystemUI/res/values/styles_custom.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarTransitions.java
[1/2] Notifictation counter

PS2: Try to fix memory leak
PS12: Catch line 143 for debugging track down which instance of
      StatusBarIcon is causing NPE
PS13: Removing apply() from onAttachedToWindow to test a theory
PS14: Remove logging and check if icon is null before setting vars
PS15: == -> =
Change-Id: I95d06df346c77f0089abb749f2ee16a3d4678041
Signed-off-by: kecinzer <kecinzer@gmail.com>

Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
Add torch back

Change-Id: I01a2958106538e8023006af87a0bb1be39bf1f9b
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
framework: fix screenshot and rotation animation for devices with abnormal hw rotation

This solves above issues faced in Tab 2 7" and Tab 2 10"

port forward from cm10.1:
https://github.com/CyanogenMod/android_frameworks_base/commit/ac555b9ca9a76d13a26fc9ea40980fe57258761b#diff-d6f7bba268a742c91252cc9e64e2381a

Change-Id: I14b6e2403b9be345a1a591138f8a3a12ca8e4f89
Squashed recents/rambar (1/5)

SystemUI: Recents Ram Bar

Add Ram Bar to recents

Notes.
1) You'll notice the Rambar gets updated frequently in the recents panel
for a few reasons to keep the data as up to date as possible, to update
after swiping away tasks, and also becuase this is now where we pick up
Boolean changes for if the bar is shown and if the all all button is
show. If you think an update is not needed let me know and we can try
to reduce how often we check it.

B) You'll notice the data here does not match the data in
Settings->Apps-> Running. I used the same Math and got values from
the same place as settings but for some reason the data is still different
Mike has me convinced it because the running process here is SystemUI and
it has a larger foot print then Settings. So if you see a mistake again
let me know and we can fix it.

3rd) I'm open for options on theming, at this point both letting the themers
handle it and using a color picker are reasonable ideas. Let the voting begin.

In conclusion I changed kill all to boolean and made it update on the fly
so no systemui kill is needed anymore, removed in my RC commit.

Change-Id: I9e0582b600e1f6a4057d90474dd150db7db5a982

Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>

Make RamBAr Moar Dynamicer...

The listener code was already in running state just implementing it
here as practice for the ram tile im gonna make.

Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>

Recents: Fix Recents for MultiUser

Its actually the rambar thats causing the crash, running state needed
to be updated

Change-Id: I081803e77c247fbaa6d8bf75dec889200e618f75
Squashed recents/rambar (2/5)

SystemUI: ram bar and recents performance improvements

PS2: add SettingsObserver to eliminate the need for SysUI restart
PS3: tab derp
PS4: stop jumpy behavior when clicking recents fast!
PS5: more reasonable timeout
PS7: restore :)

Change-Id: Iee304142285757656129ab92542013196615a404
Signed-off-by: Roman Birg <romanbirg@gmail.com>

SystemUI: simpler RAM bar implementation

Signed-off-by: Roman Birg <romanbirg@gmail.com>

Change-Id: I6b7c74c515b07269fa2ed9a96263fc47e58d5920
Squashed recents/rambar (3/5)

RAMBar - show available memory in the old way

Old way means handle cached memory like it was free, subtract it from total.
Also use the internal MemoryInfo class instad of reading from /proc/meminfo.

Change-Id: I96462ed5f1b6923ec8fc4405b225d57691dd1aa0
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>

RecentsBoost++

Change-Id: I4dbaaa31d620ced287df12a0f861467ed2bd8a5b
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>

SystemUI: unregister ContentObserver

We were leaking memory.

Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Change-Id: Ie9ddf00c698692f418cb8ef473dff2b1aa05135d
Squashed recents/rambar (4/5)

SystemUI: RAM bar view optimizations

findViewById() was being called every time updateSettings()
was being called. Instead, let's instantiate them once, and
remove calls to updateSettings() since it will be called
on its own when the setting values change.

Change-Id: Iaa02343caccb615921219be2a56b3bac4f3263b9
Signed-off-by: Roman Birg <romanbirg@gmail.com>

SystemUI: Recents window visual updates

* Changed the KillAll button to not have a border/be transparent
* Stretched out the RAM bar across the top, and add a small shadow underneath

PS4: Drop landscape related changes down
     from GNow commit (wrong patch)

Change-Id: Iabdab0a083b00ee51834415f0454f8298efe5591

recents: turn Kill All into normal button

Change-Id: Ie7783449e593ceab81039133fcee2f1561954ef3
Signed-off-by: Arnav Gupta <championswimmer@aokp.co>

Recents: resolve duplicate method

Signed-off-by: Jonathan Steadman <xxwhitehawk@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Change-Id: I8511d8741e7f319e4ecc68e5d76cc324dd38c1d9
Squashed recents/rambar (5/5)

*set up for Settings.AOKP
*move strings to strings_custom
* fix build

Signed-off-by: Jonathan Steadman <xxwhitehawk@gmail.com>
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/res/values/strings_custom.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Change-Id: I2dac71eeb39205f823fe5e9c4530b26ee0d10000

Conflicts:
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
RAMBar: add padding to layout to add space between statusbar

Change-Id: I469feb993e0180be096a7cddb45a8f12f276a755
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Rambar optimizations

* Cleanup observers (memory leak fix?) and updateRamBarTask explicitly after
  loading view

Change-Id: I1984d68c5acea0406e261690873e69f09bbd01d0
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Rambar: Set to enabled by default

* One of our featureset that will be enabled by default

Change-Id: I9c375b74ce3885636478e8077ade69f604b986d4
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Media: Make sure mVolumeController is not null

* mVolumeController is throwing NPEs all over the place in this class, which
  causes apps like Chromecast to shit the bed when using Google Play Music
  and/or Google Play Movies
* Catch additional exception on try/catch already in place and throw in a null
  check to prevent apps from crashing until null mVolumeController is rectified

Change-Id: I7a883aa85256d5dc6af6f37978676b136cb40d0d
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
SystemUI: Allow theming battery via theme chooser

Change-Id: Iebea2dab0ed89baa14c0f18a4c8f487cdb8313a6
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
Derp

Signed-off-by: iceandfire <arhamjamal@gmail.com>
SystemUI: Add double tap to sleep gesture

Change-Id: I4c54718e8ec8774677d13917b3a7ffa3b4b18cb5
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>