diff options
author | Pradeep Panigrahi <pradeepp@pradeepp-linux.in.qualcomm.com> | 2014-09-15 11:58:40 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2014-11-04 08:45:07 -0700 |
commit | f147d52eb8c2940e3ef17eed1a505f7bf7ea224c (patch) | |
tree | 0a55d0f5d0fb601f6e57e29bbe5a945bccfc4d75 | |
parent | 5e222c92ec44e9317d2534d4d9f5c917b9a71f53 (diff) | |
download | android_frameworks_opt_bluetooth-f147d52eb8c2940e3ef17eed1a505f7bf7ea224c.tar.gz android_frameworks_opt_bluetooth-f147d52eb8c2940e3ef17eed1a505f7bf7ea224c.tar.bz2 android_frameworks_opt_bluetooth-f147d52eb8c2940e3ef17eed1a505f7bf7ea224c.zip |
Bluetooth: MapClient: Add parameter mask while doing message listing
Paramter mask field was not getting included in application parameter for
message listing even though it is being set properly from client app.
Add change to include the parameter mask in application parameters, to
allow filtering using parameter mask while doing message listing.
Change-Id: I1bee3f512f877974bb8fd63f3b27dc3ce3ff8a13
CRs-fixed: 714458
-rw-r--r-- | src/android/bluetooth/client/map/BluetoothMasRequest.java | 1 | ||||
-rw-r--r-- | src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/android/bluetooth/client/map/BluetoothMasRequest.java b/src/android/bluetooth/client/map/BluetoothMasRequest.java index 658a344..0c9c29c 100644 --- a/src/android/bluetooth/client/map/BluetoothMasRequest.java +++ b/src/android/bluetooth/client/map/BluetoothMasRequest.java @@ -43,6 +43,7 @@ abstract class BluetoothMasRequest { protected static final byte OAP_TAGID_NEW_MESSAGE = 0x0d; protected static final byte OAP_TAGID_NOTIFICATION_STATUS = 0x0e; protected static final byte OAP_TAGID_MAS_INSTANCE_ID = 0x0f; + protected static final byte OAP_TAGID_PARAMETER_MASK = 0x10; protected static final byte OAP_TAGID_FOLDER_LISTING_SIZE = 0x11; protected static final byte OAP_TAGID_MESSAGES_LISTING_SIZE = 0x12; protected static final byte OAP_TAGID_SUBJECT_LENGTH = 0x13; diff --git a/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java b/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java index d5460f9..47af51c 100644 --- a/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java +++ b/src/android/bluetooth/client/map/BluetoothMasRequestGetMessagesListing.java @@ -98,6 +98,8 @@ final class BluetoothMasRequestGetMessagesListing extends BluetoothMasRequest { oap.add(OAP_TAGID_SUBJECT_LENGTH, (byte) subjectLength); } + oap.add(OAP_TAGID_PARAMETER_MASK, parameters); + if (maxListCount != 0) { oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) maxListCount); } |