summaryrefslogtreecommitdiffstats
path: root/luni
Commit message (Collapse)AuthorAgeFilesLines
* Fix unexpected EOF handling by KXmlParser.Vladimir Marko2013-06-281-0/+34
| | | | | | | | | | Avoid read position slipping beyond limit on EOF, causing an ArrayIndexOutOfBoundsException. Also fix two incorrect checks whether to read more data. Bug: 9012715 Change-Id: I40f60becd97eb4d9f33842bea2c19e9dc531d3b7
* Improve Scanner performance.Elliott Hughes2013-06-272-420/+252
| | | | | | | | | | | | | | | | We really don't want to compute a new regular expression and compile it into a new Pattern every time we call nextInt (and friends). Adding a single-element cache (flushed if the Scanner's locale changes) makes this 100x faster. There still exists a pathological case where you switch back and forth between bases. Also improve the documentation to make it clearer that you really don't want to use this awful class anyway. Also bring back a few more of the tests we lost in the gingerbread timeframe. Bug: https://code.google.com/p/android/issues/detail?id=57050 Change-Id: Id6095682fb44abae2887dda29dd3d32ac777c68f
* Fix tests.api.java.lang.ProcessTest#test_getErrorStream.Elliott Hughes2013-06-271-1/+1
| | | | | | | | Our new getopt_long(3) distinguishes between illegal, invalid, unrecognized, ambiguous, and unknown options; the old one only had ambiguous and [two slight variants of] unknown. Change-Id: Iec4f124d66e4e483292043db5a93caa4cf1a15b0
* Clean up the #read javadoc.Elliott Hughes2013-06-2434-515/+207
| | | | | | | | By being more consistent in parameter naming, we can inherit more javadoc. Also fix a couple of javadoc warnings in KnownFailure and DataInputStream. Change-Id: I778f40469404fb50c51cdb1068970974f923180c
* Fix the SocketChannel accept locking behavior.Elliott Hughes2013-06-214-22/+27
| | | | | | | Fixes a harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ServerSocketChannelTest test that had been failing since we turned it back on. Change-Id: I76cbc5edc1ab9edc4d2818bd23649f4b906d662c
* Fix non-blocking SocketChannel connects.Elliott Hughes2013-06-212-21/+73
| | | | | | | | | There are many reasons why the initial connect(2) may have resulted in a ConnectException, only one of which (EINPROGRESS) means we haven't yet failed. Bug: https://code.google.com/p/android/issues/detail?id=56684 Change-Id: I2115998bce9043f076418fb0d1c22a26e04ee2e1
* Merge "Revert "Use CLOCK_MONOTONIC_RAW for System.nanoTime.""Elliott Hughes2013-06-212-7/+2
|\
| * Revert "Use CLOCK_MONOTONIC_RAW for System.nanoTime."Elliott Hughes2013-06-212-7/+2
| | | | | | | | | | | | | | | | This reverts commit 7757924895a28a43ab9f7c3931cc9f972e870ddc. Further investigation suggests this is a worse clock for our purposes, not the better one it would appear to be from the man page. It looks more like it should have been called CLOCK_TSC. Change-Id: I6bf7fe4dac19272f145d240917129b4d5ab5ade1
* | Merge "Use CLOCK_MONOTONIC_RAW for System.nanoTime."Elliott Hughes2013-06-202-2/+7
|\ \ | |/
| * Use CLOCK_MONOTONIC_RAW for System.nanoTime.Elliott Hughes2013-06-202-2/+7
| | | | | | | | | | | | | | We still need to use CLOCK_MONOTONIC on Darwin. Bug: 9511688 Change-Id: Ieb1091e24ad5cd3bab79a4de1b1494cc64eef3d4
* | Merge "Sync java.util.concurrent library up to 12.06.2013."Elliott Hughes2013-06-2070-4159/+5444
|\ \ | |/ |/|
| * Sync java.util.concurrent library up to 12.06.2013.Calin Juravle2013-06-1470-4159/+5444
| | | | | | | | | | | | CouncurrentHashMap was skipped from this sync. Change-Id: I29c67698a2e706b22e3cb5920c5fe91f1f15461c
* | Add a short date format that's guaranteed to have 4-digit years.Elliott Hughes2013-06-171-0/+5
| | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=56385 Change-Id: Ie60d8c61aae09358d296654bd30378cbd11eeecb
* | Merge "Fix CharBuffer.subSequence return type."Elliott Hughes2013-06-134-6/+4
|\ \
| * | Fix CharBuffer.subSequence return type.Elliott Hughes2013-05-164-6/+4
| | | | | | | | | | | | | | | Bug: 3484927 Change-Id: I06dae03b0803d1373e268e854e9e0e4b6c59e13a
* | | Merge "Fix URLConnectionTest after latest okhttp update."Narayan Kamath2013-06-131-2/+2
|\ \ \
| * | | Fix URLConnectionTest after latest okhttp update.Narayan Kamath2013-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I've observed 14 failing tests both before and after the update. Change-Id: I40dfd9efe35ed03d89b38b030d3c7b6558b247e2
* | | | Merge "Offer default implementations of various dalvik intrinsics in the ↵Brian Carlstrom2013-06-086-6/+156
|\ \ \ \ | | | | | | | | | | | | | | | library."
| * | | | Offer default implementations of various dalvik intrinsics in the library.Elliott Hughes2013-06-076-6/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry-picked from commit 2f95766aac3df74c6c641232eec4791b2330c9df) Change-Id: I1005ee22ed8a017bb536bfd76df2173c7e8dcf64
* | | | | Merge "Fix memory leaks in org_apache_harmony_xml_ExpatParser"Elliott Hughes2013-06-071-0/+3
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix memory leaks in org_apache_harmony_xml_ExpatParserMikael Gullstrand2013-06-071-0/+3
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The method expandInternedStringBucket(...) creates a new bucket but the old bucket is never freed, even though the function doc claims that it does. To solve this problem the old bucket is freed when the new one has been created successfully. Also this commit fixes two possible memory leaks when a jniThrowOutOfMemoryError is thrown, where the internedString also needs to be freed. Change-Id: Ic80a35a2b4ec8f93ddc006aca5609a5ffe74d659
* | | | Merge "Move System.currentTimeMillis, nanoTime, and mapLibraryName into the ↵Brian Carlstrom2013-06-071-0/+30
|\ \ \ \ | | | | | | | | | | | | | | | library."
| * | | | Move System.currentTimeMillis, nanoTime, and mapLibraryName into the library.Elliott Hughes2013-06-071-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry-picked from commit 37d6cc06f62b2029663137a1b8c18242152c1e97) Change-Id: I3b3aa3f508b9c6f43b27022cd8bc9aa82e630e01
* | | | | Fix zone.tab parsing.Elliott Hughes2013-06-072-0/+15
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Not every zone.tab line has a comment. Bug: 9327819 Change-Id: I32811c2da34755e2a15334f8701523505e1398b3
* | | | Add a test for bug 9087737.Elliott Hughes2013-06-061-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This won't crash unless you're very unlucky, but at least valgrind will notice something untoward is going on. Bug: 9087737 Change-Id: I486374a85d4f0cc3a0e7afec29a1003ce1951a5a
* | | | Merge "Fix @deprecated javadoc orthography."Elliott Hughes2013-06-0633-97/+87
|\ \ \ \
| * | | | Fix @deprecated javadoc orthography.Elliott Hughes2013-06-0633-97/+87
| | | | | | | | | | | | | | | | | | | | Change-Id: I6db6d91e21b8e1aca5b5338534196fd5bdef8a06
* | | | | Fix bug in DNParser changeBrian Carlstrom2013-06-061-0/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure emailAddress encoded as IA5String Bug: http://code.google.com/p/android/issues/detail?id=21531 Bug: 5580664 Change-Id: I19b432bc84468828258cbcd44266e4b712e6175d Bug: 9198822 Change-Id: I8a29f160e870f8deb4b8f3787bb69b4971942c5d
* | | | Merge "Add ReflectiveOperationException."Elliott Hughes2013-06-067-6/+59
|\ \ \ \ | |_|/ / |/| | |
| * | | Add ReflectiveOperationException.Elliott Hughes2013-06-057-6/+59
| | | | | | | | | | | | | | | | | | | | Bug: 3484927 Change-Id: I6ef7b71aba70bab7664ea29ef73ba8a542550e27
* | | | Moving java.lang.String to libdvmBrian Carlstrom2013-06-051-2039/+0
|/ / / | | | | | | | | | Change-Id: Ia03630612b6d4e116b9c737cdf7a93c8eacee910
* | | Move additional files to libdvmBrian Carlstrom2013-06-051-221/+0
| | | | | | | | | | | | Change-Id: Idc1caee3a0afb61d159cd046348ecb11db3d9e10
* | | Change the VMStack interface used by serialization.Elliott Hughes2013-06-051-18/+1
| | | | | | | | | | | | | | | | | | (cherry picked from commit 8b44bdb6063816eeb90da6b4f8aa3ed9f38fe140) Change-Id: I5da041caa3037a4093f05dec4e03aed4f466a21d
* | | Add hidden Modifiers for SYNTHETIC and MIRANDAIan Rogers2013-06-041-1/+13
|/ / | | | | | | | | | | (cherry picked from commit e976fbc396bdc5863ce289c38a44d296ea84f159) Change-Id: Ia2289bff0bb0ef49af84306f9fa22cbf3c76a674
* | PBKDF2 tests to exercise new, correct PBE implementation.William Luh2013-06-011-7/+49
| | | | | | | | | | Bug: 8312059 Change-Id: I614a43a0022393cb16250f4991a7156b05b0860c
* | Move initialization check higher for updateAADKenny Root2013-05-311-3/+3
| | | | | | | | | | | | | | This allows the tests to pass on the RI and Dalvik by ordering the exceptions in the same way. Change-Id: Icb5a313f86c90ed8f1d703b5cb996783ca3a214b
* | Fix conscrypt package name in SecureRandomTestBrian Carlstrom2013-05-291-1/+1
| | | | | | | | Change-Id: Ie34e1b3c7b6a1813e9b055d303bad4463220f5c4
* | Use correct signature for NativeBN_BN_is_prime_exChris Dearman2013-05-291-2/+2
| | | | | | | | Change-Id: Ic08c4142542c5bd28e964a22270beed13297b9d6
* | Use the jarjar names of security providersKenny Root2013-05-281-3/+3
| | | | | | | | | | | | | | | | The platform was using the security.properties file, but running the tests outside of the platform was using the registerDefaultProviders() call. Those won't work with a jarjar'd library. Change-Id: If0472d99b45c274a63003c53bf91a37bfb23fda4
* | Flip sense of negative isUnsupported* methodsBrian Carlstrom2013-05-241-17/+17
| | | | | | | | Change-Id: I024a72ec535978dc3a009d6433f6a65133feb3b8
* | CipherTest fixesBrian Carlstrom2013-05-241-30/+162
|/ | | | | | | | Bug: 9095447 (cherry picked from commit 1eba66d802f4edfaa3ca599f196e282bc110eff9) Change-Id: I6709eebcbede0ba617462bf49dd858f98246555f
* Merge "Simplify defaulting for system properties, and trust the environment ↵Elliott Hughes2013-05-152-42/+47
|\ | | | | | | less."
| * Simplify defaulting for system properties, and trust the environment less.Elliott Hughes2013-05-142-42/+47
| | | | | | | | | | | | | | | | | | | | | | The originally-reported bug (https://android-review.googlesource.com/58258) was that dalvik would fail to start if LD_LIBRARY_PATH was unset. This changes things so we no longer have multiple default values for java.library.path, cope better with that not being set, and don't set it if LD_LIBRARY_PATH isn't set. Change-Id: I55d48a35b1b42df872e6dcd0a38fc7bc4b8cad5a
* | Merge "Remove a workaround for a bionic bug that's been fixed."Elliott Hughes2013-05-151-5/+0
|\ \
| * | Remove a workaround for a bionic bug that's been fixed.Elliott Hughes2013-05-141-5/+0
| |/ | | | | | | | | | | | | d35106fd557e054d1ffe388df6a3b3cb51cc5021 fixed bionic. glibc was always correct. Change-Id: I26c6567bbc0895fc447b249cb029768bae6e4ab5
* | Add classes for AEAD encryptionKenny Root2013-05-146-1/+482
|/ | | | | | | | | New classes in Java 7 for Authenicated Encryption with Additional Data (AEAD). This allows the use of encryption modes such as Galois/Counter Mode with performs the equivalent of MAC and encryption simultaneously and consequently makes encryption safer to use for implementors. Change-Id: I6302826b096044ade5f62a667dc240e3ab07b351
* Expose Throwable changes.Elliott Hughes2013-05-141-26/+9
| | | | | Bug: 3484927 Change-Id: If4d39c9af3a7b0bd60f31ad7e969baa6b27e3d86
* Fix java.lang.Throwable's protected constructor.Elliott Hughes2013-05-132-44/+76
| | | | | Bug: 3484927 Change-Id: Ib8088ec50a767390b6416b73a0e66887ece5c719
* Un-@hide various APIs.Elliott Hughes2013-05-1322-92/+37
| | | | | Bug: 3484927 Change-Id: I4cda326a31240135d883528d9cb976a9db084234
* Fix build.Elliott Hughes2013-05-131-1/+1
| | | | Change-Id: Ibfbba9fdb1d5ca00aad55cc1c62766821175f384