Not update TransferActivity button during activity creating.

This is to fix below issue: when an ongoing transfer is almost to complete,
click the ongoing notification to launch TransferActivity, there will be
possible crash due to NullPointerException.
Root casue is: when TransferActivity onCreate() is called, the transfer is
still ongoing, so mIsComplete is false; but when onCreate() call to
updateProgressbar(), the transfer may change to complete, and then  updateButton()
will be called; In updateButton(),  mAlert (which will be initialized in father
class AlertActivity) still not intialized, which caused NullPointerException.

Change-Id: Ibfe363f3822386a38b9b108e29f60ad6673f70f6
Merge "Not update TransferActivity button during activity creating."
Trim Opp database when service restarts.

When Opp service restart, we will trim the database.
a) No visible case is deleted.
b) Invisible complete outbound (failed and successful) are deleted.
c) Invisible complete failed inbound are deleted.
d) Invisible complete success inbound are deleted if needed to keep records max
to 1000.

Live folder only has received files, so the above makes sense.

Change-Id: If27080721d9abed025162ff805f661fde01564d3
Merge "Trim Opp database when service restarts."
Update notification in Transfer history manually when BT if off
Add ABORT request handling to PBAP
optimize deleting operation in trimDatabase()
Merge "Update notification in Transfer history manually when BT if off"
Enhanced support to OPP content share

Add support to Browser link share via BT;
Add support to share files via BT in 3rd party file manager;

Change-Id: I9a93eb0891d0f670109afd44ab4064f7f15b01f3
Merge "Enhanced support to OPP content share"
Add ability to run Bluetooth application in a different process if needed.

Change-Id: I5fa328f2b8fd78986b9a1958e5899feca254f316
Import revised translations

Change-Id: Ia703afd0c3fd603a68f606b684bdf76cd2de32fe
Merge "Add ABORT request handling to PBAP"
Fix Typo.

Change-Id: Ia71a5b3bb970463132b2c25b90cf3897fc227fb9
Fix pbap and opp running bluetooth in phone process problems.

1. Use the right context instead of application context.
2. Make PbapActivity run in the same process as PbapService as they
   share state.

Change-Id: Ib50c63c271dd8b30108f22734c47ee8645cd4839
Clear notifications when the user presses clear from the notifications bar.

Bug: 2542260
Change-Id: I00f9d8216d70543b93cfbcdb2cd8da8331044d77
Make BT new structure.

Change-Id: If1400731a1ba9a91d493ca96f2cc0364ef9b5b18
Make BluetoothPbapCallLogComposer use FLAG_REFRAIN_IMAGE_EXPORT.

Bug: 2603200
Change-Id: Ie6a40c12fafac5927b616f31a8335df0181f9e18
am 96ae98f9: Make BluetoothPbapCallLogComposer use FLAG_REFRAIN_IMAGE_EXPORT.
Remove wrong merge.

Change-Id: I94ff5633226d37fcc2df39fdcb7ad313a523d435