Send 'reject call with sms' on the correct subscription.

Send sms on the subscription on which the call is rejected.
Get subscription info from the intent 'ACTION_RESPOND_VIA_MESSAGE'
on which the call is rejected.

Change-Id: I7d16744139211cd5c44015d4794429f9020501d6
CRs-Fixed: 594214
Mms: Misc MMS fixes.

- Add PDP activation timeout logic to abort current transaction.
- Fallback to defaultSmsSubId in case of invalid subId.
- Deactivate current MMS PDP quickly after current transaction completion
  if next pending transaction is for different subId.
- Use new getNetworkInfo api in place of legacy one.
- Use subId in NetworkRequest.
- Dont allow MMS in airplane mode but allow if current RAT is iwlan
irrespective of airplane mode status.

Change-Id: Iabb3a7d2f49505581a8af7750c83732b292809de
Merge "Send 'reject call with sms' on the correct subscription."
The draft still exists after forwarding mms to the same sender

Forward message will be saved as draft before sent, and it will reload
this draft after come back to the current thread.

Do not load the draft for the same recipient address when forwarding
mms.

Change-Id: I2cc873a9bcbdf0e6481391a0237eb1d19f40d137
CRs-Fixed: 568255
Merge "Mms: Misc MMS fixes."
Mms: Handle NPE in TransactionService

If client directly updates the Mms database (as in the case of BT) without
updating phoneId in single sim scenario, default phoneId of -1 is used
from the database. This causes an NPE in TransactionService when trying to
get the list of subIds for the phoneId. Fix this by using default sms phoneId
in such scenarios.

CRs-Fixed: 740888

Change-Id: I263282c97551c624a2e7204f9f7f7dc0b8dcd1a5
Mms: Set state to failed.

- setState(TransactionState.FAILED) got missed out from the
commit Iabb3a7d2f49505581a8af7750c83732b292809de.

Change-Id: I08d0e4c2644d0fb6526c5a6aad3e63853050f97a
Merge "Mms: Set state to failed."
Merge "Mms: Handle NPE in TransactionService"
Merge "The draft still exists after forwarding mms to the same sender"
Mms: Fix display improper delivery reports icon when send mms

It always display message detail icon if check delivery report
in mms settings when send mms.

Show message detail icon if message delivery status is pending.
Show message delivery icon if message delivery status is received.

CRs-Fixed: 722222
Change-Id: Ia07b2c83faa1063295e644e29b5ac0627b68c5e7
Mms: Disable delivery check-mark if both delivery and read-report are enabled

If read report enabled, it always displays "detail" icon on UI, no
matter what if delivery report or read report enabled.

Change the check-mark avaiable only for delivery report.
If only "read report" enabled, just show "detail" icon instead.

Change-Id: I68306ede310fddc949cd8d2c1df865f634aeae62
CRs-Fixed: 648733
Add support for handling of subscription activation

Process pending MMS messages when subscription got activated

Change-Id: I0684dc2cf7c8582f5a37b504a13edd7a9e122536
CRs-Fixed: 740243
Merge "Add support for handling of subscription activation"
Mms: Use new api isMmsDataConnectivityPossible.

- Use new api to know if it is worth the try for current
  MMS transaction.
- Modify the PDP ACTIVATION wait timer to 60 seconds.
- Mark transactions as failed during abort due to pdp activation
  timeout.
- Show popup if MMS can not be sent/recv due to Mobile data UI being
  OFF.
- Process pending mms once MobileData is turned ON.
- Process pending mms once Airplane mode is turned OFF.
- Enable download button as soon as possible.

Change-Id: If691c00fee61310c3834413eb17c4d42cdb4cae3
Mms: Add resend function for message

Add a resend menu when sending message failed.

Change-Id: Ic8ad5a33ffad2fba86f5f07b7a1ea8f530f9f33a
Mms: Add a configuration file for Mms

Add a configuration file for Mms, used for overlay mechanism.

Change-Id: I51a4a078c1f09386e7d5f3d37f045db7c23f3fc9
Merge "Mms: Fix display improper delivery reports icon when send mms"
Merge "Mms: Disable delivery check-mark if both delivery and read-report are enabled"
Mms: Support Folder mode and DSDS related functions

Feature requirements:
-Support inbox, sent messages, outbox, drafts in folder mode. and
folder mode and conversation mode can be switched alternatively.

-Add scale gesture listener to implement zoom in/out function in
folder mode.

Change-Id: I5f5622ea7c87d6c119f38dae2a0e2a52211404d0