Toggle Last App: move toggle last app method to a separate class in com/android/internal/util/crdroid/TaskUtils.java

- Use the modified class from OmniRom

Change-Id: Iec1aa13aa5fbbc53b4d166e6fe3b10b3f1ef9dca
Remove unused & duplicate codes
Frameworks: Add user protection and pie/navbar toggle to SlimActions

Keep the user save and do not allow to disable all navigations to keep
the device usable. User will be notified

In Settings user get the choice to enable the other navigation method. Of course
only on navbar devices due that hw key devices always have a working navigation

- This commit have some exclusions ond chages to fit crDroid sources made by @cristianomatos
Original commit: https://github.com/SlimRoms/frameworks_base/commit/4097a175f00fa0137169c4ae4a6bc35a2799c97f

Change-Id: I81353efc20ce82bad66ba445c7b89c86d8a8ef56

Conflicts:
	core/res/res/values/cr_symbols.xml
Fix equalizer tile in extended QS options

Change-Id: Iebf644f401347309d928e0f3d298333fa223e15d
Frameworks: EdgeGestureService give abbility to reduce the left and right trigger height if IME shows up

This patch gives the abbility that features can set the IME_CONTROL flag in addition to the position flags
to enable reducing trigger heights on the left and right edge to avoid conflicts with swipe keyboard.

Although the inputfilter lets come presses to the application trough the normal user behaviour is to start keyboard swiping
before they really even pressed the char button which results in conflicts with whatever feature is using the left and right
edge as trigger.

Features who want to use it need to set IME_CONTROL flag. As well if notification drawer was pulled down or global menu is
shown on top of the IME keyboard the original size gets restored till they are dismissed/closed

This patch adds only the support for it.

PS
- Fix small logic derp in BaseStatusBar
PS
- follow Josues suggestion and make the trigger a bit bigger

====================================================================

- @cristianomatos: Attempt to pimpup PIE trigerring setting everything inside method "public boolean start(MotionEvent motionEvent, int positions, int sensitivity)" to 0.85f instead of 0.9f

Change-Id: I51804d6e0768cc7770a6e52fac454dbad0ab632b

Conflicts:
	core/java/android/inputmethodservice/InputMethodService.java
	core/java/android/service/gesture/IEdgeGestureService.aidl
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	services/java/com/android/server/gesture/EdgeGestureTracker.java
Frameworks: SlimPie give user ability to reduce trigger heights if IME keyboard shows (1/2)

Add a user option to reduce left and right trigger of SlimPie if keyboard shows up
(especially usefull for swipe keyboard which most keyboards are nowadays). Enabled
by default user can disable it in settings.

Change-Id: I5dce4f36f5b14320f806ac60ad75931fa7f2873b

Conflicts:
	core/java/android/provider/Settings.java
Fix build
Update RU translation for v92 (Frameworks)
Update cr_strings.xml
Cleanup app->{theme1,theme2...} mapping on uninstall

Change-Id: I24b43e8817db1927d5b43fcf7ad3340269d046ea
apn: national roaming for ONO (Spain)

ONO uses the Movistar network (214 07)
JIRA: CYAN-4247
Issue: https://jira.cyanogenmod.org/browse/CYAN-4247

Change-Id: Ifb62f631df9f8441e1c03f3d58c98a17572c7077
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Themes: Add '|' delimited list of components to broadcast

Change-Id: I742dcb0f502b6089dee584a92a3792016f2a9799
Themes: Handle apps using "original-package" tag

Before this patch the themes code assumed the pkgName from PackageInfo was equal to the
manifest value. This is not the case however for upgraded system apps that have gone
through a pkg-name change. For example, Trebuchet was "com.android.launcher3" and now
it is "com.cyanogenmod.trebuchet". If the device had wiped data then PM would use the new
pkg-name, but if the system apps were being upgraded then PM would use the old name which is
now different from the manifest name.

Change-Id: Ie7eb1b4e17899d1055535dc890d4f7a7bca9a98a
Make theme change broadcast a protected broadcast.

Change-Id: Ic24c840685d18d133dc73ff2637c041c4775f197
Themes: remove unused code

Change-Id: I5ee8de962c40ddc5fcfbbc0332a9e389223e716c
Themes: Delete icon resources during uninstall

Change-Id: Icf247642f9d246c8826f3394f873e4b434ad2b3f
WallpaperCropper: do not display null bitmaps

It is possible that themes can include a corrupted bitmap,
and the lockscreen will try and display a NULL image resulting in an
empty thumbnail and applying it will cause the app to crash.

Change-Id: Ie0770486a9d58050a5f296a219d844a39937421e
Signed-off-by: Roman Birg <roman@cyngn.com>
Change defaultDreams to com.android namespace

Change-Id: I80f6a163084ef1e03e6e3168ecf40ac701e34519
Themes: Update last postFinish call

* Previous patchset changed postFinish function signature.

Change-Id: Ibe07435e274054c7203504bc4b0877b4df006893
fw: media: Handle NPE due to threading race

Change-Id: I6eab5bc3d687edfa6f0839e439b3314bed4fdcea