Set some GC parameters only for dalvik

Commit https://github.com/CyanogenMod/android_frameworks_base/commit/8f566390bceee9f01b1721c4d00b1b246d26be16
fixed parsing of certain GC values. Before the result was "" and so the
if statement was always false, never executing the setTargetHeap* calls.

Now they are executed but ART currently doesn't support setting
heapminfree and heapconcurrentstart resulting in a UnsatisfiedLinkError
Exception.

Check for the used runtime first and only execute the methods for Dalvik.

Change-Id: I09e60802685acbec04598646e9f7700f33b53b4c
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
ConnectivtyService : Execute connectivityCheck in thread pool

Since this async task takes long when doing things like waiting for
network connectivity...etc, rather than holding up the single executor
of async task for the framework (app_process), run it on a thread from
the pool so other tasks can execute in parallel.

Change-Id: I7b88a4837c7e117ef47014a20c57f828b811edfb
Recents: Fix showing of main or alternate clear all.

Recents: Show clear all button when needed.

* Temp solution till hybrid is back :)

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Recents: Fix logic derp.

* That's a boolean, when you do things in editor :)

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Recents: Fix the logic for showing PA or alternative clear all button.

* I was informed wrongly, is almost the opposite that should be done.
* Cleaned up the ugly implement.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

* Fix logic on pie disabled

Change-Id: I2411fe204822b6ab7fe58e18b45cecfa2912eb15
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Merge remote-tracking branch 'PA/kitkat' into legacy-staging

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java