[SQUASHED] Lockscreen Notifications (1/2)

Following commits inside
AOSPAL/android_frameworks_base@3487cda
AOSPAL/android_frameworks_base@5873e99
AOSPAL/android_frameworks_base@7350e91
AOSPAL/android_frameworks_base@8d99eed
AOSPAL/android_frameworks_base@181110c
AOSPAL/android_frameworks_base@ce14cdd
AOSPAL/android_frameworks_base@3914e8d
AOSPAL/android_frameworks_base@32ec14f
AOSPAL/android_frameworks_base@6d2f41d
AOSPAL/android_frameworks_base@b758e16
AOSPAL/android_frameworks_base@6ba6fdb
AOSPAL/android_frameworks_base@b20bdc9
AOSPAL/android_frameworks_base@25f75c6
AOSPAL/android_frameworks_base@a74309e
AOSPAL/android_frameworks_base@5b6e143
AOSPAL/android_frameworks_base@e9dcb99
AOSPAL/android_frameworks_base@4caa49c
AOSPAL/android_frameworks_base@0f2377c
AOSPAL/android_frameworks_base@7e75b49
AOSPAL/android_frameworks_base@bc6c83f Thanks @Der-Schubi
AOSPAL/android_frameworks_base@8fd230d
AOSPAL/android_frameworks_base@e05eba6
AOSPAL/android_frameworks_base@082774a (Partialy ported - Removed codes of clear notifications navbar button)
AOSPAL/android_frameworks_base@a6f92e5
AOSPAL/android_frameworks_base@c3d76f5
AOSPAL/android_frameworks_base@5b1d884
AOSPAL/android_frameworks_base@0c0b133
AOSPAL/android_frameworks_base@73a6b7d

Change-Id: Ib87fe4d11941f7879f4706ad27ff3408311d2c03
Lockscreen notifications: Add "show all notifications" navbar button

Change-Id: I0cd5b13e5644de36d24d4d693838bd7080f55412

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
Lockscreen Notifications: dismiss all button, improve animations, cleanup

Change-Id: I77665e37d823c619680312b73d5ebb1e6e437ffd

Conflicts:
	core/java/com/android/internal/statusbar/IStatusBarService.aidl
Lockscreen Notifications: some fixes

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

Change-Id: I9388bcb899080cc023c146a083e554dcf8e57858
Lockscreen Notifications: fix show/hide of show all button

Change-Id: I3f17e91a619467426180813f8fe81d6f4514ab5b
Keyguard: LN: fix and harden against null pointer exceptions

Change-Id: Iff66791bb35b911e837b0a1747a72effdce507e3

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
SlimRecents: fix sometimes missing first task

apply the fix for aosp recents

https://github.com/SlimRoms/frameworks_base/commit/760413134a5efe60c1d4473322e467152d71c80b

as well to slimrecents

Change-Id: Ibce0707cf516034675451d0440608bafe097c92d
Keyguard: Fix "Show more than a "." when input wrong PIN code" issue

The format string msim_kg_sim_pin_msg_format has one ".", while the
parameter string msg also has one ".".

We will delete "." of the the format string msim_kg_sim_pin_msg_format.

CRs-Fixed: 640322

Change-Id: Ifcef1887db27a3dd47c4e679b5135cf83cf10fe8
decouple SW FLP and HW FLP overlay flags

currently there is only overlay flag shared by SW FLP and HW FLP. This
change allows having different overlay setting for sw / hw FLPs.

Change-Id: I643fa70380e7568ae851d23e87917a5b4b599fe8
CRs-Fixed: 622338
Combo Provider: Get the package name from resource

Get the package name for combo provider from resouce
instead of hardcoding the name. Also, geofence services
provider is renamed to differentiate from the hal
geofence provider

CRs-fixed: 608477

Change-Id: I84739e440d688d6e1784aa5ab4e2074eaa740bab
Combo Provider: Specific location screening

Only screen network locations if Combo provider is
the connected network location provider.

CRs-fixed: 608477

Change-Id: I513bddae9cff493dd9aac4460168864548e4bfb4
Fix for crash in LocationManagerService

Resolved issue where MockProvider was being cast to
LocationProviderProxy and would cause a fatal exception.

Change-Id: I7c8c83961dd03d59292e773b01995ed6b3ac04c7
CRs-fixed: 619882
PT-BR core translations

Change-Id: I5489f1f49df11f94851d116857e2b5ed99868209
PT-BR SysUI translations

Change-Id: Ib7ec95fb55724ddff710b88c79328801c6d5f815
PT-BR keyguard translations

Change-Id: I107f4fc3fc997245ef66149334a27c03f586617d
QS smaller tiles: set icon margin based on density of device

Change-Id: I0779f5101837ebfa6abcfda2bf9ced9d32433be9
QS smaller tile: adjust the margin

Change-Id: I1bcccbc8b9414cb354304f95ba3e86f40dea03d2
[1/2] Base: DownloadManager: add support pause/resume/stop notifications

Add pause, resume and stop functions to make user can pause, resume and stop downloads by manual in downloads application.

Change-Id: I82ffff5a539448faab8933e2b47591199bf24cb9
Fix very long app_name crash.

http://ibrahimbalic.com/2014/android-os-memory-corruption-bug/ found an stack overflow bug.
The very long app_name make libandroid_runtime allocate a very large array on stack, the stack may overflow to other data areas in this situation.
This patch allocate large array on heap instead of on stack to avoid segment fault when doing memcpy.

Change-Id: I99999569b852d43a9c7a6eb1fa80e9f1a1f4e2b2
Fix setSurfaceTexture to handle surface caching

Changed the TextureView.setSurfaceTexture to apply the
existing listener to the surface provided in the method.
This is done to allow surface caching to work.
Whenever a new SurfaceTexture gets created, its listener is
created as well, so when the setSurfaceTexture is called
we should be attaching the listener to the new surface.

Change-Id: I4c1a704c587e977ab7a6b1fe3a7d3e0d20d00218
CRs-Fixed: 639136