summaryrefslogtreecommitdiffstats
path: root/luni/src/main
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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-071-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | gzip headers." * commit '3a5bda4dd753ec70609116a5da4965c88126d275': GZIPInputStream: Correctly handle extras in gzip headers.
| * | GZIPInputStream: Correctly handle extras in gzip headers.Narayan Kamath2015-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | 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-031-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'd42442e615b81e0ef28414d985174717047cca5e': GZIPInputStream: Fix handling of header CRCs.
| * | | GZIPInputStream: Fix handling of header CRCs.Narayan Kamath2015-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-031-7/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '3919757028a08903e4c3101f5cacbfae40c201bd': Don't use zip64 by default.
| * | | Don't use zip64 by default.Narayan Kamath2015-04-031-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Override ICU4Js search path for ICU4C data.Narayan Kamath2015-04-011-0/+6
| |/ / / | | | | | | | | | | | | Change-Id: I4dc6c40be400e298921c57f5c6d6c413edd70f68
* | | | am 1b29afea: am fc62e635: Merge "Add a test to confirm that TZ data is in sync"Neil Fuller2015-03-302-0/+14
|\ \ \ \ | |/ / / | | | | | | | | | | | | * 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-302-0/+14
| |\ \ \
| | * | | Add a test to confirm that TZ data is in syncNeil Fuller2015-03-272-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 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-253-2/+79
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit 'd92eaa4a580d86051f8174b1992c40f55df6e56a': Add libcore.net.NetworkSecurityPolicy.
| * | | | Merge "Add libcore.net.NetworkSecurityPolicy."Alex Klyubin2015-03-253-2/+79
| |\ \ \ \
| | * | | | Add libcore.net.NetworkSecurityPolicy.Alex Klyubin2015-03-243-2/+79
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This hidden libcore API is to be used by bundled network stacks to determine whether cleartext network traffic is permitted. These stacks cannot directly use the public Android framework API android.security.NetworkSecurityPolicy because the framework package typically compile-time depends on the packages offering these bundled network stacks. As an example, this CL makes java.util.logging.SocketHandler and platform-provided URLConnection instances for the FTP protocol honor this new flag. To avoid duplication, the intention is that framework's android.security.NetworkSecurityPolicy implementaion will switch to this new libcore API to store/retrive the state of framework's NetworkSecurityPolicy class. Bug: 19215516 Change-Id: I78e348458975d69c52918582a43db25df87e2a15
* | | | | am fc23db65: am 74b6f466: Merge "Fix for ftp:// invalid urls with ProxySelector"Neil Fuller2015-03-251-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit 'fc23db65f41c887963ce754e3a2cd350d5dad8e8': Fix for ftp:// invalid urls with ProxySelector
| * | | | Merge "Fix for ftp:// invalid urls with ProxySelector"Neil Fuller2015-03-251-1/+1
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Fix for ftp:// invalid urls with ProxySelectorNeil Fuller2015-03-251-1/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are currently no tests for FtpURLConnection. Future commits are planned that add tests that are based on the MockFTPServer open-source project. Thanks to pk.samson@ for the report. Bug: https://code.google.com/p/android/issues/detail?id=160725 Change-Id: I54fc2d5825f4e1b9681d537dd2c92b90659be5b5
* | | | am be696823: am 00cbc7bc: Merge "Remove forced alignment code."Christopher Ferris2015-03-241-84/+21
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'be69682385a01039eb0cb488f15dc7144f30755d': Remove forced alignment code.
| * | | Merge "Remove forced alignment code."Christopher Ferris2015-03-241-84/+21
| |\ \ \
| | * | | Remove forced alignment code.Christopher Ferris2015-03-231-84/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The move from to gcc 4.8 to gcc 4.9 for arm32 introduced a bug in this code. The original code is trying to out smart the compiler by arch, but we got caught. Running benchmarks, the amount of time we save by doing this is in the nanosecond range, so just let the compiler figure things out on it's own. It turns out for aarch64, x86, x86_64, two of the functions produce exactly the same code. For swapLongs, x86/x86_64 produces slightly different code but is about the same performance. For arm32, letting the compiler optimize also leads to about the same performance. Adding unit tests and benchmark code for these. Bug: 19692084 Change-Id: I858eb3147ef1e9e2c1894ddb226cdddcc0baf933
* | | | | am 94cc3faf: am 61ac7408: Merge "Fix the year display when formatting ↵Tao Bao2015-03-241-5/+24
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | absolute date string" * commit '94cc3fafd50df1d5ab0fdb141db2e260efdc7831': Fix the year display when formatting absolute date string
| * | | | Merge "Fix the year display when formatting absolute date string"Tao Bao2015-03-231-5/+24
| |\ \ \ \
| | * | | | Fix the year display when formatting absolute date stringTao Bao2015-03-231-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In getRelativeDateTimeString(), when formatting the absolute date string with formatDateRange(), we need to explicitly specify the option to show / hide the year display based on the given arguments. Otherwise it would determine based on the current time and may gave wrong results. In getRelativeTimeSpanString(), it follows the same logic when user doesn't supply any option. Bug: 19822016 Change-Id: I0d4f01b7d15e0b8ea44f21b77309b1fc370b365b
* | | | | | am dc746205: am 7cc1a6c4: Merge "Pass getDexPath to Runtime.nativeLoad"Dmitriy Ivanov2015-03-241-9/+10
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'dc74620543a7983e8acff8527808a64437b93c57': Pass getDexPath to Runtime.nativeLoad
| * | | | | Merge "Pass getDexPath to Runtime.nativeLoad"Dmitriy Ivanov2015-03-231-9/+10
| |\ \ \ \ \
| | * | | | | Pass getDexPath to Runtime.nativeLoadDmitriy Ivanov2015-03-201-9/+10
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getDexPath is used by Runtime.nativeLoad to open libraries directly from apk. Given that libraries are not compressed and are page-aligned. Bug: 8076853 Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1
* | | | | | am 287c7008: am 8bed4516: Merge "Use compiler pragmas instead of flags."Narayan Kamath2015-03-242-3/+9
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '287c7008ff7546bf4813339a06232d094c3d2b96': Use compiler pragmas instead of flags.
| * | | | | Use compiler pragmas instead of flags.Narayan Kamath2015-03-232-3/+9
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets us turn off warnings for a small segment of the code instead of the entire project. bug: 19823499 Change-Id: I9309e9a33bddc33e8c100a49416e95b2a56e2385
* | | | | am bbfa813f: am 2254ea88: Merge "Set -Wno-deprecated-declarations to access ↵Narayan Kamath2015-03-191-0/+3
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | deprecated IDNA2003 API." * commit 'bbfa813f09176a08f977fbf04066bf5cb80c2dd8': Set -Wno-deprecated-declarations to access deprecated IDNA2003 API.
| * | | | Merge "Set -Wno-deprecated-declarations to access deprecated IDNA2003 API."Narayan Kamath2015-03-191-0/+3
| |\ \ \ \
| | * | | | Set -Wno-deprecated-declarations to access deprecated IDNA2003 API.Fredrik Roubert2015-03-191-0/+3
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In libcore_icu_NativeIDN.cpp there are calls to the deprecated IDNA2003 API which means that this code as of ICU55 no longer will compile without specifying the -Wno-deprecated-declarations compiler flag. bug: 19823499 Change-Id: Id5cd5da0d6c3ce62a5c642c99364d29eaebe7709
* | | | | am 4d68a135: am 7417225f: Merge "Fix an ntohs/htons issue."Lorenzo Colitti2015-03-191-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '4d68a1353a52eea88bf422017385187fbdd59652': Fix an ntohs/htons issue.
| * | | | Merge "Fix an ntohs/htons issue."Lorenzo Colitti2015-03-191-1/+1
| |\ \ \ \ | | |/ / / | |/| | |