History log of /packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8b17c7f2f98bbea105a41a0bb962a4581b7cce5c 10-Sep-2014 Casper Bonde <c.bonde@samsung.com> MAP: Workaround for missing size values in message data base

Not all messages in the MMS/Email message data bases have
the size/attachment size attribute set.

This causes MAP clients to behave wrongly, e.g. they
request to exclude attachments if the attachments size
is 0. Even for messages which actually have attachments.

The attachment size is the only way for MAP clients to
know if attachments are present, hence the behavior of
the client is not wrong.
bug 17389452

Change-Id: I82cd76bc044601eb6e8b190d0c6fc41b51410a93
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
326b5e610063ac24c0ba467ac585bd4c7f618a67 24-Jul-2014 Casper Bonde <c.bonde@samsung.com> BT MAP: added support for email sharing over BT

- added support for Emails
- added activity to do setup of the email accounts to share
- added improved handling of MMS, SMS and Email
- Many optimizations to speed (especially getMessageListing)
- fixed wakelock problem
- fixed user timeout problem when user do not react to msg access request
- added missing privileges
- support for Quoted Printable format
- added accountId in test case URIs
- fixed problem with service numbers being strings
- fixed problem with read flag in getMessage
- added support for transparent flag in Email Push
- added missing send-event for non-imap accounts
- set attachment size to 0 if text-only message
- fixed double send for sms messages with retry
- removed secondary phone numbers from recipient/originator
- removed insert-address-token in MMS messages
- fixed null-pointer exception in settings (missing extra in intent)
- send text-only mms as sms (workaround to make it cheaper)
- fixed rejection of native and fraction requests
- better handling of unknown message types in push
- fixed problem with possible illigal xml chars in message listing
- added missing WRITE_APN_SETTINGS permission to manifest
- fixed problem with notifications when pushing to folders other than OUTBOX
- removed debugging code
- added support for threadId
- fixed permission problems
- changed to use ContentProviderClients for Email app access
- fixed names for member vars

UPDATE: Moved the MAP E-mail API to the bluetooth package.

UPDATE: Added check for the presense of MMS parts.
This is needed due to a change in the MMS app/subsystem,
where deleted messages gets corrupted.

Signed-off-by: Casper Bonde <c.bonde@samsung.com>
Change-Id: Ib5dbe7c2d5c0ba8d978ae843d840028592e3cab4
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
55d81a3828bc9d227b77ea840fa3dffcbc4262d2 10-Jun-2014 Benson Huang <benson.huang@mediatek.com> [BT] Fix bug: MAP client can not get MessageListing for draft folder

Currently c.getColumnIndex(Mms.PRIORITY) in setPriority method is returning
-1 which is causing c.getInt(-1) to throw a java.lang.IllegalStateException.

The fix is to add the column Mms.PRIORITY in MMS_PROJECTION

Bug 15069197 and 15071221

Change-Id: I9f296415efd5e10970d9f24652cab1022dad5efd
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
0053efa4b58c3e5815a500bd719c5018e7e87852 04-Feb-2014 Kim Schulz <k.schulz@samsung.com> MAP: Empty parameter mask handled wrong

If an empty parameter mask is set in a get message listing request
we only returned the handles, where as the spec states that we
should return all parameters.

Solution: Set the parameter filter to 0xFFFF if it is omitted or 0.

Change-Id: I2cb99569c0920c706c0d3b3ed269852471cb1ee6
Bug: 12915453
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
b3abf4e52a7045f914f88d07670c0d2fb231a75d 24-Feb-2014 Matthew Xie <mattx@google.com> am 4a57bce1: Merge "MAP: Set Empty name or address for unknown values in GetMessageListing."

* commit '4a57bce1779e7dcd502dcbb64e7e121a700ba258':
MAP: Set Empty name or address for unknown values in GetMessageListing.
0487333556262f47feaa3f931d5a5c123386dd23 21-Nov-2013 Ashwini Munigala <AshwiniM@codeaurora.org> MAP: Set Empty name or address for unknown values in GetMessageListing.

Set Empty sender or recipient name and address values to indicate
info not available from MSE in GetMessageListing response.
Current implemenation to skip the entire feild in response doesnot
mark the uniformity for values being fetched from telephony or
phone book databases.

Change-Id: I44e2f61572607349ec20ec1efcc6c44abe084b83
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
14f1f53e829b1d00f6c27618e878b1ebb18df8cc 11-Oct-2013 kschulz <k.schulz@samsung.com> MAP: fixed missing filtering on Priority

FilterPriority was ignored in the code as SMS does not have priority.
This fixes the support for the priority filter for sms + mms.
NOTICE: sms messages does not have priority and hence will return
an empty messagelisting if the client requests a list with priority
filter set til high-pri only.

Bug: 11168636
Change-Id: If028e47850323d20d1e9a23bc947782ae8da1df0
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
b42ddd9abf40e1f3e3c5a33fa67dea898adcb219 14-Sep-2013 Ying Wang <wangying@google.com> Fix build.

Change-Id: I02a9d4dfa84c5778a1136d39b7bb14a2e523a9ca
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
70be005a18a35ec5fcb46152f0dfbe82156efa3a 22-Aug-2013 Kim Schulz <k.schulz@samsung.com> Fixes to the google review comments + spec 1.1

- updated code to comply with MAP spec 1.1
- removed activity + strings.xml
- removed unused notification code
- fixed TODOs
- added more string validation and case insensitivity
- fixed internal+google review comments
- Added dump of incoming bMessages to /sdcard/bluetooth/log when verbose debug in enabled. Only the latest received message will be stored
- Fix functions msgListingSize and msgListingHasUnread to also consider mms filter message type
- Fix wrong tag length define for notification status parameter
- Re-added shutdown code to interupt the MNS
- removed map activity
- Added initial bluetooth map unit tests
- Fix map event report xml start tag to uppercase 'MAP'
- added support for using ProfileService class
- changed the way the Broadcast Receiver was implemented
- Fixed minor bugs found during Automotive Test Event
- FilterPeriod application parameters can be present, but with zero length
- For MMS the end-boundary were added too early
- The FOLDER entry in bMessage can be empty for a message push
- Wrong error value returned for a set status operation with a wrong handle
- In getMessage() exclude all binary content and smil.xml if the appParam attachment is set to "no".
- Set correct content id and content location for mms. Fix mms mime parser bug.
- moved disconnect to Handler thread
- fixed multipart-message split bug.
- added a few Unit tests for multi-part messages
- MMS parser optimized
- fixed exception in MNS obex Client
- fixed problem with Native PDUs not getting correct timestamp
- corrected mixup in ordinator/recipient for MMS

Change-Id: I3875762822a7f8ce0132065e0da5d0257e3850a1
Bug:10692365
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java
fd6603b8bf9ed72dcc8bd59aaef3209251b6e17c 19-Jul-2013 Matthew Xie <mattx@google.com> Bluetooth MAP profile - sms and mms support initial check-in

bug:10116530

Change-Id: If9ce878d71c1e1b12416014c433da03b3033e158
/packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMapContent.java