Settings: Add CM PlatLogo & CMCaseView (1/2)

* Based on Danesh M commit from 10.1
* Always use "K" letter for android version easter egg since
  some devices override BUILD_ID and the letter "J" appears instead of "K"
* Add some padding (left & right) to the PlatLogo if the width of the
  PlatLogo is bigger tham the actual device width
* Added CM mascot drawables

ToDo:
* Fix semi-working DessertCaseDreamSettings

Screenshot:
http://goo.gl/Q9q0kR

Change-Id: I04f7728248854623b364cf54d2e48f461e84b3de
framework/base: Add EdgeGesture service.

Based on code of PieService.

Change-Id: I053737e36340a5ec6814b21eb87575f9689c7e88

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

	modified:   Android.mk
	new file:   core/java/android/service/gesture/EdgeGestureManager.java
	new file:   core/java/android/service/gesture/IEdgeGestureActivationListener.aidl
	new file:   core/java/android/service/gesture/IEdgeGestureHostCallback.aidl
	new file:   core/java/android/service/gesture/IEdgeGestureService.aidl
	new file:   core/java/android/service/gesture/package.html
	new file:   core/java/com/android/internal/util/gesture/EdgeGesturePosition.java
	new file:   core/java/com/android/internal/util/gesture/EdgeServiceConstants.java
	modified:   core/res/res/values/config.xml
	modified:   core/res/res/values/dimens.xml
	modified:   core/res/res/values/symbols.xml
	modified:   services/java/com/android/server/SystemServer.java
	new file:   services/java/com/android/server/gesture/EdgeGestureInputFilter.java
	new file:   services/java/com/android/server/gesture/EdgeGestureService.java
	new file:   services/java/com/android/server/gesture/EdgeGestureTracker.java
PhoneWindowManager: add ability to use EdgeGestureService for system gestures.

Change-Id: Id4e2c0d82f771cd1c20e9196fb6db347494cca69

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

	modified:   core/java/android/provider/Settings.java
	modified:   core/java/com/android/internal/util/gesture/EdgeServiceConstants.java
	modified:   policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	modified:   services/java/com/android/server/gesture/EdgeGestureService.java
	modified:   services/java/com/android/server/gesture/EdgeGestureTracker.java
Keyguard: smooth background change.

Change-Id: Ia0e4d0000db72b5cdb6fede03791805e34fa311d
Fix to NullPointerException when activity is relaunched

When ChooseTypeAndAccountActivity is relaunched and resumed
by ActivityManager a call is made to onActivityResult without
first triggering onResume. This leads to mAccounts object
still being null.

Fixed by properly setting mAccounts object if it is null prior
to use after function onCreate has been called.

Change-Id: Ife7e1e052c473970d923fa43ee6189eb62a1113b
onAccountsUpdated shouldn't be called back after listener unregistered

There is a problem of AccountManager that onAccountsUpdated() is
called back even after the OnAccountsUpdatedListener is unregistered.
It may cause application crash.

For example, when rotating a tablet 180 degree with Settings apk
running, com.android.settings.Settings is re-launched 2 times
successively. (Destroy->Create->Destroy->Create)
It repeats adding&removing OnAccountUpdatedListener.

When dialog was being opened in the following cases,
NullPointerException at BackStackRecord.getBreadCrumbTitle()
was happened on 10 inch tablet which has 2 panes on Settings.
* Settings > Language&input > Language
* Settings > Language & input > Text-to-speech output > Speech rate
* Settings > Wi-Fi > Menu > Advanced > Keep Wi-Fi on during sleep
* Settings > Wi-Fi > Menu > Wi-Fi Direct > Rename device

This fix prevents the undesirable callback.

Change-Id: I081f69c90539cca821cf686b4587495135f375e4
ProcessList: use different polling interval when screen off

We are using the same time interval for both screen off and screen on.
For process on top: ActivityManager.PROCESS_STATE_TOP, we will poll PSS
information every 120 sec.
During polling PSS, we are grep /proc/%d/smaps which is a 10k lines file.
This cost quite a lot of CPU resource. But when screen off, we don't need to update
TOP process PSS so frequently since we are not operating it. Lower polling
circle to every 15min to reduce power.

Change-Id: Ia4cd26290d44d066f034d5270ce5523650a3c493
Allow changing screen-off animation (1/2)

* Allow enabling/disabling screen-off animation
* Allow selection between fade & crt effects if the device allows it

Change-Id: If6bb9afd7a753e1df013e88f7f39cea94e8fe565
Add double tap sleep feature to secure lockscreens
In its current state double tap works on the status bar on unsecure
lockscreens this adds the feature to pin, password, and pattern
lockscreens.

pin and password: double tap the text entry view.

pattern: double tap anywhere on the pattern view.

Change-Id: I70eeae4acaa61b44feab661082bcfdbac7b9dfc3
Signed-off-by: baked <travp624@gmail.com>
frameworks/base: Day and week on data usage (1/2)

Adds the ability to set day and week on when the data usage
graph resets, instead of just month.

Change-Id: I61b0aa3bdea015793928e4af2b8d8a79147a123e
Performance: Add low RAM option (2/2)

* Allow users to choose between more free RAM available vs full KitKat UI features

Change-Id: Ia7f4d5089f400ac7edec0ea3e3beb22c0ad6b8db
Show panels on lockscreen in expanded desktop mode.

Change-Id: Iaa2d712130707169c7a08156f8ea5afc247fc4cf
Revert "Remove 'Allow custom buttons' checkbox (1/2)" - fix for compiling problems

This reverts commit 97e968c8ec439ba195e5d462ee64f813dcb75e4b.

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

	modified:   core/java/android/provider/Settings.java
	modified:   policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Allow using Classic WebView

Squashed commit of the following:

commit 1e64fc6008a5d00ef6a72b2a6f443019b261996a
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Tue Nov 12 18:53:53 2013 +0530

    WebViewFactory: Re-add support for switching WebView.

    Change-Id: I6a4a62d64014a49e7bdf1bff3581aab79b680f15

commit 069b610aa0446eb4181b73484ce9619221c7d36a
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Tue Nov 12 18:41:43 2013 +0530

    Revert "Delete the old WebView."

    This reverts commit 94c0057d67c2e0a4b88a4f735388639210260d0e.

commit 4f6f46a12f5c63100cbe7a582aff07a0529f1483
Author: Chirayu Desai <cdesai@cyanogenmod.org>
Date:   Tue Nov 12 18:41:39 2013 +0530

    Revert "Restore 4 classes that were accidentally deleted"

    This reverts commit 328dd7d7059c70b6776c6e29f9ea315f2f8aed3f.

Change-Id: Iba847a04b515cada0eb32cc86026b60469108d80
Merge pull request #1 from CyanogenMod/cm-11.0

Cm 11.0
Merge pull request #2 from CyanogenMod/cm-11.0

Cm 11.0
Merge pull request #3 from CyanogenMod/cm-11.0

Cm 11.0
Merge pull request #4 from CyanogenMod/cm-11.0

Cm 11.0
Merge pull request #5 from CyanogenMod/cm-11.0

Cm 11.0
Merge pull request #6 from CyanogenMod/cm-11.0

Cm 11.0