Home
last modified time | relevance | path

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

12345

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DSettingsLibRobolectricTestRunner.java28 import java.net.URL;
44 final URL appRoot = in getAppManifest()
45 new URL("file:frameworks/base/packages/SettingsLib/tests/robotests"); in getAppManifest()
46 final URL manifestPath = new URL(appRoot, "AndroidManifest.xml"); in getAppManifest()
47 final URL resDir = new URL(appRoot, "res"); in getAppManifest()
48 final URL assetsDir = new URL(appRoot, "assets"); in getAppManifest()
68 return new ResourcePath(null, Fs.fromURL(new URL(spec)), null);
/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/base/core/java/android/provider/
DBrowser.java79 BookmarkColumns.URL, // 1
247 return new MatrixCursor(new String[]{Bookmarks.URL}, 0); in getAllBookmarks()
259 return new MatrixCursor(new String[]{Combined.URL}, 0); in getAllVisitedUrls()
263 sb.append(" OR " + BookmarkColumns.URL + " = "); in addOrUrlEquals()
280 whereClause = new StringBuilder(Bookmarks.URL + " = "); in getVisitedLike()
287 whereClause = new StringBuilder(Bookmarks.URL + " = "); in getVisitedLike()
436 public static final String URL = "url"; field in Browser.BookmarkColumns
500 public static final String URL = "url"; field in Browser.SearchColumns
DBrowserContract.java166 public static final String URL = "url"; field
239 public static final String URL = "url"; field
628 public static final String URL = "url_key"; field in BrowserContract.Images
/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/core/java/android/net/captiveportal/
DCaptivePortalProbeSpec.java28 import java.net.URL;
44 private final URL mUrl;
46 CaptivePortalProbeSpec(String encodedSpec, URL url) { in CaptivePortalProbeSpec()
76 return new RegexMatchProbeSpec(spec, new URL(splits[0]), statusRegex, locationRegex); in parseSpec()
143 public URL getUrl() { in getUrl()
160 String spec, URL url, Pattern statusRegex, Pattern locationHeaderRegex) { in RegexMatchProbeSpec()
/frameworks/base/services/robotests/src/com/android/server/testing/
DFrameworkRobolectricTestRunner.java34 import java.net.URL;
111 URL... urls) { in FrameworkClassLoader()
141 Enumeration<URL> urls = getResources(resource); in getResourceAsStream()
143 URL url = urls.nextElement(); in getResourceAsStream()
178 InstrumentationConfiguration instrumentationConfig, URL... urls) { in createClassLoader()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkMonitor.java81 import java.net.URL;
265 private final URL mCaptivePortalHttpsUrl;
266 private final URL mCaptivePortalHttpUrl;
267 private final URL[] mCaptivePortalFallbackUrls;
898 private URL[] makeCaptivePortalFallbackUrls() { in makeCaptivePortalFallbackUrls()
906 List<URL> urls = new ArrayList<>(); in makeCaptivePortalFallbackUrls()
908 URL u = makeURL(s); in makeCaptivePortalFallbackUrls()
917 return urls.toArray(new URL[urls.size()]); in makeCaptivePortalFallbackUrls()
921 return new URL[0]; in makeCaptivePortalFallbackUrls()
947 private URL nextFallbackUrl() { in nextFallbackUrl()
[all …]
/frameworks/base/media/java/android/media/
DMedia2HTTPConnection.java29 import java.net.URL;
49 private URL mURL = null;
77 mURL = new URL(uri); in connect()
149 private static final boolean isLocalHost(URL url) { in isLocalHost()
179 URL url = mURL; in seekTo()
233 url = new URL(mURL /* TRICKY: don't use url! */, location); in seekTo()
DMediaHTTPConnection.java30 import java.net.URL;
50 private URL mURL = null;
81 mURL = new URL(uri); in connect()
154 private static final boolean isLocalHost(URL url) { in isLocalHost()
184 URL url = mURL; in seekTo()
238 url = new URL(mURL /* TRICKY: don't use url! */, location); in seekTo()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
DBitmapHelper.java27 import java.net.URL;
68 URL url = new URL(uri); in fetchAndRescaleBitmap()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java67 import java.net.URL;
91 private URL mUrl;
304 private URL getUrl() { in getUrl()
312 private static URL makeURL(String url) { in makeURL()
314 return new URL(url); in makeURL()
321 private static String host(URL url) { in host()
328 private static String sanitizeURL(URL url) { in sanitizeURL()
417 final URL url = makeURL(urlString); in onPageStarted()
467 final URL url = makeURL(error.getUrl()); in onReceivedSslError()
568 private String getHeaderSubtitle(URL url) { in getHeaderSubtitle()
/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/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DBandwidthTestUtil.java41 import java.net.URL;
96 URL url = new URL(targetUrl); in DownloadFromUrl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java25 import java.net.URL;
49 private URL mUrl;
110 public boolean connect(URL url, Network network) { in connect()
DPasspointProvisioner.java30 import java.net.URL;
130 private URL mServerUrl;
168 URL serverUrl = null; in startProvisioning()
170 serverUrl = new URL(provider.getServerUri().toString()); in startProvisioning()
/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/packages/services/PacProcessor/src/com/android/pacprocessor/
DPacService.java29 import java.net.URL;
82 new URL(url); in resolvePacFile()
/frameworks/opt/car/setupwizard/library/tests/robotests/src/com/android/car/setupwizardlib/robolectric/
DCarSetupWizardLibRobolectricTestRunner.java28 import java.net.URL;
59 return new ResourcePath(null, Fs.fromURL(new URL(filePath)), null); in createResourcePath()
/frameworks/base/core/java/android/webkit/
DJsDialogHelper.java32 import java.net.URL;
167 URL alertUrl = new URL(mUrl); in getJsDialogTitle()
/frameworks/support/webkit-codegen/src/test/java/androidx/webkit/internal/codegen/
DTestUtils.java32 import java.net.URL;
65 URL resourceUrl = TestUtils.class.getClassLoader().getResource(testDataDir + fileName); in getTestFilePath()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java62 import java.net.URL;
78 private URL mUrl;
217 private URL getUrlForCaptivePortal() { in getUrlForCaptivePortal()
235 return new URL(url); in getUrlForCaptivePortal()
257 new URL(mCm.getCaptivePortalServerUrl())); in testForCaptivePortal()

12345