Home
last modified time | relevance | path

Searched full:url (Results 1 – 25 of 18233) sorted by relevance

12345678910>>...730

/aosp_15_r20/libcore/luni/src/test/java/libcore/java/net/
H A DURLTest.java28 import java.net.URL;
45 URL url = new URL("http://username:password@host:8080/directory/file?query#ref"); in testUrlParts() local
46 assertEquals("http", url.getProtocol()); in testUrlParts()
47 assertEquals("username:password@host:8080", url.getAuthority()); in testUrlParts()
48 assertEquals("username:password", url.getUserInfo()); in testUrlParts()
49 assertEquals("host", url.getHost()); in testUrlParts()
50 assertEquals(8080, url.getPort()); in testUrlParts()
51 assertEquals(80, url.getDefaultPort()); in testUrlParts()
52 assertEquals("/directory/file?query", url.getFile()); in testUrlParts()
53 assertEquals("/directory/file", url.getPath()); in testUrlParts()
[all …]
H A DOldURLTest.java33 import java.net.URL;
58 new URL("http", "apache.org", 123456789, "file"); in test_ConstructorLjava_lang_StringLjava_lang_StringILjava_lang_String()
60 new URL("http", "apache.org", -123, "file"); in test_ConstructorLjava_lang_StringLjava_lang_StringILjava_lang_String()
69 URL testURL = new URL("http", "www.apache.org:8082", "test.html#anch"); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
77 new URL("hftp", "apache.org:8082", "test.html#anch"); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String()
90 new URL("test_protocol", "", "fake.jar"); in test_java_protocol_handler_pkgs_prop()
97 URL testURL1 = new URL("http", "www.apache.org:8080", "test.html#anch"); in testHashCode()
98 URL testURL2 = new URL("http", "www.apache.org:8080", "test.html#anch"); in testHashCode()
99 URL changedURL = new URL("http", "www.apache.org:8082", in testHashCode()
113 URL fileURL = sampleFile.toURL(); in testSetURLStreamHandlerFactory()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/url/src/
Dlib.rs1 // Copyright 2013-2015 The rust-url developers.
11 rust-url is an implementation of the [URL Standard](http://url.spec.whatwg.org/)
15 # URL parsing and data structures
17 First, URL parsing may fail for various reasons and therefore returns a `Result`.
20 use url::{Url, ParseError};
22 assert!(Url::parse("http://[:::1]") == Err(ParseError::InvalidIpv6Address))
25 Let’s parse a valid URL and look at its components.
28 use url::{Url, Host, Position};
29 # use url::ParseError;
31 let issue_list_url = Url::parse(
[all …]
Dquirks.rs1 // Copyright 2016 The rust-url developers.
9 //! Getters and setters for URL components implemented per https://url.spec.whatwg.org/#api
12 //! you probably want to use `Url` method instead.
15 use crate::{Host, ParseError, Position, Url};
17 /// Internal components / offsets of a URL.
42 /// Internal component / parsed offsets of the URL.
45 /// for the URL.
47 pub fn internal_components(url: &Url) -> InternalComponents { in internal_components()
49 scheme_end: url.scheme_end, in internal_components()
50 username_end: url.username_end, in internal_components()
[all …]
/aosp_15_r20/external/bazelbuild-rules_license/licenses/spdx/
H A DBUILD72 url = "https://spdx.org/licenses/0BSD.html",
78 url = "https://spdx.org/licenses/AAL.html",
84 url = "https://spdx.org/licenses/Abstyles.html",
90 url = "https://spdx.org/licenses/Adobe-2006.html",
96 url = "https://spdx.org/licenses/Adobe-Glyph.html",
102 url = "https://spdx.org/licenses/ADSL.html",
108 url = "https://spdx.org/licenses/AFL-1.1.html",
114 url = "https://spdx.org/licenses/AFL-1.2.html",
120 url = "https://spdx.org/licenses/AFL-2.0.html",
126 url = "https://spdx.org/licenses/AFL-2.1.html",
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/url/tests/
Dunit.rs1 // Copyright 2013-2014 The rust-url developers.
15 use url::{form_urlencoded, Host, Origin, Url};
20 assert_eq!(size_of::<Url>(), size_of::<Option<Url>>()); in size()
25 let base: Url = "sc://%C3%B1".parse().unwrap(); in test_relative()
26 let url = base.join("/resources/testharness.js").unwrap(); in test_relative() localVariable
27 assert_eq!(url.as_str(), "sc://%C3%B1/resources/testharness.js"); in test_relative()
32 let base: Url = "sc://%C3%B1".parse().unwrap(); in test_relative_empty()
33 let url = base.join("").unwrap(); in test_relative_empty() localVariable
34 assert_eq!(url.as_str(), "sc://%C3%B1"); in test_relative_empty()
39 let mut base: Url = "moz://foo:bar@servo/baz".parse().unwrap(); in test_set_empty_host()
[all …]
/aosp_15_r20/test/mlts/models/assets/image_classification/
DLICENSE3 Url: https://www.flickr.com/photos/35776267@N08/3336561942
4 Image url: https://farm8.staticflickr.com/3391/3336561942_ec6765ac71_o.jpg
11 Url: https://www.flickr.com/photos/uriel1998/15413648199
12 Image url: https://c7.staticflickr.com/4/3935/15413648199_d287a131de_o.jpg
19 Url: https://www.flickr.com/photos/desperado31/14224022854
20 Image url: https://farm3.staticflickr.com/5578/14224022854_6982e73e95_o.jpg
27 Url: https://www.flickr.com/photos/nicknbecka/1394753532
28 Image url: https://c2.staticflickr.com/2/1135/1394753532_76fa2ec26f_o.jpg
35 Url: https://www.flickr.com/photos/funky1opti/3127466657
36 Image url: https://farm1.staticflickr.com/3251/3127466657_93f96a8b74_o.jpg
[all …]
/aosp_15_r20/tools/asuite/aidegen/
H A Dtemplates.py51 <content url="file://{MODULE_PATH}">{EXCLUDES}{SOURCES}
54 <sourceFolder url="file://{SRC}" isTestSource="{IS_TEST}" />"""
56 <content url="file://{SRC}">
57 <sourceFolder url="file://{SRC}" isTestSource="{IS_TEST}" />
60 <content url="jar://{SRCJAR}!/">
61 <sourceFolder url="jar://{SRCJAR}!/" isTestSource="False" />
67 <root url="jar://{JAR}!/" />
253 … <root url="jar://$APPLICATION_HOME_DIR$/plugins/java/lib/jdkAnnotations.jar!/" type="simple" />
258 <root url="jrt://{JDKpath}!/java.base" type="simple" />
259 <root url="jrt://{JDKpath}!/java.compiler" type="simple" />
[all …]
/aosp_15_r20/external/libbrillo/brillo/
H A Durl_utils_test.cc13 url::Combine("http://sample.org", "path")); in TEST()
15 url::Combine("http://sample.org/", "path")); in TEST()
16 EXPECT_EQ("path1/path2", url::Combine("", "path1/path2")); in TEST()
17 EXPECT_EQ("path1/path2", url::Combine("path1", "path2")); in TEST()
18 EXPECT_EQ("http://sample.org", url::Combine("http://sample.org", "")); in TEST()
20 url::Combine("http://sample.org/", "/path")); in TEST()
22 url::Combine("http://sample.org", "//////path")); in TEST()
23 EXPECT_EQ("http://sample.org/", url::Combine("http://sample.org", "///")); in TEST()
25 url::Combine("http://sample.org/obj", "path1/path2")); in TEST()
27 url::Combine("http://sample.org/obj#tag", "path1/path2")); in TEST()
[all …]
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DURLTest.java30 import java.net.URL;
39 protected URLConnection openConnection(URL u) in openConnection()
45 URL u;
47 URL u1;
49 URL u2;
51 URL u3;
53 URL u4;
55 URL u5;
57 URL u6;
64 * java.net.URL#URL(java.lang.String)
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/core/data/service/
H A Durl_test.cc15 #include "tensorflow/core/data/service/url.h"
24 URL url("localhost"); in TEST() local
25 EXPECT_EQ(url.host(), "localhost"); in TEST()
26 EXPECT_FALSE(url.has_port()); in TEST()
30 URL url("http://localhost"); in TEST() local
31 EXPECT_EQ(url.host(), "http://localhost"); in TEST()
32 EXPECT_FALSE(url.has_port()); in TEST()
36 URL url("localhost:1234"); in TEST() local
37 EXPECT_EQ(url.host(), "localhost"); in TEST()
38 EXPECT_TRUE(url.has_port()); in TEST()
[all …]
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java116 String url = "http://www.android.com"; in testWebUrl_matchesValidUrlWithSchemeAndHostname() local
117 assertTrue("Should match URL with scheme and hostname", in testWebUrl_matchesValidUrlWithSchemeAndHostname()
118 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeAndHostname()
124 String url = "http://www.android.me"; in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld() local
125 assertTrue("Should match URL with scheme, hostname and new TLD", in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld()
126 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithSchemeHostnameAndNewTld()
132 String url = "android.me"; in testWebUrl_matchesValidUrlWithHostnameAndNewTld() local
133 assertTrue("Should match URL with hostname and new TLD", in testWebUrl_matchesValidUrlWithHostnameAndNewTld()
134 Patterns.WEB_URL.matcher(url).matches()); in testWebUrl_matchesValidUrlWithHostnameAndNewTld()
140 String url = "http://xn--fsqu00a.xn--0zwm56d"; in testWebUrl_matchesChinesePunycodeUrlWithProtocol() local
[all …]
/aosp_15_r20/external/fhir/spec/r4/json_definitions/
Dsearch-parameters.json14 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", string
17 "url" : "http://hl7.org/fhir/SearchParameter/DomainResource-text", string
26 "system" : "url",
32 "system" : "url",
49 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", string
52 "url" : "http://hl7.org/fhir/SearchParameter/Resource-content", string
61 "system" : "url",
67 "system" : "url",
84 "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", string
87 "url" : "http://hl7.org/fhir/SearchParameter/Resource-id", string
[all …]
/aosp_15_r20/libcore/ojluni/src/main/java/sun/misc/
H A DURLClassPath.java40 import java.net.URL;
90 private ArrayList<URL> path = new ArrayList<URL>();
93 Stack<URL> urls = new Stack<URL>();
98 /* Map of each URL opened to its corresponding Loader */
114 * searched in the order specified for classes and resources. A URL
116 * the URL is assumed to refer to a JAR file.
124 public URLClassPath(URL[] urls, in URLClassPath()
144 public URLClassPath(URL[] urls) { in URLClassPath()
148 public URLClassPath(URL[] urls, AccessControlContext acc) { in URLClassPath()
169 * Appends the specified URL to the search path of directory and JAR
[all …]
/aosp_15_r20/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/
H A DCronetHttpURLConnectionTest.java47 import java.net.URL;
103 URL url = new URL(NativeTestServer.getEchoMethodURL()); in testBasicGet() local
104 mUrlConnection = (HttpURLConnection) mCronetEngine.openConnection(url); in testBasicGet()
114 URL url = new URL(NativeTestServer.getEchoMethodURL()); in testSetRequestMethod() local
115 mUrlConnection = (HttpURLConnection) mCronetEngine.openConnection(url); in testSetRequestMethod()
128 URL url = new URL(NativeTestServer.getEchoMethodURL()); in testConnectTimeout() local
129 mUrlConnection = (HttpURLConnection) mCronetEngine.openConnection(url); in testConnectTimeout()
143 // Add url interceptors. in testReadTimeout()
146 URL url = new URL(MockUrlRequestJobFactory.getMockUrlForHangingRead()); in testReadTimeout() local
147 mUrlConnection = (HttpURLConnection) mCronetEngine.openConnection(url); in testReadTimeout()
[all …]
/aosp_15_r20/tools/asuite/aidegen/test_data/jdk_table_xml/
H A Djdk_nonexistent.xml15 … <root url="jar://$APPLICATION_HOME_DIR$/plugins/java/lib/jdkAnnotations.jar!/" type="simple" />
20 … <root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.base" type="simple" />
21 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.compiler" type="simple"…
22 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.datatransfer" type="sim…
23 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.desktop" type="simple" …
24 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.instrument" type="simpl…
25 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.logging" type="simple" …
26 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.management" type="simpl…
27 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.management.rmi" type="s…
28 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.naming" type="simple" />
[all …]
H A Djdk21.xml11 … <root url="jar://$APPLICATION_HOME_DIR$/plugins/java/lib/jdkAnnotations.jar!/" type="simple" />
16 … <root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.base" type="simple" />
17 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.compiler" type="simple"…
18 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.datatransfer" type="sim…
19 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.desktop" type="simple" …
20 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.instrument" type="simpl…
21 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.logging" type="simple" …
22 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.management" type="simpl…
23 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.management.rmi" type="s…
24 …<root url="jrt:///path/to/android/root/prebuilts/jdk/jdk21/linux-x86!/java.naming" type="simple" />
[all …]
/aosp_15_r20/external/cronet/net/base/
H A Dschemeful_site_unittest.cc11 #include "url/gurl.h"
12 #include "url/origin.h"
13 #include "url/url_util.h"
19 url::Origin kTestOrigins[] = { in TEST()
20 url::Origin::Create(GURL("http://a.foo.test")), in TEST()
21 url::Origin::Create(GURL("http://b.foo.test")), in TEST()
22 url::Origin::Create(GURL("http://foo.test")), in TEST()
23 url::Origin::Create(GURL("http://a.b.foo.test"))}; in TEST()
35 url::Origin kTestOrigins[] = { in TEST()
36 url::Origin::Create(GURL("data:text/html,<body>Hello World</body>")), in TEST()
[all …]
/aosp_15_r20/external/python/cpython3/Lib/urllib/
Dparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
29 The WHATWG URL Parser spec should also be considered. We are not compliant with
250 _DefragResultBase = namedtuple('DefragResult', 'url fragment')
257 DefragResult(url, fragment)
259 A 2-tuple that contains the url without fragment identifier and the fragment
263 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
266 Fragment identifier separated from URL, that allows indirect identification of a
274 A 5-tuple that contains the different components of a URL. Similar to
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/urllib/
Dparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
29 The WHATWG URL Parser spec should also be considered. We are not compliant with
250 _DefragResultBase = namedtuple('DefragResult', 'url fragment')
257 DefragResult(url, fragment)
259 A 2-tuple that contains the url without fragment identifier and the fragment
263 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
266 Fragment identifier separated from URL, that allows indirect identification of a
274 A 5-tuple that contains the different components of a URL. Similar to
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/urllib/
Dparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
29 The WHATWG URL Parser spec should also be considered. We are not compliant with
250 _DefragResultBase = namedtuple('DefragResult', 'url fragment')
257 DefragResult(url, fragment)
259 A 2-tuple that contains the url without fragment identifier and the fragment
263 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
266 Fragment identifier separated from URL, that allows indirect identification of a
274 A 5-tuple that contains the different components of a URL. Similar to
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/urllib/
Dparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
29 The WHATWG URL Parser spec should also be considered. We are not compliant with
250 _DefragResultBase = namedtuple('DefragResult', 'url fragment')
257 DefragResult(url, fragment)
259 A 2-tuple that contains the url without fragment identifier and the fragment
263 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
266 Fragment identifier separated from URL, that allows indirect identification of a
274 A 5-tuple that contains the different components of a URL. Similar to
[all …]
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/urllib/
H A Dparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
29 The WHATWG URL Parser spec should also be considered. We are not compliant with
250 _DefragResultBase = namedtuple('DefragResult', 'url fragment')
257 DefragResult(url, fragment)
259 A 2-tuple that contains the url without fragment identifier and the fragment
263 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
266 Fragment identifier separated from URL, that allows indirect identification of a
274 A 5-tuple that contains the different components of a URL. Similar to
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/urllib/
Dparse.py8 RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
14 RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zawinski, July 1998.
19 RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
29 The WHATWG URL Parser spec should also be considered. We are not compliant with
250 _DefragResultBase = namedtuple('DefragResult', 'url fragment')
257 DefragResult(url, fragment)
259 A 2-tuple that contains the url without fragment identifier and the fragment
263 _DefragResultBase.url.__doc__ = """The URL with no fragment identifier."""
266 Fragment identifier separated from URL, that allows indirect identification of a
274 A 5-tuple that contains the different components of a URL. Similar to
[all …]
/aosp_15_r20/build/soong/licenses/
H A DAndroid.bp57 url: "https://spdx.org/licenses/0BSD",
63 url: "https://spdx.org/licenses/AFL-1.1.html",
69 url: "https://spdx.org/licenses/AFL-1.2.html",
75 url: "https://spdx.org/licenses/AFL-2.0.html",
81 url: "https://spdx.org/licenses/AFL-2.1.html",
87 url: "https://spdx.org/licenses/AFL-3.0.html",
96 url: "https://spdx.org/licenses/AGPL.html",
105 url: "https://spdx.org/licenses/AGPL-1.0.html",
114 url: "https://spdx.org/licenses/AGPL-1.0-only.html",
123 url: "https://spdx.org/licenses/AGPL-1.0-or-later.html",
[all …]

12345678910>>...730