summaryrefslogtreecommitdiffstats
path: root/luni/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | StrictJarFile: better handle missing filesNick Kralevich2015-04-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure all manifest files are present in the jar. Bug: 1162500 Change-Id: I36b40a34d5837b8ad4a0d13e7ea2e37ad7e51f3b
* | | | | | am a7d04d7e: am 5b398cac: Merge "Refactor security classes for static ↵Andreas Gampe2015-04-132-13/+45
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialization" * commit 'a7d04d7ecfa0e9036a2718432f58df77d7ae153a': Refactor security classes for static initialization
| * | | | | Refactor security classes for static initializationKenny Root2015-04-132-13/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split out security.properties I/O to a separate method returning a Reader. This method can be intercepted at compile-time and provide a StringReader with the content of the file. A reader is necessary as Properties interally uses a reader and requires a Charset to translate from an input-stream. Refactor Services provider loading to first try the boot classpath loader instead of the system class-loader. The former is accessible during compile-time initialization and functionally equivalent. Bug: 19498458 Bug: 19542228 Change-Id: I853952b83ca99006907c070734f767259c975517
* | | | | | am d65a3c71: am a936d452: Merge "Libcore: Refactor TimeZone for compile-time ↵Andreas Gampe2015-04-131-36/+46
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialization" * commit 'd65a3c71d7af3ae097f0722fba6be80f057b3d18': Libcore: Refactor TimeZone for compile-time initialization
| * | | | | Libcore: Refactor TimeZone for compile-time initializationAndreas Gampe2015-04-131-36/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a private inner class for custom-time-zone parsing. This moves the Pattern field which cannot be compile-time initialized. As a result, TimeZone, SimpleTimeZone & ZoneInfo can be initialized in the boot image. Bug: 19542228 Change-Id: I6fc8cb65975e14351a6bfc1ddfac175368efd1eb
* | | | | | am 2fe35a74: am f77b10a0: Merge "Libcore: Make Date compile-time initializable"Andreas Gampe2015-04-131-2/+5
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '2fe35a74d664529404991d6883b34e24d41cc417': Libcore: Make Date compile-time initializable
| * | | | | Libcore: Make Date compile-time initializableAndreas Gampe2015-04-101-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move CREATION_YEAR to a static inner class. Bug: 19542228 Change-Id: I3db699f8ad661305f5255ee730faeb21c2861dde
* | | | | | am a4f134aa: am 0d97d4a1: Merge "Remove obsolete concurrent access test."Narayan Kamath2015-04-101-28/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'a4f134aa08d0bdc953911130c1b797bc4abc235b': Remove obsolete concurrent access test.
| * | | | | Remove obsolete concurrent access test.Narayan Kamath2015-04-101-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This failure mode we're testing for is no longer possible because we use ICU4J. Moreover, this seems to trip up the CTS test runner which flags exceptions in the logs from other threads as failures. If there's a good reason to keep this, we can always add an UncaughtExceptionHandler that doesn't log to all worker threads. Change-Id: I23eeeb01e4a9c0987e30e54a2d84cc5d4f79a6c0
* | | | | | am b9a96e76: am 4298c47c: Merge "Make ICU4J look for timezone updates in /data"Neil Fuller2015-04-091-1/+33
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'b9a96e76f5ae9631faa16046494f1fc63e84df76': Make ICU4J look for timezone updates in /data
| * | | | | Make ICU4J look for timezone updates in /dataNeil Fuller2015-04-091-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 19941636 Change-Id: I4dbadfbfd4a8fbfeb3d580c073061710fd521fdd
* | | | | | am e778838c: am 227afa27: Merge "libcore: change SSLEngineTest to close ↵Sergio Giro2015-04-081-34/+88
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SSLEngine instances" * commit 'e778838c133bef3a9016c5998c6724439fd5f052': libcore: change SSLEngineTest to close SSLEngine instances
| * | | | | Merge "libcore: change SSLEngineTest to close SSLEngine instances"Sergio Giro2015-04-081-34/+88
| |\ \ \ \ \
| | * | | | | libcore: change SSLEngineTest to close SSLEngine instancesSergio Giro2015-04-081-34/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was leaking resources allocated by SSLEngine's, pipes among others, thus causing subsequent tests to fail with "too many open files" errors. In OpenSSLEngineImpl, the resources are freed in the finalizer, so there's no guarantee that resources as pipes will ever be freed unless the engines are explicitly closed. Change-Id: Ide90808a64278486a19bcdfcba628f623c62afc9
* | | | | | | am 48cb3cb0: am 8c92f020: Merge "Small documentation changes to System"Neil Fuller2015-04-081-4/+6
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | * commit '48cb3cb0072bff1defe6eb7a309971bddd36bbc8': Small documentation changes to System
| * | | | | | Small documentation changes to SystemNeil Fuller2015-04-081-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates to documentation around lineSeparator. Change-Id: I0b646c06ac85303e572e38738889a8247eef37a0
* | | | | | | am 71a8b3bd: am 58894095: Merge "Rename package to android.icu.* instead of ↵Narayan Kamath2015-04-081-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | com.android.ibm.icu.*." * commit '71a8b3bdbd3e1f6cdaedcea8b2db3e116c674793': Rename package to android.icu.* instead of com.android.ibm.icu.*.
| * | | | | | Rename package to android.icu.* instead of com.android.ibm.icu.*.Narayan Kamath2015-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on a discussion with the icu team. Change-Id: I47a6b260a9348debd65282794996f7976b8bc008
* | | | | | | am 8426170b: am 345d118d: Merge "Changes to enable timezone data overrides ↵Neil Fuller2015-04-072-19/+64
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for ICU and libcore" * commit '8426170b2440ce9d9857f8b63e5de5f77d7ee393': Changes to enable timezone data overrides for ICU and libcore
| * | | | | | Merge "Changes to enable timezone data overrides for ICU and libcore"Neil Fuller2015-04-072-19/+64
| |\ \ \ \ \ \
| | * | | | | | Changes to enable timezone data overrides for ICU and libcoreNeil Fuller2015-03-262-19/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 19941636 Change-Id: Id587be99f645978c2e1067c9f8eef26d6d63ec27
* | | | | | | | am 3a5bda4d: am e2588119: Merge "GZIPInputStream: Correctly handle extras in ↵Narayan Kamath2015-04-072-1/+17
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gzip headers." * commit '3a5bda4dd753ec70609116a5da4965c88126d275': GZIPInputStream: Correctly handle extras in gzip headers.
| * | | | | | | GZIPInputStream: Correctly handle extras in gzip headers.Narayan Kamath2015-04-072-1/+17
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were peeking into the wrong field for the extra length. bug: https://code.google.com/p/android/issues/detail?id=159340 Change-Id: Ib7ed400e3e119b1d6c95be49d25812c5c7f366b9
* | | | | | | am 8eb6471d: am 0e727b80: Merge "Expose getSpi from crypto operations as ↵Alex Klyubin2015-04-034-4/+22
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hidden API." * commit '8eb6471d592d3583905d7693d4616cb8a4f41764': Expose getSpi from crypto operations as hidden API.
| * | | | | | Merge "Expose getSpi from crypto operations as hidden API."Alex Klyubin2015-04-034-4/+22
| |\ \ \ \ \ \
| | * | | | | | Expose getSpi from crypto operations as hidden API.Alex Klyubin2015-03-244-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible for platform code to obtain the current SPI implementation of Cipher, Signature, Mac, and KeyAgreement instances. The current use case is to access additional information about these crypto operations when they are backed by Android KeyStore. NOTE: The getSpi API will not and cannot become public framework API. Bug: 18088752 Change-Id: If575726d288eebc73ffa3209c316fad071a087fd
* | | | | | | | am d42442e6: am e54ee76f: Merge "GZIPInputStream: Fix handling of header CRCs."Narayan Kamath2015-04-032-3/+19
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd42442e615b81e0ef28414d985174717047cca5e': GZIPInputStream: Fix handling of header CRCs.
| * | | | | | | GZIPInputStream: Fix handling of header CRCs.Narayan Kamath2015-04-032-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the same mistake as public bug 159340, we were peeking in the wrong buffer for the CRC. Note that this is different from the member CRC, the latter is the CRC of the actual data (not the header) and is mandatory. Change-Id: I98d49bdd9d5ea93fe982783c8077531764ee5347
* | | | | | | | am 39197570: am f640e5b7: Merge "Don\'t use zip64 by default."Narayan Kamath2015-04-036-579/+669
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit '3919757028a08903e4c3101f5cacbfae40c201bd': Don't use zip64 by default.
| * | | | | | | Don't use zip64 by default.Narayan Kamath2015-04-036-579/+669
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was breaking tools like dexmaker that would write zipfiles to disk so that the runtime could read them. We don't want to go back and amend the local file header, so we just throw an IOException if somebody writes more than 4GB of data to an entry that doesn't have a declared size. If the entry has a declared size > 4GB, we can write the zip64 header in advance. bug: 19574093 Change-Id: I771e821996efd3ef4c3de5e02f5a0062e62f9244
* | | | | | | | am 138c61b2: am ff8391a7: Merge "Be consistent with the library path."Nicolas Geoffray2015-04-031-1/+5
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit '138c61b25df1c361e8aa440c935e0d074e90f35e': Be consistent with the library path.
| * | | | | | | Merge "Be consistent with the library path."Nicolas Geoffray2015-04-031-1/+5
| |\ \ \ \ \ \ \
| | * | | | | | | Be consistent with the library path.Nicolas Geoffray2015-04-021-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the boot class loader (loader == null) loadLibrary tries to find the the full path of the library using java.library.path. When actually loading the library, we need to use the same java.library.path property in case the library has dependencies. Change-Id: I2404d72f5c65c6a5ecfedc1efe879cfc9cef55ad
* | | | | | | | | am ff1e2b45: am 6696f19d: Merge "Implement BreakIterator in terms of icu4j."Narayan Kamath2015-04-026-450/+37
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ff1e2b45293d883fbff3d58f1d88746fbe126836': Implement BreakIterator in terms of icu4j.
| * | | | | | | | Implement BreakIterator in terms of icu4j.Narayan Kamath2015-04-026-450/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that we need manual range checks in our wrapper because the ICU4J implementation will clamp offsets to either end of the input text. benchmark results : text benchmark us linear runtime LIPSUM BreakIterator 326.02 ===== LIPSUM IcuBreakIterator 333.47 ====== LONGPARA BreakIterator 227.67 ==== LONGPARA IcuBreakIterator 228.68 ==== GERMAN BreakIterator 79.09 = GERMAN IcuBreakIterator 81.30 = THAI BreakIterator 1654.11 ============================== THAI IcuBreakIterator 1646.75 ============================= THAI2 BreakIterator 44.28 = THAI2 IcuBreakIterator 42.67 = TABS BreakIterator 12.79 = TABS IcuBreakIterator 12.53 = ACCENT BreakIterator 16.26 = ACCENT IcuBreakIterator 15.37 = EMOJI BreakIterator 17.71 = EMOJI IcuBreakIterator 18.34 = SPACES BreakIterator 16.86 = SPACES IcuBreakIterator 15.78 = EMPTY BreakIterator 9.22 = EMPTY IcuBreakIterator 9.96 = NEWLINE BreakIterator 11.08 = NEWLINE IcuBreakIterator 9.96 = BIDI BreakIterator 19.54 = BIDI IcuBreakIterator 18.96 = Change-Id: I72023dd605da8e33974aa3181506f0d9c7bc180e
* | | | | | | | | am c3755158: am 383f9036: Merge "Override ICU4Js search path for ICU4C data."Narayan Kamath2015-04-021-0/+6
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c3755158d2923df75ebdc39c438945dd9727fce2': Override ICU4Js search path for ICU4C data.
| * | | | | | | | Merge "Override ICU4Js search path for ICU4C data."Narayan Kamath2015-04-021-0/+6
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| | * | | | | | | Override ICU4Js search path for ICU4C data.Narayan Kamath2015-04-011-0/+6
| | | |_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | Change-Id: I4dc6c40be400e298921c57f5c6d6c413edd70f68
* | | | | | | | am e62a1b2d: am 36294d6f: Merge "Fix KeyGeneratorTest breakage due to ↵Alex Klyubin2015-04-012-1/+13
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AndroidKeyStore." * commit 'e62a1b2d75dc5f26930e2f84b8e5cef47f7884b0': Fix KeyGeneratorTest breakage due to AndroidKeyStore.
| * | | | | | | Fix KeyGeneratorTest breakage due to AndroidKeyStore.Alex Klyubin2015-04-012-1/+13
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AndroidKeyStore provider's KeyPairGenerator and KeyGenerator instances require AndroidKeyStore-specific initialization parameters which are represnted by Android framework classes and are thus not accessible from libcore tests. This CL fixes KeyGeneratorTest to skip AndroidKeyStore provider to follow the behavior of KeyPairGeneratorTest. Change-Id: I61d176a7bc22a676d06d32f49aba37aebebe9c76
* | | | | | | am 1b29afea: am fc62e635: Merge "Add a test to confirm that TZ data is in sync"Neil Fuller2015-03-303-0/+22
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | * commit '1b29afea69c76a7ed73c60d35d84b515097b25a0': Add a test to confirm that TZ data is in sync
| * | | | | | Merge "Add a test to confirm that TZ data is in sync"Neil Fuller2015-03-303-0/+22
| |\ \ \ \ \ \
| | * | | | | | Add a test to confirm that TZ data is in syncNeil Fuller2015-03-273-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android has two sources of timezone data: one used by bionic / libcore code, and one used by ICU. When ICU4J is added more tests can be added to confirm that ICU4C and ICU4J agree on time zone and other sources of data like CLDR and the ICU version itself. Bug: 19941636 Change-Id: I614392a876e19a55e362489f142eec71beaf5547
* | | | | | | | am 04d4f21f: am 34bc85c3: Merge "Test NetworkSecurityPolicy effect on HTTP ↵Alex Klyubin2015-03-261-0/+54
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connections." * commit '04d4f21f0e819063d8da07ea9a43e7bbbd4274c8': Test NetworkSecurityPolicy effect on HTTP connections.
| * | | | | | | Merge "Test NetworkSecurityPolicy effect on HTTP connections."Alex Klyubin2015-03-261-0/+54
| |\ \ \ \ \ \ \
| | * | | | | | | Test NetworkSecurityPolicy effect on HTTP connections.Alex Klyubin2015-03-251-0/+54
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds CTS tests that assert that platform-provided URLConnection instances that use cleartext HTTP honor the cleartext traffic policy from NetworkSecurityPolicy. Bug: 19215516 Change-Id: I79f5fce5e00434e96f4325c1aae65a573f10dcdd
* | | | | | | | am eb5974d1: am 2900d6b6: Merge "Remove a misleading comment."Neil Fuller2015-03-261-3/+0
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit 'eb5974d12ae9caf234bf309d17d529ca758e70bc': Remove a misleading comment.
| * | | | | | | Merge "Remove a misleading comment."Neil Fuller2015-03-261-3/+0
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | |
| | * | | | | | Remove a misleading comment.Neil Fuller2015-03-131-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7a5c8095e98f1449fb4efc98061c488fd0b573e2
* | | | | | | | am d92eaa4a: am 1e342670: Merge "Add libcore.net.NetworkSecurityPolicy."Alex Klyubin2015-03-254-2/+340
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd92eaa4a580d86051f8174b1992c40f55df6e56a': Add libcore.net.NetworkSecurityPolicy.