cbf691c98fca3b3cd3fc734057ec15eef76feb43 |
|
07-Apr-2016 |
Shubham Ajmera <shubhamajmera@google.com> |
Add DatagramChannelTest#open(ProtocolFamily) Bug: 27466931 (cherry-picked from commit 817fba95f75a925509e36fc03c9617e0da42c489) Change-Id: Ie5c05e38767c1d4357f825a056a1da80a6d19493
|
e5f08c57bc21f73466326ac0f505ef34d3a362de |
|
01-Apr-2016 |
Shubham Ajmera <shubhamajmera@google.com> |
Add Unit Tests Unit test added for: DatagramChannel.bind(java.net.SocketAddress) DatagramChannel.getRemoteAddress() ServerSocketChannel.bind(java.net.SocketAddress, int) ServerSocketChannel.bind(java.net.SocketAddress) ServerSocketChannel.setOption(java.net.SocketOption, T) SocketChannel.bind(java.net.SocketAddress) SocketChannel.getRemoteAddress(java.nio.channels) SocketChannel.shutdownInput() SocketChannel.shutdownOutput() Bug: 27466931 Change-Id: I0004329d71b1ce113d8dd6d9b72fa0f630d7b060
|
5dbe169025b3c250a58718c576d25b88a0ffb5c7 |
|
29-Mar-2016 |
Sergio Giro <sgiro@google.com> |
DatagramChannelTest: use different value when testing SO_SNDBUF 1024 is below the minimum in some platforms (that is likely to be platform in those platforms' kernels). Changing to 4096 as to avoid hitting the minimum, since libcore is behaving correctly otherwise. Bug: 27821554 Bug: 27893139 Change-Id: I38aaeff4f838132cc3f5a4ec8c45a2e12522a696
|
2cee571dd14eb720c48220e055431ae637c86bda |
|
29-Mar-2016 |
Sergio Giro <sgiro@google.com> |
DatagramChannelTest: use different value when testing SO_SNDBUF 1024 is below the minimum in some platforms (that is likely to be platform in those platforms' kernels). Changing to 4096 as to avoid hitting the minimum, since libcore is behaving correctly otherwise. Bug: 27821554 Bug: 27893139 Change-Id: I38aaeff4f838132cc3f5a4ec8c45a2e12522a696
|
d2ce02c76f071f09f843e51568d00285127a2087 |
|
29-Feb-2016 |
Narayan Kamath <narayan@google.com> |
Revert "Revert "Fix DatagramChannelTest#test_setOption."" This reverts commit 5edc236b2fa90a655ce1bdd13382d75813dc59d7. bug: 27316686 (cherry picked from commit 408019eac1a6019e102c35f0059107c8dc740940) Change-Id: I173bb74adbe7631b690bdcb10ec355789e616346
|
846b46cc22e15f141b44660be429b0b1afdeea58 |
|
29-Feb-2016 |
Narayan Kamath <narayan@google.com> |
Revert "Revert "Fix DatagramChannelTest#test_setOption."" This reverts commit 5edc236b2fa90a655ce1bdd13382d75813dc59d7. bug: 27316686 (cherry picked from commit 408019eac1a6019e102c35f0059107c8dc740940) Change-Id: I173bb74adbe7631b690bdcb10ec355789e616346
|
408019eac1a6019e102c35f0059107c8dc740940 |
|
29-Feb-2016 |
Narayan Kamath <narayan@google.com> |
Revert "Revert "Fix DatagramChannelTest#test_setOption."" This reverts commit 5edc236b2fa90a655ce1bdd13382d75813dc59d7. bug: 27316686 Change-Id: I1da3ffdf05891e8581cf24c94b689a3c420acba7
|
5edc236b2fa90a655ce1bdd13382d75813dc59d7 |
|
29-Feb-2016 |
Narayan Kamath <narayan@google.com> |
Revert "Fix DatagramChannelTest#test_setOption." This reverts commit 5ece1b52d3269bc9fb6902ce0daac58fd50805ec. This included other random cruft that's unrelated to this change. Change-Id: Ia563a18b2c2d809c2de0615cee9e35b7f89bc7ae
|
5ece1b52d3269bc9fb6902ce0daac58fd50805ec |
|
26-Feb-2016 |
Narayan Kamath <narayan@google.com> |
Fix DatagramChannelTest#test_setOption. The kernel rounds up SO_SNDBUF arguments to convenient values. Also, use SO_SNDBUF instead of SO_LINGER because LINGER will not be supported (which will end up in a different exception being thrown). bug: 27316686 Change-Id: Ibc07cdad62d0e199eccdf9323a4ba22053bc2592
|
aff7af3b344bf882620489631633e09fabfcd58d |
|
19-Feb-2016 |
Narayan Kamath <narayan@google.com> |
nio: Add unit tests for setOption / getOption. This also revealed an asymmetry in our APIs. The class defined setOption but was missing a getOption method (inherited from NetworkChannel). bug: 27186457 (cherry-picked from commit dbbe65b6a81ad02bc3bd432f21dccce6c0242cdb) Change-Id: I823af602b258bfc5f7508dc767af7f8dc4fcf537
|
dbbe65b6a81ad02bc3bd432f21dccce6c0242cdb |
|
19-Feb-2016 |
Narayan Kamath <narayan@google.com> |
nio: Add unit tests for setOption / getOption. This also revealed an asymmetry in our APIs. The class defined setOption but was missing a getOption method (inherited from NetworkChannel). bug: 27186457 Change-Id: I823af602b258bfc5f7508dc767af7f8dc4fcf537
|
e409de23a3281073142ff137b609778d6c70a31c |
|
21-Jan-2016 |
Yi Kong <yikong@google.com> |
Revert "Revert "Expose correct FileDescriptor in DatagramSocketAdaptor"" This reverts commit 891ab5193d1ccb28bf342a8026a6b421ac96cd9b. The function was erroneously added to the API list because it used @hide annotation inside a comment. @hide annotation is only effective in Javadoc. Bug: 26292854 Bug: 26689841 Change-Id: Ib85346b3afceb945fbd12cf52cda0c28dd06da3c
|
891ab5193d1ccb28bf342a8026a6b421ac96cd9b |
|
20-Jan-2016 |
Yi Kong <yikong@google.com> |
Revert "Expose correct FileDescriptor in DatagramSocketAdaptor" This reverts commit 60692ecdd181104a05e9f9d0a789c7bf1734f4f2. Bug: 26292854 Change-Id: Ic7b5c04be44bd0a2706bb614deb6f2c23592a588
|
60692ecdd181104a05e9f9d0a789c7bf1734f4f2 |
|
20-Jan-2016 |
Yi Kong <yikong@google.com> |
Expose correct FileDescriptor in DatagramSocketAdaptor DatagramSocketAdaptor doesn't use DatagramSocket's methods. Override its getFileDescriptor method to return the correct fd from DatagramChannelImpl. Bug: 26292854 Change-Id: I64b77db556c6099f563b4072e9d046d15c92527f
|
0aff1dd0b4be1b8d8cb45b59079ca883a1b3205a |
|
17-Jun-2014 |
Elliott Hughes <enh@google.com> |
Remove. (cherry-pick of 63744c884dd4b4f4307f2b021fb894af164972af.) Change-Id: Ibf79a402e1bad98a262e380fcee3d35c127ae6d5
|
63744c884dd4b4f4307f2b021fb894af164972af |
|
17-Jun-2014 |
Elliott Hughes <enh@google.com> |
Remove. Change-Id: Ibf79a402e1bad98a262e380fcee3d35c127ae6d5
|
df29508a7aa622f265aaebdc472eb7d679185ebb |
|
30-Jan-2014 |
Neil Fuller <nfuller@google.com> |
Implementation of MulticastChannel. Note: ProtocolFamily / StandardProtocolFamily / DatagramChannel.open(ProtocolFamily) have not been implemented. There is a related change to libnativehelper that must be merged at the same time to avoid build breakage. See https://android-review.googlesource.com/#/c/81371/ Bug: 12464155 Change-Id: I07fc049b429a2d373e9bd7b07149632f5cd69f9d
|
ff81b740a338ba964e0ba1c40d925fb2ceb37bf2 |
|
20-Jan-2014 |
Neil Fuller <nfuller@google.com> |
Adding additional methods to NetworkChannel. Adding NetworkChannel.supportedOptions(), NetworkChannel.getOption(), NetworkChannel.setOption(). A lot of the changes are in documentation and tests. Bug: 12464155 Change-Id: Ifa56843a8823b6b9cbd262409adc2450b401c654
|
47ae0b5a1d96c8030e0963ccc5b44c3ee66aaec3 |
|
20-Jan-2014 |
Neil Fuller <nfuller@google.com> |
Implementing bind() and getLocalAddress() for NIO2. This change introduces NetworkChannel, but only bind() and getLocalAddress() methods. To avoid breaking existing Android applications that extend ServerSocketChannel, DatagramChannel and SocketChannel the methods have been added with concrete implementations that throw exceptions rather than leaving them abstract. In channel tests, usages of channel.socket().bind() and channel.socket().getLocalSocketAddress() have been changed to channel.bind() and channel.getLocalAddress(), since the behavior is close enough and the tests should be written against the channel APIs as much as possible. Tests have been added for new methods. Removed further overriding in DatagramChannelImpl.DatagramSocketAdapter and SocketChannelImpl.SocketAdapter which revealed some bugs and lack of clarity in the docs for the socket methods: Improved the documentation for DatagramSocket.getLocalAddress(), DatagramSocket.getLocalSocketAddress(), ServerSocket.getInetAddress(), ServerSocket.getLocalPort(), ServerSocket.getLocalSocketAddress(), Socket.getLocalAddress(), Socket.getLocalPort(), Socket.getLocalSocketAddress(). These methods treat special cases differently. Fixed a bug in DatagramSocket.getLocalSocketAddress() where it would incorrect throw an exception if the socket has been closed, which contradicts the (updated) documentation and the RI. It now returns null. Added tests. Fixed a bug in Socket.close(): a closed socket would still report as being connected. Added tests. Fixed a bug in Socket.startupSocket() - the socket was recording it was being bound, but was not updating the cached local address. This method is called during ServerSocketChannel.accept() and would cause the socket to report its local address as being the wildcard address, when it is not. Added a test. Change-Id: Ibec8527e1c72597e268d23e6c1f03eb16e46cdc4 Bug: 12464155
|
a3b57e9cb41fb00ac607cd330fa73270b564b66c |
|
06-May-2011 |
Elliott Hughes <enh@google.com> |
Fix non-blocking DatagramChannel.receive and ServerSocketChannel.accept. The former problem was the reported bug, but the latter was another instance of the same mistake, and much harder to fix. The interesting change here is that we now create the SocketImpl (and thus the underlying OS socket) for a ServerSocket much sooner than we used to: if the constructor doesn't throw, you've got yourself a usable socket. Bug: http://code.google.com/p/android/issues/detail?id=16579 Change-Id: Iac8b707e74cd1367ee0fdc22fc3969677cfa566c
|
4557728efb66c455a52b7669a8eefef7a9e54854 |
|
11-Aug-2010 |
Jesse Wilson <jessewilson@google.com> |
Moving tests to be under the libcore.* package. This is indended to make it easier to run on VMs that restrict the packages from which application classes can be loaded. For example, on the RI you need to use the bootclasspath to load these tests. Change-Id: I52193f35c5fcca18b5a3e1d280505b1e29b388af
|