Take date into account to not overflow icons in stock or center clock
- This commit complements this other: https://github.com/cristianomatos/android_frameworks_base/commit/0f1165e0149850107314b9781acf2c2b9994f8e7

Change-Id: I469aedf2abb811edbe180a397480829f33ea3245
Add ContentLoadingProgressBar support

ContentLoadingProgressBar allows developers to follow the policy for loading content
laid out in the style guide. The progress view will only show if MIN_DELAY
passes before the view is hidden. The progress view, if shown, will always
show for at least MIN_SHOW_TIME ms.

https://github.com/android/platform_frameworks_support/commit/befff92741b1f0629d9a9389a3889cca56d914a2

thanks @castorflex

Signed-off-by: hany <hany.alsamman@gmail.com>
Add native java screen recorder [1/2] (WIP)

This is based on the screenrecorder binary found in frameworks/av.
It has been converted to a native library with the necessary jni
hooks for interfacing withit via a ScreenRecorder java class.

Volume up + power chord is used to start and stop recording by
binding to the service found in the ScreenRecorder app:
https://github.com/ChameleonOS/android_packages_apps_ScreenRecorder

PS1:
Clean up white space.

PS2:
Fix naming convention for state field.

PS3:
Rebase

PS4:
Post mScreenRecordTimeout with 1000 millisecond delay instead
of 10000.

PS5:
Send record screen broadcast instead of using the service
directly.

PS6:
SCREEN_RECORDER_FRAMERATE should be SCREEN_RECORDER_BITRATE

Carbon PS2:
remove vendor_strings, merge cm_strings.xml.
Carbon PS3:
Fixup, duplicate removal
Carbon PS4:
More fixup, missing variables
Carbon PS5:
Gah, more missing things...
Carbon PS6:
Let's try this over...
Carbon PS7:
I spose another change required this update
Carbon PS8:
Fix derp in Settings.java
Carbon PS9:
Fixup, merge conflicts

Change-Id: Id868e1d7ee5add97c48f8e639a5d5c84ad8c0c61

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/cr_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Screen recorder: add ability to record audio from mic [1/2]

Change-Id: I09eb206398327cd7afc7049f1ed319dcec0cda03

Conflicts:
	core/java/android/provider/Settings.java
Screend Recorder Global menu
Add global action for screen recording. [1/2]

PS4:
Send record screen broadcast instead of using the service
directly.

Carbon PS2:
Fixup for merge conflict
Carbon PS3:
Derp, missed changes in strings/symbols
Carbon PS4:
Don't need to add immersive mode anything...

Change-Id: I15890bfd340f3f26b80159f04fdc3bafefd9679b

Conflicts:
	core/res/res/values/cr_strings.xml
	core/res/res/values/cr_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Fix
Revert "Add global action for screen recording. [1/2]"

This reverts commit e458a4f897508a88836f2dc9223a38b7a7e936a1.

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/cr_strings.xml
	core/res/res/values/cr_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java