9902f3494c6d983879d8b9cfe6b1f771cfefe703 |
|
10-May-2013 |
Elliott Hughes <enh@google.com> |
Finish off AutoCloseable. Bug: 3484927 Change-Id: Ia0f5ad3db9807459ce6cda05bc2f53564b63b375
|
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
|
32c2297a959b72abdb18743f0519e1d8b7c7ea88 |
|
17-Mar-2011 |
Elliott Hughes <enh@google.com> |
Remove bogus "super()" calls. I've left one in java.util.concurrent, since we have an upstream there. Change-Id: I60945e48a41433fc7eaef6086433ec4bf434097f
|
8de7cf6bff36093dda9e25a1ab3718720cb54906 |
|
07-Mar-2011 |
Elliott Hughes <enh@google.com> |
Move the various concrete SocketImpl classes into java.net. Also do some trivial tidying of dead code. Bug: http://code.google.com/p/android/issues/detail?id=15304 Change-Id: If7186dda6bf31e2c2ef00ac6f386cbc9a78847fd
|
a9c6c9013b08934867f71b69a90efce0c1b66918 |
|
11-Jan-2011 |
Elliott Hughes <enh@google.com> |
Documentation improvements for socket options. Bug: http://code.google.com/p/android/issues/detail?id=13898 Change-Id: I202a5404e7e828f074483a3f6365b4e3a941da7d
|
ad41624e761bcf1af9c8008eb45187fc13983717 |
|
07-Jan-2011 |
Elliott Hughes <enh@google.com> |
Retire SecurityManager. This change removes all the code that was calling getSecurityManager, and removes all use of AccessController.doPrivileged. It also changes the implementation of AccessController so it doesn't actually do anything; it's only there for source-level compatibility. Bug: 2585285 Change-Id: I1f0295a4f12bce0316d8073011d8593fee116f71
|
0d93c38cc3c7a5001aece8a18cafc6d1fc7551f3 |
|
04-Nov-2010 |
Elliott Hughes <enh@google.com> |
Add a public @hide InetAddress.isNumeric. Some frameworks/base callers want to know whether they can call getAllByName/getByName without incurring a DNS lookup. Rather than have them write their own JNI to do the AI_NUMERICHOST getaddrinfo(3) call, let's just offer them ours. Why don't I fully expose getaddrinfo(3)? Because it doesn't map to Java API very well, and no-one needs that yet. So for now, let's take the easy way out. Also improve some misleading javadoc. Bug: 3073384 Change-Id: Ia1990313306254598a4e1480cae356f68ceaaf22
|
4d743816cad738bfeccf6dc210fc7c9bd84a8777 |
|
29-Sep-2010 |
Jesse Wilson <jessewilson@google.com> |
Tests for ServerSocketFactory.getDefault(). Motivated by http://b/2587385 Change-Id: If30898859f869c88342d1069a2425575752ebf6e
|
7365de1056414750d0a7d1fdd26025fd247f0d04 |
|
12-Aug-2010 |
Jesse Wilson <jessewilson@google.com> |
Sorting imports. Change-Id: I8347bc625480a1c37a1ed9976193ddfedeb00bbc
|
0371d85fa3ecb5f162d107cdbff0a99cd987fdcc |
|
27-Jul-2010 |
Elliott Hughes <enh@google.com> |
Fix setSoLinger. The bizarre use of Boolean or Integer (rather than just using -1) comes from the RI. Third-party SocketImpl implementations may expect the RI's documented behavior, so we should probably do the same. I've also changed SocketChannelImpl.SocketAdapter to reuse Socket's implementation of all the socket option getting/setting code, mainly so we don't have two copies of all the weirdness. I've also fixed a bug in the native getSocketOption code which returned a Boolean rather than an Integer for IP_TOS/IPV6_TCLASS, though that code is actually never called at the moment. I've removed support for passing Byte values to setSocketOption. The RI only uses Boolean and Integer. Change-Id: I80ba63745f4c4f3ac357dc3f0b7cbf254a291bce
|
4e4000ed98f9056639fba0713a3fd3caacf9746c |
|
27-Jul-2010 |
Elliott Hughes <enh@google.com> |
Let the kernel handle network timeouts by setting SO_RCVTIMEO. As far as I can tell, the reason other implementations use select(2) instead of SO_RCVTIMEO is that traditionally the latter wasn't implemented. Stevens is unusually unspecific about the portability of SO_RCVTIMEO, but the web says that Linux didn't support it until 2.4, and Solaris was late and buggy too. Modern versions of Linux, Mac OS, and Windows all support SO_RCVTIMEO, though, so portability should not be a concern for us. This patch causes a regression; several of the blocking network I/O methods that used to be interruptible by virtue of their select(2)-based manual implementation of timeouts are no longer interruptible. Making all network I/O interruptible is work in progress, covered by http://b/2823977. Bug: http://b/2512069 Change-Id: I0a2812ca1537bd171c4205343d6b3b526b72b2b2
|
3bf03b8be207d0c760bcad5eae5028e854498376 |
|
14-Jul-2010 |
Elliott Hughes <enh@google.com> |
Remove the last few "Answer"/"Answers" from javadoc. Change-Id: I753bd9bbfc1462d948929197f00668fa1e1237f2
|
b1396870f92135aa140bd2b86221768dea5bc11d |
|
25-May-2010 |
Elliott Hughes <enh@google.com> |
Remove the luni localized exception messages. Also fix a bug I introduced in KXmlSerializer: s.isEmpty() is not equivalent to "".equals(s) if s is allowed to be null. Bug: 1251121 Change-Id: I41a0a98ffb49f214041c9110f824d327af5c34e8
|
f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 |
|
13-May-2010 |
Elliott Hughes <enh@google.com> |
Remove all trailing whitespace from the dalvik team-maintained parts of libcore. Gentlemen, you may now set your editors to "strip trailing whitespace"... Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
|
fd6bb3510c2f94d636f3572dcf5f7f4dcd1a2726 |
|
13-May-2010 |
Elliott Hughes <enh@google.com> |
Remove //$NON-NLS-\d$ cruft. Mostly done by perl(1), with manual cleanup of the few misspelled instances. This makes our trailing whitespace slightly worse, but I'll fix all that with a follow-on change. Change-Id: I0b4ca98819be6f9519c4ba980d759bd1ee1a0303
|
edc2dae4345ea305f092ade00419685d77c8eee9 |
|
08-May-2010 |
Elliott Hughes <enh@google.com> |
Trivia. Remove unused parameters from NetworkInterface's native methods. Remove commented-out static initializers. Fix FileChannel.force so that force(true) doesn't do _less_ than force(false). Note that force(true) still doesn't do _more_ than force(false) because bionic doesn't implement fdatasync(2). I've raised a bug against bionic about that. Change-Id: Ia5e827638606a7919e3bcf324810747ee6bcbb9a
|
f1072c37db1f647ab6bbbb9b866b699ef1e19ec3 |
|
09-Mar-2010 |
Elliott Hughes <enh@google.com> |
Fix a comment. Change-Id: Iba79dbc04876d5c7cb93aba56541e7dda3c6f887
|
55392539fea537abfb6581b474918f9d611fba27 |
|
16-Dec-2009 |
Jesse Wilson <jessewilson@google.com> |
Update luni package to Harmony r888752. Conflicts: libcore/luni/META-INF/MANIFEST.MF libcore/luni/make/findbugs-exclude-filter.xml libcore/luni/src/main/java/java/io/BufferedOutputStream.java libcore/luni/src/main/java/java/io/BufferedReader.java libcore/luni/src/main/java/java/io/CharArrayReader.java libcore/luni/src/main/java/java/io/StringReader.java libcore/luni/src/main/java/java/lang/StrictMath.java libcore/luni/src/main/java/java/lang/ref/ReferenceQueue.java libcore/luni/src/main/java/java/net/Inet4Address.java libcore/luni/src/main/java/java/net/InetAddress.java libcore/luni/src/main/java/java/util/ArrayList.java libcore/luni/src/main/java/java/util/EnumSet.java libcore/luni/src/main/java/java/util/HugeEnumSet.java libcore/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyConstantPool.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/AbstractMemorySpy.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/DebugMemorySpy.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/Endianness.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/IFileSystem.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/IMemorySystem.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/INetworkSystem.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/IPlatformConstants.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/OSFileSystem.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/OSMemory.java libcore/luni/src/main/java/org/apache/harmony/luni/platform/OSNetworkSystem.java libcore/luni/src/main/java/org/apache/harmony/luni/util/InputStreamExposer.java libcore/luni/src/main/native/hyzip/shared/zipcache.c libcore/luni/src/main/native/hyzip/shared/zipsup.c libcore/luni/src/main/native/include/jni.h libcore/luni/src/main/native/include/jni_types.h libcore/luni/src/main/native/include/jvmti.h libcore/luni/src/main/native/include/jvmti_types.h libcore/luni/src/main/native/launcher/unix/main_hlp.c libcore/luni/src/main/native/luni/shared/OSNetworkSystem.c libcore/luni/src/main/native/luni/shared/file.c libcore/luni/src/main/native/luni/windows/makefile libcore/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java libcore/luni/src/test/java/tests/api/java/io/BufferedOutputStreamTest.java libcore/luni/src/test/java/tests/api/java/io/BufferedReaderTest.java libcore/luni/src/test/java/tests/api/java/io/SerializationStressTest.java libcore/luni/src/test/java/tests/api/java/net/SocketTest.java libcore/luni/src/test/java/tests/api/java/util/ArrayListTest.java libcore/luni/src/test/java/tests/api/java/util/EnumSetTest.java libcore/luni/src/test/java/tests/api/java/util/TimerTest.java
|
4fefecee9d4a5d2a4510f516b4015607b19e8d09 |
|
13-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
eclair snapshot
|
7861ea9a813b337a4abd0378584baae9cc177896 |
|
12-Nov-2009 |
Elliott Hughes <enh@google.com> |
Remove OSNetworkSystem.oneTimeInitialization. Do this work at JNI registration time, as we do for almost everything else. (I did this to rule out a warning from the dalvikvm deadlock prediction code, which doesn't like the unusual lock ordering at initialization time, and although it didn't make any difference to that, I prefer to have a defined static order of initialization.)
|
051128862ae7c5c031b8ddb763848ed264a63746 |
|
26-Aug-2009 |
Lorenzo Colitti <lorenzo@google.com> |
InetAddress refactoring. 1. Refactor all protocol-specific methods from InetAddress into Inet[46]Address. 2. Move all protocol-specific constants from InetAddress into Inet[46]Address. This change should have no effect on the stack's behaviour but makes it easy to find parts of the code that still have dependencies on IPv4 so they can be examined and fixed. Change-Id: I70860ee04cf7c01bffaa35c8c64199f69d99826f
|
a389b4a499f40379b0b204d7ba1c2057663d95c0 |
|
11-Aug-2009 |
Jesse Wilson <jessewilson@google.com> |
Update Luni to Harmony r802921. Notable changes: - replaced StringBuffer with StringBuilder in several places - fixed a problem with BufferedInputStream's newline characters (EBCDIC) - cleanup Timer's finalizer helper object - new cache for the canonical path of a file - fixed concurrency issue with ArrayList - floating point parsing now trims length for very small numbers - encoding specified "UTF-8" when converting some byte[]s to strings (JarURLConnection, Util, OSFileSystem) - Harmony now implements floor and ceil in Java. We continue to use native code.
|
f5597e626ecf7949d249dea08c1a2964d890ec11 |
|
25-Jul-2009 |
Jesse Wilson <jessewilson@google.com> |
Integrate luni module (but not tests) to Harmony r772995. Notable changes - Stripped "@since Android 1.0" from many files. Most files are now 100% the same in Dalvik and Harmony. - AbstractStringBuilder.reverse() supports surrogates - AbstractStringBuilder shares less to waste less memory - Bitset optimized - BufferedInputStream changed to support unsynchronized close() - BufferedOutputStream does flushInternal - BufferedReader supports EBCDIC NEL - Collections.synchronizedList().indexOf() does a copy for more concurrency - Classes in nio module changed: DatagramChannelImpl, SocketChannelImpl and ServerSocketChannelImpl (these depend on internal APIs changed in this update) - DataInputStream/DataOutputStream now use a small buffer to limit the number of times the underlying stream is accessed - Date now has a minutes offset, more efficient toString() - ExposedByteArrayInputStream: new internal class - DeleteOnExit moved to top-level class - FileDescriptor.isValid() now non-native - Float, Double lessThan optimized (fix for compare(-0.0F, 0.0F) still pending) - FileURLConnection now guesses content types from streams - HashMap iterator changes - Hashtable iterator changes - INetworkSystem - removes bind2(), createMulticastSocket, sendStream(), - renames createSocket to createStreamSocket - JarURLConnection rewritten - LinkedHashMap: new iterator - Locale, Currency, TimeZone: now use ICU in Harmony, plain Java in Dalvik - ObjectInputStream: Accessor objects in Harmony, direct native in Dalvik - ProxyClassFile - many changes - String - optimized ascii for toLowerCase, toUpperCase, compare - Timer - rewritten - TreeMap - rewritten - URLClassLoader - new - URLConnection - new guessContentTypeFromStream(), uses org.apache.harmony.awt.www.content to lookup content type handlers
|
adc854b798c1cfe3bfd4c27d68d5cee38ca617da |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
1c0fed63c71ddb230f3b304aac12caffbedf2f21 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
a0881d052ee72e3f7e773374e9b1aa75fbd6be4c |
|
10-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@125939
|
dd828f42a5c83b4270d4fbf6fce2da1878f1e84a |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
|
fdb2704414a9ed92394ada0d1395e4db86889465 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
|