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."

This reverts commit a349d1e96acae35c200153c2b9be39aa0fa8c966.
Bypass the lockscreen when the hardware keyboard is slid out and security mode is 'none'

Change-Id: Ie40bb33ea46b7e68bad9916a0073cdf07a42ff93
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
Hide power menu from secure lockscreen (1/2)

- Use the same logic in our NavRing targets since crDroid allow power menu option through it

Special thanks to @cmorlok in this commit: https://github.com/omnirom/android_frameworks_base/commit/8f955b51a5f53d6b67cb1ec4fc34f07042766e0a and @Mahdi-Rom in this commit: https://github.com/Mahdi-Rom/android_frameworks_base/commit/c50cd9e53abbf571d090842fdb5b955e2c40a640

Change-Id: I9966f8282b4761a3ab154f63c8582a83a31dc5da

Conflicts:
	core/java/android/provider/Settings.java
Force Expanded Notifications (1/2)
This will force expanded notifications for all apps that support
expanded notifications

Change-Id: I4b24026343ca92368fcdba713fb884cc220afaf0
DocumentsUI: fix white action context bar in TRDS tablet view

Change-Id: I3c580a2aa4f8abbcfd06ad974518343f6e9190c5
DocumentsUI: Update launcher icon.. credit and thanks for the icon goes to Dave Kover (kovdev)

please check out his icon packs  https://play.google.com/store/search?q=kovdev
DocumentsUI: add xxxhdpi icon

Credit Dave Kover (kovdev)
framework: Toggle insecure lockscreen bypass with keyboard/smart cover

Makes it possible to toggle the feature that bypasses the lockscreen when the
hardware keyboard is slid out/smart cover is opened and security mode is 'none'

Change-Id: I90e874fc978c8cdafd47582c8bc3a2be3fbcd89e

Conflicts:
	core/java/android/provider/Settings.java
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

Conflicts:
	core/java/android/provider/Settings.java
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