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
Set ScreenshotSurface secure if any secure content is shown.

The screenrecord command can record secure content during rotation.
This is because the ScreenshotSurface surface for rotation animation
is not set secure even though its screenshot contains secure content.

Change-Id: I5a70be71ddfc26de4230e7d4fe547210c2154210
AndroidRuntime: reduce logcat debug spam

this ought to prevent log messages similar to:
D/AndroidRuntime(12391):
D/AndroidRuntime(12391): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(12391): CheckJNI is OFF

Change-Id: Ie6948daf552d138c97ade941bedb8714f03145a3
Increased the amount of document visible in Recent Documents

* Visible upto 100 recent documents
Change-Id: I4c1f921f85b7afa995db690c9d829a8d961b0437
SystemUI: Alpha tuning in recents

* Equalized the Alpha's in Constants
* Reduced Fade in and Fade outs at 1/5

Change-Id: I834b50fe5ab4a4cbd527f36346f61bf2d27203e2
Increased Compression Quality for Wallpaper Cropper

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

Change-Id: I2b2967e93294558540e2eb30a42f701a6bf72b73

Conflicts:
	core/java/android/app/DownloadManager.java
	core/java/android/provider/Downloads.java
Add new drawables for download pause/resume

Change-Id: I9fb3b725fcac5f8fbc2f4316aca9188c5fda0814

Conflicts:
	core/res/res/values/symbols.xml
CM11 Themes: Put overlays in their own group.

Overlays will now be added to their own group and the
target group will contain a pointer to the overlay
package to be used in getResource and getBagLocked.

Change-Id: Icc6c6eb791f04966e68dbc099eae8e7129546414
Long press recents to switch to last app

Change-Id: I8c52a7b40d4229d523bccc1c9246673b82f5b48b

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

fix recents long press commit

Change-Id: I9feb5c3c84d391a6959ecb6bc682f07e83c33669
Bluetooth: pause music player on A2dp service disconnect

When A2dp service disconnects as part of SSR, it marks a2dp state
as unavailable in Audio module but does not pause music player, as
a result when bluedroid stack restarts as part of sub system restart,
media player does not pause and music continues to play on device
speaker.
This change helps to pause the media player, in addition to marking
a2dp as unavailable, so that media player pauses when a2dp service
forcibly disconnects as part of sub system restart with A2dp in
connected state.

CRs-Fixed: 590462
Change-Id: I05ee5bcc808eb438156b64181d54e8ccabe1e186
Bluetooth: Add Total track number.

Add support to add total number of tracks in
Meta-data

Change-Id: I5b1287f791615adcd4f920fe5c7cae0c7c7b04ea
CRs-Fixed: 627869
SpellChecker: bound check for string end

Check whether spell check result is out of end of string
Use strict one to avoid IndexOutOfBoundsException.

Change-Id: I6acac77e1e9750258ed364817a8615a6f56bebe4
CM11 Themes: Remove type matching restriction

Change-Id: I5a8ac8ff1794350ff9dc03b378c704bfb97d0a9e
CM11 Themes: Allow forcing idmap (re)creation.

Change-Id: I9f5938e9b1052da83b7f2cd7b1ff6f1ed270db6b
CM11 Themes: Use theme name for audible name.

Change-Id: Ib841cb80925b0f3f5ac770e00df04515849e9360
Style previews [1/3]

Change-Id: Ifed0ef7829eb61492a39395e8140b99f01c5e6a3
Replaced custom strings with Android defaults

PS2: also replaced menu_cut/copy/paste with strings from android.R.string

Change-Id: I7695b283faa66c6997fad372b31de2c678d222d0

Conflicts:
	packages/DocumentsUI/res/values-de/custom_strings.xml
	packages/DocumentsUI/res/values-es/custom_strings.xml
	packages/DocumentsUI/res/values-fr/custom_strings.xml
	packages/DocumentsUI/res/values-it/custom_strings.xml
Frameworks: SlimRecents pass gesture detector to the cardslistview

see this commit https://gerrit.slimroms.net/6469

this fixes broken gesture detector

Change-Id: Ifd28e7e570808ade0494c7015c50c01c344d8741
Frameworks: add 1dp more bottom padding

Change-Id: I8374994a67aadc7ea9b84cd22273c29b8b9ca88a

Conflicts:
	packages/SystemUI/res/values/dimens.xml