Quicksettings: Remove edit mode button flip animation.

Make things less fancy.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
GlobalActions: Set the initial status of airplane mode toggle

Actually, the initial status of airplane mode toggle is set to false
when the power menu dialog is initialized.
This causes an issue if you set airplane mode and then reboot.
After the reboot, the dialog displays the wrong airplane mode status,
eg. "Airplane mode is not active", and if you toggle that option, a wrong
intent is sent again to put ON the airplane mode, instead of OFF, the
toggle (that is in transition state) will be set disabled.

This commit fixes this issue.

Change-Id: Id30355c1e090355645c437086c79ab59093c27a8
Vpn: Setup routes.

Change-Id: Ia00467fbc4324ca5f6dab6e0ff2609cd5de9a423
Merge branch 'kitkat' of https://github.com/AOSPA/android_frameworks_base into kitkat
Merge remote-tracking branch 'PA-base/kitkat' into kitkat-remix
implement noise suppression for phone calls (1/2)

Change-Id: Ie67f15fd154dd0e64b6f3a007c938bf162e25e77
Merge remote-tracking branch 'base/kitkat-remix' into remix-legacy
Revert "[1/2] FB: Make menu unlock configurable"

This reverts commit f858e12fa9b9e335a8effd6297bd3f613038baef.

Conflicts:
	core/java/android/provider/Settings.java
FW: Menu & home unlock [1/2]

picked by hand from:
https://github.com/CyanogenMod/android_frameworks_base/commit/d446b052a89b0996fb5a9839b5210fda312b3c85

Change-Id: Iea248a579345eb552ed6f016b99107dc32499c58

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
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: I5b7af9b4b4f24a8c54ac0f9dcb36ace16672e2cf

Conflicts:
	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: I2422a3c651e469bc9ffeb6b101f43e145dc5de85

Conflicts:
	core/java/android/provider/Settings.java
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: Ie6d4655b074992075df0060d23c758f2af06387e

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/cr_strings.xml
	core/res/res/values/pa_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Merge remote-tracking branch 'base/kitkat-remix' into remix-legacy

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/pa_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
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: Ie6d4655b074992075df0060d23c758f2af06387e

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/cr_strings.xml
	core/res/res/values/pa_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Revert "Fix error checking in MemoryFile."

This reverts commit 21525f716ca48308cd7520083d6cb0b1b5267758.

* Fix android.os.cts.MemoryFileTest#testLength

Change-Id: Idf4358fb4fb3860bab8eb8cfc27a1a6def20688f
ActivityManager: Fix monkey tests

Change I30e38c6c27d339d55a8f9a0f4106185356a9b9a0 (adding ordered
broadcast prioritization) adds the assumption that every broadcast
generator has a full-fledged caller app, which isn't true for
monkey-created tests. Make sure the caller is a full app before
checking if it is AID_SYSTEM to avoid an NPE

Fixes com.android.cts.monkey.*

Change-Id: Ide0dd046c6c5eb10ab4acb504237b58cbbbd8cfa
ActivityManager: Fix monkey tests

Change I30e38c6c27d339d55a8f9a0f4106185356a9b9a0 (adding ordered
broadcast prioritization) adds the assumption that every broadcast
generator has a full-fledged caller app, which isn't true for
monkey-created tests. Make sure the caller is a full app before
checking if it is AID_SYSTEM to avoid an NPE

Fixes com.android.cts.monkey.*

Change-Id: Ide0dd046c6c5eb10ab4acb504237b58cbbbd8cfa
fb: fix on tablets notification drawer height on custom image background

The measurment bases always on the height of the complete view. Due that we set
an image as background (does not make a difference if we do it like now with an image
view or set the background resource for the complete view) the image is calculated into
the measured height as well which leads into the problem the the panel completly opens
to the bottom.

To prevent that measure only the real content and decide based of this value how much the
rubberbands should go into action. This will be only done on devices which set a minimum
height for the drawer which indicates that we need to measure the content more exactly.

Change-Id: I9772abc8a48d5e46b5bb6e6239c0b4826115ac6a

Patchset: 3
https://gerrit.slimroms.net/#/c/3096/
Merge remote-tracking branch 'base/kitkat-remix' into remix-legacy

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Merge remote-tracking branch 'PA/kitkat' into remix-legacy