History log of /frameworks/base/obex/javax/obex/ServerSession.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4dc4d56e5e4d9a1c7dbb4b847df10f594c84bac3 05-Nov-2015 Hemant Gupta <hemantg@codeaurora.org> Bluetooth: OBEX: Don't close transport when obex is disconnected

Precondition: PTS 7.0

Usecase:
Execute test case TC_TG_CA_BI_02_C for AVRCP 1.6

Expectation:
Test case should pass

Observation:
Test case fails

Root cause:
Disconnection of OBEX from PTS leads to disconnection of transport
(initiated by DUT) leading to test case failure. Obex server was
unnecessary assuming that transport would be disconnected so was
informing registered users that transport has been disconnected,
which was leading to issues on new obex connect on same transport
channel from remote obex client

Fix:
Remove check to break out of loop after obex disconnection, as that is
already handled in case when read would return -1 in case transport
is closed.

Test: TC_TG_CA_BI_02_C can be passed after the patch.

Bug: 35590000
Change-Id: Ic1682ce77c07cf2e43da09dc95fff2214338f758
(cherry picked from commit 850758fb63ded57acf218341812ead95f7159ad6)
/frameworks/base/obex/javax/obex/ServerSession.java
3fba4935a7d2353f6f3ec1091729e3509ba73d41 24-Jul-2015 Hemant Gupta <hemantg@codeaurora.org> OBEX: Set Min maxPacketLength negotiated in CONNECT Operation.

Set OBEX Server maxRxLength to the minium value acceptable from
either server and client during CONNECT Operation.

Below basic and all PUT test cases fail without this fix, as the
maxPacketLength for later is less than maxRxLength of server.
TC_MSE_MMU_BV_03_I
TC_MSE_MMU_BV_02_I

Change-Id: Iaa4f92e3146dc13d647dca12c84eb43b91657efa
/frameworks/base/obex/javax/obex/ServerSession.java
238e0f934f1f47263b384bc745ae0678c777130d 09-Apr-2015 Casper Bonde <c.bonde@samsung.com> OBEX Over L2CAP + SDP search API for BT profiles

- Updated OBEX to support SRM
- Added support for OBEX over l2cap and SRM.
- Minor bugfixes, and reduce CPU load ALOT
- Added support to send responses without body data.
- Extend BluetoothSocket to support L2CAP
- Added functionality to get the channel number
needed to be able to create an SDP record with the channel number.
- Added interface to get socket type and max packet sizes.
- Added interface to perform SDP search and get the resulting
SDP record data.

Change-Id: I9d37a00ce73dfffc0e3ce03eab5511ba3a86e5b8
/frameworks/base/obex/javax/obex/ServerSession.java
0d376053747615ac7c4b45ab7810329ffbdf80d1 22-Aug-2013 Kim Schulz <k.schulz@samsung.com> Fixed review comments

- fixed review comments (internal+google)
- corrected tabs/spaces
- Add connection id header for obex client operations
- added support for implementing ProfileService class

Change-Id: Idab8b4fa54a0f31bec4ffa263a69a9850a07f858

Bug:10692365
/frameworks/base/obex/javax/obex/ServerSession.java
8258ebdf128ef70a96fcaaa294167e39f1b5e94e 02-Mar-2010 Lixin Yue <L.X.YUE@motorola.com> Add ABORT support to Obex lib
/frameworks/base/obex/javax/obex/ServerSession.java
69f72c00a12933f0fde049e8465257745f373d21 10-Dec-2009 Lixin Yue <L.X.YUE@motorola.com> Update OBEX lib setPath Flags handling logic to be compatible with spec.

From IrOBEX, 3.3.6.1, we can see below explanation for Flags bit 1:
1 Don't create directory if it does not exist, return an error instead.
The correct understanding should be: if bit 1 is set to 1, we'll not create
directory if it not exist; if bit 1 is set to 0, we'll create it if it not
exists.
/frameworks/base/obex/javax/obex/ServerSession.java
e80534ff59b2e62a0ddf4359147b81f5ba10de86 09-Sep-2009 Tao Liejun <L.J.Tao@motorola.com> Fix connection ID issue in Obex lib

ConnectionID should be consistent in one Obex session.
/frameworks/base/obex/javax/obex/ServerSession.java
0b309d6ee433d55b7499d7bbd447494366ef1316 20-Jul-2009 Jackson Fan <xyfan@motorola.com> Improve Obex compatibility

Handle headers with excessive whilespace
Send correct reponse code when client abort onPut
/frameworks/base/obex/javax/obex/ServerSession.java
05ff98bbefda39b9ff26f8bca132cfd0248745c6 14-Jul-2009 Tao Liejun <L.J.Tao@motorola.com> Fix minor obex bugs and re-format the comments

re-format comments
move connectible to connectable
remove unnecessary throws
remove not-used function ClientOperation.readResponse()
fix client abort case for PUT
set mOpen for PrivateOutputStream
add to platform.xml
/frameworks/base/obex/javax/obex/ServerSession.java
3998bf009acaf8cde4d7f837f8b8e41ae0a65141 02-Jul-2009 Tao Liejun <a19884@motorola.com> Obex library cleanup, third pass

- Change variable namings
- Remove interface public modifier
- Move 2 duplicate methods to ObexSession
- Removed unused code and variables
- Use static variables for some protocol defines
/frameworks/base/obex/javax/obex/ServerSession.java
2e0da96e757a977154063f980d3f4e1abd41cf09 01-Jul-2009 Nick Pelly <npelly@google.com> Obex library cleanup, first pass.

o Add Android.mk file.
o Add @hide so it is not exposed in the public API. It is not yet in shape.
o Prefer @throws to @exception
o Do not use @version. This is meaningless in Android.
o Prefer classes 'final' unless explicitly allowing inheritance
(See "Effective Java" item 15)
o Prefer CamelCaps java naming even for acronyms (OBEXHelper -> ObexHelper)
o Use the built-in MD5 library.
o Move ObexConstants into ObexHelper.
o Remove unused variables.
o Prefer stricter access priveleges. Most importantly, avoid public fields.
o Don't use 'import java.io.*'. Name each class explicitly.
o Delete commented out code. If its not used then remove it.
/frameworks/base/obex/javax/obex/ServerSession.java
9439a7fe517b858bc5e5c654b459315e4722feb2 30-Jun-2009 Nick Pelly <npelly@google.com> Add javax.obex library, contributed by Motorola.

Based of a JSR-82 reference implementation.

This check-in is 'as-is' from the source provided June 25.

This code does not conform to Android style and quality guidelines. I will be
working with Motorola to improve it. If it does not see substantial improvement
in the Eclair timeframe it will be deleted.
/frameworks/base/obex/javax/obex/ServerSession.java