aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
AgeCommit message (Collapse)Author
2020-10-07Import of Volley from GitHub to AOSP.Anonymous
Includes AsyncRequestQueue and asynchronous infrastructure, but the Cronet-based components are excluded from Android.bp as Cronet is not broadly exposed for application usage. - ae701b33e718782e914108f9b6d1f1bb5f1ab7f8 Fix empty responses when content length is unknown. by Jeff Davidson <jpd@google.com> - 055fc535255367e5556d6274aadcbb5cd3be5ed3 Add hook to allow customization of UrlRequest.Builder. by Jeff Davidson <jpd@google.com> - bc64707525d43b2ddc1cad08a3445cc34111c47f Set Content-Type header for requests with bodies. (#371) by Jeff Davidson <jpd@google.com> - 4083c43bcfc8cc31be709574f6d1b923c2bf869d Add cURL logging support to CronetHttpStack. (#370) by Jeff Davidson <jpd@google.com> - 46a4f9040126940be79b10633be470dea32958a3 Fix dependencies from base Volley package to toolbox pack... by Jeff Davidson <jpd@google.com> - cde6d4367210819f357b1397d17b4656b773a0d9 Provide a ScheduledExecutorService to AsyncRequestQueue/A... by Jeff Davidson <jpd@google.com> - f582ee6f7b7067b6bce21239f904f3066b778dad Move CronetHttpStack tests to the expected location. (#368) by Jeff Davidson <jpd@google.com> - a4954c6661b01a5950f973d873b8e21d2a5dcc40 Revert DiskBasedCache. (#366) by Jeff Davidson <jpd@google.com> - 7b0a3119b499989c31611a8fb944015aa9a400c5 AsyncRequestQueue implementation + some tests (#361) by sphill99 <s.phill99@gmail.com> - d777e8a7bc4136b311913178021894adec73bfdb Created builder for DiskBasedAsyncCache (#360) by sphill99 <s.phill99@gmail.com> - 3ff2427da1db5c5a46c1dfa0aaf7c097258be7ce AsyncNetwork implementation as well as unit testing (#357) by sphill99 <s.phill99@gmail.com> - bb85de2f41a1bf9fe8b1ef15a41a9057947a0724 Added licensing headers for all newly created files (#358) by sphill99 <s.phill99@gmail.com> - 82c828d65a8f317a55a1a7b067a60df8fe566a02 AsyncHttpStack and Cronet implementation. Limited unit te... by sphill99 <s.phill99@gmail.com> - d0fb8dea486cc9b164cf140661225160dd5454d7 Implementations for rest of AsyncCache, tests for cache m... by sphill99 <s.phill99@gmail.com> - 94e3a4da70cf1803426de6a2579676966c670d78 Include license in generated POM file. (#352) by Jeff Davidson <jpd@google.com> - cae1570bc5d96cd2b840b39e5c742a397c76b45f Put implementation for async cache that uses callback met... by sphill99 <s.phill99@gmail.com> - a791d09a6747ca4923352405b20c229eafad5866 Get Implementation in AsyncCache that takes in a callback... by sphill99 <s.phill99@gmail.com> - 504e41a1c749ebbf3b63b6ab58533c8219cb6df1 Retry on NoConnectionError (#342) by sphill99 <s.phill99@gmail.com> - 40d4ffb7ec5dab4cfb32d6d19db8f45419742671 Fixed testCompile and testApi deprecations (#341) by sphill99 <s.phill99@gmail.com> - 7c767521db6aab17cb706d114570a557dc1c1efa Fix Android Studio project import of Volley. (#335) by Jeff Davidson <jpd@google.com> GitOrigin-RevId: ae701b33e718782e914108f9b6d1f1bb5f1ab7f8 Change-Id: I8f5792f679e88591c213156dcdd13482105e1c53
2020-04-30Import of Volley from GitHub to AOSP.Anonymous
- c9b2623cb524d2ec29a5a7f012528115f45b24cd Tolerate null header maps in HttpHeaderParser. (#334) by Jeff Davidson <jpd@google.com> - 455a16125ae9d01176d68a2ea7d4747130e55801 Allow creation of custom input/output streams in HurlStac... by Nicolas <ndagnas@live.fr> - addc11dbd37bd3a5d8136557076af0e8d0a995a4 Annotate more nullable methods and fields (#333) by Julien Biral <jbir789@users.noreply.github.com> - d41f34a43520cd1d30fe71ada3271161adb0e9c0 Add @Nullable annotations to Response (#325) by justin-morey <justin.morey@gmail.com> - 8a3a7baa07dda3fb4c5d561664470311c13d215b Send request to network when cache entry parsing fails (#... by Ulrike Hager <uhager42@gmail.com> - 514eac8c33492f69f62799dcd3669c877474626c Re-initialize the cache if the directory was deleted. (#2... by Ulrike Hager <uhager42@gmail.com> - b95b0159a14f053590cb18fd1cf3a1b159e478a1 Fix timezone formatting for RFC1123 on some Android devic... by Jeff Davidson <jpd@google.com> - 96c88101bcb6139fc9dd2ded4ef7c0008085d4b1 httpheaderparser: log invalid date headers only verbosely... by Florens <Floens@gmail.com> - 8e7a6dbf4dfbea56da48814ecf6e7270dcec9b0f Allow Volley.newRequestQueue() to be called on main threa... by Yuhan Zhao <poligun@gmail.com> GitOrigin-RevId: c9b2623cb524d2ec29a5a7f012528115f45b24cd Change-Id: I8e677f68212e6ba0812f398744895a1a12b6ed70
2019-04-09Import of Volley from GitHub to AOSP.android-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-o-mr1-iot-release-1.0.12oreo-mr1-iot-releaseAnonymous
- dbfc43945655acaf7cc18e4a30ceb26a46c05f58 Adding setDefaultImageDrawable and setErrorImageDrawable ... by Yuhan Zhao <poligun@gmail.com> - 83ea07d3e3ea251221da834c43705897dec6d34e Pin to a specific errorprone version. (#266) by Jeff Davidson <jpd236@cornell.edu> GitOrigin-RevId: dbfc43945655acaf7cc18e4a30ceb26a46c05f58 Change-Id: If34fda708841eb5bf3788865b66e23f342523537
2019-03-27Import of Volley from GitHub to AOSP.Anonymous
Android.bp is updated to use androidx.annotation instead of android.support.annotation to be consistent with the new Gradle dependencies. - ddbc32c04921df0973baadeee50f8d3099b12e14 Migrate to AndroidX (#251) by Jaewoong Eum <skydoves@naver.com> - 95a6796c40f570a723a73d9360dddbd0994ed1d4 Pre-sized array is not recommended in HotSpot based JVMs ... by Jaewoong Eum <skydoves@naver.com> - d8239ceeb22f4cfcc18f580ca2425cbfc3425548 Fix SNAPSHOT build deployment. (#250) by Jeff Davidson <jpd236@cornell.edu> - bc81fa5e46588b0a22a0c1bb5e315bbf1555dbd0 Update build (#248) by Matthew Zavislak <elevenfive@users.noreply.github.com> - 4c1a94566b6c4e6e8a2c6f0e31b2769a38467e0a Setting a default image, or an error image, will clear pr... by Ammar Aijazi <aaijazi@users.noreply.github.com> GitOrigin-RevId: ddbc32c04921df0973baadeee50f8d3099b12e14 Change-Id: Ib4c2b69235fa0edb78252b771cc1b1cc7f416d16
2018-11-19Import of Volley from GitHub to AOSP.android-wear-8.0.0_r2android-o-mr1-iot-release-1.0.8android-o-mr1-iot-release-1.0.7Anonymous
- 1ec8e6e1e4979a8c907765e41546a4d3c63035fe Allow tracking of the request's life cycle (#238) by Artem <artikz@users.noreply.github.com> GitOrigin-RevId: 1ec8e6e1e4979a8c907765e41546a4d3c63035fe Change-Id: Ib57d2210f4ab8116c204fc321007892bf3e02393
2018-10-11Import of Volley from GitHub to AOSP.android-o-mr1-iot-release-smart-display-r3oreo-mr1-1.2-iot-releaseAnonymous
- 321174452380acd5caa7c19aac99cb95a2ed0ff6 Add a default image bitmap and an error image bitmap. (#2... by Ammar Aijazi <aaijazi@users.noreply.github.com> - cb5d331761c4785b325acc7ff5caf8f41e932c69 Bump Volley to 1.2.0-SNAPSHOT. by Jeff Davidson <jpd@google.com> - c31351334868a17cb79ab5b067d798bc80e343a3 Fix the build. by Jeff Davidson <jpd@google.com> - 99d8ed84ddf653cb5f61a9ad63e5a3ced799d9ce Reduce cache churn from large entries. by Jeff Davidson <jpd@google.com> - 6b7b3a2df79506269a0730a095849c5a87fc9cbb Enforce disk size limit more strictly in DiskBasedCache. by Jeff Davidson <jpd@google.com> - 64481a321b9e57c78f22c7df53732e03f530933a Don't drop batched responses when new requests complete. ... by Jeff Davidson <jpd236@cornell.edu> - 4e60e9d2ac2f2c81661a7f0d1bcbc72c190059c2 Bump version to 1.1.2 after final 1.1.1 release by Jeff Davidson <jpd@google.com> - d1a3d5388c79ff1a6fdb904daeff9b39d0bb7d26 Delete Android.mk (#204) by Jeff Davidson <jpd236@cornell.edu> GitOrigin-RevId: 321174452380acd5caa7c19aac99cb95a2ed0ff6 Change-Id: I433459689ad2fe1bf40e8ff30d196d948ef73f81
2018-06-20Import of Volley from GitHub to AOSP.android-p-preview-5android-p-preview-4android-o-mr1-iot-release-1.0.2Anonymous
- b080a3488b0f82e0ef70191e8848c631376e80e0 Improve error message for null keys/values in getParams(... by Jeff Davidson <jpd236@cornell.edu> - 2695d3cee7965418c01294a3c8b1ac191216ec6a Fix crash when using HurlStack with POST requests. (#202) by Jeff Davidson <jpd236@cornell.edu> - 0c32d6a8865ebe0daf320d2bd7e32368e0cc31ba Re-raise swallowed interrupts and log warnings for spurio... by Jeff Davidson <jpd236@cornell.edu> - 608f9827eadc869b4876f666f4d1a8bfafbeab2b Flesh out RetryPolicy's Javadoc. (#194) by Jeff Davidson <jpd236@cornell.edu> - 0819be69fb7919db46778e970c169b5c0c3b9f71 Prevent duplicated/conflicting HTTP headers for HurlStack... by Jeff Davidson <jpd236@cornell.edu> - cb1df92f5f18fc125441950a2fd53f3daa73e809 Use different cache keys for different methods. (#191) by Jeff Davidson <jpd236@cornell.edu> - a0f4d39af7fce1649c45fa4eeaffa4d173c05f95 Add @Nullable annotations where necessary. (#185) by hackbar <7153163+hackbar@users.noreply.github.com> GitOrigin-RevId: b080a3488b0f82e0ef70191e8848c631376e80e0 Change-Id: I0767443663d2118958f850dcf87b7ba89d9860b4
2018-05-10Import of Volley from GitHub to AOSP.android-o-mr1-iot-release-1.0.1Anonymous
Adds android-support-annotations as a runtime dependency in Android.mk. - 28588322fa4eca3c1a7922b8a2f7b4a97d5c099a Fix concurrent modification errors in ImageContainer. (#1... by Jeff Davidson <jpd236@cornell.edu> - ba3b40457a97b3b3812cb00191b41cb0af4149df Fix unchecked operations in Volley build. (#178) by Jeff Davidson <jpd236@cornell.edu> - 62c19019e43a76ba4a084b25548e7fb1cfd4a457 Always close HttpURLConnections in HurlStack. (#176) by Jeff Davidson <jpd236@cornell.edu> - 36c80f25a78cf2ba2feb2d697f12f9bbca96bf43 Port dispatcher tests to mockito. (#172) by Jeff Davidson <jpd236@cornell.edu> - 15b55093fc8ac86902a745f46a2bdea825e797a3 Cleaning up parameter comments + unnecessary generics. (#... by Jeff Davidson <jpd236@cornell.edu> - 6b341755e522f23de149544536b9b69c7b7b8305 Remove all wildcard imports. (#170) by Jeff Davidson <jpd236@cornell.edu> - a8424005b3ba6d17fc9e123a2176da702f3ead10 Use actual annotations instead of comments. (#169) by Jeff Davidson <jpd236@cornell.edu> - bdc80555aee738235bd33c26878bbe8ce382d795 Apply google-java-format to all code. (#165) by Jeff Davidson <jpd236@cornell.edu> - 5307293b15dd0c32f53b8f1fd8c198caa443982e Integrate Volley builds with errorprone. (#162) by Jeff Davidson <jpd236@cornell.edu> - fa586029500e6813d654f1b454cd3345b0a43897 Fail Travis builds if snapshot uploading fails. (#163) by Jeff Davidson <jpd236@cornell.edu> - 0ebb97e9b0192e879088b38b5992158e99364dc6 Stop publishing bintray-info.json. (#141) by Jeff Davidson <jpd236@cornell.edu> - b89dfbd2e6964acfe5561e268300611a83957a15 fix: request time contains RequestQueue blocking time. (#... by dezng <dezng123@gmail.com> - c2bfd86596e588c924c2c7e0ae0940053800af5c Guard against illegal argument and OOM exceptions in read... by Joe Bowbeer <joe.bowbeer@gmail.com> - fc8ff0423fe9a3af6595088b34f912fb2d920ffb Log fix (#112) by Navid Ht <navid.htb@gmail.com> - 47586f0fd42acd5ce09dfc767387df685edfa547 Bump version to 1.1.1-SNAPSHOT. (#123) by Jeff Davidson <jpd236@cornell.edu> - 1392f961af17d0f5ba367d8d199a18e5325b882e Update deploy credentials. (#122) by Jeff Davidson <jpd236@cornell.edu> - ffe9281709f38f84492ce898603d3ec084326a57 Set project group and version. (#120) by Jeff Davidson <jpd236@cornell.edu> GitOrigin-RevId: 28588322fa4eca3c1a7922b8a2f7b4a97d5c099a Change-Id: Ifeea069df2f0a5fd10bc3d4686601c88906ee653
2017-11-10Import of Volley from GitHub to AOSP.Anonymous
- 536c1b741d18395a8aa041de484f3dc46fb57692 Workaround memory leak in dispatchers. (#119) by Jeff Davidson <jpd236@cornell.edu> - c3bd8e933bbf30f08ac388575ed168006db3f47b Bump from 1.0.1-SNAPSHOT to 1.1.0-SNAPSHOT. (#107) by Jeff Davidson <jpd236@cornell.edu> GitOrigin-RevId: 536c1b741d18395a8aa041de484f3dc46fb57692 Change-Id: If6ad78873506502a88f5677df6fbec62a51edf07
2017-10-11Import of Volley from GitHub to AOSP.Anonymous
- 95f64de9bfa2ee44d6cf93a6dc4b980e5ec56f6a Fix leak of callbacks on canceled requests. by Jeff Davidson <jpd236@cornell.edu> GitOrigin-RevId: 95f64de9bfa2ee44d6cf93a6dc4b980e5ec56f6a Change-Id: I9537a9937f9c0e7078dfa8f8fdfcd8deb36417a7
2017-09-26Import of Volley from GitHub to AOSP.Anonymous
- f07e05eec3aa3539d908ad22cc0cd7efa8a8960b Fix an issue when the first request returns an error. (#98) by Ulrike Hager <uhager42@gmail.com> GitOrigin-RevId: f07e05eec3aa3539d908ad22cc0cd7efa8a8960b Change-Id: I2b5ca99bab7d6bfd2ff4fa11f633f9be8a637056
2017-09-25Import of Volley from GitHub to AOSP.Anonymous
- 5fb28f66748df4f89b49c1493693d1f65c6bb23e Fix NPEs/compile errors introduced by header changes. (#96) by Jeff Davidson <jpd236@cornell.edu> - e16a426da3bcffb1a8de1700ddbe69201540d93c Fix RequestQueueIntegrationTest flakiness. (#94) by Jeff Davidson <jpd236@cornell.edu> - 96feb3b09a6301b9573212027af21db7be5c8be1 Improve Volley header handling. (#91) by Jeff Davidson <jpd236@cornell.edu> - a794c075a62ddf438178b2e15cc79ab5502588fb For waiting requests, use ArrayList instead of LinkedList... by Ulrike Hager <uhager42@gmail.com> - 787ef0cc731c28b528f744dea64bd5429f99e153 Specify .aar packaging in SNAPSHOT POM. by Jeff Davidson <jpd236@cornell.edu> - b2bb59ab2ff08f4d468303071f050ce938349379 Fix soft TTL for duplicate requests (#73) by Ulrike Hager <uhager42@gmail.com> - b33a53f1793b475842f91a0fe166749118afcfc0 Deprecate Volley's use of Apache HTTP. (#75) by Jeff Davidson <jpd236@cornell.edu> GitOrigin-RevId: 5fb28f66748df4f89b49c1493693d1f65c6bb23e Change-Id: Ia04d2967e9923d2430a04f2474aa69ce82e114ce
2017-08-08Import of Volley from GitHub to AOSP. - ↵android-o-iot-preview-5o-iot-preview-5Anonymous
27f4207774f7a0b59168f5b3b53d8c0c3841de64 Merge pull request #71 from google/fix-visibility by Jeff Davidson <jpd236@cornell.edu> - e1d75bc49fff2f43b4304688f22ccb57f0c2782c Merge pull request #66 from joebowbeer/dbc_overflow by Jeff Davidson <jpd236@cornell.edu> - d40b75f52f0f8e3467d63294142610a040ff8cd5 Merge pull request #64 from xyhuangjinfu/master by Jeff Davidson <jpd236@cornell.edu> - aafd2e5d1279d68cd2c39b02a915e501974daf2f Merge pull request #52 from joebowbeer/dbc by Jeff Davidson <jpd236@cornell.edu> - baefc4e4f7ad42ce84972716486928ab77b413fc Merge pull request #23 from google/javadoc-fixes by Jeff Davidson <jpd236@cornell.edu> - dea97629925acea8942c06a7ff52938eba5dc78c Merge pull request #39 from google/publish by Jeff Davidson <jpd236@cornell.edu> - f52e1e0d4a18c8e3e7004a3d60c8cbec9a04f3d4 Merge pull request #38 from SamuelYvon/master by Jeff Davidson <jpd236@cornell.edu> - f0ab9a527d3a525325139026a7da0318b506abb4 Merge pull request #41 from LappleApple/patch-1 by Jeff Davidson <jpd236@cornell.edu> - a444f81d099179ab7c5fa5f460262a206125cd37 Merge pull request #18 from Ericliu001/master by Jeff Davidson <jpd236@cornell.edu> GitOrigin-RevId: 27f4207774f7a0b59168f5b3b53d8c0c3841de64 Change-Id: Idf47e2b8caff4c0d4a3f00a5d8c22878e36c59ba
2017-03-01Import of Volley from GitHub to AOSP.android-o-preview-1o-previewAnonymous
GitOrigin-RevId: bc67181a21ab41a7c6b4a4adbcb9935bff888622 Change-Id: I8c1fd9c4cb81acf443169506ce920f030e3ea31c
2016-12-27Add some missing @Deprecated annotations.Jeff Davidson
These should always go hand-in-hand with @deprecated Javadoc annotations. Change-Id: I0e54616d39777d43f9763a702ca0fbc381e6ed49
2016-12-09Fix NegativeArraySizeException in DiskBasedCache.streamToBytesShen Lin
Issue discussion can be found at https://groups.google.com/forum/#!topic/volley-users/0W-oI6za8VY
2016-03-10Retry more errors in Volley's BasicNetwork.Jeff Davidson
Always retry I/O errors while reading the HTTP response entity. Furthermore, if a client opts in, retry HTTP 500 errors indicating something went wrong on the server. This resolves a longstanding TODO to only throw a ServerError on 5xx errors by adding a ClientError for 4xx errors. For backwards compatibility, this extends ServerError. Note that Volley already may retry a request that reached the server if the connection times out, which means that lack of idempotency shouldn't be a concern here if it wasn't already. But if we wanted to be even safer, we could require clients to opt into the additional retry cases, at the cost of a somewhat more polluted API. Add unit tests for most failure scenarios. Bug: 23152983 Change-Id: I92cf35c66ccf98a1682adf41654afeb8634911db
2015-12-04Merge "Workaround for HttpURLConnection.getFollowRedirects() on M"Neil Fuller
am: 3b37453b1c * commit '3b37453b1c8a15265640cebf0973ef552e569d33': Workaround for HttpURLConnection.getFollowRedirects() on M
2015-12-02Workaround for HttpURLConnection.getFollowRedirects() on MNeil Fuller
HttpURLConnection.setFollowRedirects() has no effect on M due to a bug. This should be safe / a no-op on other releases. Bug: https://code.google.com/p/android/issues/detail?id=194495 Change-Id: Ie97861eba0560b63504662baa908f6a5856f68aa
2015-10-28Merge "Add API to get Auth Token Type used by authenticator." am: 708ade5a69Ficus Kirkpatrick
am: 96c4d0b9f5 * commit '96c4d0b9f58229b9dbba51f1776addedc66f4749': Add API to get Auth Token Type used by authenticator.
2015-10-27Add API to get Auth Token Type used by authenticator.oleksii stepanian
When using different auth protocols e.g. ClientLogin and OAuth2 it is important to know the type of the token in order to construct "Authorization" header. Currently we have to store auth token vaue/auth token type association elsewhere which makes it a subject for errors. Change-Id: I3b8c05672f5394ad806f257c9f6bb378ebf990d7
2015-10-08am 82462cd0: Make default timeout/retry/multiplier values publicTom Ye
* commit '82462cd0a0d7fa58d5497c39534380ad3987fdd1': Make default timeout/retry/multiplier values public
2015-10-08Make default timeout/retry/multiplier values publicTom Ye
Change-Id: Ia5681e2876999f75cea3e4f5f9ef223a06787d4e (cherry picked from commit 5d563ac2fab08f5e066c6fd6bbf012314be0bf8d)
2015-07-16Process response bodies only when presentJukka Zitting
Responses to HEAD requests and any informational (1xx), no content (204) and not modified (304) responses contain no bodies. This change skips the response.setEntity(entityFromConnection(connection)) call when dealing with such responses. This fixes a problem in BasicNetwork where a response without a body is detected by checking whether the entity is null. Bug: 176674 - volley java.lang.IllegalStateException: Content has not been provided Change-Id: I1b0ce77461ce5bedc7f6a53fd63311ea93ec5af0
2015-07-06Stop logging slow requests outside of debug logs.Ficus Kirkpatrick
This dumps the URL, which can contain PII.
2015-05-10Read from disk with a BufferedInputStream.Ficus Kirkpatrick
Missed a spot in the last commit. All disk I/O should now be buffered.
2015-05-08Use a BufferedOutputStream to write cache entries.Ficus Kirkpatrick
Turns out to be almost 20% faster in a simple benchmark.
2015-03-19Merge "Add support for all HTTP methods to JsonArrayRequest"Ficus Kirkpatrick
2015-03-19Add support for all HTTP methods to JsonArrayRequestJoris Bolsens
Change-Id: I6e89f69885a63d524c48b1dec54553d6e16edd48 Signed-off-by: Joris Bolsens <epicblood@gmail.com>
2015-03-11Modify header parser to handle must-revalidate.Dave Santoro
This flag indicates that the response must NOT be returned after the cache TTL has expired, but it does not mandate that the response should not be cached at all (which the code was doing previously). Change-Id: I61532f3aa8144c50dcee442dc30215bb81ada868
2015-03-06Fix broken DiskBasedCacheRalph Bergmann
Change-Id: Ia5db47122af11223b55845ef8423424a9cddbb21 Signed-off-by: Ralph Bergmann <ralph@the4thfloor.eu>
2015-03-06Merge "fix ImageLoader.getCacheKey()"Ficus Kirkpatrick
2015-03-06fix ImageLoader.getCacheKey()Ralph Bergmann
The ScaleType was missing. Change-Id: I57cba7cbf60df1e47ea9d8baf480765c6e39d821 Signed-off-by: Ralph Bergmann <ralph@the4thfloor.eu>
2015-03-06clean up a little bitRalph Bergmann
Change-Id: Ibbe796c05e406acd48a0d59090e6be746db24867 Signed-off-by: Ralph Bergmann <ralph@the4thfloor.eu>
2015-02-27Add a RequestFinishedListener to RequestQueue.Brett Chabot
Change-Id: I51a1beacea4e448e71b7e9c3ec580165d799994a
2015-02-20Merge "Change the default character encoding for JSON responses to UTF-8"Ficus Kirkpatrick
2015-02-19A little work on unit testing.Ficus Kirkpatrick
Add emma and mockito to the Maven build, and test a couple random things.
2015-02-17Add a backwards-compatible ImageRequest constructor.Ficus Kirkpatrick
Restores the API surface to before ScaleType was required.
2015-02-16Fix volley related build breakage.Narayan Kamath
(cherry picked from commit 46741f2f5165cbf3cdc0c51107e5ffff8002af5b) Change-Id: I6fc32971f03d7958a75250e14a7efdb0a12d8d30
2015-02-15Adds Cache-Control "stale-while-revalidate"Ralph Bergmann
Adds Cache-Control "stale-while-revalidate" header parsing for better server side cache entry expire setup. see: https://www.mnot.net/blog/2007/12/12/stale http://tools.ietf.org/html/rfc5861 https://groups.google.com/a/chromium.org/forum/m/#!msg/chromium-dev/zchogDvIYrY/ZqWSdt3LJdMJ Signed-off-by: Ralph Bergmann <ralph@the4thfloor.eu> Change-Id: I1b7baf9997d3a8a251d21631a11deb503e3a7461
2015-02-15Uses the "Last-Modified" header for "If-Modified-Since"Ralph Bergmann
Uses the "Last-Modified" header for "If-Modified-Since" see http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.3.4 Change-Id: I0f5e9b45f4f79d7c1b286e465f9750dcd71b6bfd Signed-off-by: Ralph Bergmann <ralph@the4thfloor.eu>
2015-01-20Change the default character encoding for JSON responses to UTF-8Zdeněk Kořán
According to RFC 7159 (Section 8.1), the default encoding of JSON should be UTF-8. Using ISO-8859-1 as default causes incompatibility with some JSON APIs (e.g. wrong interpretation of internationalized strings).
2014-12-15Use the view size and scale type to restrict NIV requests.Ralph Bergmann
Change-Id: I77e705c09937f78af746cd73b6e6d94fd4ee2a03
2014-12-05Migrate from Gradle to Maven.Ficus Kirkpatrick
- Restructure source to src/{main,test} style - Add pom.xml and update Android.mk - Migrate all tests to JUnit4 and Robolectric - RequestQueueTest is currently @Ignored as fixing it will involve more extensive refactoring. - Main library still builds in Gradle; tests do not Change-Id: I1edc53bb1a54f64d3e806e4572901295ef63e2ca