Status bar activity indicators for mobile data and wifi

Google were nice enough to create xxhdpi drawables for us before removing them.

Reverts "Remove signal/wifi activity indicator icon overlays."

This reverts commit fcc901c10bffdfb9c6b31e676dec36b47d949979.

Included NetworkController.java modification from Iaaa556ffab3ed4be1da8016ed40d0a9c2efcde01

Adding preference for arrows

PS14: Fixing errors

PS15: Turning arrows off done via actual removing drawables work, so when arrows are turned off,
they do not redraw statusbar anymore :-[

PS16: Commit Iaaa556ffab3ed4be1da8016ed40d0a9c2efcde01 merged to this one

PS17: Rebase to allow merge with latest source

Change-Id: I7aa85f7c8442c45d17e42cac7823dfe93e3f24c1
Systemui: ignore bartransitions if we are not on highend gfx

Change-Id: Ie40fc76b8fce760cd31675d0edad2045d2567643
msim: Add missing layouts for battery icon on MSIM devices.

This commits adds missing layouts for showing battery icon on notifications bar in MSIM devices.

Change-Id: I1c9675667a0c22a7e35b98f09a177fcf8609ecb1
Theme Engine: Add missing changes for MSIM devices

This commit adds some necessary changes for the New Theme Engine on MSIM devices.

Change-Id: I3281b5e865c37b4519d60031856ba787ba8f9c32
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
Wifi: fix auto connect policy for forgetNetwork

Use shouldAutoConnect() to judge if Wi-Fi networks have to get
enabled.
Thus, after forget network, if shouldAutoConnect() is false,
do not enable other saved networks to prevent auto connect.

Change-Id: I05b00bba54876f2d0d928e0faa9476b8d51b84b4
CRs-Fixed: 684684
P2P: Disable 5GHz channels in 2.4 GHz only mode

When P2P device is configured in 2.4GHz only mode supplicant
should not advertize 5GHz channels in its go negotiation frames.
  Hence disable 5GHz band channels when 2.4 GHz band only mode
selected in Wi-Fi advanced settings.

Change-Id: Ice8c9de34b19587c7e8432842a79551cc0e2333a
CRs-Fixed: 682823
Wi-Fi: Set BTCOEXMODE_DISABLED irrespective of BT's connection state

BTCOEXMODE_DISABLE has to be triggered during the DHCP phase even
on an active BT connection to ensure that Wi-Fi is given
preference over the BT.
This commit ensures the same
CRs-Fixed: 695307

Change-Id: I1eb979f03696831cb8f9e3a14b8a62f724347b64
Wifi: Handle P2P-REMOVE-AND-REFORM-GROUP event in GroupNegotiationState

Framework does not handle P2P-REMOVE-AND-REFORM-GROUP event
if it is in GroupNegotiationState and p2p-GO will continue to operate
in unsafe channel till it gets next P2P-REMOVE-AND-REFORM-GROUP event.

This commit adds handling of above event in GroupNegotiationState.

Change-Id: I956bbcd0200ddc3acde8b989a6e0950bdeca269e
CRs-fixed: 714368
wlan: Modify sequence of events sent during DHCP phase.

Modify sequence of events sent to driver during DHCP phase, to
make sure WLAN can enter into power save only after DHCP is done.

Change-Id: Idf7ed8d6e1c011bd3b7af9f5ca9d4db46de55fb0
CRs-Fixed: 719573
UI/UX: Revert "Status bar activity indicators for mobile data and wifi"

* I dunno why this has been pushed. Is against our guidlines and this case
  has been discussed at the beginning of kitkat release.

* Also as reported here, it is intentional and we vetoed positive Google's
  decision as we usually do. Since this sauce builds official devices too, revert.
  http://www.androidpolice.com/2013/11/18/a-google-engineer-explains-why-kitkat-has-white-status-bar-icons-and-only-shows-connectivity-in-quick-settings/

This reverts commit b4415037aee233300792dadd62cf96329b283732.
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
core: add storage related strings

needed due to cm related issues

Change-Id: I966c92b44afc00880cdee55fcfb7253ed275e13b
Signed-off-by: Ayysir <ayysir@aospal.com>
Revert "core: add storage related strings"

This reverts commit fca0c26ba0c0c547a7630405476ea38986db80fd.
core: symbols.xml: add storage related items

needed due to cm related issues

Change-Id: Id518a2c04bd84179c583778281a8b3db9d6b99b2
Signed-off-by: Ayysir <ayysir@aospal.com>