History log of /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
76dc9e2d09ea7f2655e557462c149a0c6b6dd771 20-Jun-2014 Mick Lin <Mick.Lin@mediatek.com> Change some rule in Pbap to fix Test case issues

Change-Id: Iec6db0c52cf05fd6fada40b7726b02768474181a
(cherry picked from commit e529b58896b2191eacbc6aa0f01f1f0341626d21)
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
6db8e703719f301f75acdf4acacc3296cc1b5016 13-May-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Add Filters support.

This patch adds attribute filter support to PBAP. It will allow remote
devices to request the particular attributes.

Change-Id: Ia0a4f55f14925b0cf8d0553c64222d781edef2fd
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
1321cd814a7406260ba6282d9c71e1a2d8925262 03-Oct-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Check for spurious entries of searched contacts

This patch adds the check to limit the search if we already
have got the contact name by number so that same contact
will not be getting searched more than one number of time.

Change-Id: If4a26433e28cad90394833b51cc3ff0d0bcf7e36
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
0d1322483285ccc9ca7bedf515821c5c105a44e6 30-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Change string search comparison from NULL to empty

This change compares the searchValue atribute to empty
string value rather than comparing with the NULL object
since the searchValue object itself is never NULL and
only the value becomes an empty string. Without this
patch DUT was returning no list on Vcard-listing request
by PBAP Client.

Change-Id: I20cdfc0246af3057ba8ee268dee3de1893810638
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
90d9ea96c0b0f3209dc03667e21d14a13ca1f614 06-Feb-2014 Hemant Gupta <hemantg@codeaurora.org> PBAP: Fix search by number issue for contacts.

Fix String outofbounds exception while searching
contacts by NUMBER Search attribute.

Change-Id: Ib82cc138c1fa17c68751eb124114e1f8c2c83324
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
130969d18eadbd94361fe95bf16b8131cdea6168 09-Dec-2013 Hemant Gupta <hemantg@codeaurora.org> PBAP: Compare Name and ID both for getting vcard by number

This change will add a ID comparison along with the
Name before writing the final vcard entry when we get
the list through getContactsNamesByNumber
to avoid providing the vcard having the same name but
different numbers.

Change-Id: Ie2e1567a784cd3d872495a029fce6b51a39de993
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
e1bc19b7d99f2a29c305a8e4bb75969a66783def 24-Feb-2014 Matthew Xie <mattx@google.com> am 27385b9b: Merge "PBAP: Remove initialisation of Missed calls number"

* commit '27385b9b93a06862fed92f7260416276dbbbfa66':
PBAP: Remove initialisation of Missed calls number
28c90ba40b2bfd572860600d18e3dd3e2770e635 27-Nov-2013 Smriti Gupta <smritig@codeaurora.org> PBAP: Remove initialisation of Missed calls number

Thic change will remove initialisation of Missed calls number
at the time of connection as NewMissedCall number indicates the
number of missed calls that have been received on the PSE since
the last PullPhoneBook request on the mch folder, at the point
of the request.

Change-Id: I5f769011a34cfe8e7225fca646a58451639dcfa5
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
8fa8d120e86c7488616cc7f7310843f15278b5d9 14-Oct-2013 Zhihai Xu <zhihaixu@google.com> Device cannot go to sleep while connected to HBM-570 BT headset

The headset never disconnect the Obex connection for PBAP,
so in this case, we never release the wakelock.
Our PBAP implementation won't release wakelock
until the Obex is disconnected by the remote device
To better control the wake lock, we should
only acquire the wakelock when we receive the reqeust from the remote device
will release the wakelock after we send the response packets.

bug:10957699
Change-Id: I85e0609e36788d9c36334dd804ec52c90b90615b
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
e479e18951a375a548e617e86e3b1b7d121351a1 25-May-2012 Fred <fredc@broadcom.com> Fixed PBAP to use simple pairing instead of numeric comparison (same as before).
Also, escape special characters in vCard-Listing XML object

Change-Id: I32eb126f3dba4b35af39e6e0636f2f7f7e8d94a8
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
c7a57f31515107366589bd6875c3cc4af1fc806e 07-May-2012 fredc <fredc@broadcom.com> Added PBAP support for fetching owner vcard info from phone's profile. Added PBAP image support

Change-Id: Ieb2993c9505185d4f85cbbf6b5c554936618cff0
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
ce8d51a3a43d113a4a6bad30d595c2a81d0f623c 21-Mar-2011 Yoshiharu Kurita <yoshiharu.x.kurita@sonyericsson.com> Handle PBAP response packet as raw bytes

Adjust PBAP response packet to be always handled as bytes.
Currently, it is handled as string when is read from internal data.
This causes the lack of PullvCardListing packet and the abort of
PullPhonebook transaction when multi-byte characters are contained
into corresponding contacts.
This fix will avoid the lack and the abort by writing whole packet
into the target stream as byte.

Change-Id: I17ee3ada25718cc263c9e0942f75605bd971b638
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
174a747944b553c654d149140d034612924d3ece 05-Apr-2011 Par-Gunnar Hjalmdahl <par-gunnar.p.hjalmdahl@stericsson.com> BT: Fix for vCard Listing error

This patch fixes listing of the incomplete vCard xml file, which
contains special characters which are larger than one byte.

Change-Id: Ice5a056004aa30255a06f8742428d4bcfa5813c8
Signed-off-by: christian bejram <christian.bejram@stericsson.com>
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
9522370104410f24602ac98172bfbda27f89780d 07-Jan-2011 Yoshiharu Kurita <yoshiharu.x.kurita@sonyericsson.com> Fix 'New Missed Calls' count in PullvCardListing

When the phone receives a PullvCardListing request about mch
(Missed Call History), PBAP application sends a corresponding
response which contains the number of 'New Missed Calls' in
the header. Currently, the number of 'New Missed Calls' is
included into a response against the other type of
PullvCardListing request after the phone receives mch
PullvCardListing request which contains MaxListCount = 0 and
ListStartOffset = 0 (these parameters mean PCE only wants the
number of index), because any of PullvCardListing requests
are miss-detected as mch in this case. And then the internal
value for 'New Missed Calls' is also updated, so the number
of 'New Missed Calls' becomes incorrect when answering the
next PullvCardListing about mch.

The solution is to fix the miss detection.

Change-Id: Ic09257fc554d8b7af9498d2ff79e017f6e56510c
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
6f02f510e5dc3fb994516128f2de1d78bc7f9b1e 07-Dec-2010 Staffan Lindvall <staffan.lindvall.x@sonyericsson.com> Incorrect response code after pull of invalid vCard handle.

When calling pullVcardEntry with an invalid / non-existing
vCard handle the response code is always "OK".

Instead the phone should respond "NOT FOUND" according
to Bluetooth PBAP specification.

The problem exists both for phonebook and call logs.

Change-Id: I339b1fe0cdb7fa9b6c6b425f1b1686c24cab9626
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
22e1e357b6053b572820b54ed8f2b8fe3c1eb0f8 07-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 16d171b1: Merge "code cleanup. some unused import statement, local variabls, private members and static constants removed form classes in com.android.bluetooth/pbap package."

* commit '16d171b1ba7bd2b74c15b9f4d0289de84117cbb5':
code cleanup. some unused import statement, local variabls, private members and static constants removed form classes in com.android.bluetooth/pbap package.
cff3303d1878037f35c9feb58e0c747aef403d4d 01-Nov-2010 Mohammad Shamsi <m.h.shams@gmail.com> code cleanup.
some unused import statement, local variabls, private members and static constants removed form
classes in com.android.bluetooth/pbap package.

Change-Id: I95d7d403ab78afa6f9ada82cfb357056a6bf61d0
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
0dcd2262d853c2011e11617a8efba6758370c41f 05-Oct-2010 Liejun Tao <L.J.Tao@motorola.com> Make "search by number" function work

Previous "search by number" is wrong. Re-implement it to make it work.
Add flexible to handle searchValue as both null-terminated and not
null-terminated.

Change-Id: Ie50f8d29dfcbae868c43d482467b09b08ed2be0f
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
4ce32fccf381a3b448f0d5ff56665201c0e0e6d3 16-Jun-2010 Ola Johnsson <ola.johnsson@sonyericsson.com> PullvCardList implemented according to specification

The value tag sent as a byte array was not parsed correctly
leading to illegal strings. The list count value was not used
according to the specification, now refers to number of entries
that should be returned. Specification for Phone book access
profile chapter 5.3 default max list size of OxFFFF (65535)
taken from 5.3.4.4. Now uses default values when Application
Parameter headers are missing.

Change-Id: Ib17f2208a91b4f896d9beebaf3a21566502ac291
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
77b122f551ae37811c75ae76fa2029f7b3f2f404 22-Sep-2010 a5206c <a5206c@motorola.com> For PBAP, Limit the number of call log to CALLLOG_NUM_LIMIT
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
12f500b84c1a635d0ed951c8c586f81b55fb9f6b 16-Jun-2010 Ola Johnsson <ola.johnsson@sonyericsson.com> PullvCardList implemented according to specification

The value tag sent as a byte array was not parsed correctly
leading to illegal strings. The list count value was not used
according to the specification, now refers to number of entries
that should be returned. Specification for Phone book access
profile chapter 5.3 default max list size of OxFFFF (65535)
taken from 5.3.4.4. Now uses default values when Application
Parameter headers are missing.

Change-Id: Ib17f2208a91b4f896d9beebaf3a21566502ac291
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
20b5a93b6e18cd441065edfdf676ad612affc507 18-Mar-2010 Jaikumar Ganesh <jaikumar@google.com> Fix Typo.

Change-Id: Ia71a5b3bb970463132b2c25b90cf3897fc227fb9
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
0b1b0069658326e8c12dc0f887e4319c5227feb5 16-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Add ABORT request handling to PBAP
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
a4508589f298c67fda54c344760ae39f0f375c11 10-Dec-2009 Lixin Yue <L.X.YUE@motorola.com> Update the error codes to be compatible with PBAP spec.

Catch IndexOutOfBoundsException and NullPointerException in Opp sendFile().
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
2b36e1731eb5ed784abc1a374eb69d8523123df1 30-Oct-2009 Jaikumar Ganesh <jaikumar@google.com> Fix get contact size not correct issue.

Call history handles should be ordered by "date DESC" per spec. The first
handle 1.vcf should be the most recently happend call.

Add order support for pullVcardListing reqeust:
One typical use case for PBAP is: first use pullVcardListing request to
display the contacts list, then use pullVcardEntry request to tirgger
the selected contact vcard. In such case, we need keep the contact db
query consistent for pullVcardListing and pullVcardEntry.

Use "Own number" for phone owner number instead of "Unknown name" in case
can not get the name from system.

Original Change: Fan Jackson
Dr No: Eastham
Bug Id: 2183320
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
18bde766b20c899310ebdd5ca823e30ff27d407f 27-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP to make compatiable with spec

Add check to incoming application parameter, be nice to accept PCE request
Fix minor pullvCardEntry issue for call logs
Fix one pullPhoneBook issue about request size
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
2f8fe66f45bac2bc61395bd4f8de553f4c2b7c30 24-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP to use new VCardComposer

Totally removed the use of old syncml.pim.vcard.VCardComposer
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
c5495c585c0d19cdd20963e5a2144e5f984a306e 09-Sep-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP to be compatible with Mecel stack

The response to the targeted connect operation should contain a Who with the same UUID as
sent in the request's matching Target header. If the Who header was present in the request,
a Target header identifying the same client should be sent in the response.

Play ringtone for incoming PBAP connection request
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
4446eaa935994bc91d6d308303e8d27526b4590d 31-Aug-2009 Lixin Yue <L.X.YUE@motorola.com> Pbap update

Improve PBAP download contacts performance greatly
Add 10 times retry for creation of listening socket
Change PbapReciever to be clearer
Rename functions and adjust function sequence in PbapService
Cleanup logging
Remove unused functions
Remove serversocket polling
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
d896162ef022a5607b13bae5177637ff3f18b737 28-Jul-2009 Lixin Yue <L.X.YUE@motorola.com> Update PBAP per review comments:

Patch 3 fix listing call-history issue
Remove the use of Enum in PbapObexServer.java
Simplify codes by using function and paras
Change some informal usage in codes
Fix minor issues
Rename some function and vars
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
b9cd7fee03a41e56a0cea9aa2e1af3b28c5be590 23-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Add copyright and fix some style issues.
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java
2c282d5898ac0916470ebfa9ff26ba784cf4bb24 18-Jul-2009 Jackson Fan <xyfan@motorola.com> Add pbap into bluetooth package

Update PBAP as patchset 5
Adjust some resouces strings after UI test
Change localized resource usage
Modify exception handle, rename a confusing variable name
Remove compile dependency on 240 for now. Add TODO in code
Some minor changes to address the comments
Submit on-behalf of Yue Lixin <a5206c@motorola.com>

Update PBAP as patchset 4 according to comments
Format resource files
Re-organize the logs
Submit on-behalf of Jiafa Liu <pbx376@motorola.com>
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java