Create a full facade over okhttp
This commit makes com.android.okhttp.internalandroidapi a more complete
facade over com.android.okhttp classes. The existing HttpURLConnectionFactory
was a good first step and this change is aimed at completing the task.
The OkCacheContainer used before was "leaky" and still required some
com.android.okhttp classes to be involved in framework bytecode. The
c.a.okhttp.internalandroidapi.AndroidResponseCacheAdapter /
HasCacheHolder / CacheHolder classes have been added to address this,
with associated local patches in okhttp internals to recognize/use them.
The android.net.http.HttpResponseCache is adjusted in an associated
frameworks/base commit.
This commit moves the {com.android}.okhttp.internalandroidapi code
out of {com.squareup}.okhttp.internalandroidapi so that it is in the
runtime package (rather than being moved under com.android by jarjar).
This is so that tools that needs source (for example: stubs generators
like doclava/metalava) can "see" the source in its "true" package.
Bug: 111055375
Test: Ran CtsLibcoreOkHttpTestCases entirely
Test: Ran CtsLibcoreTestCases entirely
Test: run cts-dev -m CtsNetTestCases -t android.net.http.cts.HttpResponseCacheTest
Change-Id: Ib7dfce0cd0f4ef7cc1a5012ca9f6cfc0f0ed6160
Loading
Please sign in to comment