Extended QS Options (1/2)

- 3, 4 or 5 tiles per row
- Duplicate tiles quantity in landscape mode

Change-Id: I992ca27632b2d106dfa1b903fda08afe7a49b9ea

Conflicts:

	packages/SystemUI/res/values/cr_dimens.xml
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

(cherry picked from commit 96b9bb0a428d2305aa3d45e9f31ae8c6774f556a)

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsContainerView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
Extended QS Options: fix force close on theme changes

Change-Id: I1df69f417f58d413c932c2121dad5166c30a56f7

Conflicts:

	packages/SystemUI/res/values/cr_dimens.xml

(cherry picked from commit 90d5dfba402556600aeb1c94dc952875dc9d2313)
QS tiles custom background (1/2)

- Link dynamically ribbon background with QS backround

This commit is not for my own and instead of this the owner is @kufikugel
original commit (only background codes): https://github.com/SlimRoms/frameworks_base/commit/d85304fac9bde550beeeeca0dba2cd49686f20d7
Again, thanks to him.

Change-Id: Iaafdb6785bb3b6a54d9b8d070bccf4cd965b2a6f

Conflicts:

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

(cherry picked from commit 05842fbd135f869e779b6faefc40d90271fdea01)

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
MSIM: Rework statusbar, order signal clusters to match settings

Settings have SIM 1 on left, then SIM 2, etc. Do the same in the
statusbar. Also show the sim slot number in front of each signal
cluster.

Change-Id: I6ce16870af6374958b09a8a9d7d6d510f4561e13
(cherry picked from commit 3a1309428a8c3a484bc8f916478b5260796c362a)
QuickSettings: fix long press on Network Mode Tile

fixes networks settings to work on single sim.

Change-Id: I6093be5386733d369d8896882f0e068e27c7b981
(cherry picked from commit fa7393185bdc2a9815355fc0cb4c21bd4e507e8b)
SystemUI: Don't try to translate SIM slot numbers

Change-Id: I9cbf8a04e04e363e11465516da7c7f1336c5c10a
(cherry picked from commit df15ffa184fc9e19929404541aa7f72d40fe07c1)
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
(cherry picked from commit f2a6718d1c3bdaf238f2c1cc4f03b303a572b424)
Bluetooth: Add Total track number.

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

Change-Id: I5b1287f791615adcd4f920fe5c7cae0c7c7b04ea
CRs-Fixed: 627869
(cherry picked from commit f6c6376a6b520cfa8958f6ff87dc5bdcab6e6924)
[3/3] AudioFX: Add center frequency param to bassboost

Change-Id: I49da8e5ab24502d0de5c09b7fc9f4b8a51bead60
(cherry picked from commit e6b968b3bdf549ac65d70c21e937104a052dd38f)
[3/3] AudioEffect: Add a stereo widener effect

Change-Id: Iab2035c5601394b060e7e77e85ad85aca6e4c89f
(cherry picked from commit 5a1414c53f81118a35e8fb22231dcdd8ae335515)
MSimNetworkController: Set debug to false.

Change-Id: I292d6d4fd94ed4f86d6c39c230912e12c6124037
(cherry picked from commit f09aa7be3eb80b57aa88272bf97ed87a9e414439)
move def_lockscreen_targets and def_lockscreen_targets_no_telephony to frameworks/base/packages/SettingsProvider

Change-Id: I4e0adbed0450fd1c3fb6b0c021a8a313cb344e41
(cherry picked from commit 00b689389aa7e28d75322abb7610ad280385e75c)
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
(cherry picked from commit 7633cacfbccd681546d46302784cb99a184a5832)
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
(cherry picked from commit a7b4ca80c13f5645a92f5e6ad093213d974d7283)
hide new AssetManager methods for themes

Change-Id: I9f5c6a432f9c2f3c1dd5bd9927c5e3fe3ddd1f93
(cherry picked from commit eda2b998fe476e33e0a7726e18b0ca24d19cb0cf)
Automatic translation import

Change-Id: I9b8f587012906730b80d163a88bfd2b4943e0049
(cherry picked from commit 64a51939ee4099ae8f07ed248e353dfae51103cd)
core: Remove unused strings

These are from CAF but they are no longer used and generate aapt warnings.
They should have been removed in this http://review.cyanogenmod.org/60253

Change-Id: I285a3767dff0b5ccd01a2a9c9863377f11060f81
(cherry picked from commit 0e0e0091662cb2d7208593e4cb9596f1272d79d5)
MSIM: Expanded StatusBar: Show SIM slot number

Change-Id: I5c9ba33bfd564ba5301072ba1ef8c33640943710
(cherry picked from commit 1c4ad03dc2494dd15d67c483f2d5a162841dfcdd)
SystemUI: Add missing AOSP RU translation

Change-Id: I7cf055781f624ae41123662d97d2b3dd023a1800
(cherry picked from commit 84476a8d3f7a6f9c11920bfd5552133d749be94e)
Initial PT-BR translations

(cherry picked from commit f207814cf52550d49f2e88d006f8244e9502c1bf)