fix mvno_match_data OutOfBounds Exception in substring check routine.

When the length of mvno_match_data is greater than GID from IccRecord,
It will generate StringIndexOutOfBoundsException.
Therefore, codes are changed to use startsWith() insteads of subString().

Change-Id: I04c5c5039edb2cfa757bf2f5a4b9f124afb69b06
Bugs: 10171336

Fix mvnoMatches function but keep case-insensitive

Redo previous fix in a way that's still case insensitive.

bug:10171336
Change-Id: I65e29b72ace2a41ed7a19e3bfb5d23bf3773d41c
Telephony: Fix Mms auto-retrieval

This adds some missing code from the 10.1 port

Change-Id: I57093d0dfbc00478b2835324e740da9d75c111d6
DcTracker: Only retrieve records when we're either RUIM or CdmaLte AND subscribing from NV

Change-Id: I498097440d62ad6c9e04497085a63ede894fb5d8
PhoneProxy: Update IccCardProxy only when cdma voice tech changes.

	Update IccCardProxy only when the device is reporting new cdma voice tech.
	Fixes scenario where device reports UNSOL_VOICE_TECH_CHANGE to UMTS, but remains
        as a CdmaLtePhone.

Change-Id: I81bd5d3c6cf553c0a60ad3d4f1f581d3500f446c
Merge "DcTracker: Only retrieve records when we're either RUIM or CdmaLte AND subscribing from NV" into cm-10.2
Merge "PhoneProxy: Update IccCardProxy only when cdma voice tech changes." into cm-10.2
PhoneProxy: Restore previous updatePhoneObject logic.

	No reason to do an opt-in with a boolean, most cdma devices with >= v6 RIL should be
	able to update their IccCardProxy when triggered by an EVENT_ICC_CHANGED
	message.

Change-Id: Ica92c2d53e9d3551d3abe8b460b80d0d381ac5bb
HTCQualcommRIL: Handle HTC VOICE_RADIO_TECH_CHANGED response

* Properly handle VOICE_RADIO_TECH_CHANGED unsolicited response.

Change-Id: Id42deb43237be78286a20dfb22e4645c6b83ceed
HTCQualcommRIL: properly reset radio on RIL_CONNECTED

* Resets radio on RIL_CONNECTED, but only after the first RIL_CONNECTED
  response.

Change-Id: I94a56d97eca173b8bcc5b38e59ee43740d2ef74a
HTCQualcommRIL: support DATA_NETWORK_STATE_CHANGED_M7/5757

* This UNSOL response behaves the same as the existing
  RESPONSE_DATA_NETWORK_STATE_CHANGED message.

Change-Id: I804c1f13fb3019a7e54a344967a3a4eb707046fd
Merge "PhoneProxy: Restore previous updatePhoneObject logic." into cm-10.2
SamsungQualcommRIL: skip setCdmaSubscriptionSource if CDMA_SUBSCRIPTION_MODE is null

Change-Id: I9784c99e0ac82d6982f5240e2576fce6a7c1e1bf
HTCQualcommRIL: skip setCdmaSubscriptionSource if CDMA_SUBSCRIPTION_MODE is null

Change-Id: Idf842a6def9151d500bcb2d8ee3e21010c725e20
Add onDataRatChanged trigger to DcTracker

It is required to reload apns when data rat switches from
lte to cdma

Change-Id: I298acd3ea159ef128216c90c8fe706bd80bbeffc
CRs-Fixed: 530277
Fix reporting of CellInfo on jewel

jewel with the 4.3 M7 Google Play Edition blobs reports invalid CellInfo
parcels (with type = 0). Ignore these.

Change-Id: I0aba30d6b2184c845488a52c485b3ac3dd28b79c
HTCQualcommRIL: correct handling of CDMA + LTE quirk.

The current handling of this quirk just forces a specific
network mode. This breaksGSM mode and network selection on
boot for devices using this flag. To correct this, get the
value from Settings.Global object and set the default value
to CDMA + LTE mode for first boot.

Change-Id: I767d25e96b9cbbdddc486ce696eb95ff14dccb89
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.
CRs-Fixed: 285986, 303275, 326204, 326634, 333008,
           339297

Change-Id: I2d8e0284041df0f6d5bd52d9f39e521c1b3d42d3