Add torch back

Change-Id: I01a2958106538e8023006af87a0bb1be39bf1f9b
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
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>

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
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>
Merge branch 'kitkat' of https://github.com/AOKP/frameworks_base into kitkat