QuickSettings: Use plurals for Bluetooth tile

* Some languages need this

Change-Id: I953aee702fcc381dd4bfb3a18fa183341a138ba3
framework: Close system windows when performing 'switch to last app' action

This fixes a bug where performing the action while on the recent apps screen
would cause the next attempt to open recent apps require two presses of the
recent apps button (the first press would toggle it closed, rather than open).

It also prevents the switch from being obscured by the notifications shade.

Change-Id: I2220149ce604a25501121abc29e5d88f8b1cbf4f
core: Add back mistakenly removed string

Change-Id: Ia56f05ebf87f16b9304fe8fa0664874fcc03697c
Automatic translation import

Change-Id: Ie45913a911cf7877a128c3138c347ef31009c91e
Core: Improve AOSP JA translation

They translated "hotspot" as "アクセスポイント"(access point) but it just gets us confused.
"テザリング"(Tethering) is preferred than "アクセスポイント"(access point) in Japanese translation.
FYI, most vendors fixed these strings e.g. Samsung and Sony.

Change-Id: Ic13ec6d33f411b026d90312600d0150bc3a759b0
systemui: Unbreak the planet

 * Not sure who to blame, but it's probably themes... :)

Change-Id: I0c534354a699f756d809aff10843ebea21f3f369
Code cleanup.

Enforce 100 char line length, and remove checks for always-true
conditions.

Change-Id: Ie24d12919859e8269f77fabf93b3d745ece94479
frameworks/base: Fix delay in sending AUDIO_BECOMING_NOISY intent

AUDIO_BECOMING_NOISY intent is sent as background intent which causes
delay in receiving pause event. This delay caused audio leak. By
marking the event as FLAG_RECEIVER_FOREGROUND, this intent is
received sooner by Application.

Change-Id: Ib978cf8322dcddbc01f59824f95fa7800f9c35af
CRs-Fixed: 652549
Quicksettings: Change GPS modes swiching

Change-Id: Ifb5e55fdc23778fcabf1c9efb2f181489ab4e34a
Themes: Let ThemeService handle all theme processing [1/3]

Only themes that are applied will be processed inside of the
PackageManagerService, all others will be sent off to the
ThemeService.

Change-Id: I5f2ec628e1d22a05accc6727efb0c1387455f82f
Revert "Quicksettings: Change GPS modes switching"

This reverts commit 8789e08ae568ef2670a7b31d28de8df6f8a8a25f.

Change-Id: I8ee594b7e2368b35cba86d33c453c25f9445ed2f
Automatic translation import

Change-Id: Ib1cdb754cded8a9e2fbe319199e1905bd7971674
localgroups: fix null pointer access

Change-Id: I2a5805fc00903bc427e62a924b06e10a48d0ffe3
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Keyguard: Save Italy

Being low on battery is bad enough, don't make those Italians
suffer from additional UI crashes.

Change-Id: Idb905a27fc107433595e4376f88deebe1bc0c3d8
Revert "SystemUI: Fix missing top task in recent panel."

See http://review.cyanogenmod.org/#/c/74397/

This reverts commit 0616667d980db1aa32d6dd1956d6fc2e232cf5a3.

Change-Id: I0d024a3b75204521546380c955680cb4c8c9468e
Core: Fix AOSP JA translations

Change-Id: Ie4068b23a3966131c42ed9611b06d5218e8ce2c5
wifi: show devices behind a firewall that are connected to the  WiFi hotspot

* Clients that are behind a firewall, in particular Windows-PCs tend
to not respond to the request invoked by the isReached(val)-method.
Executing a ping instead and evaluating the outcome enables us to
bypass the firewall.

Change-Id: If857545c7a4d5fbc9d2dc919096a9c84e64d6877
SystemUI: fix nav bar arrow keys for RTL locales

Change-Id: I567636ab0beff3ad6e12c8552cf0d1447d7bc288
Signed-off-by: Roman Birg <roman@cyngn.com>
P2P:initiate provisioning on persistant group removed.

The initiator, on a response from the peer with unknown group during
the persistent reinvocation has to transit to the provisioning state
to handle all the config methods (PIN and PBC).
This commit ensures the same.

Change-Id: Iafd8e14681628c002f613172ad36a1da7efb5369
CRs-fixed: 653078
Wifi: Add a feature to control wifi auto connect.

If wifi connection type and gsm to wifi connection type is auto connect,
auto connect wifi.
CRs-Fixed: 507965

Change-Id: Icbfc58c93f13e97a2b6c6526d154153031e4b77c