Framework: Add Recents Ram Bar

Patchsets
 cleanup whitespace

Patchset 8:
- fixed gapp between recents apps and bottom
- add click action to running processes
- minor changes

cheers

Change-Id: I2034fc3d803fcbd905b9e2d7ffec0f4e4ed9f041

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

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/recent/InterestingConfigChanges.java
	packages/SystemUI/src/com/android/systemui/recent/LinearColorBar.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
"Clear all" button on recent apps

    Ported from ParanoidAndroid by zigackly:
    https://github.com/ParanoidAndroid/android_frameworks_base/commit/f8c44e6ef667a3ebe9b658f148fa78a8d4f9a8dd

    Add button to tablet layout ported from Codename Android by zigackly:
    https://github.com/CNA/android_frameworks_base/commit/8d259fe3588c261baa5a17c361255cf28cc82bfe

    Patch set 2: Make the layout consistent, with the button at the top right.

    Patch set 3: Remove the redundant use of removeTask()

    Patch set 4: Top right layout does not work in tablet mode: make it top left for tablets only.

    Patch set 5: Different implementation (No need to keep track of views) - Danesh M

    Patch set 6: Top left layout no longer works for tablet mode with new implementation.
                 Make it bottom left for tablets only.

Change-Id: Iceb86eef41160f1c17e51463b37fd97e27acfb2e

Conflicts:
	packages/SystemUI/res/layout-port/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Change-Id: I5f3827299866a951e657ce64bea7c5f31c34ef9e

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

Conflicts:
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/system_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Framework: Recents RAM bar (1/2)

due that the old rambar was resource consuming and as the settings rambar not really
right in showing the truth of real RAM usage in android, I decided to go new ways.

This commit changes our rambar (or better add a total new one) in following points:

- we do not use any longer ther permanent observed RunningState machine
- instead we read out /proc/meminfo (thanks steven for that idea)
- rambar shows now the real memory usage
- ppl have the possibility to show applications, cache and other ram usage as they like
- deeper explanations I add how android mem managment works.
- color picker for all rambar states
- reset to default
- updates only on actions on recents so that it is making sense
- and a lot other

cheers

Change-Id: I2cb29655f92fcdacd8a71d6192224ec8964acc17

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

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Fix Ram Bar calculating

seem realy my fever last days made me to a bad programmer lol
fix for wrong calculated other value
fixes also sometimes weird negative views

cheers

Change-Id: I14a4f2230f5dddc5104e5fa0cef474ec00676847

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Recents set nicer intent flags for rambar click action

Change-Id: Iaca1492f47667b7d260f8fd962a5fb99a6c8701f
Force clear cache on 'clear all'

Add long click to 'clear all' button in recents panel to force
clear caches, dentries and inodes

Change-Id: Iaa0ff526707be5b21bf746767f6241f4f0b6c39e
Koush broke my cache!!!

Change-Id: Ia5796146de1b876772ea1ca487f43d3e933862da
Frameworks: recents rearrangement recents + fixes

Recents was and is a crap...already from AOSP...whatever
to avoid animation conflicts with the RAM bar it is moved up.
Due a lot user requests the clear recents is not bottom left
Recents container is now reduced and on bottom off ram bar
so that no visual overlap glitch exist any more. As well the
recents scrollview is more stable and now small 1dp glitches like
the original AOSP implementation. Code cleanup
and some code arrangements.

cheers

Change-Id: I3d4d880a6fa41575b2c9a4de06d289551aa5436d

Conflicts:
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/system_bar_recent_panel.xml

Conflicts:
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/system_bar_recent_panel.xml
Show as floating window on recent apps

This also removes "hybrid properties" from recents menu, it is fairly unneeded
now. This is a test, It's probable that it will be removed later

Change-Id: I3db3a996fa08367e3dfa4231079fe5e811e3b08a

Conflicts:
	packages/SystemUI/res/menu/recent_popup_menu.xml
	packages/SystemUI/res/values-es/strings.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Final fix for recent apps orientation

Besides the known showImpl (called every single time when recent apps is shown or hidden), Override onSizeChanged method for setting recent hints on orientation changes, and restore hints in onUiHidden method. The perfect match

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

Change-Id: Ieb9ccd076223d08df6e41ac62641f302d6708595

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Recents: Google Now Assist button

This is quite helpful for devices without navigation bar to navigate back to google now... This implementation is also similar to Samsung's Recents Panel

TODO:
- Learn user's feedback whether to make this into an option to enable
- Make a tablet support for the button

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

Change-Id: Iac3570d07611114fae540f6a110bf93ebf138190
Make Google Now recents button, user-define to enable it

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

Change-Id: I094456ae117a394eafa8c177032c3dcc4fe92f9f
Improve Recents menu (1/2)

-Choose position of recents clear all button (BR, BL, TR, TL)
-Show Carbon background when no recents apps are present

Huge credit to andros11 and RootBox as this is larely based off
their work and credit to Omar Asad for the background image!

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

Change-Id: Iccfe6ca4b6f830849b15f2eef1c69c539083dc03
Clean up recents
Highlight the clear button in the recents view when clicked

This commit also makes copies of the ic_notify drawables for the recents
panel to avoid any collisions with possible future changes to the
notification bar UI. (The pressed state drawable was already an unused
leftover resource).

Change-Id: Ib0d5982e80771b6639efd25ac792ebfe9f1ca1c5

Conflicts:
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/system_bar_recent_panel.xml
clean up recents panel view

Change-Id: Ia1c781b083611bdd5dac336db02ba39e64e3be6b
Frameworks: add never sleep screen mode (1/2)

to qs ScreenTimer Tile
to PW ScreenTimer toggle
as general option as well

Change-Id: Ic78356c1b96044562efbce3cb0d0d5c93d773a19

Conflicts:
	packages/SystemUI/res/values/slim_strings.xml
	packages/SystemUI/src/com/android/systemui/quicksettings/ScreenTimeoutTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/ScreenTimeoutButton.java
	services/java/com/android/server/power/PowerManagerService.java
CircleBattery: Turn green when plugged in at 100%

Change-Id: I44152ed2ed1770992e19bae3c34f1cb43f9a9f91

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/CircleBattery.java
[1/2] Add battery level around unlock ring

Change-Id: Ia4dbc2335657c096c34349ec67c4adfec0aeb91b

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardSelectorView.java
Active display: Allow apps to be excluded from being displayed [1/2]

This has been a highly requested feature so I guess it's about time
we implement it :).

Change-Id: I5c334833b78325733ae076c07afccebb02758ead

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

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java