Assign operatornumeric value to sim/ruim constants

On records loaded event, read the operator numeric value from
records and based on app family assign it to sim/ruim constants.
These constants will be referred for operator numeric value.

Change-Id: I8f9b87799dc27cc30f1fd841240ecf6fec78f3e2
CRs-Fixed: 717691
Telephony: Only one short sms can be read if long sms copied to CT card

According to 3GGP2 C.S0023 3.4.27, the maximum length of the message
is 255. But in java, byte cast to int, the result will be expanded when
byte value larger than 127.

To fix it, using 0xFF transfer byte to int type first.

CRs-Fixed: 706038

Change-Id: I8b2cc44db5a50ae9e3e289440ae0b19368512382
MSIM: Change default subId and phoneId values

- Add support to return getPhoneId() value '0' when device
  does not have SIM cards inserted.
- Initialise mDefaultVoiceSubId to DEFAULT_SUB_ID value.

Change-Id: Ic1933bc6bb6a80a78894e0397c08272187b4977e
Mms: Add the interface for sending SMS with originator port

Add one API 'sendDataWithOrigPort' to send SMS with originator port,
which is required in Device Manager testings.

Change-Id: I7219ab7ddbaf874b9922f816a4854648e3e47396
DSDA: Update service state to POWER_OFF in airplane mode

When emergency call attempted, in telephony service it is
service state is checked, if it is POWER_OFF, then modem is brought
from LPM to online mode and call is attempted. However if service
state is not POWER_OFF, dial request is attempted.

In current implementation, due to IWLAN feature enablement, polling
is also done in airplane mode, which is leading to setting of service state
"out of service" instead of POWER_OFF. As service state is not POWER_OFF,
when ecall is attempted, telephony service doesn't bring modem out of LPM and
directly places dial request which fails expectedly. And hence error dialog shown
to user instead of succesfully placing the ecall.

Current change takes care that, in airplane mode, if polling happens,
set service stateto POWER_OFF regardless of response received for
ril request VOICE_REGISTRATION_STATE.

Change-Id: I000c1dda446a684c61d2b806caa345f2771d7a08
CRs-Fixed: 722203
IMS: Conference URI support.

Add code not to parse dialString in case of
Conference URI and set EXTRAS_IS_CONFERENCE_URI
to ImsCallProfile.

Change-Id: I5fa394221460832180afecd7280bc11dd5549525
CRs-Fixed: 713839
Add support for reading sim contacts from all sims.

Unable to import contacts from all sims.

Fix the parsing of the url used for reading adn records
from all sim cards.

Change-Id: Ib159c2f2ce15b72575efd16e9c2bb2ca59000b91
SMS: Subscription based apis per new design

sendText and sendMultipartText are subscription based apis.
SMSManager clients need to create multiple instances,
1 per subscription or create SMSManager using default subId.

Change-Id: I79f01069af61e2eb009ec4a884209a4d65bad24b
IMS: Add null check before retrieving extras from bundle.

Add null check before retrieving extras from bundle
to avoid NullPointerException and crash.

Change-Id: Ice063ca7d9e840819f295c78f264cf9c4e4e42b0
CRs-Fixed: 728662
Fix SIM contact email saving error

It's a syntax error, correct initializing email array to 0xFF

CRs-Fixed: 645605

Change-Id: Ic9b85b8cdf28891fbafe4609217fa57010c4a3bc
IMS UT: String Error Handling

Adding handling of ImsException in
ImsPhone, supporting propagation of
network error string to the UI.

Change-Id: Ibf7f77b2404fab4c847cc6f0c2d9e2c034c262cd
CRs-Fixed: 714000
Audio: Add QCELP, EVRC,AAC_MP4  mime types for MMS

- MMS is failing for  QCELP, EVRC and AAC_MP4 audio clips.
- The above formats are not supported MMS audio types.
- Add above formats in MMS content types.

Change-Id: Idd641af1fb7299bf51dc6274f315af5d48204606
CRs-Fixed: 566784
MSIM: Route ECall requests on CS pipe

Add MSIM check to place emergency calls on
CS RIL pipe in multisim configuration.

Change-Id: I5cbcde1d0eb55b356d6c2c5bfcf11f416e62e11e
CRs-Fixed: 727641
Use EF_EXT5 as extension for EF_MSISDN on USIM

For USIM applications, use EF_EXT5 as the extension for EF_MSISDN
as per TS 31.102 Section 4.2.37

Conflicts:
	src/java/com/android/internal/telephony/uicc/SIMRecords.java

Change-Id: Ib3bd3d8160d73fcc02b80ef420d8c8f2ffb4992f
CRs-Fixed: 433379
ICC: Get EF_PLMNWACT to support user controlled PLMN list.

Add the EF_PLMNWACT ID into the SIM file handler.

Conflicts:
	src/java/com/android/internal/telephony/uicc/UsimFileHandler.java

Change-Id: I5c04729b6b7bfb6342c7fd3b968a9762eb92210a
Telephony: Multiparty srvcc

Conflicts:
src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java
Change-Id: Ie689f31d7970ecf3a5008cf1dad450045d0b34db
Stk: Fix Null pointer exception in CatService's dispose

When uicc card updates the CatService when the sim is removed,
dispose CatService's instance for a particular slot id.

Change-Id: Ic4c05348466b3eafbcb252245f38ae5f13a18b4b
IMS: Allow placeCall with complete uri.

Add code to dial with complete uri if dial intent contains
extra "org.codeaurora.extra.SKIP_SCHEMA_PARSING" set to true.

Change-Id: Ic46c1ae32f2bbd6069ac63571e655e81d758ec89
CRs-Fixed: 680318
Process MMI Codes In IMSPhone Even If BasePhone Is CDMA

Removing a check to see if base phone
is CDMAPhone while dialing a call in
ImsPhone. Since the base phone has
handed the call to ImsPhone, which
supports all MMI codes, the check,
that prevented further parsing of
dial string, is redundant.

Conflicts:
        src/java/com/android/internal/telephony/imsphone/ImsPhone.java

Change-Id: I21b7ed8e571cfd55a2af413d39911f8b7551e0cc
CRs-Fixed: 725556
STK CC feature implementation

Support to display the current request is changed by STKCC.
Support to display alpha messgae from STKCC.
Support to display informatiom from new SS message.
Add FLAG_RECEIVER_FOREGROUND to alpha broadcast intent.

Conflicts:
        src/java/com/android/internal/telephony/PhoneBase.java

Change-Id: I0d7ee0dea25cd40c074fdf748dbf900bd654fdff