Age | Commit message (Collapse) | Author |
|
Use parseInt when the result is assigned to an int. Allocates fewer
objects.
bug: 28078871
Change-Id: Iabff8445d703859b20b0f26a407cd5890ec98b80
|
|
Removal of code that was migrated into packages/apps/Bluetooth.
Bug: 27490041
Change-Id: I482e0cc4193ac886c5f623c97841e8e1a8b0bc7c
|
|
am: 80232af158
* commit '80232af158166fbf46e0b4fd529cfd298fd8b759':
PBAP takes Account so that VCardList can add them to operation list.
|
|
Change-Id: Ie896efde5f922c7c69cfbc201815a21d13bba02d
|
|
am: b15a8306d2 -s ours
* commit 'b15a8306d22839f252a5c4de597e1d35a9f107a0':
Use only UTF-8 for fetching a message.
|
|
am: a3acb17ad3
* commit 'a3acb17ad38d82048816b37cc1eb6b7872540961':
PBAP OBEX session uses Handler/HandlerThread now.
|
|
am: 6fbf388295
* commit '6fbf38829532d0368c2ae92b3c3d1b59eb34b80b':
Mas Obex client should use Handler instead of threads.
|
|
Since VCardList can create the commits for the accounts database, we
need to add Account information to the parser. This avoids having to do
this in client code.
Bug: b/26862739
Change-Id: I7690489c4e133c09dd4da6c8e3736ea71bb23a4b
|
|
* Fix DBG to be static.
* Add new debugging to PBAP.
Change-Id: I61471466917e0e7c0771f2da7f17f21c51c46962
|
|
Currently the API lets the users fetch SMS using either UTF-8 or native
SMS-PDU format. SMS-PDU is not supported by the String() class (also its
more complicated than just a simple string encoding since it contains
recipient etc information). Besides, the library does not decode such
messages and leaves it to the user to handle them. Currently it decodes
it as the default character set on device which is incorrect behavior.
Hence in this change we ensure that the API can only be used with UTF-8
which makes the conversion of Strings consistent.
NOTE: It's OK to avoid supporting native charset since it is not
mandatory in MAPv12 spec.
Change-Id: Ic10a82ff69f848cb3f6e80353d3e63ce3910d306
(cherry picked from commit 4b4d3f8260c9b4476f900ee7b08ee66450624081)
|
|
PBAP was using Java threads which was making synchronization error prone
(as revealed by just connecting/disconnecting pbap alongwith pulling
contacts). This change uses Handler to post messages and cleans up the
internal state of the OBEX client in general.
Also, make the BluetoothSocket close non-blocking. Before this change
the close() call was waiting on BluetoothSocket#open() to finish which
has a deadlock.
Change-Id: I0d8b3d08e19f6f34f0e115d08227b029c6c6751c
|
|
Using threads has the following issues currently:
* Can only handle one enqueue in flight. Makes the client dependent on
checking sanity.
* Uses interrupts to clean up which can lead to race conditions.
Change-Id: Id3b2e2199fea2347dd2b7102ec60004e996fe344
|
|
Since VCardList can create the commits for the accounts database, we
need to add Account information to the parser. This avoids having to do
this in client code.
Bug: b/26862739
Change-Id: I7690489c4e133c09dd4da6c8e3736ea71bb23a4b
|
|
* Fix DBG to be static.
* Add new debugging to PBAP.
Change-Id: I61471466917e0e7c0771f2da7f17f21c51c46962
|
|
Currently the API lets the users fetch SMS using either UTF-8 or native
SMS-PDU format. SMS-PDU is not supported by the String() class (also its
more complicated than just a simple string encoding since it contains
recipient etc information). Besides, the library does not decode such
messages and leaves it to the user to handle them. Currently it decodes
it as the default character set on device which is incorrect behavior.
Hence in this change we ensure that the API can only be used with UTF-8
which makes the conversion of Strings consistent.
NOTE: It's OK to avoid supporting native charset since it is not
mandatory in MAPv12 spec.
Change-Id: Ic10a82ff69f848cb3f6e80353d3e63ce3910d306
(cherry picked from commit 4b4d3f8260c9b4476f900ee7b08ee66450624081)
|
|
PBAP was using Java threads which was making synchronization error prone
(as revealed by just connecting/disconnecting pbap alongwith pulling
contacts). This change uses Handler to post messages and cleans up the
internal state of the OBEX client in general.
Also, make the BluetoothSocket close non-blocking. Before this change
the close() call was waiting on BluetoothSocket#open() to finish which
has a deadlock.
Change-Id: I0d8b3d08e19f6f34f0e115d08227b029c6c6751c
|
|
Using threads has the following issues currently:
* Can only handle one enqueue in flight. Makes the client dependent on
checking sanity.
* Uses interrupts to clean up which can lead to race conditions.
Change-Id: Id3b2e2199fea2347dd2b7102ec60004e996fe344
|
|
- Fix NPE for ObexTime and dateTimeformat.
Handle possible NullPointerException while accessing
map client ObexTime constructor utility.
Send all parameters event, status and notification state to
Test Client for setNotifcationRegistration event both success
and failure case.
- Fix GetMessagelisting Request for maxlistcount value 0.
Include maxlistcount for value 0 in application parameters header
while composing obex GetMessageListing Request to MAP Server.
- Add maxListCount param in getfolderlisting.
A special case, where MCE APP send the folderlisting
with maxlistcount=0, startoffset=5, As DUT(MCE role)
does not include maxListcount param in folderlsiting,
when it's value set to 0 by MCE APP. So as per the spec,
MSE assume maxListCount = 1024 for folderlsiting & MSE
response as the bad request, when startoffset is Out of
range. Adding MaxListCount in folderListing to
solve this issue, when it's value set to 0.
- Handle exception for incorrect length value from MSE
Handle possible exception while parsing GET Message response
with incorrect LENGTH value fetched from MSE.
- Include ParameterMask Header in GET only when specified.
Include ParmaterMask in GET MessageLising Request only when
specific values are selected from TestClient.
ParameterMask is not a mandatory feild as per MAP1.1 Spec.
excluding ParameterMask for default or value '0' fix MSE IOT
issues that doesnot support ParameterMask Header.
Change-Id: I1bee3f512f877974bb8fd63f3b27dc3ce3ff8a13
|
|
3920adc Update to new OBEX transport and SDP search
|
|
The fetchMasInstances() search API have been replaced with a more
generic sdpSearch(UUID) API, and therefore the constructor of
BluetoothMasClient should take in a SdpMasRecord in stead of
a BluetoothMasInstance.
Any app using this library must use the new sdpSearch API and
listen for the new ACTION_SDP_RECORD intent.
Change-Id: I4a9a097fc05e227f606b8eb127a2762ec595cbab
Signed-off-by: Casper Bonde <c.bonde@samsung.com>
|
|
For a dut initiated get vcard request, if the server is responding
with 'Not Acceptable' response code, do not disconnect the pbap
client session. It allows the user to do other pbap operations
without initiating pbap connection request once again.
Change-Id: I389e357f2191c6be8042779d6d4cc77fc7ff64b4
|
|
Implementation of android.bluetooth.client.pbap and
android.bluetooth.client.map STATIC JAVA lib for PBAP and MAP
client role(s). These static libraries can be used by application
for PBAP and MAP Client role support on Bluedroid.
Change-Id: I173d2c095661704e2efb39516837c6b681193e9a
|
|
|