Automatic translation import

Change-Id: Ib1cdb754cded8a9e2fbe319199e1905bd7971674
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
localgroups: fix null pointer access

Change-Id: I2a5805fc00903bc427e62a924b06e10a48d0ffe3
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
Keyguard: Save Italy

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

Change-Id: Idb905a27fc107433595e4376f88deebe1bc0c3d8
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
Revert "SystemUI: Fix missing top task in recent panel."

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

This reverts commit 0616667d980db1aa32d6dd1956d6fc2e232cf5a3.

Change-Id: I0d024a3b75204521546380c955680cb4c8c9468e
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
Core: Fix AOSP JA translations

Change-Id: Ie4068b23a3966131c42ed9611b06d5218e8ce2c5
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
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
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
SystemUI: fix nav bar arrow keys for RTL locales

Change-Id: I567636ab0beff3ad6e12c8552cf0d1447d7bc288
Signed-off-by: Roman Birg <roman@cyngn.com>
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0
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
P2P: Change supplicant scan intervel during WFD session

During WFD session supplicant scan intervel is one minute. If
there are some saved profiles, then supplicant will issue a scan
for every one minute, this is causing some ping latency in WFD.
    Hence supplicant scan intervel should change to five minutes
to improve ping latency in WFD session only.

Change-Id: If827bab6f186ebeaac90f297935bc8b987eb4d09
CRs-Fixed: 669404
WiFi: Fix data2Wifi caused not enableAllNetworks.

Use shouldAutoConnect() to judge if Wi-Fi networks have to get
enabled.
Ensure that the Wi-Fi networks are enabled in all the conditions
where the requirement for Auto Connection meet.
Thus, if there is no active Mobile Network, enable all the
Wi-Fi networks, though isDataToWifiAutoConn policy is not TRUE.

Change-Id: I082d0797347593ea6f878181908fea4bb64ca158
CRs-Fixed: 683197
WIFI: FIX wifi not auto-connect issue.

If the active network type is wifi, wifi connection type is auto,
auto connect to wifi.

This allows Wifi to auto-connect while wifi disconnected
for unexpected reason.

CRs-Fixed: 633648

Change-Id: I9f7f125cd7ffba18cbf5052e683cb31c6f71c573
Wifi: wifi not connecting, once the APN gets disabled state

APNs are disabled on select network and they are enabled on
receiving connected event.
But forgetting an APN before the connected event is received,
will result all the remaining APN to be in disabled state and
they never connect.
So, Enabling all the disabled APN on forget network will help
to connect automatically to a saved APN.

Change-Id: I6ac5e9856d6ec0b72c089b159206abd2de98e6a3
CRs-fixed: 496165