Animate circle battery rotation back to 0 after unplugging

After unplugging continue the rotation animation until it's back at 0
instead of jumping to it directly.

Change-Id: Ifea8351d609c0dc4ec82bd459942a197243dd5f1
Fix hiding ADB notification

When the notification is already shown (the device is connected in ADB mode)
and the user turns it off, it doesn't go away. Let's hide it properly.

Change-Id: Ie411a89d5549ae9662c59ee9ee5d18a9568e1ede
Fix resource leaks

Change-Id: I3a201cfd924e467d605351782bd06874c2af725e
[WIP] SlimPIE (1/2)

Port to CM11.0 sources by @cristianomatos

Port to DCM sources by @Davidteri

Change-Id: I2c3f5f23909f746e1a325be81ec4c3ec83e26568

Conflicts:
	core/java/android/view/IWindowManager.aidl
	packages/SystemUI/res/values/dcm_colors.xml
	packages/SystemUI/res/values/dcm_config.xml
	packages/SystemUI/res/values/dcm_dimens.xml
	packages/SystemUI/res/values/dcm_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
fb: Handle navbar heights correct on dpi changes + more (1/2)
Till now we set the height in px in the settings. Which is a problem
especially on multiDPI roms like we are when the user afterwards changes
the dpi due that it isn't calculated correct anymore on the new dpi.

This commit does
- save the dp value in provider and calculate the real px in fb
- clean up the settings stuff for it + do it a bit nicer (only settings part
  where we do not set the value for the listview)
- add Converter class for common methods we always use....till now only px->dp
  and dp->px method

Change-Id: I413634fc433e0501eba69db2a463fac231e22f72
fb: restore navbar compatibility with several xposed modules
I am tired of the complains....

Xposed use the emulator overwrite to enable/disable navbar...this results
into showing up navbar on reboot even if the user has set it to off in settings.

This fixes the issue and still keeps for emulator tests the basic overwrite functionallity
alive as long the provider value was not set.

We may should reflect that in settings as well.

Change-Id: I99f04da8110bbcfcdba62604610d1f4330aea4d0
Frameworks: fix qs and notification shade toggle on expanded desktop
If expanded desktop is enabled and statusbar hidden the toggle does not force
the statusbar to show before it pulls down the shade

fix it with just requesting the the statusbar to show up before we actually
peform the action

Change-Id: I3cfae445f02d7911048dcb5199a5492c0f05acc5
Frameworks: Imagehelper...do a nicer resize with better quality

Change-Id: Ibec4658d46a2c6ef1b6bacf505227949c3bcbfdc
Frameworks: fix navbar and pie icons for tablets and RTL

well due that we use a completly other attempt then googles navbar we do not
need to rely on different sized icons for portrait and landscape. So just a square
icon fits our needs perfect (which is so or so everwhere in AOSP default to use square ones).

Whatever recents pie feature showed us that we still forgot to size the pictures for our tablets
and as well for RTL user.

So let us do it now to fix any resizing issues on navbar and or SlimPie

Change-Id: I5257b789a5450754a296141b0af63d2eacaa87c9
Framworks: clean up the AOSP tablet icon mess

well.....on grouper the overlay size for the navbar is/was 56dp...so
google added bigger icons then the usual ones into the sw600dp folders.
Well newer tablets have 48dp as default like the phones so the slightly bigger
icons do not fit 100% correct. It is not much but it is noticable.

So all devices have same navbar default height...so all icons should have same size
as well. Just remove the overlay icons so that the system automatically chooses the right
one from the default screen qualifier.

Change-Id: I4e4d87d70996ed1def359149cea829b5794f2448
PIE: adjust gesture sensitivity to maximum

Change-Id: I933059dfa33b3718d07aa15dd1d7e47c6bb0f813

Conflicts:
	packages/SystemUI/res/values/dcm_config.xml
Toggle nav bar through power menu (1/2)

- This is highly based on this commit form SlimRoms: https://github.com/SlimRoms/frameworks_base/commit/4097a175f00fa0137169c4ae4a6bc35a2799c97f
- Now we can toggle nav bar on/of in power menu. It's easier to use PIE.

Thanks again to @kufikugel

Codes ported and new codes from @cristianomatos

Change-Id: I75ea9623d3701fc01ec56a504be5e6a5fcad3cc1

Conflicts:
	core/res/res/values/cr_strings.xml
	core/res/res/values/cr_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Attempt to fix smart wake cover

Change-Id: Ie3bf76aa7f9d9ce6bc6aa6fa5e5ad303eafb2533
[1/2] Add support for Peek app

Disable built in peek when Peek app is installed. Enable it again on app's unistall.

Change-Id: I292cfa6ba351ac65fd67d902b5e4df9be29981ac
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
perf: Don't persist the perf profile across a reboot

 * Always initialize with the default performance profile.
 * There are a lot of reasons for this, but mostly because
   users are stumbling into the setting and ending up with a
   slow system because they enabled powersave mode.

Change-Id: Icd0a1ddcc41700eb29a126bda1eb67a26fc2d5dd
perf: Send a boost hint when a key on the navbar is pressed

 * A lot of stuff happens, especially when invoking recents.
 * Get ahead of the storm by sending a boost hint before
   kicking off the animations.

Change-Id: I0cecd0c58f8bc8479ea44f63af796500d7b9d7d2
Merge "Animate circle battery rotation back to 0 after unplugging" into cm-11.0
Merge "Fix resource leaks" into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_frameworks_base into android-4.4_test
Base: On-The-Go: Turn stop and start service if screen turns off and on

Change-Id: I46cbc6a59ab5489ab0fad2b6df355c60599f4cc0