From 33a98282e5bafa7713063196378ab73bed231781 Mon Sep 17 00:00:00 2001 From: Dan Stahr Date: Thu, 9 Feb 2023 11:50:51 +0000 Subject: [PATCH] Expose the network binding APIs in AOSP. See the other topic CLs for code changes. Test: m API-Coverage-Bug: 251012627 Change-Id: Iad5c500139ce17d834e122e373ca6d0ebee28265 --- Tethering/common/TetheringLib/cronet_enabled/api/current.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tethering/common/TetheringLib/cronet_enabled/api/current.txt b/Tethering/common/TetheringLib/cronet_enabled/api/current.txt index c0157b7981..a0b85a92b6 100644 --- a/Tethering/common/TetheringLib/cronet_enabled/api/current.txt +++ b/Tethering/common/TetheringLib/cronet_enabled/api/current.txt @@ -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 abstract 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);