appops: Fix WIFI_SCAN AppOp permission index

WIFI_SCAN and POST_NOTIFICATION permissions are inverted.

Change-Id: I97ebba0e118604294eb474143c53f7e7238dcb59
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Include center clock and derivates to msim_status_bar.xml

- This commit should fix SysUI force closes on moto g and dual sim devices

Change-Id: I71d4f89930693e65ff1fad3a46a1f9aeac25ed48
Revert "Never load launcher on long press recents"

This reverts commit 000e6208807d4c426e2545546c5e7643f2fff0c7.
Revert "Long press recents to switch to last app"

This reverts commit 2c9829ba9423d1955110b69ceeca54e253ec92ac.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Change-Id: If33ac8c63dadac280b82ffe389f6494f0ae5f114
Custom actions on navbar recents long press (1/2)

For now 7 actions are possible
1 - none
2 - last app
3 - screenshot
4 - kill app
5 - notifications panel
6 - QS panel
7 - power menu

Thanks to @kufikugel for base and idea in SlimRoms navbar and navring customization

Change-Id: Ic96d8bb31025efd7260759709ddb8d9736c2619f
Never load launcher on long press recents

Related: AOSPA-279

Change-Id: I7860d84c4eb36fe0f592dfc4d5b2769040abf182

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java
Add music tile from SlimRom (1/2)

Change-Id: I3e828afe9fcbabd7c93b54932cf9653bc9de20cd
Fliptile animation - Music Tile

Change-Id: Ib7aef64433934f7cc286a7e9199b330218330ad1
Add music tile options (1/2)

disable artwork
disable track title optional

Credits to SlimRom

Change-Id: I442af9b4a3fffcb2f3e3388da4ed1aeadda4ff82
QS: music tile update on Uri change

gives the user a bit better feeling when changing
the tile settings in Settings due it does react
immediately

Change-Id: I162477bb65eab7e0283aae135aeb013f99e38abc
SystemUI: Pimp-up Media Tile

Allow double-click to start a sleep timer
	for the currently playing media.

PS:
- clearer button descriptions on different states
- if timer is in progress restore and show the time the
  user had set up and notify that he is in timer progress

modified to work with flip tile animation.

Change-Id: I7848523e7bc3d9577361ff55f010a9909d46e665
Last App Toggle from Omnirom (1/2)

Change-Id: I5c66e0cc2126a9ade755577dc58fb6f9e0a12763
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: Id60b45645d489c08539d56b8e05d135c36d38990

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
SystemUI: Add LongClick SwitchButton

User TJKV had the idea to set notification
	button to the notification station.
	Nothing else fits in my mind...so
	that's what I'll use there.

Change-Id: I2087de5c5ff2387d51b4c7685fc7aa3c0d26d72e
Framework: QuickRecord Tile (1/2)

Images by kroz (thanks!)
Change-Id: I22f9de88d401a777e987ec2c1bbbf599dc840d5d
Fix soft reboot using power menu through tile, navring and recent long press

- Using slim roms idea of this commit: https://github.com/SlimRoms/frameworks_base/commit/2d7b1afb903858bf26ac98dc9de64924a5ce9a05 and calling all power menu actions from the same thread

Change-Id: Ie4768a1722a41164474ef300f4a1b67c535349f6

Conflicts:

	core/java/android/view/IWindowManager.aidl
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	core/java/com/android/internal/util/cm/QSConstants.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java

Conflicts:
	core/java/android/content/Intent.java
[WIP] SlimPIE (1/2)

Port to CM11.0 sources by @cristianomatos

Change-Id: I2c3f5f23909f746e1a325be81ec4c3ec83e26568

Conflicts:
	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

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
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