48eb567f7ba5a62e525afd199b2653fb53f9d249 |
23-Aug-2016 |
Garfield, Tan <xutan@google.com> |
resolve merge conflicts of 7e737a6 to nyc-mr1-dev-plus-aosp Change-Id: I6c0929b5475a4960b5945ec955abbd29dd30e69b
|
4a2b94a98213fcf628f6d4de034a109695d908cc |
20-Aug-2016 |
Garfield, Tan <xutan@google.com> |
Make video mime type default for 3GPP and 3GPP2 formats. Bug: 30793548 Change-Id: I854dac7e5f638502d8184986ffd5f6918eefe063
imeUtils.java
|
e6cb1cfa5c321f08c1e460ba69d88d4ec9974e78 |
09-Aug-2016 |
Chad Brubaker <cbrubaker@google.com> |
Merge "Expose CT enforcement through NetworkSecurityPolicy"
|
88e73140702b45b792f91edddfe41ca3e9310c04 |
26-Apr-2016 |
Chad Brubaker <cbrubaker@google.com> |
Expose CT enforcement through NetworkSecurityPolicy Bug: 28746284 Change-Id: I8b7f567554ea2ceec012b75220ab5487d347b565
etworkSecurityPolicy.java
|
fde01e06d8aacfc18c2d4bf1930e271ae5c812d1 |
02-Aug-2016 |
Yi Kong <yikong@google.com> |
Remove unnecessary +x flag Source code files and serialized resource files should not have x flag set. This is a follow up to commit 49965c1d, where native codes and some Java source files are left out. Bug: 29977629 Test: Build, CTS tests Change-Id: I475491284cf5784ed499daa434c2845cdadea3a0
imeUtils.java
|
eec769da1a170d0c0431fd92accd8976f104502a |
26-Jul-2016 |
min.yun <min.yun@lge.com> |
Convert to lower case before search a item in map To search a item in map case insensitively, convert extension and MIME type to lower case before search. Bug: 30207891 Change-Id: If42993c7f41268771e58874953f8a5f7da4af71a
imeUtils.java
|
4a174c447f5d39e52370b91de29d902de48aa503 |
22-Jan-2016 |
Jaesung Chung <jaesung@google.com> |
Add RAW image mimetypes Bug: 26731125 Change-Id: Ic7a6cef9e08499d984c5d9c7243ee22087866586
imeUtils.java
|
d14e2be81c33eedf9522ae800ce43df52ff5786d |
21-Dec-2015 |
Chad Brubaker <cbrubaker@google.com> |
Merge "Add hostname aware isCleartextTrafficPermitted" am: 46c7d0482e am: 051f3cf8ab * commit '051f3cf8ab965e9e1b2e1a23737d405695ab9c2b': Add hostname aware isCleartextTrafficPermitted
|
b80fefa18b3a185422222cfad3c7210c4903c37f |
09-Dec-2015 |
Chad Brubaker <cbrubaker@google.com> |
Add hostname aware isCleartextTrafficPermitted By default it is equivalent to the non-hostname aware version. Change-Id: I22b9ea277407846f9c333ce0cc37c25a2be1381e
etworkSecurityPolicy.java
|
4320ad12c5bb04819088e436a3537f46c59f9caf |
08-Dec-2015 |
Chad Brubaker <cbrubaker@google.com> |
Refactor NetworkSecurityPolicy to be pluggable This allows us to keep the logic for the NetworkSecurityPolicy in the framework instead of in libcore. (cherry-picked from commit 7a6f1687cfa0929e68ac7813b7432259b8088b4d) Change-Id: I4bf494f79c27729cb17d93d90a91319492270ce9
etworkSecurityPolicy.java
|
7a6f1687cfa0929e68ac7813b7432259b8088b4d |
08-Dec-2015 |
Chad Brubaker <cbrubaker@google.com> |
Refactor NetworkSecurityPolicy to be pluggable This allows us to keep the logic for the NetworkSecurityPolicy in the framework instead of in libcore. Change-Id: I4bf494f79c27729cb17d93d90a91319492270ce9
etworkSecurityPolicy.java
rl/FtpURLConnection.java
|
6c0e55c2bbd4cf2798d6642a259f9983f69c979e |
03-Dec-2015 |
Narayan Kamath <narayan@google.com> |
Scripted removal of unused libcore files. All files that do not appear in non_openjdk_java_files.mk and are present in a top level dir (luni, libart..) that *does* appear in that file have been deleted. Change-Id: Id831184333216c229a53398a93bd3d804332041e
rl/FileHandler.java
rl/FileURLConnection.java
rl/FtpHandler.java
rl/FtpURLConnection.java
rl/FtpURLInputStream.java
rl/JarHandler.java
rl/JarURLConnectionImpl.java
rl/UrlUtils.java
|
2b80a43ff0490526e1ac35bc0492753e96c22020 |
25-Nov-2015 |
Sergio Giro <sgiro@google.com> |
Merge "UriCodec: use replacement character for malformed input" am: 4d1321f4e5 am: e98a1e37fe am: c824aa9b65 * commit 'c824aa9b656b83ead6ca9191559a8e3f114bccec': UriCodec: use replacement character for malformed input
|
e3101cdcd024a26212f73604e0a48b96422be9ec |
24-Nov-2015 |
Sergio Giro <sgiro@google.com> |
UriCodec: use replacement character for malformed input Bug: 25851902 Change-Id: I2eafa056b4f946f380fd4f56b3ef5135daae2293
riCodec.java
|
70b617fe562806bc3e15452a2792fec4355bd54f |
20-Nov-2015 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Merge mnc-dr-enso-dev into master OpenJDK adjustments for master. - Restored removed libcore.icu.* classes (needed by the openjdk java.text.* classes). This will be undone in short future. - Adjusted java.lang.* and java.lang.reflect.* classes for native reflection and other changes in master. Bug: 25758743 Change-Id: Ifbbe5b1e8661138fc32ad24127f76f711dd585b7
|
79fc0903ef4c7df8f5bffc4f667534f77c30f9e5 |
28-Sep-2015 |
Przemyslaw Szczepaniak <pszczepaniak@google.com> |
Remove reference to a class that doesn't exist. Change-Id: I1be9ea381696f04f8df6670db0f9ca95f34508f2
etworkSecurityPolicy.java
|
bf07204bff37fa34dbdb32e0a9d790d97ef46a81 |
12-Nov-2015 |
Narayan Kamath <narayan@google.com> |
Merge lmp changes into mnc. Change-Id: I8f49c58f39dc5f4268c6b5718cab18ed26ac930a
|
87f37c1c6535e9bbde75b438ef68187748eb772d |
13-Oct-2015 |
Sergio Giro <sgiro@google.com> |
libcore: fix errors in UriCodec - don't assume that percent is retained - handle ' ' -> '+' correctly Bug: 24806835 Bug: 24602226 Change-Id: Ide7af5a79b801177010eb5e14ccd7cfd298c08be (cherry picked from commit 595904f2798b24d16b7b180a278ee964dcefd637)
riCodec.java
|
e45feb1c752ce50450dd6584ef9b8380411d17c2 |
09-Sep-2015 |
Sergio Giro <sgiro@google.com> |
libcore: rewrite of UriCodec Added unit tests Change-Id: Idd575564076299f648919e243a1cce79401eb1cf (cherry picked from commit fda56554dbf5caf1af1982cad020a8dca5632244)
riCodec.java
|
595904f2798b24d16b7b180a278ee964dcefd637 |
13-Oct-2015 |
Sergio Giro <sgiro@google.com> |
libcore: fix errors in UriCodec - don't assume that percent is retained - handle ' ' -> '+' correctly Bug: 24806835 Bug: 24602226 Change-Id: Ide7af5a79b801177010eb5e14ccd7cfd298c08be
riCodec.java
|
fda56554dbf5caf1af1982cad020a8dca5632244 |
09-Sep-2015 |
Sergio Giro <sgiro@google.com> |
libcore: rewrite of UriCodec Added unit tests Change-Id: Idd575564076299f648919e243a1cce79401eb1cf
riCodec.java
|
db4d0bd54407d4f6116e51ba0668869f3f790b40 |
20-Apr-2015 |
Narayan Kamath <narayan@google.com> |
Remove support for reading mime types from property files. This support was untested and unused and of very limited utility, given that this class is initialized in the zygote. It also discourages arbitrary changes to the priority order of mappings. Change-Id: I2a7f91d2956627cd59f948561c37678bc45d118d
imeUtils.java
|
1e342670cc46445bd51d53f7a28f95d1eb879c9f |
25-Mar-2015 |
Alex Klyubin <klyubin@google.com> |
Merge "Add libcore.net.NetworkSecurityPolicy."
|
2fcad83e4077f80ff710fba33d2ff18dfe3a027e |
23-Mar-2015 |
Neil Fuller <nfuller@google.com> |
Fix for ftp:// invalid urls with ProxySelector 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
rl/FtpURLConnection.java
|
2f4d25190a7d2cc8328a202417ca9077a02e6d9a |
23-Mar-2015 |
Alex Klyubin <klyubin@google.com> |
Add libcore.net.NetworkSecurityPolicy. 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
etworkSecurityPolicy.java
rl/FtpURLConnection.java
|
787a462136f0789b4fb523c10b9ea4e582aab736 |
27-Dec-2014 |
Miklos Vajna <vmiklos@vmiklos.hu> |
MimeUtils: add ODF presentation (template) If ODF text, spreadsheet and graphics is there, then leaving out presentation makes little sense. Change-Id: Ice81f480a751537d757a33bae4de94c0b6097daf Signed-off-by: Miklos Vajna <vmiklos@vmiklos.hu>
imeUtils.java
|
76856264805ab780ed1437a900c84983b2008805 |
17-Dec-2014 |
Sungmin Choi <sungmin.choi@lge.com> |
Add hwp to MimeUtils map. Bug: 18788282 Change-Id: I9e28278eae3812387440dbfce196a20c32e24b30
imeUtils.java
|
a11b70d5ec690dbedd9087fb3b25d7d65d865eb4 |
16-Dec-2014 |
Narayan Kamath <narayan@google.com> |
Add a hidden API for detecting response charsets. This is meant to be a partial replacement for apache's EntityUtils.toString for internal callers. Providing a stand in replacement seems like a bad idea because that API tries to coerce all responses into strings, even those that are binary. I'm torn about EntityUtils. It was a useful "utility" in some cases, but dangerous in others. bug: 18027885 Change-Id: Ia02ffe86b5ef5caecbe86069967a549ff09335e5
ttp/ResponseUtils.java
|
7da22a29061da1553687258af71373417f2ae196 |
11-Dec-2014 |
Ben Murdoch <benm@google.com> |
Add epub to MimeUtils map. Bug: 18414102 Change-Id: Ie36f33e0cef04133ddb521d1672d3061cc2197bd
imeUtils.java
|
9a9c59af7f1003f6e35ce060482eefda40b380f1 |
15-Nov-2014 |
Elliott Hughes <enh@google.com> |
Prefer "jpg" over "jpeg" as the extension for "image/jpeg". Bug: 18390752 (cherry picked from commit 2a63032eb1c020ad3e73177951142735e11e044e) Change-Id: I713930b8ad8d8a1353d289c1f9268159c3ad862d
imeUtils.java
|
2a63032eb1c020ad3e73177951142735e11e044e |
15-Nov-2014 |
Elliott Hughes <enh@google.com> |
Prefer "jpg" over "jpeg" as the extension for "image/jpeg". Bug: 18390752 Change-Id: Iaffa75629a7b618dd8809416934733e7314bf820
imeUtils.java
|
b1e60e2015b81c285938ca569b66edda63d6533d |
03-Sep-2014 |
Neil Fuller <nfuller@google.com> |
libcore changes to support ConnectionPool cache flushing A set of observer / listener components for network events. Party A, e.g. the Android ConnectivityManager, can make changes to network configuration that impacts the java network objects (e.g. connection pools, caches, etc.). Party B, e.g. Android libcore network components are interested in network configuration changes. The NetworkEventDispatcher enables Party A to communicate with Party B without hardcoding their details. Additional parties like B can be added. Bug: 17314604 Change-Id: I175bdf28662bafcf0c91acb51a3da5cbc2b69086
vent/NetworkEventDispatcher.java
vent/NetworkEventListener.java
|
93235f904ce83fe138c90a90c66d0e78f9f405b8 |
23-Aug-2014 |
Elliott Hughes <enh@google.com> |
Rearrange a few of our MIME type registrations. Based on looking at IANA and wikipedia. Bug: 16978217 Change-Id: I0d28c6d53ec26c7d5501f722b66dd50595e2a6b4
imeUtils.java
|
77926e913a14b9541df38b6175f795f2ca6c5266 |
05-Aug-2014 |
Elliott Hughes <enh@google.com> |
Fix MimeUtils to treat ".flac" as "audio/flac". Bug: 15715370 Change-Id: I2d99f070c3debea01621a172d8189951a56736b5
imeUtils.java
|
f39b5ca3c6378c3c36c63889577004b9693ea9c6 |
17-Jun-2014 |
Elliott Hughes <enh@google.com> |
Remove more. Change-Id: Idaf030cd369e728ec37df7107cd30062db899b7c
rl/FileURLConnection.java
rl/JarURLConnectionImpl.java
|
40bb958bb2776fe50244ebdce1b59a7234f911d9 |
09-May-2014 |
Narayan Kamath <narayan@google.com> |
am 00c64297: am 469b6955: am 567dcb29: Merge "Fix various errors in FileURLConnectionTest." * commit '00c642971127aa804eca93bf770eb9802fb5a159': Fix various errors in FileURLConnectionTest.
|
d94e746976d2906b89197448db15e4a0e355d98a |
08-May-2014 |
Narayan Kamath <narayan@google.com> |
Fix various errors in FileURLConnectionTest. - First, the test was broken pretty badly. It would pass a Jar style URL to a FileURLConnection and expect it to work, this is out of spec and seems wrong in general (file:///foo.apk!resources/foo.txt). - The RI supports various "headers" on file URL connections (sigh). As if the getHeaderField(int) and getHeaderFieldKey(int) APIs weren't bad enough. This has now been implemented with a naive implementation. - Fixes FileURLConnection to populate a header map for information it provides (content length, content type etc.) bug: 11664881 Change-Id: I7a3e9aaa79bf125abbcfe8367574115ce54718e3
rl/FileURLConnection.java
|
8621348d05b28d7626e76fcea3ea6f45099a9157 |
07-Mar-2014 |
Neil Fuller <nfuller@google.com> |
Add APIs for better interoperability with Java 1.7 Must be committed at the same time as the change in framework to update the public API footprint. See commit 38ce4c0f83d4ac35c4c63fecf7c8775f9b16f6da in framework/base. Change-Id: I71a88b09feef8bc2b50b3aeafc3be5863eea3063
rl/FileURLConnection.java
rl/JarURLConnectionImpl.java
|
2587ef91ba693d73e97704e8163c050b286e7330 |
14-Feb-2014 |
Neil Fuller <nfuller@google.com> |
Addition of 1.7 methods to URLConnection. URLConnection.getHeaderLong() and URLConnection.getContentLengthLong(). These methods are required by okhttp. Changed JarURLConnectionImpl.getContentLength() to return -1 when the size of an entry cannot be represented as an int. Previously it would have returned a corrupted, possibly negative, value due to a cast. Changed FileURLConnection.getContentLength() to return -1 when the size of the file cannot be represented as an int. Previously it would have returned a corrupted, possibly negative, value due to a cast. Change-Id: Ib43e68a2536c2602b4c7ee0cda68fa1f90045f57
rl/FileURLConnection.java
rl/JarURLConnectionImpl.java
|
e9c981dc3a4959e780da23eee6cf5a73e13d824d |
14-Nov-2013 |
Elliott Hughes <enh@google.com> |
am 580df337: Merge "Update our MIME type map." * commit '580df3374a411fb76d79ea19a129e65ee08c3733': Update our MIME type map.
|
cb8b2684604c0068a9e34b7fd352f0c3abaf99ca |
14-Nov-2013 |
Elliott Hughes <enh@google.com> |
Update our MIME type map. Bug: https://code.google.com/p/android/issues/detail?id=61996 Change-Id: I55efc9d38c87d89bb20073e4632ab1e06c77be09
imeUtils.java
|
054c301f83fe04c44a204b3d2e71d56763d29748 |
28-Oct-2013 |
Jeff Sharkey <jsharkey@android.com> |
am e690ff8e: Add more certificate MIME type mappings. * commit 'e690ff8e85c0e0ed461112085a30496b771bc352': Add more certificate MIME type mappings.
|
e690ff8e85c0e0ed461112085a30496b771bc352 |
25-Oct-2013 |
Jeff Sharkey <jsharkey@android.com> |
Add more certificate MIME type mappings. Bug: 11354402 Change-Id: I8fd361de60e4170546bad8e5e58170768778f00e
imeUtils.java
|
5b5e8e70b52dd4fca159fb39f9ee555d31699dec |
12-Sep-2013 |
Elliott Hughes <enh@google.com> |
Remove RawSocket, which is no longer used. Change-Id: Ia44a9ffd4d36da408c6b411c90d59ce7db30a36f
awSocket.java
|
59675dbb837c2a92352032e2ef0c8fc3305da9c8 |
06-Aug-2013 |
Elliott Hughes <enh@google.com> |
Cache the few unique Attributes.Name values. Google+ was seeing ~8k duplicate names. Their real fix is to not accidentally cause us to parse their jar manifest, but we shouldn't be unnecessarily wasteful in the common case, should anyone actually need their jar manifest. Change-Id: Ia06b0964956332975e5efd079d96aa76ba605f48
rl/JarURLConnectionImpl.java
|
2a6f23ff8690ac2f025588a360547ce96cde0943 |
29-Jun-2013 |
Elliott Hughes <enh@google.com> |
Add java.nio.charsets.StandardCharsets. Bug: 3484927 Change-Id: I5820267491b850b8fcc696fa48962710de123009
riCodec.java
rl/FtpURLConnection.java
|
2503556d17b28c7b4e6e514540a77df1627857d0 |
30-Mar-2013 |
jwilson <jwilson@squareup.com> |
Switch to OkHttp as URL's preferred HTTP implementation. Change-Id: Id724b75dd78b68ed00f5db4989c4070896996ec0
ttp/AbstractHttpInputStream.java
ttp/AbstractHttpOutputStream.java
ttp/Challenge.java
ttp/ChunkedInputStream.java
ttp/ChunkedOutputStream.java
ttp/FixedLengthInputStream.java
ttp/FixedLengthOutputStream.java
ttp/HeaderParser.java
ttp/HttpConnection.java
ttp/HttpConnectionPool.java
ttp/HttpEngine.java
ttp/HttpHandler.java
ttp/HttpResponseCache.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsHandler.java
ttp/HttpsURLConnectionImpl.java
ttp/RawHeaders.java
ttp/RequestHeaders.java
ttp/ResponseHeaders.java
ttp/RetryableOutputStream.java
ttp/UnknownLengthHttpInputStream.java
|
3b6a38d45a9e66be873909694021fa18a4670474 |
25-Mar-2013 |
Elliott Hughes <enh@google.com> |
MimeUtils' list of MIME types should be in order of popularity. 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
imeUtils.java
|
19aa40c81c48ff98ccc7272f2a3c41479b806376 |
18-Dec-2012 |
Jeff Sharkey <jsharkey@android.com> |
Retry failed redirections when socket is recycled. When an HTTP request fails, getResponse() attempts to retry once if the socket was recycled from a previous request. This extends that logic to retry failed redirects by marking the connection as recycled. http://code.google.com/p/android/issues/detail?id=41576 Change-Id: I5aea566a498e48d753d3893101d14cd4ab76db2b
ttp/HttpEngine.java
ttp/HttpURLConnectionImpl.java
|
cff1616012dc0d56c2da9af2b9b1183e76c7e044 |
04-Dec-2012 |
Elliott Hughes <enh@google.com> |
Add detail messages to all the easy IllegalArgumentException cases. Noticed during my recent Matcher change. Change-Id: I415d911b26d0ee548ca04d56bba7fc3d4e6b3f88
ttp/HttpURLConnectionImpl.java
|
bb1546d2c87c6f7e996a83b6f0efca17453d53db |
18-Oct-2012 |
Brian Carlstrom <bdc@google.com> |
Make sure URL.toURILenient throws the proper exception on trailing garbage escape Previously this would throw IndexOutOfBoundsException instead of the proper checked exception. Bug: 7369778 Change-Id: I4247240b21a98688bd890c53f654f7a030d72717
riCodec.java
|
4bedacd569fed2db56c518ed239412b3fe32245e |
20-Sep-2012 |
Jesse Wilson <jwilson@squareup.com> |
Fix a bug in tunnel construction and 'Connection: close' headers. Based on https://github.com/square/okhttp/pull/30 (git fetch git://github.com/square/okhttp.git && git cherry-pick -x b8c51dc5bdc89d5487cbc110d6fe40389de16480) Bug: http://code.google.com/p/android/issues/detail?id=37221 Change-Id: I5bed33d9ab16002aa38c2f729fa14a2022485469
ttp/HttpEngine.java
|
f9d60aed414ae21811a6488f603333517f257b22 |
24-Sep-2012 |
Narayan Kamath <narayan@google.com> |
Strip content length in requests with "transparent" gzip handling. We need to strip both the Content-Length and the Content-Encoding for such requests. In such requests, it will be the length of the compressed response. We hide the fact that compression is taking place from clients, so we shouldn't give them the content length either. Change-Id: I80713ab33143945c5e2656f478d83cc9e60226a8
ttp/HttpEngine.java
ttp/ResponseHeaders.java
|
d43b9ef11a1095967a3396b246639b563e1a4128 |
12-Sep-2012 |
Kenny Root <kroot@google.com> |
Add consistent reasons for NullPointerException Semi-automated replacement of empty and non-conforming NullPointerException reason messages. (cherry-pick of 86acc043d3334651ee26c65467d78d6cefedd397.) Change-Id: I6d893979f5c20a50e841e32af9fd7b2d8bc9d54d
riCodec.java
|
7695a9b3261bfee3a810e0829bd8082fe1fcb6a4 |
30-Aug-2012 |
Brian Carlstrom <bdc@google.com> |
Disable SSL compression Bug: 7079965 Change-Id: I8e060a827613e212bbcced66507fbf124bb04543
ttp/HttpConnection.java
|
ac665275e161fab8ecd4225e73e159a9edf10501 |
23-Jul-2012 |
Vladimir Marko <vmarko@google.com> |
Performance improvements: DiskLruCache, HttpResponseCache. Add StrictLineReader for efficient reading of lines consistent with Streams.readAsciiLine(). Use this to improve DiskLruCache.readJournal() and initialization of HttpResponseCache$Entry from InputStream. (cherry-pick of e03b551079aae1204e505f1dc24f2b986ef82ec0.) Bug: 6739304 Change-Id: If3083031f1368a9bbbd405c91553d7a205fd4e39
ttp/HttpResponseCache.java
|
fddea0213028dd6d467f316584fac0f6e0745ce9 |
31-Jul-2012 |
Elliott Hughes <enh@google.com> |
HttpResponseCache should return 504, not 502. The RFC seems pretty clear on this issue. Bug: http://code.google.com/p/android/issues/detail?id=28294 Change-Id: Ia9a979e1fbbd8b38b1607059c042e0fc9ca44270
ttp/HttpEngine.java
|
c0e9010d03768a745d589e8093fc3d7a056c740b |
27-Jul-2012 |
Brian Carlstrom <bdc@google.com> |
Merge "Fix HttpURLConnection CloseGuard warning due to lack of close on GZIPInputStream"
|
8155888a2c4e7cc28596deec28433e1984cfaf11 |
25-Jul-2012 |
Brian Carlstrom <bdc@google.com> |
Fix HttpURLConnection CloseGuard warning due to lack of close on GZIPInputStream java.lang.Throwable: Explicit termination method 'end' not called at dalvik.system.CloseGuard.open(CloseGuard.java:184) at java.util.zip.Inflater.<init>(Inflater.java:82) at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:96) at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:81) at libcore.net.http.HttpEngine.initContentStream(HttpEngine.java:523) at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:831) at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486) at ... Bug: 6602529 Change-Id: I9b49cbca561f8780d08844e566820087fdffc4d7
ttp/HttpURLConnectionImpl.java
|
41b15b85a105cc74d8e82441c723134dde674e92 |
25-Jul-2012 |
Elliott Hughes <enh@google.com> |
Merge "Fix URLConnectionTest#test_getAllowUserInteraction."
|
3827b65b1937acfbf3abbc449f8ba0ffc60f3cf3 |
24-Jul-2012 |
Elliott Hughes <enh@google.com> |
Fix URLConnectionTest#test_getAllowUserInteraction. Also improve the documentation, make it possible to run these tests individually outside of CTS with vogar, and remove a few more URLs of external web servers. We should clean up all tests to remove all reliance on external web servers. Bug: http://code.google.com/p/android/issues/detail?id=35400 Change-Id: I28e78b7375ee554b3afe98e5249676e8bbbbec0e
rl/FileURLConnection.java
|
459718ce7114a918efcc7d464e4209dbfade6a86 |
21-Jul-2012 |
Brian Carlstrom <bdc@google.com> |
Tolerate cache files being removed from underneath DiskLruCache Bug: 6777079 Change-Id: I2f950ab6d847dd63061aeb449fc5d46ab9e6c50a
ttp/HttpResponseCache.java
|
b7705a4629bb74a5bb19d97bf0b4dd4c74cecd9e |
20-Jul-2012 |
Brian Carlstrom <bdc@google.com> |
TLS + SNI + proxy => bug : the SNI at the TLS layer is the hostname of the proxy instead of the hostname in the URL Bug: http://code.google.com/p/android/issues/detail?id=35050 Change-Id: Ia12f54e0521cf98eac184d80744192c1f782e7c2
ttp/HttpConnection.java
|
5655e03a7e10b3201b6814dac7b2f6ac5607ebf2 |
10-Jul-2012 |
Jean-Baptiste Queru <jbq@google.com> |
Merge from AOSP Change-Id: I83f2ba38dca0fa86e9ff802e5df02311f6bc6e99
|
ebac4e8fcafe084009925cfa7526e73fa4ed0487 |
06-Jul-2012 |
Vladimir Marko <vmarko@google.com> |
Improve HttpResponseCache performance. Avoid writing to HttpResponseCache.CacheRequestImpl.cacheOut one byte at a time via inefficient FilterOutputStream write. (cherry-picked from 91cc423115fdfa682d9c4cd025dee06aaa145b3c.) Bug: 6738383 Change-Id: Ia657d7417cc292746968809f6896a5e790f1394d
ttp/HttpResponseCache.java
|
ba4be8f488f5cc416e9914f98e2f5374fa0a004b |
29-Jun-2012 |
Brian Carlstrom <bdc@google.com> |
am 4ec2d0de: HttpEngine should not attempt to cache proxy CONNECT responses * commit '4ec2d0dea800397fb32227e0631246f4d2a73191': HttpEngine should not attempt to cache proxy CONNECT responses
|
4ec2d0dea800397fb32227e0631246f4d2a73191 |
29-Jun-2012 |
Brian Carlstrom <bdc@google.com> |
HttpEngine should not attempt to cache proxy CONNECT responses This fixes an issue where a bad proxy repsonse that included a body would turn into an IllegalStateException instead of an IOException. Bug: 6754912 Change-Id: I204ad975820693d6add2780d7b77360463e33710
ttp/HttpEngine.java
|
f698461fec300c5e1e9570c882bd5fee0df62aed |
01-May-2012 |
Elliott Hughes <enh@google.com> |
am 0253fff2: am a42068e9: Merge "BT: Adding support for wrf files to BT OPP" * commit '0253fff2a77a0db11a1ddd879e222b36aca8a368': BT: Adding support for wrf files to BT OPP
|
a42068e945d5c4de5926710d87feaf95969a2001 |
01-May-2012 |
Elliott Hughes <enh@google.com> |
Merge "BT: Adding support for wrf files to BT OPP"
|
c6d24c6b88ce50c1fa2b9e89253d5839eff1618a |
07-Dec-2011 |
Lukasz Rymanowski <lukasz.rymanowski@tieto.com> |
BT: Adding support for wrf files to BT OPP This patch adds support for wrf files to BT OPP. Proper mime type /application/octet-stream with extension wrf was added to webkit framework. Change-Id: I2cdd961a78281129b96fba51d5df37c534c5c893 Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
imeUtils.java
|
e2fda3eb560dd75b6be16e2a8fce3860ce3c4e0f |
12-Mar-2012 |
Brian Carlstrom <bdc@google.com> |
Make classes accessible to ParsedHeadersTest Bug: 5835156 (cherry picked from commit 943036db28577070ae5b5fed5051a2e47d95f6ea) Change-Id: I7a1a9d7ae7003e54847fb2b0e99cc560e1fe34f0
ttp/Challenge.java
ttp/HeaderParser.java
|
e636ca4d6bd101324bd95fbc817401e6e0b80a2c |
15-Feb-2012 |
Jesse Wilson <jessewilson@google.com> |
Introduce an ExtendedResponseCache interface. We had an ugly bug where HttpEngine was inspecting its response cache's implementation type, and calling stats tracking methods if that type permitted it. This worked for all the libcore tests, but not in practice since the public HttpResponseCache class WRAPS the libcore HttpResponseCache. The new interface makes the new APIs called by HttpEngine on its cache explicit, and permits the public android.net.HttpResponseCache to implement the API. Bug: http://code.google.com/p/android/issues/detail?id=25418 Change-Id: Ic9697af96635256e7ffc24f86628a85fbe2defd4
ttp/HttpEngine.java
ttp/HttpResponseCache.java
ttp/ResponseHeaders.java
ttp/ResponseSource.java
|
df29c7dc69965462cd19de8910b04c8cb463e57f |
15-Feb-2012 |
Jesse Wilson <jessewilson@google.com> |
Don't attempt to parse an HTTP response body on HEAD requests. Previously if the response had a Content-Length or Transfer-Encoding header we assumed it had a body. This was untrue of HEAD requests. This is not a regression. Bug: http://code.google.com/p/android/issues/detail?id=24672 Change-Id: I264db2014e681a6f8e93cd40b0f1640c95103d21
ttp/HttpEngine.java
|
58d229ebb70c7f6018e7b39c004638b9bdd62e31 |
26-Jan-2012 |
Jesse Wilson <jessewilson@google.com> |
Merge commit 'f41105dc' into manualmerge Conflicts: luni/src/test/java/libcore/java/net/URLConnectionTest.java Change-Id: I8f2bd79b02d1c3315e97e36a59497054ec3e1dc2
|
a468471e8ccc2f642d5b2ae3c75873a74267ece2 |
26-Jan-2012 |
Jesse Wilson <jessewilson@google.com> |
Don't throw needlessly when returning the CacheResponse. We were throwing under the premise that we'd always have response headers before we had a cached body. But when the user calls connect() we'll have queried the cache but we won't necessarily have response headers from the server yet. That's because connect() doesn't require a response to be ready. Bug: http://b/5920659 Cherry-picked from: I9d69b44b5be3d0e29f14d8b83781f6e65c67582a Change-Id: Ia403b42ddc9783fd1456164f4b7350da3ce80566
ttp/HttpEngine.java
|
5f0ed6ed5798a3e6ad642bcd5382b864796cdcb8 |
25-Jan-2012 |
Irfan Sheriff <isheriff@google.com> |
Add support for ARP on RawSocket Merged from the changes contributed from googletv folks Change-Id: Ie4c40c96950becbed28fd68cb482d8b3dbebc001
awSocket.java
|
72baec6104b80ff6a6b189dc78968f042f0b91ef |
04-Jan-2012 |
Jesse Wilson <jessewilson@google.com> |
Merge "Update the response cache on a conditional cache hit"
|
5d7e0fc1af3141aa41e9c21d74da3c36b933517f |
23-Dec-2011 |
Jesse Wilson <jessewilson@google.com> |
Update the response cache on a conditional cache hit Bug: http://b/4460598 Change-Id: I5f274b2109861b9d2ed59eda8b3e5b4e89fd27b3
ttp/HttpEngine.java
ttp/HttpResponseCache.java
ttp/ResponseHeaders.java
|
fa5e8dfe3c7ed144b0fbe69091628dedd6a3b961 |
21-Dec-2011 |
Jesse Wilson <jessewilson@google.com> |
Don't reuse an SSL socket if the socket factory has changed. Bug: http://b/3042192 Change-Id: Iaa9deb69058afcca4ab79ca6ba745c55d1e9321a
ttp/HttpConnection.java
ttp/HttpEngine.java
ttp/HttpsURLConnectionImpl.java
|
5757cb35ad2e58d7accb7f5d3db6f2d5e72f097d |
16-Dec-2011 |
Jesse Wilson <jessewilson@google.com> |
Support multiple challenges for HTTP authentication. This fixes the problem reported in the bug, but we still need to give attention to the digest scheme. Currently we can't do Basic auth if the HTTP response contains both a Digest challenge and a Basic challenge! Bug: http://code.google.com/p/android/issues/detail?id=19081 Change-Id: Ifffb307678c2afa0db1d50c1ef5fc49ec7769306
ttp/Challenge.java
ttp/HeaderParser.java
ttp/HttpURLConnectionImpl.java
ttp/ResponseHeaders.java
|
b2b02ac6cd42a69463fd172531aa1f9b9bb887a8 |
15-Dec-2011 |
Jesse Wilson <jessewilson@google.com> |
Change the way we cope with stale pooled connections. Previously we'd attempt to detect if a connection was stale by probing it. This was expensive (it relied on catching a 1-millisecond read timing out with a SocketTimeoutException), and racy. If the recycled connection was stale, the application would have to catch the failure and retry. The new approach is to try the stale connection directly and to recover if that connection fails. This is simpler and avoids the isStale heuristics. This fixes some flakiness in URLConnectionTest tests like testServerShutdownOutput and testServerClosesOutput. Bug: http://b/2974888 Change-Id: I1f1711c0a6855f99e6ff9c348790740117c7ffb9
ttp/HttpConnection.java
ttp/HttpConnectionPool.java
ttp/HttpEngine.java
ttp/HttpURLConnectionImpl.java
|
2d9fa917aae6a6da38e9d1eda05841ffdf8855bb |
15-Dec-2011 |
Jesse Wilson <jessewilson@google.com> |
Document the effect on timeouts of having both IPv4 and IPv6 addresses Bug: http://b/3441111 Change-Id: Ib4c2e3e0d8d86eb5eb77cf92a0814c7444fd153f
ttp/HttpsURLConnectionImpl.java
|
ecd3536488a6b5cbbe30104370c8fbd7d941a8cd |
25-Nov-2011 |
Jesse Wilson <jessewilson@google.com> |
Don't check available() when testing if a socket is stale. When the HTTP server is well behaved, available() will always return 0. Any other result would be necessarily bogus; the server doesn't know what the client is going to request. So this check wasn't adding anything. Removing the check has a pleasant side effect of fixing URLConnectionTest#testServerShutdownOutput, which is failing due to a bug in PlainSocketImpl.available(). Bug: http://b/5534202 Change-Id: I1c567e91c2bcbe3884dfbefe77ce4b0201a2c0d6
ttp/HttpConnection.java
|
d0d626655f1d452070d3116678037e8759f807f4 |
10-Nov-2011 |
Jesse Wilson <jessewilson@google.com> |
Don't NullPointerException when a URL contains a space. We end up creating a URI of http://and%20roid which has no host name part because and%20roid is not a valid host name. It's unclear where the best place to fail is. This is consistent with the RI which doesn't fail until it attempts to connect. Bug: http://code.google.com/p/android/issues/detail?id=16895 Change-Id: Ifa4dc3c651f4627e27622ed5cedfa820f9a35358
ttp/HttpConnection.java
|
783631d82682027beaf80540ab08912fd56fea0c |
29-Oct-2011 |
Jesse Wilson <jessewilson@google.com> |
Add a mode to UriCodec to handle invalid URLs without throwing. Bug: http://code.google.com/p/android/issues/detail?id=21064 Change-Id: I0c0003bbacc5b9680d9f699134c02648e0d6dbea
riCodec.java
|
0bc188affdcfebaa9bc6c16f0c1de98c734d3c2e |
27-Oct-2011 |
Marc Blank <mblank@google.com> |
Add pfx extension as "application/x-pkcs12" * This is what MS Exchange uses when it creates user certificates, and the Email/Exchange application need to know about the extension -> mime type mapping Bug: 5524693 Change-Id: Ie17308070e9ec32446cb6071775b5570f4b40c23
imeUtils.java
|
3e9485649f38c67763d6ffeecb3614c991d8aede |
17-Oct-2011 |
Julien Mercay <jmercay@google.com> |
Add mime types used by Google Earth Change-Id: If10cf39515472969a2e57e9a1e00dead818fe771
imeUtils.java
|
25a753691a80186cd4d7086b12c0e52225d95897 |
30-Sep-2011 |
Jesse Wilson <jessewilson@google.com> |
Fix chunked input stream's available() method to never return -1. Change-Id: I6ea268e469675ef890010282dbe35ed5838cca73 http://code.google.com/p/android/issues/detail?id=20442
ttp/ChunkedInputStream.java
|
ed211506be4a0985678cf099282ed8fe851868fb |
15-Aug-2011 |
Jesse Wilson <jessewilson@google.com> |
Make HTTP implementation details public for CTS tests. Our testing tools cannot normally test package-private APIs because the tests are loaded in a different class loader than the production classes. This is an unfortunate workaround. Change-Id: Ic8d9d3088887bccceaf166959468cd52bfef9aae
ttp/HttpEngine.java
ttp/HttpResponseCache.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
ttp/RawHeaders.java
ttp/RequestHeaders.java
ttp/ResponseHeaders.java
|
5112325117859c7c6cd042c17f519f967c551b20 |
29-Jun-2011 |
Jesse Wilson <jessewilson@google.com> |
Move socket tagging to frameworks/base. Change-Id: I6f6f840d5d5eee6ca2170fc127fd525155dd40b8
ttp/HttpConnectionPool.java
|
ce257b03a1e5ff6075967e6a84cdb439cb2b01c8 |
27-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Clean Up URI's parsing code. http://b/2753295 Change-Id: I190ee12c14d1b3b17e2c8cb5ef3868618f1ee124
riCodec.java
rl/UrlUtils.java
|
2d99ef561304174b8ae01a0a68d5b96d5edb9f10 |
26-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Fix URI to behave more like the spec and browsers and less like the RI. When computing relative paths from URLs like foo.com/a to foo.com/a/b, this now uses "a/b" as the relative path and not just "b". That was an RI bug that we were foolishly compatible with. Change-Id: I6e3f10d84602c08bbf6bd7c7e43c2ba3387e4c3b http://b/2753295
rl/UrlUtils.java
|
c5727263001f1eae068f7821063d7bfb2da8e24c |
26-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Use canonicalizePath in URI. This needs to add another mode to canonicalizePath to not discard ".." prefixes from relative paths. Change-Id: I9e0b86bd1e7ab8e5e71c46f1efcf4aeb218e66b2 http://b/2753295
rl/JarHandler.java
rl/UrlUtils.java
|
10527ac8763cc50fa9eca0d4ce495909899f0b9a |
25-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Parity between URI and URL tests. Duplication here is unfortunate. It would be a lot of work to share tests here, since the two classes have necessarily different behaviors in certain situations. I continue to work on making the two classes consistent with browsers, which means they'll be more consistent with each other. Change-Id: Ic33c414abe1344cdfd1a9b539d9918dcd074f2c6 http://b/2753295
riCodec.java
|
5292410e4ebf7fb5149eefd2f52fcb94c46690a6 |
24-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Rewrite parsing for java.net.URL. This fixes many broken cases on handling relative URLs. We normalize all URLs by default. This will result in more URL equality than before. Previously the URLs http://android.com/a/../ and http://android.com/ were not equal; now they are equal. Change-Id: I8cf7be2e42eeb1386520be2698d8f14e0a55decb http://b/4361656
ttp/HttpEngine.java
rl/FileHandler.java
rl/JarHandler.java
rl/UrlUtils.java
|
2e0aed04f6bef27f2a9e4c46c3310e0b88790396 |
20-May-2011 |
Elliott Hughes <enh@google.com> |
Merge "Move the stuff to bridge between io/net/nio semantics and POSIX semantics." into dalvik-dev
|
0b736ebc4efef64f2db1999aea90297ad8196146 |
20-May-2011 |
Elliott Hughes <enh@google.com> |
Move the stuff to bridge between io/net/nio semantics and POSIX semantics. IoUtils should be more generally useful. Change-Id: I5665f2a94d226ada3077a30045549a53cc741cf0
awSocket.java
|
c8e161cd543d2a327a7db23b8ce8f127b2e2ebae |
20-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Merge "Support HTTP cookies and header combining." into dalvik-dev
|
cd8c1dd724036dcd1b7c27542cc4d745391b8d04 |
20-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Support HTTP cookies and header combining. Change-Id: Ifdf15dc2f551e58bdd6a1aae847f7dec254ac7e8 http://b/3180373
ttp/HttpEngine.java
ttp/ResponseHeaders.java
|
80f4d25b880b83abfd79474bb0e6fdc4d898f94c |
19-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Address FindBugs warnings in libcore.net.http Change-Id: Ia0c4f95e62825a4ed4debac2578d353491a7ff2c
ttp/RawHeaders.java
ttp/RequestHeaders.java
ttp/ResponseHeaders.java
|
c297a0013b6a926d3e47efe6a73a6ab0f2f6eb89 |
19-May-2011 |
Elliott Hughes <enh@google.com> |
Merge "Implement recvfrom(2)." into dalvik-dev
|
23ec09188303a874b3b391f96ae0a29af002bff9 |
19-May-2011 |
Elliott Hughes <enh@google.com> |
Implement recvfrom(2). This one's a little bit hairy because of multiple return values. Bug: 3107501 Change-Id: I3bd35647d94bb6bc2192d6f31a39ecca07a3926e
awSocket.java
|
e5eb80e6adaab18ff7372adcd09f9e1af3a76871 |
19-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Make the HttpResponseCache robust to file I/O errors. If the filesystem fails, cache performance degrades. Ongoing writes should not see any filesystem errors: don't punish the writer who isn't benefitting from the cache. Ongoing reads may see IOExceptions while streaming files. In practice this will only happen if the directory disappears during use, as is the case when a removable partition is removed. Change-Id: Ibf4d51998d9beaba9f8c86c449fd5c97ca869cee http://b/3180373
ttp/HttpResponseCache.java
|
09f1b0cc860e039dff39e9429c1eaddcb6af598e |
18-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Parse HTTP request headers only once. Change-Id: Ib3df045c546b424651eb1164c2dc610d366b5b39
ttp/HttpEngine.java
ttp/HttpResponseCache.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
ttp/RawHeaders.java
ttp/RequestHeaders.java
ttp/ResponseHeaders.java
|
7a891b5c83357dbeea2bbe4a5335ae685501e21c |
18-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Don't read through HTTP response headers more than necessary. This refactoring changes HttpEngine to prefer the parsed response headers over the raw response headers. I'll do likewise for the request headers in a follow-up change. Change-Id: Iab8329a836d14b3ac7bb0abe190e0a8fa7cc0694
ttp/HttpEngine.java
ttp/HttpResponseCache.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
ttp/ResponseHeaders.java
|
6f778cc173cc60ec184e8ca54a16ad10cf55f2cf |
18-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Cache HTTP responses with a Vary header. This requires a backdoor for the cache to read the request headers at put time. This is implemented by getting the HttpEngine, which will allow us to eventually share the response header parsing. Change-Id: I177467244e5af0a3dda07883cd58d641bf75362f http://b/3180373
ttp/HttpResponseCache.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
ttp/RawHeaders.java
ttp/ResponseHeaders.java
|
e342455abc6b650f847d931728223411e58831ce |
17-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Test DiskLruCache with fault injection. This tests what happens when the filesystem fails while reading or writing the cached files. I still need to test what happens when there are failures reading or writing the journal. Change-Id: I48018514ef5b8cc206efc905b1823eb49589c8e8 http://b/3180373
ttp/HttpResponseCache.java
|
ae3dad3194393a6800590284e3632f44fac1ddfb |
16-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Merge "Move APIs from internal HttpResponseCache to external one." into dalvik-dev
|
e27d02044ec399884bfd4343d513bf270b9b9b11 |
16-May-2011 |
Elliott Hughes <enh@google.com> |
Remove OSNetworkSystem.close. For now I'm keeping AsynchronousCloseMonitor as a special case in native code. We can see about doing something more general-purpose in a later pass. Bug: 3107501 Change-Id: Ib79b9fc0bebfafc2d14896d957bd8591ae8e6e97
awSocket.java
|
fb4a6392a04b1f3a1124b3db6bae51d8cbfa53f8 |
14-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Move APIs from internal HttpResponseCache to external one. Change-Id: Ia6c88f292088bfd3ed546c067376fcb36b435b48 http://b/3180373
ttp/HttpResponseCache.java
|
5637884f8217dbf28de0913c06aceaf09c898510 |
14-May-2011 |
Jeff Sharkey <jsharkey@android.com> |
resolved conflicts for merge of 1e8d508f to dalvik-dev Change-Id: Id0739d4e567b112cbea48f5ecb7dd46425da1a36
|
1e8d508f2d97e19f2fc8a709330ea97e1e9f203a |
04-May-2011 |
Jeff Sharkey <jsharkey@android.com> |
Add Socket tagging for granular data accounting. Changes BlockGuard to maintain a set of "tags" for the current thread, which it communicates to kernel before each Socket use. Also changes HttpConnectionPool to tag/untag sockets as they are recycled. Change-Id: I33e614f1f570466bdffbf07cc5c718f18b8f3773
ttp/HttpConnection.java
ttp/HttpConnectionPool.java
|
396af46f45fd302e6309fc48ac1fd68cbb739edb |
12-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Add the application version to the DiskLruCache journal. This makes it easy for us to change how we store HTTP cache data without fear of compatibility problems. Change-Id: I26cd6645d26f359ab76e2f87b6ab73bbf24ab715 http://b/3180373
ttp/DiskResponseCache.java
ttp/HttpEngine.java
ttp/HttpResponseCache.java
|
ca8ae42fd6a787757897a680108bdcf7b0d37f13 |
12-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Provide more user-friendly HTTP cache stats. Rather than strictly trackign what's convenient for implementation, we now provide stats based on what we anticipate the user will want to know: - how many requests were made? - how many requests required network use? - how many requests were served by the cache? This doesn't provide individual stats on how many conditional gets were made, but those can be computed. Change-Id: Ieeebaf8b98664e78f828971052404dd7da28ad78 http://b/3180373
ttp/DiskResponseCache.java
ttp/HttpEngine.java
ttp/HttpResponseCache.java
|
757afaa7afe96791a3cc612c9e3c4597a7321c7e |
12-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Provide hit and miss stats on the HTTP response cache. Also capture FDs rather than InputStreams when a cache entry is read. This permits the cache to return as many streams as the caller requires. Also fix bugs where we weren't properly releasing the input streams from the responses. Change-Id: I04807eab648864229f1e8734ad1fbb6a2d6bb51d http://b/3180373
ttp/AbstractHttpInputStream.java
ttp/HttpEngine.java
ttp/HttpResponseCache.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
|
f589846f86761ffea3c06ab9d105d3f19328d121 |
11-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Address code review comments to Adopt DiskLruCache change. That change was submitted too early. This is the missing follow-up. Change-Id: I521455a7d249f8841c989561775c91d4368a8966 http://b/3180373
ttp/ChunkedInputStream.java
ttp/HttpEngine.java
|
433e3fac172d0c4449051b0c61c0c63b298a0903 |
11-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Adopt DiskLruCache in HttpResponseCache. http://b/3180373 Change-Id: I55ed45c5d0b8fc72cf50e8912416367ac802dc7a
ttp/ChunkedInputStream.java
ttp/HttpEngine.java
ttp/RawHeaders.java
|
32b2c95c350002f67c8b3e65777161feda766b72 |
10-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Dont line wrap Base64. Change-Id: I9a16a09dad9ff170921591455b17a3b738e70655
ttp/HttpURLConnectionImpl.java
|
9531eea15052eccc004b5f853ab4452becf7a8ab |
06-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Test that headers aren't accidentally transferred across requests. We used to have a bug where we'd only ever add headers. So if a request was redirected from a.com to b.com to c.com, then c.com would be able to see cookies from the other two hosts. This was fixed by the HttpEngine refactor, but tests haven't been added until now. Change-Id: I01588fe9662aae7404fef4d4b2c4f0468e7c670d http://b/3180373
ttp/HttpEngine.java
ttp/HttpURLConnectionImpl.java
|
2f16d502415452f808b5f077ad07b941645d14e4 |
06-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Support Cache-Control 'must-revalidate' directive. Change-Id: I98094e90307e7a39e40de6a09f34f038ad143ea4 http://b/3180373
ttp/ResponseHeaders.java
|
c996149b500fc4825156106554457fe2394ae087 |
06-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Fix proxy+HTTPS to handle authentication requests from the proxy. Previously I'd introduced a bug by assuming that CONNECT responses would always be successful. Change-Id: Iaf0caf67f52154f6951a20284c75db0090843b99 http://b/4188137
ttp/HttpEngine.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
|
19c77c6a6da8cea7327ccbb741963ac76d3fae53 |
05-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Address some test failures in the HTTP client. Change-Id: I44783aa7cadd51ed6b9e7aabc94144c60252c095 http://b/3180373
ttp/HttpEngine.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
|
d742d7fc7f0593eb8c6e4ac9dd4c0f6a80374e46 |
05-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Use GET after a POST is redirected. Also dropping support for response code 305 Use Proxy, which is seldom used, and whose behavior is quite different from Chrome and Firefox. This is an intentional delta from the RI. Also testing disconnect(). Change-Id: I80433f4776a2cfc5e228179421a787a44a4ded69 http://b/3180373
ttp/HttpEngine.java
ttp/HttpURLConnectionImpl.java
|
a4193d7e636802a2705ffb52cb69c69ff59bfbb2 |
05-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Clean up HTTP engine connection reuse. Also fixing cached responses to set warnings on the response header and not the request header. Change-Id: I4def2abf00e43aedc4baa63d1624bfa2f4d9bc16
ttp/HttpEngine.java
ttp/HttpURLConnectionImpl.java
ttp/ResponseHeaders.java
|
953df613522e12a418cb7cb73248594d6c9f53d4 |
03-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Refactor HttpURLConnection implementation. Break HttpURLConnectionImpl into two parts: the part that implements the Java API (that follows redirects etc.) and the part that speaks HTTP. The HTTP part is called HttpEngine, and it can only be used for a single HTTP request. This makes it easier to set request properties that only apply to a single socket request. Tests for 'Vary', 'Content-Location' and warnings. For simplicity of implementation I've chosen not to support 'Vary' at this time. The 'Content-Location' header doesn't require any work from the cache. Warnings are ugly but allow the caller to identify when the cache results may be problematic. Also breaking HttpResponseCache's dependency on HttpURLConnectionImpl so it can be tested on the RI. Change-Id: Idbabb51251f479c2cdea4e0fceb029bfd07182be http://b/3180373
ttp/AbstractHttpInputStream.java
ttp/ChunkedInputStream.java
ttp/FixedLengthInputStream.java
ttp/HttpConnection.java
ttp/HttpEngine.java
ttp/HttpHeaders.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
ttp/RawHeaders.java
ttp/RequestHeaders.java
ttp/ResponseHeaders.java
ttp/UnknownLengthHttpInputStream.java
|
0406097759dafaee2390e3ff8dbabd5a1d098122 |
03-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Split CacheHeader into RequestHeader and ResponseHeader. Fix suspicious use of the word 'header' in the HttpURLConnectionImpl. Use 'header field' and 'headers' as necessary. Change-Id: I502808005a727772091e5770a517d3170e102549 http://b/3180373
ttp/CacheHeader.java
ttp/HeaderParser.java
ttp/HttpConnection.java
ttp/HttpConnectionPool.java
ttp/HttpHandler.java
ttp/HttpHeaders.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsHandler.java
ttp/HttpsURLConnectionImpl.java
ttp/RequestHeaders.java
ttp/ResponseHeaders.java
|
21dddca4064527116af7a1553de502c6d11138da |
03-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Cache authorization headers and default expiration date. Neither of these are particularly pretty. Authorization is a silly special case in the spec that makes caching opt-in rather than opt-out. Default expiration dates are reasonable but require a hack to not cache get queries like http://foo.com/?q=bar. http://b/3180373 Change-Id: Ica76ccfde30fe1e7a0d64895ef5370b43bd980ec
ttp/CacheHeader.java
ttp/HttpURLConnectionImpl.java
|
84f1fd18b9db6fc6f2bb65694bee99d42f88bb79 |
02-May-2011 |
Jesse Wilson <jessewilson@google.com> |
Honor client conditions in HTTP response caching. Also whitelist acceptable response codes and use the same logic in both the write-to and read-from cache code paths. Change-Id: I9500c6c2c0f9bb35e05e2a3443542a86de76cb66 http://b/3180373
ttp/CacheHeader.java
ttp/HttpURLConnectionImpl.java
|
c9e12f729cb962eb60754e4500312421c46e71dd |
30-Apr-2011 |
Jesse Wilson <jessewilson@google.com> |
Adding support for only-if-cached request header. This is somewhat ugly because it means we need to fake a 502 bad gateway status when the response would otherwise be a cached or conditionally cached result. Also adding support for max-stale. This completes the set of three client cache timing headers, max-age, min-fresh and max-stale. Change-Id: I923a3e5a4685989cb49fb57d6a1359e10026b94b http://b/3180373
ttp/CacheHeader.java
ttp/HttpURLConnectionImpl.java
|
adb64fbba2b781467e055706c3de0873dfc01166 |
30-Apr-2011 |
Jesse Wilson <jessewilson@google.com> |
Honor max-age and min-fresh request headers. We now honor headers from both the server's response (which we have cached) and the client's request. Change-Id: Ib46e4fc0c5dd5b3e74cff8f45eea2dda51d20b94 http://b/3180373
ttp/CacheHeader.java
ttp/HttpURLConnectionImpl.java
|
fe2dea5d0747cbe711fcf64f89845735f4da10c2 |
30-Apr-2011 |
Jesse Wilson <jessewilson@google.com> |
Hack to fix URLConnectionTest. We weren't preparing the request headers early enough for some requests. This code needs some hefty refactoring, but I'm putting this quick hack in to get tests working until that's done. http://b/3180373 Change-Id: I03dbd306070bd21b4c7e86052b0b41339cbab628
ttp/HttpURLConnectionImpl.java
|
9b35d1ad04cdaf0905aee3cb04064ba977e846ac |
29-Apr-2011 |
Jesse Wilson <jessewilson@google.com> |
Improve parsing of HTTP caching headers. Change-Id: Ie2b4c76ac97cc7a4783bd6a695cfb28f7ea2296f http://b/3180373
ttp/CacheHeader.java
ttp/HttpHeaders.java
ttp/HttpURLConnectionImpl.java
|
0c59055dd24e1659f85d9ff7e2148883f663bd62 |
27-Apr-2011 |
Jesse Wilson <jessewilson@google.com> |
Support conditional gets in HttpURLConnection. This is the first step towards adding an HTTP response cache. There's still much to do; details are listed on the bug. Change-Id: Ie693fe424d1d90e90576fc959595e4d96a31f767 http://b/3180373
ttp/CacheHeader.java
ttp/ChunkedInputStream.java
ttp/HttpDate.java
ttp/HttpHeaders.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsURLConnectionImpl.java
ttp/ResponseSource.java
|
9fa7c4cd4a619236db70aefab8da3abafb065bca |
31-Mar-2011 |
Jesse Wilson <jessewilson@google.com> |
am 866b399e: am 9d28a32d: am bc4c79c6: Don\'t read from the delegate stream after we close it. * commit '866b399e1d5cab4cc8d196f8008ba8ad8376765d': Don't read from the delegate stream after we close it.
|
5aafac4db69e6d087c512cdfa5c7c0e2f1611681 |
19-Mar-2011 |
Jesse Wilson <jessewilson@google.com> |
Move URLConnection classes to libcore.net. Change-Id: I14bf8373dfce50dda94e1a64419b9a8a9cf3c82e
imeUtils.java
ttp/AbstractHttpInputStream.java
ttp/AbstractHttpOutputStream.java
ttp/ChunkedInputStream.java
ttp/ChunkedOutputStream.java
ttp/FixedLengthInputStream.java
ttp/FixedLengthOutputStream.java
ttp/HttpConnection.java
ttp/HttpConnectionPool.java
ttp/HttpHandler.java
ttp/HttpHeaders.java
ttp/HttpURLConnectionImpl.java
ttp/HttpsHandler.java
ttp/HttpsURLConnectionImpl.java
ttp/RetryableOutputStream.java
ttp/UnknownLengthHttpInputStream.java
rl/FileHandler.java
rl/FileURLConnection.java
rl/FtpHandler.java
rl/FtpURLConnection.java
rl/FtpURLInputStream.java
rl/JarHandler.java
rl/JarURLConnectionImpl.java
|
786ca658dfe8596835859ce45ee3b0ed46b8f21c |
10-Feb-2011 |
Jesse Wilson <jessewilson@google.com> |
Fix URL encoder regression. My recent cleanup broke URL partial encoding when the source URL already contained escaped sequences. It was covered by a test that I didn't run! Sigh. Also fold in related tests. The URL decoding tests were validating that URLs were resolving IP addresses; that functionality has since been removed. Change-Id: I876db3459f413e3f20ac3fd757749d8fbee3a1eb http://b/2753295
riCodec.java
|
32559028b14b9b321b10eede050afd554a376569 |
09-Feb-2011 |
Jesse Wilson <jessewilson@google.com> |
Use the same code to encode and fix poorly encoded URLs. Don't permit digits outside of ASCII. Change-Id: I47b756c32e67b7415e35ae9eb55b735d1c22a36d http://b/3436051
riCodec.java
|
56099d23fcb002b164bff8fb7f14d6ec0453509e |
09-Feb-2011 |
Jesse Wilson <jessewilson@google.com> |
Remove redundant URL encoders and decoders. http://b/3436051 http://b/2753295 Change-Id: I5836eab395214767efa4a3d8e8002cff72738854
riCodec.java
|
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
imeUtils.java
|
975dc421bdf9f207ed88b3fbedbba558f0f62c3c |
10-Dec-2010 |
Stan Chesnutt <chesnutt@google.com> |
Adds new RawSocket class (and underlying jni implementation). This is a utility class for an experimental Java implementation of dhcp. The client DHCP implementation needs to construct, send, receive, and parse raw L2 packets before the network interface is configured with an IP address. Current Java networking classes do not work with unconfigured network interfaces. Change-Id: I4dd0133868da5b84bd2a471c33173d4c056c34e8
awSocket.java
|
7b3ebefcdf79a251cf2a5619dd2354952fc67665 |
02-Aug-2010 |
Elliott Hughes <enh@google.com> |
Use the existing mime-type/extension mapping from frameworks/base. (An accompanying change to frameworks/base switches that over so that both android.webkit.MimeTypeMap and java.net.URLConnection use the same data.) Bug: 2422917 Bug: http://code.google.com/p/android/issues/detail?id=10100 Change-Id: I37f008a00093efcf7b336ea0c206e8977544b0bf
imeUtils.java
|