SystemUI: Screenshot Toggle

onClick: Screenshot now(collpase status bar)
onLongClick: Starts 'timer' and screenshot after timer expires

PS2: Remove rebootmenu calls from PWM and add 500ms delay to allow statusbar to
         fully collapse

ToDo:
* Allow user set time in RC
* Allow inverting onClick and onLongClick

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Change-Id: I2cebb23e530a92901319b7171c3934125568c3ab

Conflicts:
	core/java/android/content/Intent.java
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/res/values/strings_toggles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/ToggleManager.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
SystemUI: Reboot Toggle

onClick: 3-way Reboot Menu
onLongClick: Screen off then reboot

ToDo: Allow invert of onClick<->onLongClick

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Change-Id: Ibc601112ede88490c1dd6e5d01122e5037244150

Conflicts:
	packages/SystemUI/res/values/strings_toggles.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Navring: fix NPE if app uninstalled and in Navring

Change-Id: Iec7f79f9d7c236d2afe3788dc35f890b2e3c4f84
Fix leak with pie control toggle

Change-Id: Ief23e03458fcd5cd43de01f431296c8be624c344
PWM: disable HW overlays for PIE

SurfaceFlinger wont wake up the GPU in SysUI's fullscreen state,
probably because it does not occupy any tangible region. That sets poor
PIE into software rendering, which has bad effects on transparency and
mdp compositioning. Disabling HW overlays as long as PIE is active seems
like a good alternative for now.

Change-Id: Ie7ed720edc5bbdd0cfb79c34a22996cf15fcd79b

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
FIX Null Pointer Exception on dialog cancel

Null Pointer Exception occurs because mWebViewCore instance
is made to null while calling destroyJava(). When
1.webview hosting activity goest to background, without calling webview onPause().
2. If app is launched again (having launchmode:singletask ) and another activity (not  webview hosting) comes on top top.
3. It destorys the previous activity holding webview which internally tries to cancel the dialog, but webviewcore instance is null.
Null pointer exception is raised.

Change-Id: Idbcd30d0b0d4a35819444bbaa5c73cced8bb35a3
Signed-off-by: Amit Kumar <amitkecian@gmail.com>
PIE: Restart launcher

Change-Id: I2660e5fed1d6d779f98dba23230b487f72c2ecf6

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Revert "Low battery warning policy (1/2)"

This reverts commit 545b754c1fb5c45aefb4a98867eafc5e7d9ad6cd.

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I412c39b96922c1d53415b3aee5201fe0f042d1f7
Frameworks: Advanced low battery indicator options (1/2)

Based on a idea I saw on Liquid and from CR3C0 (thanks guys) which we
modified to an extended version

This commit introduces following new SlimBean modes to indicate low battery

     * 0 = show dialog + play sound (default)
     * 1 = fire notification + play sound
     * 2 = show dialog only
     * 3 = fire notification only
     * 4 = play sound only
     * 5 = none

Due that notification is a unique SlimBean feature some words on it. Notification
behaviour is the same as Pop-up. User can dismiss it manually or it is
dismissed automatically if charger is connected, click on notification opens
PowerUsageSummary. Also you get a status bar ticker message about the notification
and notification is always on first place of list. And last if vibration is enabled
notification vibrates.

Patchsets:
 - codestyle corrections

Patchst
 - add PowerUsageSummary intent

cheers

Change-Id: I84476626b0ff5424454a1132ea4ef77a696070c1
jni: remove obsolete flag from makefile

Change-Id: Ia7e67694a736745333e9d36396b8cb6194fd26ec
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Audio continue to played even if paused manually

Currently, audio will resume playing after a phone call
or notification even if the user had manually paused playback.

This patch addresses that by introducing a new player state
to distinguish the user pausing playback and the browser
losing audio focus for some other reason. Audio will only
 resume if the browser temporarily lost audio focus and
not when the user has manually paused playback.

Change-Id: I9e8beaedb0fcc5afe920068297ed9c387eab2ac8
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
add tabUI to HW overlays

Change-Id: Ib352cb05c0dca1155b3d1c8fe3da4b16de898e44
PWM: check for expanded desktop on boot

Change-Id: I8f3883019b60138d8937bd85adc9231b0e18c595
Fixed the problem ime invisible status despite being the icon that appears in the statusbar.

[Reproduce the Path]
Precondition : Set "Auto-rotate screen" option to ENABLE

Calendar App lunch -> Rotate device to "Landscape" -> Touch "+" button(Add new Schedule)
-> Check the ime icons of the Status bar

Ime invisible status despite being the icon that appears in the statusbar.
Displays an icon in the status bar when the ime was actually visible state is modified to check.

Change-Id: If103ab909c5bfa6391eb51a696fb8b8f0b18808c
MMS Breath (1/2)

This will give your SMS notifications a breathing effect in the statusbar instead of being a static icon.

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I229932fad5db6b4f7a1eb1c07c0d94b4a550070f
GlobalActions: Add null checks to onServiceStateChanged

can potentially cause a fatal NPE.

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Change-Id: I7943c2db663157296cf69e524a15fd71bf017496
Navring: Fix landscape for phones and 4+ targets

Change-Id: Id8004342007d298f1cb1815ab073ea6129782ad4
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>

Conflicts:
	packages/SystemUI/res/values-land/dimens.xml
NFC toggle fix

Remove logs

Change-Id: I94b9f058c6a2004fbebcec4d864abc6627a26eb7
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>
Revert "Possible leak in android_emoji_EmojiFactory_newInstance"

This reverts commit d8d765327330c6baffe0c60a377514a2fc6da77d.
Revert "Fix aliasing and C++11 issues."

This reverts commit 8c4bd7295488bdd7a2efd91756c49aaac98d3f6d.