OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:HttpResponseCache
(Results
1 - 3
of
3
) sorted by null
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
HttpResponseCache.java
35
* A copy of android.net.http.
HttpResponseCache
taken from AOSP. Android need to keep this code
43
public final class
HttpResponseCache
extends ResponseCache implements Closeable, OkCacheContainer {
47
private
HttpResponseCache
(AndroidShimResponseCache shimResponseCache) {
52
* Returns the currently-installed {@code
HttpResponseCache
}, or null if
53
* there is no cache installed or it is not a {@code
HttpResponseCache
}.
55
public static
HttpResponseCache
getInstalled() {
57
if (installed instanceof
HttpResponseCache
) {
58
return (
HttpResponseCache
) installed;
73
public static synchronized
HttpResponseCache
install(File directory, long maxSize) throws
77
if (installed instanceof
HttpResponseCache
) {
[
all
...]
HttpResponseCacheTest.java
68
HttpResponseCache
installed =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024);
71
assertSame(installed,
HttpResponseCache
.getDefault());
75
HttpResponseCache
first =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024);
76
HttpResponseCache
another =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024);
81
HttpResponseCache
first =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024);
84
HttpResponseCache
another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024)
[
all
...]
/cts/tests/tests/net/src/android/net/http/cts/
HttpResponseCacheTest.java
24
import android.net.http.
HttpResponseCache
;
62
HttpResponseCache
installed =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024);
65
assertSame(installed,
HttpResponseCache
.getDefault());
69
HttpResponseCache
first =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024);
70
HttpResponseCache
another =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024);
75
HttpResponseCache
first =
HttpResponseCache
.install(cacheDir, 10 * 1024 * 1024)
[
all
...]
Completed in 799 milliseconds