Fix frontOfTask assignment.

If all activities of a given stack were finishing, no activity was
marked as front-of-task. This confused ActivityManager, so make sure
there's always exactly one activity marked as front-of-task.

Change-Id: I087cbe10280d4a60aa5ccfaefe24a223523fb3f2
fb: less notifications sound (1/2)

add back the 4.3 feature like it was.
User can setup how often notification sound
for an app comes trough so that
it does not annoy to much

Change-Id: I3d7b2ef2e2ff99b7c23880626e0268ec4c5d8543

Conflicts:
	core/java/android/provider/Settings.java
	services/java/com/android/server/NotificationManagerService.java
Customizable Powermenu (1/2)
- All credits to PSX
Allow disabling the IME selector notification (1/2)

Credit CM

Signed-off-by: Ricky Salinas <rsalinas1@mail.usf.edu>

Conflicts:
	core/java/android/provider/Settings.java
Lockscreen shortcut: WhatsApp icons (1/2)
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: I2097afad8a090d2557a1e545cf978c87ca77d6c1
Conflicts:
	core/java/android/provider/Settings.java
Statusbar clock and date customizations (1/2)

Some things changed on kitkat + our old code needed in general a bit
rework. All done with this patchset.

This commit add support for:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

Change-Id: I73d854ed5cfb57fa19e4b5554bb10cb2e1ce9b65

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Removed clock color settings

It's useless since i'm not going to add other color settings

Conflicts:
	core/java/android/provider/Settings.java
Because 90% isnt full
Volumes in Settings/Sound is slow to start

There is a delay after pressing volume menu item
there is a delay until the Volume popup is shown.

The reason for this is that the initialization of
the different seekbars is slow and run in the main
thread. More specifically the call to get the
ringtone from the RingtoneManager is causing this
delay.

Moving the call to the ringtone manager to the
handler thread used to play ringtones to make
the launch of the volume dialog a bit snappier.

Change-Id: I76da0226592468debd542d67164b37b2b59897c7
screenshot: quick delete action

Add option to delete screenshot from notification

Change-Id: I0f153bc3c72b902163b4ae75e220ddb09e3fcb11

Conflicts:
	packages/SystemUI/res/values/cm_strings.xml

Conflicts:
	packages/SystemUI/res/values/ras_strings.xml

Conflicts:
	packages/SystemUI/res/values/boost_strings.xml
clear all recents button

Clear all recents button cleanUp
reference https://github.com/CyanogenMod/android_frameworks_base/commit/6471aee7bec8e8d2eb179db9605d3b6a12ac48f6

Add touch feedback to the clear all recents button
[1/7] Base: Blacklist support (squash)

telephony: https://gerrit.omnirom.org/#/c/6347/
InCallUI: https://gerrit.omnirom.org/#/c/5669/
Mms: https://gerrit.omnirom.org/#/c/5671/
Settings: https://gerrit.omnirom.org/#/c/5011/
TelephonyProvider: https://gerrit.omnirom.org/#/c/5012/
Telephony: https://gerrit.omnirom.org/#/c/5010/

Change-Id: Ic5a59be11f76b4a9eba075d9c3525086b3ee389e

fix

fix
Remove Blue Holo (squash)

Follow on seekbars new UI guideline for 4.4

google forgot some things.....seekbar is one example

Change-Id: I996062a978322c93694e360dff1e4f42dc589062

fb: correct seeker fb style for 4.4

based on this commit https://github.com/SlimRoms/frameworks_base/commit/a845169c128c19825a69a0ebdf2e4d366fdd67ad

Change-Id: I82252d0cb30cd4af47d624a37ccc904cb7e9c1e6

fb: global menu follow new 4.4 UI

Change-Id: I02b5331e223319517c5536522cd6bc419745ce3f

Update missing google UI changes for 4.4

Change-Id: I604d29293b04bbcf279efd4d5bf2970ff8ee0c75

fb: changed all open forgoten UI from google into new UI

Change-Id: Ibc32ad8e73617dd74c8cd313dc2e071962eec966

fb: change alert dialog to new 4.4 UI guidelines and add

Change-Id: I0fb7cd06d19a8eef66551e9f0281d60f33b2efe6

fix remaining blue dialog dividers

Change-Id: I0b4d2d0706f3393933e40d9c70b62aa3c9b68ed5

fix search textfield

Change-Id: I1255434e1e42973afd8d9907459dcd8795e96c4b

fix number picker blue line and highlight

Change-Id: I473c855a0e2cd068e62cd2ec4b807c04215b1c81
Add support for NETWORK_TYPE_GSM

Add support for NETWORK_TYPE_GSM in TelephonyManager and
corresponding mapping in ServicState.java so that when
application queries for getVoiceNetworkType() and currently
camped rat is GSM, they get network mode as GSM instead
of network mode unknown.

Change-Id: Ibe4672b04a5044710d63499c4cf2b6ebe91444bf
Signed-off-by: houst0nn <houstonn@gmail.com>
Speed up Statusbar - Idea from http://goo.gl/3ASfz

Change-Id: I4c175eb7c139c632b7aa81b29ebdd2251069fac3
Signed-off-by: pcarenza <pcarenza@gmail.com>

Conflicts:
	packages/SystemUI/res/values/dimens.xml
Remove unused JNITest class

JNITest class is no longer actively used. This patch
removes the class (java and jni) files.

JNI interfaces and calls are extensively tested in
the art unit tests (art/tests) and in cts (see
CtsJniTestCases).

Change-Id: I62f7c72deb5d206fa3f545ae39a9cb9011110d0a
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
remove unnecessary switchUser call

If userId doesn't change, no need to do switchuser.or it will
introduce some tweak for gps modules in quick off/on because
they need cost time in off/on.

Change-Id: Ie5e408dc8be69c8a63a18bcb2cfe478cef4d70e6
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
PowerManagerService: use disablesuspend property to disable suspend mode

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Keyguard: We need to ensure that keyguard is showing as well to set the token

Google fix

https://github.com/SlimRoms/frameworks_base/commit/021806ec33f5f59567f3bb3af135b2a1d88c0951

fixes what it is meant to fix.

But still we need to ensure if the keyguard eg is disabled by 3rd party
apps or the keyguard is not showing due of other reasons to inform PhoneWindowManager over the token
not to wait to draw for the Keyguard and go ahead.

Fix:
Just check for isShowing in addition to the check if KeyGuard is disabled

Change-Id: I5f017a6ccebf12dc717fb6d44802a1c1fee15abc
remove unneeded import statements.

Internal master is out of sync with AOSP. Resync.

Change-Id: Ia3105a4b6eb835f719471a26ae4cb33962c5b19e