Home
last modified time | relevance | path

Searched refs:URL (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/packages/DynamicSystemInstallationService/tests/src/com/android/dynsystem/
DKeyRevocationListTest.java36 import java.net.URL;
77 URL mockUrl = new URL( in testFromUrl()
84 protected URLConnection openConnection(URL url) { in testFromUrl()
88 URL mockBadUrl = new URL( in testFromUrl()
95 protected URLConnection openConnection(URL url) throws IOException { in testFromUrl()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebAsset.java22 import java.net.URL;
44 private final URL mUrl;
46 private WebAsset(URL url) { in WebAsset()
49 mUrl = new URL(url.getProtocol().toLowerCase(), url.getHost().toLowerCase(), port, ""); in WebAsset()
127 URL url; in create()
129 url = new URL(asset.optString(Utils.WEB_ASSET_FIELD_SITE)); in create()
DDirectStatementRetriever.java26 import java.net.URL;
133 return new URL(asset.getScheme(), asset.getDomain(), asset.getPort(), in computeAssociationJsonUrl()
151 URL url = new URL(urlString); in retrieveStatementFromUrl()
DURLFetcher.java30 import java.net.URL;
60 public WebContent getWebContentFromUrlWithRetry(URL url, long fileSizeLimit, in getWebContentFromUrlWithRetry()
90 public WebContent getWebContentFromUrl(URL url, long fileSizeLimit, int connectionTimeoutMillis) in getWebContentFromUrl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsTransport.java26 import java.net.URL;
33 private URL mUrl;
36 private HttpsTransport(@NonNull Network network, @NonNull URL url) { in HttpsTransport()
49 public static HttpsTransport createInstance(@NonNull Network network, @NonNull URL url) { in createInstance()
DHttpsServiceConnection.java28 import java.net.URL;
46 public HttpsServiceConnection(Network network, URL url) throws IOException { in HttpsServiceConnection()
/frameworks/base/core/java/android/provider/
DBrowser.java76 BookmarkColumns.URL, // 1
245 return new MatrixCursor(new String[]{Bookmarks.URL}, 0); in getAllBookmarks()
257 return new MatrixCursor(new String[]{Combined.URL}, 0); in getAllVisitedUrls()
261 sb.append(" OR " + BookmarkColumns.URL + " = "); in addOrUrlEquals()
278 whereClause = new StringBuilder(Bookmarks.URL + " = "); in getVisitedLike()
285 whereClause = new StringBuilder(Bookmarks.URL + " = "); in getVisitedLike()
435 public static final String URL = "url"; field in Browser.BookmarkColumns
499 public static final String URL = "url"; field in Browser.SearchColumns
DBrowserContract.java168 public static final String URL = "url"; field
241 public static final String URL = "url"; field
636 public static final String URL = "url_key"; field in BrowserContract.Images
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsTransportTest.java35 import java.net.URL;
45 private URL mUrl;
57 mUrl = new URL(TEST_URL); in setUp()
58 when(mNetwork.openConnection(any(URL.class))).thenReturn(mHttpsURLConnection); in setUp()
DHttpsServiceConnectionTest.java40 import java.net.URL;
57 private URL mUrl;
69 mUrl = new URL(TEST_URL); in setUp()
72 when(mNetwork.openConnection(any(URL.class))).thenReturn(mHttpsURLConnection); in setUp()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestUtils.java22 import java.net.URL;
54 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionFails()
67 URL url = new URL("https://" + host + ":" + port); in assertUrlConnectionSucceeds()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DBitmapRequestKeyImpl.java24 import java.net.URL;
28 public final URL mUrl;
34 URL url = null; in BitmapRequestKeyImpl()
36 url = new URL(uriString); in BitmapRequestKeyImpl()
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
DUtil.java27 import java.net.URL;
56 List<URL> urls = (List<URL>) getResources.invoke(null, name); in getBootDexFiles()
60 for (URL url : urls) { in getBootDexFiles()
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java38 import java.net.URL;
58 private URL mURL = null;
112 mURL = new URL(uri); in connect()
202 private static final boolean isLocalHost(URL url) { in isLocalHost()
232 URL url = mURL; in seekTo()
311 url = new URL(mURL /* TRICKY: don't use url! */, location); in seekTo()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuServerConnectionTest.java61 import java.net.URL;
95 private URL mServerUrl;
122 mServerUrl = new URL(TEST_VALID_URL); in setUp()
125 when(mNetwork.openConnection(any(URL.class))).thenReturn(mUrlConnection); in setUp()
268 doThrow(new IOException()).when(mNetwork).openConnection(any(URL.class)); in verifyInitAndNetworkOpenURLConnectionFailed()
376 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyExchangeSoapMessageWithException()
405 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyExchangeSoapMessage()
449 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyRetrieveTrustRootCertsWithErrorInHTTPSResponse()
497 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyRetrieveTrustRootCertsWithoutError()
547 when(HttpsTransport.createInstance(any(Network.class), any(URL.class))).thenReturn( in verifyCleanup()
[all …]
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java42 import java.net.URL;
67 private static final String URL = field in NetworkActivity
150 new DownloadXmlTask().execute(URL); in loadPage()
266 URL url = new URL(urlString); in downloadUrl()
/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/
DNetworkStackInstrumentationService.kt21 import java.net.URL in <lambda>()
46 fun processRequest(url: URL): HttpResponse { in <lambda>()
DTestNetworkStackService.kt37 import java.net.URL
72 override fun openConnection(url: URL): URLConnection { in openConnection()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DBandwidthTestUtil.java41 import java.net.URL;
96 URL url = new URL(targetUrl); in DownloadFromUrl()
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/
DPacService.java30 import java.net.URL;
71 new URL(url); in resolvePacFile()
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osulogin/
DOsuLoginActivity.java46 import java.net.URL;
218 return new URL(url).getHost(); in getHost()
227 URL url = new URL(urlString); in getHeaderSubtitle()
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java37 import java.net.URL;
98 final HttpURLConnection conn = (HttpURLConnection) new URL("http://www.google.com/") in testUrlConnection()
122 final HttpURLConnection conn = (HttpURLConnection) new URL("http://ipv6.google.com/") in testUrlConnectionv6()
/frameworks/base/core/java/android/webkit/
DJsDialogHelper.java32 import java.net.URL;
167 URL alertUrl = new URL(mUrl); in getJsDialogTitle()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java44 import java.net.URL;
76 private URL mUrl;
177 public boolean connect(@NonNull URL url, @NonNull Network network) { in connect()
289 private void performTlsConnection(URL url, Network network) { in performTlsConnection()
476 URL serverUrl = new URL(certUrl); in getCert()
568 private HttpsServiceConnection getServiceConnection(@NonNull URL url, in getServiceConnection()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java36 import java.net.URL;
270 mStream = new URL(mUrl).openStream(); in verifyAndPrepare()
273 mZipFile = new ZipFile(new File(new URL(mUrl).toURI())); in verifyAndPrepare()
275 mStream = new URL(mUrl).openStream(); in verifyAndPrepare()
286 mKeyRevocationList = KeyRevocationList.fromUrl(new URL(listUrl)); in verifyAndPrepare()

123