Revert "Fix for data and roaming icons"

This reverts commit 17e7047b82e41f1cae27257ff7be385b5510e437.
UI not updated correctly in expanded statusbar

Sometimes when getting status changes in expanded statusbar the
text disappear. Both NetworkController and PhoneStatusBar handles
UI updates and they are not in sync. This fix allows PhoneStatusBar
to update UI when NetworkController is updating the UI.

Change-Id: I46b8a24ecc732e441f836692c6584a78d8108dff
Hide the notification tray carrier label during and not after flip animation

It's possible for the user to have enough quick settings tiles to cover
the carrier label during the flip animation. This looks a bit strange,
so hide the carrier label during a flip.

Change-Id: I6dd38d5642a1d49c079ecdc4a7e904be6c26454c
Fix for data and roaming icons

- Enable data connected flag based on the data state.

- Do not display data icon in data connected state
if radio type is unknown

- Display data icon independent of voice service state
i.e even if voice network is unavailable

- Show cdma roaming indicators if either voice
or data is roaming.

- Cleanup roaming indicator default values.
Set default CDMA Eri index to roaming off

- Show service if either voice/data is in
service if ro.config.combined_signal is true

- Consider eri only when in service

- Add in service check to isCdmaEri.
roaming related information
in registration state will not be valid
during out of service.

Change-Id: I915421a6f5906d80ed5b8dd9c433115ad5df1f14
CRs-Fixed: 285986, 303275, 326204, 326634, 333008, 339297
(cherry picked from commit 7a3c1c35ed00f17dd345f824690877999dff2042)
(cherry picked from commit 83894db8b770d770891d42d078ba6d4dcfb29fb5)
Destination PS no: 2
Telephony(MSIM): Add StatusBar support for MultiSim.

 -Add support for Signal Strength icon display for MultiSim
  Add support for NO SIM icon support for multiple SIMs.

Display dual subscription info in notification panel
  -Show subscription information for both subscriptions
   relevant to the sim state. if sim state is ready show
   operator name, if card absent, show no sim message,
   if UE is in airplane mode, show airplane mode message.

Clear data activity icon when disconnected
  -If data is disconnected before data activity becomes none,
   then clear up/down arrow icon by reset the data activity icon.

Add support for ro.config.combined_signal
  -Add support for ro.config.combined_signal. This property is being used
   to consider data service state for signal display.
   When ro.config.combined_signal is not set to false, we will display
   CS/PS signal strength whichever is available.

Change-Id: I11fb6ed37e7ba40b8db7840feedd109557128758
Telephony: Add ME Depersonalization support.

Add support for all ME De-Personalizations as per specs
3GPP2 C.S0068-0 and 3GPP TS 22.022.

Change-Id: Iba74e3e5eb4fe96361585f4933897c5c8f17db97
CRs-fixed: 467276
Telephony: Handle DATA_CALL_LIST in DCC.

- Added async handling of NetStatPoll.

Change-Id: Ic77bb949ffb72fb3c54bacc6ad2a6ee87e877023
Add AppOps check for sendTextWithPriority

 Add application operation check for sendTextWithPriority API.

Change-Id: I802142f28a5ee11d59a35e9265ec968005777bae
CRs-Fixed: 571674
Telephony: Update TD-SCDMA Network Type String

- Updating the string used to identify TD-SCDMA network type
  to be consistent with the ServiceState string.

Change-Id: I5aee8728ee80dc199f37414aba9019523082862c
CRs-Fixed: 564062
Telephony: Ignore the timingAdvance field in SignalStrength

Ignore the timingAdvance field since the frameworks is not
utilizing this field.

Change-Id: I8644f20aa1918514da88db5a8bc7394263d61e30
Fix data disconnect issue on G sub for C+G DSDS

On a DSDS Cdma+Gsm device, when data is registered on both Cdma and Gsm
subscriptions and DDS is on Gsm sub, if data deregister happens on Cdma
sub, data disconnect is getting propagated to connectivity service
irrespective of DDS, hence data is getting disconnected on Gsm sub.

Add code changes to block data disconnect getting propagated to
connectivity service when the subscription is not DDS.

Change-Id: I329d6a20ace65cad494e36dd9ec5a6470db2fbd7
CRs-Fixed: 544292
Telephony: Few PIN/PUK fixes

Following changes have been made as part of this:
-> Changes done to display retry counter on wrong entry of
   PIN1,and message to indicate Code accepted/PIN1 blocked
   during PIN1 verification as per certain carrier requirements.
-> The current APIs that are used to verify the PIN and PUK only
   convey whether the operation succeeded or failed. As a result
   on ANY failure clients ask the user to re-enter the PIN.
   Add 2 new APIs that report the actual error code in case of
   failure.
-> Display the complete text including attempts remaining to
   unlock PIN on SimUnlockScreen if user entered incorrect PIN.
   On some devices the display text is ellipsized when trying to
   display on a single line.

Change-Id: I73718c9e6a8aa7244097e0dd4593a6226ff0ac08
CRs-Fixed: 184479, 260481, 181402, 181380, 181401, 326286, 441001,
479414, 479417
(cherry picked from commit 1cfe4cb95d29b792e40c6a89cf2fdb1a0b8371e7)
(cherry picked from commit a50adebc939f1ff6cb9633ba116f4e7d1ffe60e3)
(cherry picked from commit e29e99706ad4e8ddc06f157a9a56e5dcaf0e49e7)
Telephony: Do not send Radio Power Off on SIM_RESET

Changes made to not to send radio power off during refresh app
reset.

Change-Id: I83b7063a86ce9b380c7aeb0c140a4967d205d93b
CRs-Fixed: 441924
(cherry picked from commit 41b19b200620229deda8385478499d2cf5b794d5)
(cherry picked from commit 9b13254fe3d25ed8ba222713b95027a0930dc324)
(cherry picked from commit 601891892d9a5851ffedd64c186055406ddb4ca1)
Telephony:Add config item for regular deactivation

- Default AOSP implementation is to restart the radio for PDP
error cause = 36-Regular deactivation.
- Add xml based option to disable this implementation and treat
error=36 as temp failure.

Change-Id: Ic7c05231a08d027280c8e46f7662b78163fdb69f
Add config to send SMS on 1x

When UE is attached to eHRPD network, IMS is registered and
there is an active 1xRTT voice call, the config determines
whether to send SMS over 1x. Default value is true

Change-Id: Ie4e00eb57ef439e9383c616cd1b60108bcfd505f
CRs-Fixed: 565247
Mms: Add configuration for sending and receiving Mms with data disabled

Use framework resource to config the feature that sending and receiving
Mms when data disabled.

Change-Id: I96362a66aea228afd3033cdf9343468a6d3ffa83
Telephony: Add 7bit Ascii support for long messages

Add config item for 7bit Ascii encoding and decoding
support for long messages

Change-Id: I54080a5c63fd2dc470f38edeffbe58729c22adf9
Telephony (MSIM): Change the code to use @bool/kg_use_all_caps.

Change the to use value from resources @bool/kg_use_all_caps
in MSimCarrierText class to be in line with base class.

Change-Id: I40bf386e867ff6b061008881fa125763b989776c
CRs-Fixed: 587508
Telephony(MSIM): Fix framework dex2oat failure in ART mode.

Remove multisim check from ContextImpl class static initialisation block.
Multisim check calls SystemProperties.get() which invokes a native call
and causes dex2oat compilation to abort when using ART run time.

Change-Id: Idcfe0877162ba38ef7f2c625e8c126f82e13ce2c
CRs-Fixed: 574143
telephony: Cleanup after QCRIL merge

Change-Id: I777818d9034593696bf96ad96048daa0011e9f80