add reboot options in power mode
Immersive mode on quick settings based on PA commits

This adds the ability to toggle statusbar / navbar via quicksettings (former expanded desktop), but
using the new 4.4 APIs that allow a swipe-up, swipe-down gesture, to restore bars.

Credits to CM project for the implementation
http://review.cyanogenmod.org/#/c/53468/

Drawables by Arz Bhati

Token from PA

Change-Id: I62f782b7f64c8d320a2364dbff2fdb2dfe617f69

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Clear All button added in  Recent Panelview.

Ref: https://github.com/temasek/android_frameworks_base/commit/a129580ee886b48c124de716236c2bae2b93a77b

PS3: capability to show/hide based on setting added

Change-Id: Iab4db7abec6f8caee4c0faad0960fa0f9fb9a1fd
PS6: capability to change button layout_gravity

Conflicts:
	core/java/android/provider/Settings.java
Immersive mode on quick settings based on PA commits

This adds the ability to toggle statusbar / navbar via quicksettings (former expanded desktop), but
using the new 4.4 APIs that allow a swipe-up, swipe-down gesture, to restore bars.

Credits to CM project for the implementation
http://review.cyanogenmod.org/#/c/53468/

Drawables by Arz Bhati

Token from PA

Change-Id: I62f782b7f64c8d320a2364dbff2fdb2dfe617f69

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Forward port SystemUI: HSPA+ Support

Add the ability to recognize HSPA+ by creating a separate case for HSPAP and
include new H+ icons.

Signed-off-by: Bajee11 <bajee11@gmail.com>
Change-Id: I889a28e4b4cb49862b291641df5a00388db87551
fix build

Change-Id: I540efc42816c40c4de74270f45489e7c2e18a530
change dateview in statusbar to two lines instead of one
base: added screenshot delete action in notifications

allows deleting a screenshot from the notification
inspired from CarbonRom - initial from CM I guess

Change-Id: I67b7b9a7808ddb8c54ea4f3a45aad6d44833e1df
[1/2] base: Power Menu: Add Screenshot Option

Adding Screenshot menu and functionality to Power Menu

Change-Id: Ic09c2f4eb1a3d3de825de638fa43f4158736a320

Power Menu: Add Screenshot icons for xhdpi, hdpi, ldpi and mdpi

Change-Id: I58f39b14995ca2ea78ca9a1c92f86de3e32c7cb9

Using Settings.System instead of Settings.Global for settings constants

Change-Id: I96e24d063f139c01b15b0a639c87c10d0f690106

Corrected Code formatting Errors

Change-Id: I96e24d063f139c01b15b0a639c87c10d0f690106

Conflicts:
	core/java/android/provider/Settings.java
make screenshot always on power menu
AppOpsManager: set default mode for sms write operation to MODE_ALLOWED.

The default mode for sms write operation is set to
MODE_IGNORED, so this was not allowing Bluetooth Map application
to do any write operation of SMS. So set the default mode to
MODE_ALLOWED.

Change-Id: Ia7cdb62a5c0015f9cd31409877728efc6f0a9ae5
(cherry picked from commit 050d904fefaa937aca14c49024e70ff1dab25fba)
(cherry picked from commit b3565d3daf1fc2d05cdc564ee40bdac03cb97e49)
(cherry picked from commit db67671b8e50346ce3d193a28c027d5d6e99f455)
AppOpsService: Add MODE_ASK support to AppOps.

Add support for new mode(MODE_ASK) in AppOpsService to show a permission
dialog box to user to confirm user permission before allowing or ignoring
that operation.

All strict operations (defined in AppOpsManager) are going to be in
MODE_ASK by default.

Operations will be moved to MODE_ALLOWED or MODE_IGNORED according to
user's choice.

Change-Id: I1314125a2b8be558e422e4a9eea0ff066c21bf94

Conflicts:
	core/res/res/values/strings.xml

Conflicts:
	core/res/res/values/config.xml
AppOps: Add support for whitelist of packages.

By default AppOps gives MODE_ASK permission to all strict operations.
This can degrade user experience for pre-installed apps.

This change adds support for passing a whitelist XML file to AppOps.
Operations requested by packages listed in whitelist file will be set
to MODE_ALLOWED by default.

User can still go into settings and override permissions of these
operations.

Whitelist XML file should have following format:
Example: whitelist_appops.xml

<whitelist-pkgs>
    <pkg name="com.android.settings"/>
    <pkg name="com.android.systemui"/>
    .
    .
    .
</whitelist-pkgs>

Change-Id: I78bf5e7baa95f0e86f9856fb38bf1ca238691303
wifi: Confirm user permission before toggling wifi.

Check user permissions before enabling/disabling wifi.

Change-Id: I1ddae6e47f42b6d3fc831c2c135ece75cf9e935d
AppOps: Add Bluetooth enable control into AppOps

Check user permission before enabling bluetooth.

Change-Id: I9af341157df05104d3c5a52874538eefdbe14c4b
AppOps: Add data connect control into AppOps

Check user permission before enabling/disabling mobile data.

Change-Id: I6e1895b130788dfccbc0a8523dadf1559b698988
AppOps: Add Chinese support for AppOps dialog.

Add Chinese string for AppOps Permission dialog.

Change-Id: I8d17262ea7ae564c7927be32e91742e1e5f93ce1

Conflicts:
	core/res/res/values/symbols.xml

Conflicts:
	core/res/res/values-zh-rCN/strings.xml
AppOps: Fix mms control in AppOps.

Add support to check user permission before sending MMS.
Also seperate out SMS operations from MMS operations.

CRs-Fixed: 549192
Change-Id: Ia5b73e6b6a2c48b608a0ef1d199429c6c0e21f75
AppOps: Add Ops check for audio recording by AudioRecord API

Confirm user permission before audio recording by AudioRecord API

Change-Id: Ib534a2872d0743a8124b403a2f20465ceb467f64
AppOpsManager: set default mode for sms write operation to MODE_ALLOWED.

The default mode for sms write operation is set to
MODE_IGNORED, so this was not allowing Bluetooth Map application
to do any write operation of SMS. So set the default mode to
MODE_ALLOWED.

Change-Id: I9fe7144d73a3b8bff99d4ab1c663b69007c32b66
CRs-fixed: 556330