Merge "Expose the network binding APIs in AOSP." am: 722a5f2c5e

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2428875

Change-Id: I97165e413c70b29e1f6a57c478fb5cda45388bb0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Dan Stahr 2023-02-14 16:03:47 +00:00 • committed by Automerger Merge Worker
commit ba8da4e99b

View file

@ -30,6 +30,7 @@ package android.net.http {
}
public abstract class HttpEngine {
method public void bindToNetwork(@Nullable android.net.Network);
method public abstract java.net.URLStreamHandlerFactory createURLStreamHandlerFactory();
method public static String getVersionString();
method public abstract android.net.http.UrlRequest.Builder newUrlRequestBuilder(String, android.net.http.UrlRequest.Callback, java.util.concurrent.Executor);
@ -130,6 +131,7 @@ package android.net.http {
public abstract static class UrlRequest.Builder {
method public abstract android.net.http.UrlRequest.Builder addHeader(String, String);
method public abstract android.net.http.UrlRequest.Builder allowDirectExecutor();
method public abstract android.net.http.UrlRequest.Builder bindToNetwork(@Nullable android.net.Network);
method public abstract android.net.http.UrlRequest build();
method public abstract android.net.http.UrlRequest.Builder disableCache();
method public abstract android.net.http.UrlRequest.Builder setHttpMethod(String);