Searched refs:URL (Results 1 - 25 of 65) sorted by relevance

123

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DSettingsLibRobolectricTestRunner.java28 import java.net.URL;
44 final URL appRoot =
45 new URL("file:frameworks/base/packages/SettingsLib/tests/robotests");
46 final URL manifestPath = new URL(appRoot, "AndroidManifest.xml");
47 final URL resDir = new URL(appRoot, "res");
48 final URL assetsDir = new URL(appRoot, "assets");
68 return new ResourcePath(null, Fs.fromURL(new URL(spe
[all...]
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
H A DBitmapRequestKeyImpl.java24 import java.net.URL;
28 public final URL mUrl;
34 URL url = null;
36 url = new URL(uriString);
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DWebAsset.java22 import java.net.URL;
44 private final URL mUrl;
46 private WebAsset(URL url) {
49 mUrl = new URL(url.getProtocol().toLowerCase(), url.getHost().toLowerCase(), port, "");
127 URL url;
129 url = new URL(asset.optString(Utils.WEB_ASSET_FIELD_SITE));
H A DURLFetcher.java30 import java.net.URL;
37 * Helper class for fetching HTTP or HTTPS URL.
57 * @throws AssociationServiceException if the URL scheme is not http or https or the content
60 public WebContent getWebContentFromUrlWithRetry(URL url, long fileSizeLimit,
87 * @throws AssociationServiceException if the URL scheme is not http or https or the content
90 public WebContent getWebContentFromUrl(URL url, long fileSizeLimit, int connectionTimeoutMillis)
H A DDirectStatementRetriever.java26 import java.net.URL;
133 return new URL(asset.getScheme(), asset.getDomain(), asset.getPort(),
151 URL url = new URL(urlString);
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
H A DTestUtils.java22 import java.net.URL;
54 URL url = new URL("https://" + host + ":" + port);
67 URL url = new URL("https://" + host + ":" + port);
/frameworks/base/core/java/android/net/captiveportal/
H A DCaptivePortalProbeSpec.java28 import java.net.URL;
44 private final URL mUrl;
46 CaptivePortalProbeSpec(String encodedSpec, URL url) {
54 * <p>The valid format is a URL followed by two regular expressions, each separated by "@@/@@".
55 * @throws MalformedURLException The URL has invalid format for {@link URL#URL(String)}.
76 return new RegexMatchProbeSpec(spec, new URL(splits[0]), statusRegex, locationRegex);
95 * based on the status code of the provided URL if the spec cannot be parsed.
143 public URL getUr
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
H A DBitmapHelper.java27 import java.net.URL;
68 URL url = new URL(uri);
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/utils/
H A DBitmapHelper.java27 import java.net.URL;
68 URL url = new URL(uri);
/frameworks/base/core/java/android/provider/
H A DBrowser.java79 BookmarkColumns.URL, // 1
240 * column, {@link BookmarkColumns#URL}.
247 return new MatrixCursor(new String[]{Bookmarks.URL}, 0);
252 * have a single column, {@link BookmarkColumns#URL}.
259 return new MatrixCursor(new String[]{Combined.URL}, 0);
263 sb.append(" OR " + BookmarkColumns.URL + " = ");
280 whereClause = new StringBuilder(Bookmarks.URL + " = ");
287 whereClause = new StringBuilder(Bookmarks.URL + " = ");
433 * The URL of the bookmark or history item.
434 * <p>Type: TEXT (URL)</
436 public static final String URL = "url"; field in class:Browser.BookmarkColumns
500 public static final String URL = "url"; field in class:Browser.SearchColumns
[all...]
/frameworks/base/services/robotests/src/com/android/server/testing/
H A DFrameworkRobolectricTestRunner.java34 import java.net.URL;
111 URL... urls) {
141 Enumeration<URL> urls = getResources(resource);
143 URL url = urls.nextElement();
178 InstrumentationConfiguration instrumentationConfig, URL... urls) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DComprehensionTlvTag.java47 URL(0x31), enum constant in enum:ComprehensionTlvTag
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/
H A DPacService.java29 import java.net.URL;
79 throw new IllegalArgumentException("The URL must not be null");
82 new URL(url);
90 throw new IllegalArgumentException("Invalid URL was passed");
/frameworks/opt/car/setupwizard/library/tests/robotests/src/com/android/car/setupwizardlib/robolectric/
H A DCarSetupWizardLibRobolectricTestRunner.java28 import java.net.URL;
59 return new ResourcePath(null, Fs.fromURL(new URL(filePath)), null);
/frameworks/base/media/java/android/media/
H A DMedia2HTTPConnection.java29 import java.net.URL;
49 private URL mURL = null;
77 mURL = new URL(uri);
149 private static final boolean isLocalHost(URL url) {
179 URL url = mURL;
233 url = new URL(mURL /* TRICKY: don't use url! */, location);
248 // update effective URL, unless it is a Temporary Redirect
254 // remember the current, potentially redirected URL if redirects
H A DMediaHTTPConnection.java30 import java.net.URL;
50 private URL mURL = null;
81 mURL = new URL(uri);
154 private static final boolean isLocalHost(URL url) {
184 URL url = mURL;
238 url = new URL(mURL /* TRICKY: don't use url! */, location);
253 // update effective URL, unless it is a Temporary Redirect
259 // remember the current, potentially redirected URL if redirects
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java42 import java.net.URL;
67 private static final String URL = field in class:NetworkActivity
150 new DownloadXmlTask().execute(URL);
263 // Given a string representation of a URL, sets up a connection and gets
266 URL url = new URL(urlString);
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkMonitor.java81 import java.net.URL;
157 * obj = String representing URL that Internet probe was redirect to, if it was redirected.
265 private final URL mCaptivePortalHttpsUrl;
266 private final URL mCaptivePortalHttpUrl;
267 private final URL[] mCaptivePortalFallbackUrls;
898 private URL[] makeCaptivePortalFallbackUrls() {
906 List<URL> urls = new ArrayList<>();
908 URL u = makeURL(s);
917 return urls.toArray(new URL[urls.size()]);
921 return new URL[
[all...]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DBandwidthTestUtil.java41 import java.net.URL;
96 URL url = new URL(targetUrl);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DOsuServerConnection.java25 import java.net.URL;
49 private URL mUrl;
103 * @param url Osu Server's URL
110 public boolean connect(URL url, Network network) {
119 Log.e(TAG, "Unable to establish a URL connection");
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
H A DChannelLogoUtils.java36 import java.net.URL;
53 * <p>The URI provided to this method can be a URL referring to a image file residing in some
90 // A remote resource, should be an valid URL.
163 URLConnection urlConnection = new URL(uriString).openConnection();
/frameworks/support/webkit-codegen/src/test/java/androidx/webkit/internal/codegen/
H A DTestUtils.java32 import java.net.URL;
65 URL resourceUrl = TestUtils.class.getClassLoader().getResource(testDataDir + fileName);
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
H A DCaptivePortalLoginActivity.java67 import java.net.URL;
91 private URL mUrl;
304 private URL getUrl() {
312 private static URL makeURL(String url) {
314 return new URL(url);
316 Log.e(TAG, "Invalid URL " + url);
321 private static String host(URL url) {
328 private static String sanitizeURL(URL url) {
412 // fetch the proxy settings. Don't update the URL bar, and
417 final URL ur
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsXtraDownloader.java27 import java.net.URL;
119 connection = (HttpURLConnection) (new URL(url)).openConnection();
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
H A DRemoteLayoutlibCallbackAdapter.java36 import java.net.URL;
139 URL url = clazz.getProtectionDomain().getCodeSource().getLocation();

Completed in 1271 milliseconds

123