summaryrefslogtreecommitdiffstats
path: root/luni
Commit message (Collapse)AuthorAgeFilesLines
...
* Use longs instead of ints to store pointers in NIO buffers.Joel Dice2013-03-299-96/+94
| | | | | | This allows the code to be used on 64-bit VMs. Change-Id: I4d01bfcd0ffea528c6179687771d047fdcb4d18a
* Merge "Remove dead NioUtils.getDirectBufferAddress."Elliott Hughes2013-03-291-19/+0
|\
| * Remove dead NioUtils.getDirectBufferAddress.Elliott Hughes2013-03-281-19/+0
| | | | | | | | Change-Id: I764d86db1d74c5daf54cc925a9fc76db15a1107a
* | Add strsignal(3) to Libcore.os.Elliott Hughes2013-03-285-0/+13
|/ | | | | Bug: 8322568 Change-Id: Iab9a782181a663719b88f090f474b66d24b69258
* Merge "InvalidKeyException for "opaque" keys null getEncoded()"Kenny Root2013-03-283-6/+30
|\
| * InvalidKeyException for "opaque" keys null getEncoded()Alex Klyubin2013-03-263-6/+30
| | | | | | | | | | | | | | | | | | This makes OpenSSL-backed KeyFactory instances (RSA, DSA, EC) translateKey method throw InvalidKeyException for "opaque" keys whose getFormat() returns non-null while getEncoded() returns null. Prior to this change a NullPointerException was thrown. Change-Id: Ie0f3ec27356307338839f4c2b248b0e79578e19b
* | Simplify the nio Buffer implementations, and fix MappedByteBuffer.Elliott Hughes2013-03-2745-3464/+1808
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix the reported bug caused by delegation in the MappedByteBuffer implementation. * Collapse the three classes (ReadOnly*, ReadWrite*, and *) used to implement most buffer types into one class each. * Rename HeapByteBuffer to ByteArrayBuffer to match its companions. * Remove BaseByteBuffer. * Give the classes used to implement asXBuffer sane names (their existing names were backwards). Bug: https://code.google.com/p/android/issues/detail?id=53637 Change-Id: I2a7ff4f1d502564389615384324afadabccb04f9
* | Improve java.nio.Buffer.toString.Elliott Hughes2013-03-261-9/+5
|/ | | | | Bug: https://code.google.com/p/android/issues/detail?id=53637 Change-Id: I823662b39cb48b5f4456f4c58269324dfcdc2fd1
* MimeUtils' list of MIME types should be in order of popularity.Elliott Hughes2013-03-251-5/+11
| | | | | | | So mp3 really ought to be the first choice for audio/mpeg. Bug: https://code.google.com/p/android/issues/detail?id=53598 Change-Id: I90fb45c0a71ae4b4b4a81357507ac188cbf19919
* Fix libcore translation of AF_UNSPEC InetAddress instances.Elliott Hughes2013-03-211-0/+1
| | | | | | | An AF_UNSPEC sockaddr may not have any data, but it does have two bytes of ss_family. Change-Id: Ia2423989db1a4094fc9bbfdb5565ee2074743747
* Revert "Revert "Fix Manifest behavior with Manifest-Version/Signature-Version.""Elliott Hughes2013-03-214-22/+62
| | | | | | This reverts commit 713a61f90f3e9c9ac74713784d23da45d205a0f8 Change-Id: Ib021fdf15b646ab60b0170094ebd2057c405167c
* Merge "Remove EWOULDBLOCK from libcore."Elliott Hughes2013-03-214-9/+8
|\
| * Remove EWOULDBLOCK from libcore.Elliott Hughes2013-03-214-9/+8
| | | | | | | | | | | | On Linux, EWOULDBLOCK == EAGAIN, and having a synonym is just confusing. Change-Id: If53c4ba6d82eed2236dec12003c4c9512c4ecbee
* | Revert "Fix Manifest behavior with Manifest-Version/Signature-Version."Elliott Hughes2013-03-214-62/+22
|/ | | | | | This reverts commit 32690f22c0bbfa2b72972d45088e6663ce56174f Change-Id: I381a6cac42363355cf89bb751ca17d34f3ab1238
* Fix Manifest behavior with Manifest-Version/Signature-Version.Elliott Hughes2013-03-214-22/+62
| | | | | Bug: 8444077 Change-Id: Ic78afc36f94fccc6a473893b0c218cd07b441dc7
* Merge "Fix CalendarTest.test_clear_45877."Elliott Hughes2013-03-211-2/+16
|\
| * Fix CalendarTest.test_clear_45877.Elliott Hughes2013-03-211-2/+16
| | | | | | | | | | | | | | We shouldn't depend on the current time! (Clearing HOUR_OF_DAY but not HOUR meant that the time is recomputed from the current HOUR.) Change-Id: Ib88b31869937f6ae367e6e0c57f406f18ae07cbe
* | Throw a more detailed exception on failure in NativeCrypto_SSL_CTX_newBrian Carlstrom2013-03-201-1/+1
|/ | | | | Bug: 8172001 Change-Id: I39ca6d7480ad0c4dc6628c412e73fc2b5bf01689
* Merge "Add support for Unix domain sockets."Elliott Hughes2013-03-2114-107/+379
|\
| * Add support for Unix domain sockets.Elliott Hughes2013-03-2014-107/+379
| | | | | | | | | | Bug: 6513075 Change-Id: I0b0166f59745ac8175b39d7796c093041b2df4fd
* | Merge "Mapped IPv4 address test fix"Kenny Root2013-03-202-1/+22
|\ \ | |/ |/|
| * Mapped IPv4 address test fixKenny Root2013-03-202-1/+22
| | | | | | | | | | | | | | | | | | | | | | The SubjectAlternativeNameTest was failing on getting a mapped IPv4 address back of the form "::ffff:127.0.0.1" which should be handled fine. Added several tests to InetAddressTest to make sure the correct handling of mapped addresses doesn't regress. Change-Id: If6e1ca8bda405d4862786404d1ced571743391f2
* | Make String's fast-path UTF-8 decoder more like icu4c.Elliott Hughes2013-03-192-3/+18
|/ | | | | Bug: https://code.google.com/p/android/issues/detail?id=23831 Change-Id: I0b2af4a3691727735154f1b9f03dba62600dbc31
* Merge "Add a regression test for a Field.isAnnotationPresent crash."Elliott Hughes2013-03-191-0/+16
|\
| * Add a regression test for a Field.isAnnotationPresent crash.Elliott Hughes2013-03-191-0/+16
| | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=24846 Change-Id: Ibd64e5a158d14812729dee82b64417f52eef771c
* | Merge "Add missing finals, small doc tidying."Ian Rogers2013-03-191-17/+17
|\ \ | |/ |/|
| * Add missing finals, small doc tidying.Ian Rogers2013-03-191-17/+17
| | | | | | | | Change-Id: I403a6e3c123f25da23a31d540a6b59060e297f63
* | Clarify Calendar.clear documentation.Elliott Hughes2013-03-192-3/+23
|/ | | | | Bug: https://code.google.com/p/android/issues/detail?id=45877 Change-Id: I49c82916a25388864f4acd12e09de984f72e8653
* Merge "Fix ConcurrentCloseTest's write test to ensure we're really blocked ↵Elliott Hughes2013-03-191-8/+25
|\ | | | | | | in write(2)."
| * Fix ConcurrentCloseTest's write test to ensure we're really blocked in write(2).Elliott Hughes2013-03-191-8/+25
| | | | | | | | | | Bug: 8272932 Change-Id: Id0b9b23176bf179af85bcaf321df5bab05b093be
* | Merge "NativeCrypto: throw exception on invalid DNS altname"Kenny Root2013-03-192-6/+20
|\ \ | |/ |/|
| * NativeCrypto: throw exception on invalid DNS altnameKenny Root2013-03-182-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we receive an invalid DNS alt name (e.g., contains characters outside of the ASCII printable range), we should throw an exception to match the previous behavior. This is not validated this against the RI since the tests currently don't work, but it brings the behavior back to what it was previously. Also amend the previous ASN.1 string check to use ASN1_PRINTABLE_type(...) which actually scans the string to check its contents. This is what was meant in the last patch. Bug: 8398461 Change-Id: I260f045a2e144fb9ded7e1d3aa46592da8f63272
* | Improve java.util.zip compression level documentation.Jorrit Jongma2013-03-182-31/+32
|/ | | | | | | | | | | | | The level parameter (constructors, setLevel, etc) can be [-1..9], but the docs incorrectly stated [-1..8] and [0..9]. Explain fully what compression level means in the Deflater class documentation and point everything else to that canonical source. Change-Id: I4b76965d88f0fd0f383bb15a5259a5fa5d81f2b1 Signed-off-by: Jorrit Jongma <jorrit@jongma.org>
* Fix for test_SSLSocket_HandshakeCompletedListener_RuntimeExceptionBrian Carlstrom2013-03-161-1/+20
| | | | | | | | | While this test worked fine from the dalvik command line, it failed when run as part of the frameworks test runner which overrides the default UncaughtExceptionHandler to do more than log. Bug: 8272842 Change-Id: I09d53863b901148cada8852cd46c3e88e372ac90
* Assorted socket fixes related to test_SSLSocket_setSoWriteTimeout failure ↵Brian Carlstrom2013-03-164-14/+32
| | | | | | | | | | | | | | | investigation 1.) Fixed the failure of libcore.javax.net.ssl.SSLSocketTest's test_SSLSocket_setSoWriteTimeout by setting send/recv buffer sizes earlier (b/8272932) 2.) Fixed javadoc bug in java.net.Socket 3.) Fixed implementation bug in IoBridge affecting reading SO_RCVBUF 4.) Fixed bug where we would leave unsent bytes in OpenSSL write buffer after SSLSocket write possible cause of b/6693087 Bug: 8272932 Bug: 6693087 Change-Id: I54e084e58e8b10583a6ac3051d5e05e519139d64
* Merge "NativeCrypto: reject non-IA5String altnames"Kenny Root2013-03-151-2/+10
|\
| * NativeCrypto: reject non-IA5String altnamesKenny Root2013-03-151-2/+10
| | | | | | | | | | | | | | | | Certificates with rfc822Name, dNSName, or uniformResourceLocator must be an IA5String, but OpenSSL doesn't enforce that during parsing. Return NULL for those entries that don't comply. Change-Id: I26727007196980648955f861df1d1cc013506911
* | Merge "Return Olson ids from TimeZoneNames.forLocale in zone.tab order."Elliott Hughes2013-03-154-12/+78
|\ \ | |/ |/|
| * Return Olson ids from TimeZoneNames.forLocale in zone.tab order.Elliott Hughes2013-03-144-12/+78
| | | | | | | | | | Bug: 8391426 Change-Id: I7b1335a8d8e0c804d68c85b18b1c4891ec269c1d
* | Merge "NativeCrypto: catch null input streams in cert factory"Kenny Root2013-03-151-0/+4
|\ \
| * | NativeCrypto: catch null input streams in cert factoryKenny Root2013-03-151-0/+4
| | | | | | | | | | | | Change-Id: I7b4a9d89cab8d35491d2d6efb6dfc0fae8e705d7
* | | Fix test since getExtendedKeyUsage doc disagreesKenny Root2013-03-151-4/+15
|/ / | | | | | | | | | | | | | | The documentation for X509Certificate#getExtendedKeyUsage says that it must return an unmodifiable list. The test was testing the exact opposite was true. Change-Id: I0f99ed6c8f2ddcc59ce6b90b973ccabd0dce35f6
* | NativeCrypto: be more tolerant during translateKeyKenny Root2013-03-146-189/+294
|/ | | | Change-Id: I284bdb4d037d511390a6beb8518eb9bf9c50f25f
* Revert "Put DRLCertFactory as first provider"Kenny Root2013-03-122-6/+6
| | | | | | OpenSSL provider now passes all the tests. This reverts commit b01f3e895e3ae81bdf9c054ada18c503a2f01086.
* Merge "Fix Security2Test counting"Kenny Root2013-03-121-9/+7
|\
| * Fix Security2Test countingKenny Root2013-03-121-9/+7
| | | | | | | | | | | | | | | | | | The test was counting the wrong thing. The alias code path is only triggered by X509 and X.509. This worked when there was only 2 providers that pointed at the opposites. When there were three the problem showed up since it wasn't incrementing the right one. Change-Id: Id4d01a1981658521a36c42c5d3aea13110069583
* | Merge "Switch TLS Channel ID API from ECPrivateKey to PrivateKey."Kenny Root2013-03-123-9/+8
|\ \ | |/ |/|
| * Switch TLS Channel ID API from ECPrivateKey to PrivateKey.Alex Klyubin2013-03-123-9/+8
| | | | | | | | | | | | | | | | | | | | This is to accept both the "transparent" and "opaque" ECC private keys. "Transparent" keys provide structured access to their key material -- these are instances of ECPrivateKey. "Opaque" private keys are not required to provide structured (or even any) access to their key material -- these are instances of PrivateKey. Change-Id: I3fdc4c46675bde48c72424f1cc8f59c3d6b89f0e
* | NativeCrypto: switch throw mappings to switchKenny Root2013-03-121-18/+98
| | | | | | | | | | | | | | The OpenSSL error to Exception mapping is growing, so just move to using switch statement so we can add more mapping easily. Change-Id: I223959e4252c1d764ebdf83d9ab143ff291dec1a
* | Unit test updates for ICU 51 patchesJay Shrauner2013-03-111-10/+13
| | | | | | | | | | | | | | | | Fix unit tests for ICU 51 patches; add tests for new German index labels. (cherry pick of 0fd5668d136c0e9434bfb3f20ae0a22f17494bff.) Change-Id: I539a3e2fc9834eb15e22de377abdfbacccfb9741