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