Mms: Fix javacrash in com.android.mms due to memory leak

when the UriImage resize the picture. It will not close the
InputStream and OutputStream.

Change-Id: I80fa1eb3726308fe75d74357e0b9782759de3393
Author: Jianping Li <jianpingx.li@intel.com>
Signed-off-by: Jianping Li <jianpingx.li@intel.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28037
Mms: Notify user of Send SMS failure due to FDN

Upon Send SMS failure due to destination number or
service center number not present in the FDN list,
failure is not notified to the MessageNotification.
Due to this Sms remains in Sending state even
after the SMS send has failed.

This patch fixes the issue by notifying the message
failure and also moving the message to respective folder.

Change-Id: I1f8dfe2d9b276c8c6f4d921c2c147a8ef90643e6
Author: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 48558
Mms: Process has stopped after dragging progress

testcase 1> create a slideshow mms and play it. Tap progress bar
                continuously until play finished.
         2> create a slideshow mms and play it. Tap progress bar
                continuously when rotate the screen

We have to set the seek bar change listener to null,otherwise if
the activity stop during tap progress bar continuously, window
will leak.

Change-Id: I206d35b91e04de06c2073c3fb0d9176da6adc81c
Author: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: b533 <b533@borqs.com>
Signed-off-by: Frederic Predon <frederic.predon@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 28634
Mms: Catch UnsupportContentTypeException

The original code has not catched "Unsupported Content-Type" exception
resulting in force close if an mms containing an unsupported content
type is opened.

Change-Id: I9b578e2fd61ba5df9dbfbe9e6e28fb276ef89666
Author: Haixiong Zheng <haixiong.zheng@borqs.com>
Signed-off-by: Jeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: Bin Yang <bin.y.yang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 5339
am 07187692: (-s ours) am 40e8ada0: am cbec21ad: am f0f706bc: am dda70146: (-s ours) am 77a62c8b: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '071876924fa6f3f83d7b606687e0184c47a5716b':
Import translations. DO NOT MERGE

Change-Id: I5ff0de0b57284e8e5be1586b24ed8a40fe8b9f79
Auto-generated-cl: translation import
am ae0a4a89: Remove hardwired phone number from Sms Tester app

* commit 'ae0a4a89d2995ad375075e06c7bf8f10ebdcef7b':
  Remove hardwired phone number from Sms Tester app
Merge "Import translations. DO NOT MERGE"
Import translations. DO NOT MERGE

Change-Id: Ife89c1badcc67f4e66d41f9ead16b06dc0e281cf
Auto-generated-cl: translation import
am b36a47c3: Replying to a phone call with a SMS potentially exposes sensitive/personally identifying information

* commit 'b36a47c3587d9faa3d9e21a7b572eb9464641b18':
  Replying to a phone call with a SMS potentially exposes sensitive/personally identifying information
am bdfeedff: am 024d3806: am d9938208: Merge "Process inactive msgs if Mms app is relaunched"

* commit 'bdfeedff9e846c2e723eb9e899be88ccfad9ffcb':
  Process inactive msgs if Mms app is relaunched
am 2a44b74f: Use the correct host route function in MMS.

* commit '2a44b74f9bb2ec9daa843cd1ab449aa08b0f4009':
  Use the correct host route function in MMS.
Import translations. DO NOT MERGE

Change-Id: I58dfd20b37625f4a81daeaba548d24bb5d67c3b2
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: Ic214f70b8fda59bd4bc4d07ce3e1c06ed0a26de7
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: Idecfb76c3ff7cf70522dd276e4f522edd6c89c7e
Auto-generated-cl: translation import
avoid IllegalStateException in MessagingNotification

If columnIndex is -1, c.getLong(columnIndex) makes IllegalStatementException.
So, the columnIndex should be checked -1 or not before using.

Change-Id: Id0dfffa5159d22dc67d56003b999dce80378736e
Merge "avoid IllegalStateException in MessagingNotification"
am 488fa008: Merge "avoid IllegalStateException in MessagingNotification"

* commit '488fa0081757d78842b5f3a65b01d8d943fe17f6':
  avoid IllegalStateException in MessagingNotification
am 81e7c180: am 488fa008: Merge "avoid IllegalStateException in MessagingNotification"

* commit '81e7c18081949936974020e64c052878cb84ef89':
  avoid IllegalStateException in MessagingNotification
Clear collection after we used

Change-Id: Idbec734a2227cb333ed1cc47d64647a9da460e76
Signed-off-by: Roger Chen <cxr514033970@gmail.com>