Recover apps with malformed certificates.

There was a window of time in Lollipop where we persisted certificates
after they had passed through a decode/encode cycle.  The well-written
OpenSSL library was liberal when decoding (allowing slightly malformed
certs to be parsed), but then strict when encoding, giving us
different bytes for effectively the same certificate.

A related libcore change (0c990ab4a90b8a5492a67b2b728ac9a4a1ccfa1b)
now returns the original bytes verbatim, fixing both pre-Lollipop
installs and installs after that change.

This change recovers any apps that had been installed during the
window of time described above by doing a one-time check to see if
the certs are effectively equal.

Bug: 18228011
Change-Id: Ib82bd6db718d0490d7a26c9c1014b7c8457a7f2d
Add Google Location Provider

Change-Id: Ibc356a4ec2b33a9b40da4c2c62227fd215768152
Signed-off-by: mv <michvett.mv@gmail.com>
SystemUI : Port forward statusbar brightness control

Brings back the status bar brightness control from cm-10.2/cm-11

Change-Id: Icc04e7da3286e9925f8b90528c1e022b33d33e9d
Allow translucent navigation bar in landscape mode.

From CM
http://review.cyanogenmod.org/#/c/68196/

Includes:

d547e9d Fix glitch appearing when using translucent system bars in
landscape.

    Before: http://i.imgur.com/zJCjCvx.png
    After: http://i.imgur.com/v563Shz.png

c157db0 Fix translucent navigation bar layout on tablets in landscape.

    The status bar blocker view was visible and stretched over the whole
    navigation bar, even though it's not even needed on tablets, as the
    status bar never extends into the navigation bar there. Fix that by
    hiding the blocker view, but keep it in the layout in oder to not
    clutter the code with null checks.

    Also cleanup unneeded method override.

8d1f863 Only show status bar blocker view if nav bar is translucent.

    It's the background drawable of the translucent nav bar that makes
the
    blocker view necessary (as the background creates a visual 'gap'
between
    status bar and visual start of the nav bar), so if the nav bar isn't
    translucent, there's no need for the view.

Signed-off-by: Evan Anderson <evananderson@aospa.co>
Change-Id: I5388f3f8a34533624619714bacfba52f95fc6d85

//
Some Changes for "plain" AOSP (mv)
//

Conflicts:

packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java

packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java

packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Signed-off-by: mv <michvett.mv@gmail.com>

Conflicts:

packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java

packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java

packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Navigation bar custom height

Conflicts:

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

Signed-off-by: mv <michvett.mv@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	packages/SystemUI/res/layout/navigation_bar.xml

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Revert "SystemUI : Port forward statusbar brightness control"

This reverts commit 62fca5c7c70483a115cad8d69ce48d6d69e3a037.
Revert "Allow translucent navigation bar in landscape mode."

This reverts commit 77aeed41232ecc0ffc585ff1574a55b1195038c9.
[3/3] AudioEffect: Add a stereo widener effect

Change-Id: Iab2035c5601394b060e7e77e85ad85aca6e4c89f
[3/3] AudioFX: Add center frequency param to bassboost

Change-Id: I49da8e5ab24502d0de5c09b7fc9f4b8a51bead60
Audio_Effects: Add @hide to some fields and methods

Signed-off-by: mv <michvett.mv@gmail.com>
base: audiofx: harden against offload effects

Hack for now to allow using DSPManager for offload effects

-offload effect equalizer has only 5 bands but DSPManager has hardcoded 6
-offload effect bassboost doesnt support center freq

Change-Id: I9ad661221654415b2be3ed18f8cf31453d6df637
(cherry picked from commit 0191323bd51704bec2a9d81d53eb554e229814cd)
SystemUI: add quick settings pull down with one finger

Logic is currently set to use 1/3 of right hand side of the statusbar to
trigger a quick settings quick pull down, quickly.

Change-Id: I3f536496f724f07d2419a5b2db5fa8f8261609e7
Signed-off-by: Roman Birg <roman@cyngn.com>
Add clear all recents action to recents panel

Change-Id: I2243ebc83abc483e78b112900a653d7e61edc5ba
input: Forward-port support for chained input filters

 * Original code by Jens Doll for Pie controls
 * Needed now to support the gesture sensor

Change-Id: I0b86d70f9a040ba5953e1820e9818df0f10091ee
[2/2] framework/base: Add EdgeGesture service.

Based on code of PieService.

Conflicts:
	Android.mk
	core/res/res/values/config.xml
	core/res/res/values/dimens.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/SystemServer.java

Change-Id: I053737e36340a5ec6814b21eb87575f9689c7e88

Conflicts:
	core/res/res/values/symbols.xml
	services/java/com/android/server/SystemServer.java
PhoneWindowManager: add ability to use EdgeGestureService for system gestures.

Update: Default to enabled

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

Change-Id: Id4e2c0d82f771cd1c20e9196fb6db347494cca69
PhoneWindowmanager: disable panic mechanism when PolicyControl activated.

Change-Id: I5cf5f681237bbd17ec0fe2d041dd782cfb4b72f0
Add better padding to bottom of ClearAll TextView

* Also remove whitespace

Change-Id: Ie7710e14740c39f130353120338b34ac258b7cdf
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Add null check on TaskView before dismissing task

* Prevents 'Attempting to invoke virtual method ...  on a null object reference

Change-Id: I00b631e2426d2a39539027288a1f471a6aea79ec
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
    Improve scrolling cache

    Scrolling cache helps make short scrolls/flings smooth but will
    cause stutter when long flings are made. This patch disables
    scrolling cache when long flings are made.

    This patch also fixes a related bug where scrolling cache will
    not be enabled properly when transitioning from flinging to scrolling.

    Patch Set 2: Calculate threshold based on maximum velocity (Sang Tae Park)

    Credits: Pawit Pornkitprasan

Change-Id: Iad52a35120212c871ffd35df6184aeb678ee44aa