QS: Make it possible to show smaller tiles (1/2)

* Remove text and show more tiles on one row

ps18: set icon margin based on density of device
ps19: adjust the margin
ps20: implement show text under the tiles
ps21: fix typo
ps22: underp

Change-Id: Ie247aba1ae5fbdb8f5298e30fb2f04a985e73532
QS: smaller tiles: Fix the text labels on small screen devices

The text labels are broken if the density is smaller than xhdpi

Change-Id: Ie9859a9d8d539249de1584953f28ac56256ef35c
QuickSettings: fix long press on Network Mode Tile

fixes networks settings to work on single sim.

Change-Id: I6093be5386733d369d8896882f0e068e27c7b981
Revert "QS: smaller tiles: Fix the text labels on small screen devices"

This reverts commit 5f8c1dbb980912f63163a57910c0304af80e8b1c.

Change-Id: I6b2ebbcad5d6e850c956748e9deebdbd2b87dd47
Revert "QS: Make it possible to show smaller tiles (1/2)"

This reverts commit 987f578d1bde73377c42744457f060551af0fd57.

Change-Id: I78112005c7caee37c69e74ec98b55324c0cab65a
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
move def_lockscreen_targets and def_lockscreen_targets_no_telephony to frameworks/base/packages/SettingsProvider

Change-Id: I4e0adbed0450fd1c3fb6b0c021a8a313cb344e41
Keyguard: Move test app translations to the correct place

Google messed up again with translations.
This change is needed because it interferes with our translations
which happen to use same string names as the Keyguard test app.

Change-Id: I593ab5f004f09e1b33c5ba7ef3d1bb19ffc643b4
Allow icons in shared restables to be themed

Example
Google Drive's package  name: com.google.android.apps.docs
Google Drive's restable name: com.google.android.apps.docs.common

Before this patch we used resource table name to get the package info. For
app's like google drive this return a null package info and the icon would not be themed.

So instead of usnig the restable name, this patch creates a package name
in AssetManager that is set by getTopLevelResources.

Change-Id: Ic51b93f6c7ea0a32197682998c6d0aa36d774845
hide new AssetManager methods for themes

Change-Id: I9f5c6a432f9c2f3c1dd5bd9927c5e3fe3ddd1f93
SystemUI: Add missing AOSP RU translation

Change-Id: I7cf055781f624ae41123662d97d2b3dd023a1800
Automatic translation import

Conflicts:
	core/res/res/values-de/cm_strings.xml
	core/res/res/values-es-rXA/cm_caf.xml
	core/res/res/values-es-rXA/cm_strings.xml
	core/res/res/values-es/cm_strings.xml
	core/res/res/values-fr/cm_caf.xml
	core/res/res/values-fr/cm_strings.xml
	core/res/res/values-hu/cm_caf.xml
	core/res/res/values-hu/cm_strings.xml
	core/res/res/values-it/cm_strings.xml
	core/res/res/values-iw/cm_strings.xml
	core/res/res/values-lt/cm_strings.xml
	core/res/res/values-pl/cm_caf.xml
	core/res/res/values-pl/cm_strings.xml
	core/res/res/values-sv/cm_strings.xml
	core/res/res/values-tr/cm_strings.xml
	core/res/res/values-zh-rCN/cm_caf.xml
	core/res/res/values-zh-rCN/cm_strings.xml
	packages/Keyguard/res/values-af/cm_caf.xml
	packages/Keyguard/res/values-ca/cm_caf.xml
	packages/Keyguard/res/values-cs/cm_strings.xml
	packages/Keyguard/res/values-da/cm_caf.xml
	packages/Keyguard/res/values-da/cm_strings.xml
	packages/Keyguard/res/values-de/cm_caf.xml
	packages/Keyguard/res/values-es-rXA/cm_caf.xml
	packages/Keyguard/res/values-es/cm_caf.xml
	packages/Keyguard/res/values-fi/cm_caf.xml
	packages/Keyguard/res/values-fi/cm_strings.xml
	packages/Keyguard/res/values-fr/cm_caf.xml
	packages/Keyguard/res/values-hu/cm_caf.xml
	packages/Keyguard/res/values-hu/cm_strings.xml
	packages/Keyguard/res/values-it/cm_caf.xml
	packages/Keyguard/res/values-it/cm_strings.xml
	packages/Keyguard/res/values-iw/cm_caf.xml
	packages/Keyguard/res/values-ja/cm_caf.xml
	packages/Keyguard/res/values-nl/cm_caf.xml
	packages/Keyguard/res/values-pl/cm_caf.xml
	packages/Keyguard/res/values-pt-rBR/cm_caf.xml
	packages/Keyguard/res/values-pt-rPT/cm_caf.xml
	packages/Keyguard/res/values-ru/cm_caf.xml
	packages/Keyguard/res/values-ru/cm_strings.xml
	packages/Keyguard/res/values-sk/cm_caf.xml
	packages/Keyguard/res/values-sk/cm_strings.xml
	packages/Keyguard/res/values-tr/cm_caf.xml
	packages/Keyguard/res/values-zh-rCN/cm_caf.xml
	packages/Keyguard/res/values-zh-rCN/pac_strings.xml
	packages/Keyguard/res/values-zh-rTW/cm_caf.xml
	packages/Keyguard/res/values/pac_strings.xml
	packages/SystemUI/res/values-es-rXA/cm_strings.xml
	packages/SystemUI/res/values-es/cm_strings.xml
	packages/SystemUI/res/values-fr/cm_strings.xml
	packages/SystemUI/res/values-hu/cm_strings.xml
	packages/SystemUI/res/values-it/cm_strings.xml
	packages/SystemUI/res/values-ja/cm_strings.xml
	packages/SystemUI/res/values-lt/cm_strings.xml
	packages/SystemUI/res/values-pl/cm_strings.xml
	packages/SystemUI/res/values-pt-rPT/cm_strings.xml
	packages/SystemUI/res/values-zh-rCN/cm_strings.xml
	packages/WallpaperCropper/res/values-es-rXA/strings.xml
	packages/WallpaperCropper/res/values-es/strings.xml
	packages/WallpaperCropper/res/values-fr/strings.xml
	packages/WallpaperCropper/res/values-hu/strings.xml
	packages/WallpaperCropper/res/values-it/strings.xml
	packages/WallpaperCropper/res/values-pl/strings.xml
	packages/WallpaperCropper/res/values-zh-rCN/strings.xml

Change-Id: I9b8f587012906730b80d163a88bfd2b4943e0049
Fix typo causing FC on Russian language

Change-Id: I60c1858e3a8c9f3e6457c47e4029bfa8ddf59b90
WallpaperCropper: Fix crash when set .gif as wallpaper

It returns an equivalent scaled cropBounds as true
crop bounds, then it set the rounded rect by rounding
"out" the true crop rect, this make the rounded crop
rect may out range of the original bitmap, then an error
will happen.

We change to check the rounded crop rect, if it is out
the range of original bitmap, we set the original bitmap
bounds as rounded crop bounds.

CRs-Fixed: 622582

Change-Id: I215ef2a0165adaaadb05c62dee741a8ea6926144
Media process is crashing with NullPointer exception

Sometime, while creating thumnails list of media files in
compose MMS->attach file,  filepath may be null due to
synchronization issue.
Adding NULL check to avoid NUllPointer exception.

Change-Id: Id6cf5612a959b3ae15b44bc60dbbcbe40c624f09
CRs-Fixed: 636494
wallpapercropper: OOM issue while opening *.bmp image

This change manages setting of large images as
wallpapers without encountering OOM.

CRs-fixed: 619815
Change-Id: I3a32ec4b42050b146076f0adf6b6e65afd6fae4e
Speedup DropBox Service

*Needs Drobpox Intergrate Upload and Download Tests

Change-Id: Ic6f812120ee0a08ef2abe933397e3d2873e6c4a6
Increase wallpaper crashtime

Change-Id: Id640ca2b7b889e718c9f5acb71da97c5f3dbbc05
Increase Unlock Gesture Lock interval

*Decrease the time the wrong gesture is done
so that it gives a slight privacy

PS2: Decrease in Pattern too

Change-Id: I815814bdca5861edbbc6783172853b1c5063b494