Home
last modified time | relevance | path

Searched +full:get +full:- +full:uri (Results 1 – 25 of 1452) sorted by relevance

12345678910>>...59

/aosp_15_r20/external/python/httplib2/python3/
Dhttplib2test.py85 "http://example.org/", httplib2.urlnorm("http://example.org")[-1]
88 "http://example.org/", httplib2.urlnorm("http://EXAMple.org")[-1]
91 "http://example.org/?=b", httplib2.urlnorm("http://EXAMple.org?=b")[-1]
95 httplib2.urlnorm("http://EXAMple.org/mypath?a=b")[-1],
98 "http://localhost:80/", httplib2.urlnorm("http://localhost:80")[-1]
106 self.fail("Non-absolute URIs should raise an exception")
127 httplib2.safename(httplib2.urlnorm("http://www")[-1]),
128 httplib2.safename(httplib2.urlnorm("http://WWW")[-1]),
138 uri = "http://" + ("w" * 200) + ".org"
140 self.assertNotEqual(httplib2.safename(uri2), httplib2.safename(uri))
[all …]
/aosp_15_r20/external/python/httplib2/python2/
Dhttplib2test.py32 # The test resources base uri
96 "http://example.org/", httplib2.urlnorm("http://example.org")[-1]
99 "http://example.org/", httplib2.urlnorm("http://EXAMple.org")[-1]
102 "http://example.org/?=b", httplib2.urlnorm("http://EXAMple.org?=b")[-1]
106 httplib2.urlnorm("http://EXAMple.org/mypath?a=b")[-1],
109 "http://localhost:80/", httplib2.urlnorm("http://localhost:80")[-1]
117 self.fail("Non-absolute URIs should raise an exception")
138 httplib2.safename(httplib2.urlnorm("http://www")[-1]),
139 httplib2.safename(httplib2.urlnorm("http://WWW")[-1]),
149 uri = "http://" + ("w" * 200) + ".org"
[all …]
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/
H A DHlsMediaPlaylistParserTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
21 import android.net.Uri;
46 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseMediaPlaylist()
49 + "#EXT-X-VERSION:3\n" in parseMediaPlaylist()
50 + "#EXT-X-PLAYLIST-TYPE:VOD\n" in parseMediaPlaylist()
51 + "#EXT-X-START:TIME-OFFSET=-25\n" in parseMediaPlaylist()
52 + "#EXT-X-TARGETDURATION:8\n" in parseMediaPlaylist()
53 + "#EXT-X-MEDIA-SEQUENCE:2679\n" in parseMediaPlaylist()
54 + "#EXT-X-DISCONTINUITY-SEQUENCE:4\n" in parseMediaPlaylist()
55 + "#EXT-X-ALLOW-CACHE:YES\n" in parseMediaPlaylist()
[all …]
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/
H A DHlsMediaPlaylistParserTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
21 import android.net.Uri;
46 Uri playlistUri = Uri.parse("https://example.com/test.m3u8"); in parseMediaPlaylist()
49 + "#EXT-X-VERSION:3\n" in parseMediaPlaylist()
50 + "#EXT-X-PLAYLIST-TYPE:VOD\n" in parseMediaPlaylist()
51 + "#EXT-X-START:TIME-OFFSET=-25\n" in parseMediaPlaylist()
52 + "#EXT-X-TARGETDURATION:8\n" in parseMediaPlaylist()
53 + "#EXT-X-MEDIA-SEQUENCE:2679\n" in parseMediaPlaylist()
54 + "#EXT-X-DISCONTINUITY-SEQUENCE:4\n" in parseMediaPlaylist()
55 + "#EXT-X-ALLOW-CACHE:YES\n" in parseMediaPlaylist()
[all …]
/aosp_15_r20/external/python/httplib2/tests/
Dtest_http.py26 assert response["content-location"] == tests.DUMMY_URL
49 http.request("http://no-such-hostname./")
53 response, content = http.request("http://no-such-hostname./")
54 assert response["content-type"] == "text/plain"
60 os.environ.get("TRAVIS_PYTHON_VERSION") in ("2.7", "pypy"),
62 "See https://travis-ci.org/httplib2/httplib2/jobs/408769880.",
74 os.environ.get("TRAVIS_PYTHON_VERSION") in ("2.7", "pypy"),
76 "See https://travis-ci.org/httplib2/httplib2/jobs/408769880.",
85 assert response["content-type"] == "text/plain"
97 with tests.server_reflect() as uri:
[all …]
Dtest_cache.py12 # Test that can do a GET with cache and 'only-if-cached'
14 with tests.server_const_http(add_etag=True) as uri:
15 http.request(uri, "GET")
17 uri, "GET", headers={"cache-control": "only-if-cached"}
24 # Test that can do a GET with no cache with 'only-if-cached'
26 with tests.server_const_http(request_count=0) as uri:
28 uri, "GET", headers={"cache-control": "only-if-cached"}
35 # Test that can do a GET with no cache with 'only-if-cached'
37 # that responds to the 'only-if-cached', so this
40 with tests.server_const_http(request_count=0) as uri:
[all …]
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/net/
H A DAbstractCookiesTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
24 * http://www.apache.org/licenses/LICENSE-2.0
47 import java.net.URI;
97 server.enqueue(new MockResponse().addHeader("Set-Cookie: a=android; " in testNetscapeResponse()
98 + "expires=Fri, 31-Dec-9999 23:59:59 GMT; " in testNetscapeResponse()
102 get(server, "/path/foo"); in testNetscapeResponse()
106 HttpCookie cookie = cookies.get(0); in testNetscapeResponse()
125 server.enqueue(new MockResponse().addHeader("Set-Cookie: a=android; " in testRfc2109Response()
128 + "Max-Age=60; " in testRfc2109Response()
132 get(server, "/path/foo"); in testRfc2109Response()
[all …]
/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowContentResolverTest.java40 import android.net.Uri;
83 private Uri uri21;
84 private Uri uri22;
91 uri21 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/21"); in setUp()
92 uri22 = Uri.parse(EXTERNAL_CONTENT_URI.toString() + "/22"); in setUp()
123 Uri uri, in getType_shouldReturnProviderValue()
132 public Uri insert(Uri uri, ContentValues values) { in getType_shouldReturnProviderValue()
137 public int delete(Uri uri, String selection, String[] selectionArgs) { in getType_shouldReturnProviderValue()
138 return -1; in getType_shouldReturnProviderValue()
143 Uri uri, ContentValues values, String selection, String[] selectionArgs) { in getType_shouldReturnProviderValue()
[all …]
/aosp_15_r20/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java8 * http://www.apache.org/licenses/LICENSE-2.0
73 import android.net.Uri;
74 import android.net.Uri.Builder;
252 // Regex for splitting query strings - we split on any group of non-alphanumeric characters,
312 * Default expiration duration for pre-authorized URIs. May be overridden from a secure
317 private static final int USAGE_TYPE_ALL = -1;
320 * Random URI parameter that will be appended to preauthorized URIs for uniqueness.
469 // map) is in the profile ID-space (see {@link ProfileDatabaseHelper#PROFILE_ID_SPACE}).
606 * - three buckets: very recently contacted, then fairly recently contacted, then the rest.
607 * Within each of the bucket - descending count of times contacted (both for data row and for
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DWebAddressesTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
22 import android.net.Uri;
36 private static final String TOP_PRIVATE_DOMAIN = "private-domain";
46 private static final Uri HTTPS_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX =
47 Uri.parse(
51 private static final Uri HTTPS_PRIVATE_DOMAIN_BLOGSPOT_COM_PUBLIC_SUFFIX =
52 Uri.parse(
57 private static final Uri HTTPS_SUBDOMAIN_PRIVATE_DOMAIN_COM_PUBLIC_SUFFIX =
58 Uri.parse(
63 private static final Uri HTTPS_SUBDOMAIN_PRIVATE_DOMAIN_BLOGSPOT_COM_PUBLIC_SUFFIX =
[all …]
/aosp_15_r20/external/libxml2/python/
H A Dlibxml2-python-api.xml1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <api name='libxml2-python'>
7 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
16 <return type='int' info="1 in case of success, 0 or -1 in case of error"/>
33 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/>
42 <arg name='URI' type='xmlChar *' info='The URI used for base computations'/>
45 …<info>Interface to parse an XML file or resource pointed by an URI to build an event flow to the S…
48 <arg name='URI' type='xmlChar *' info='The URI of the resource'/>
53 …<info>Interface to parse an HTML file or resource pointed by an URI to build an event flow to the …
56 <arg name='URI' type='xmlChar *' info='The URI of the resource'/>
[all …]
/aosp_15_r20/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessagingContentProvider.java8 * http://www.apache.org/licenses/LICENSE-2.0
25 import android.net.Uri;
64 public static final Uri CONVERSATIONS_URI = Uri.parse(CONTENT_AUTHORITY + CONVERSATIONS_QUERY);
65 static final Uri PARTS_URI = Uri.parse(CONTENT_AUTHORITY + DatabaseHelper.PARTS_TABLE);
70 static final Uri MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY + MESSAGES_QUERY);
72 public static final Uri CONVERSATION_MESSAGES_URI = Uri.parse(CONTENT_AUTHORITY +
82 static final Uri CONVERSATION_PARTICIPANTS_URI = Uri.parse(CONTENT_AUTHORITY +
85 public static final Uri PARTICIPANTS_URI = Uri.parse(CONTENT_AUTHORITY + PARTICIPANTS_QUERY);
90 public static final Uri CONVERSATION_IMAGES_URI = Uri.parse(CONTENT_AUTHORITY +
95 public static final Uri DRAFT_IMAGES_URI = Uri.parse(CONTENT_AUTHORITY +
[all …]
/aosp_15_r20/external/libcups/examples/
H A Dipp-1.1.test4 # Copyright © 2007-2017 by Apple Inc.
5 # Copyright © 2001-2006 by Easy Software Products. All rights reserved.
12 # ./ipptool -f filename [-d document-uri=SOMEURI] -t printer-uri ipp-1.1.test
13 # ./ipptool -f filename -d NOPRINT=1 -t printer-uri ipp-1.1.test
18 # Regular expressions for URI schemes:
20 # HTTP_URI_SCHEME - Matches strings beginning with http:// or https://
21 # IPP_URI_SCHEME - Matches strings beginning with ipp:// or ipps://
26 # Test that a request-id value of 0 is not accepted.
30 NAME "RFC 8011 section 4.1.1: Bad request-id value 0"
31 REQUEST-ID 0
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/data/measurement/
DMeasurementDaoTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
63 import android.net.Uri;
143 private static final Uri APP_TWO_SOURCES = Uri.parse("android-app://com.example1.two-sources");
144 private static final Uri APP_ONE_SOURCE = Uri.parse("android-app://com.example2.one-source");
145 private static final String DEFAULT_ENROLLMENT_ID = "enrollment-id";
146 private static final String ENROLLMENT_ID1 = "enrollment-id1";
147 private static final Uri APP_TWO_PUBLISHER =
148 Uri.parse("android-app://com.publisher2.two-sources");
149 private static final Uri APP_ONE_PUBLISHER =
150 Uri.parse("android-app://com.publisher1.one-source");
[all …]
/aosp_15_r20/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java8 * http://www.apache.org/licenses/LICENSE-2.0
234 import android.net.Uri;
406 /** File access by uid is a synthetic path corresponding to a redacted URI */
409 /** File access by uid is a synthetic path corresponding to a picker URI */
437 * Hard-coded filename where the current value of
445 * shouldn't get full access to any default dirs.
450 "android:included-default-directories";
482 private static final String QUERY_ARG_DO_ASYNC_SCAN = "android:query-arg-do-async-scan";
553 // Update filters to reflect mounted volumes so users don't get in updateVolumes()
555 ForegroundThread.getExecutor().execute(() -> { in updateVolumes()
[all …]
/aosp_15_r20/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/transforms/
H A DIntegrityTransformTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
24 import android.net.Uri;
73 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_INTEGRITY_SPEC).build(); in write_shouldComputeChecksum() local
74 Future<Uri> uriFuture; in write_shouldComputeChecksum()
75 UriComputingBehavior computeUri = new UriComputingBehavior(uri); in write_shouldComputeChecksum()
77 storage.open(uri, WriteStreamOpener.create().withBehaviors(computeUri)); in write_shouldComputeChecksum()
83 Uri uriWithHash = uriFuture.get(); in write_shouldComputeChecksum()
92 Uri uri = builder.withTransform(TransformProtos.DEFAULT_INTEGRITY_SPEC).build(); in consumeStream_shouldComputeChecksum() local
94 UriComputingBehavior computeUri = new UriComputingBehavior(uri); in consumeStream_shouldComputeChecksum()
95 Future<Uri> uriFuture; in consumeStream_shouldComputeChecksum()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/http/src/
Drequest.rs16 //! .uri("https://www.rust-lang.org/")
17 //! .header("User-Agent", "my-awesome-agent/1.0");
25 //! # fn needs_awesome_header() -> bool {
29 //! fn send(req: Request<()>) -> Response<()> {
40 //! fn respond_to(req: Request<()>) -> http::Result<Response<()>> {
41 //! if req.uri() != "/awesome-url" {
62 use crate::{Extensions, Result, Uri};
79 /// .uri("https://www.rust-lang.org/")
80 /// .header("User-Agent", "my-awesome-agent/1.0");
88 /// # fn needs_awesome_header() -> bool {
[all …]
/aosp_15_r20/external/nanohttpd/core/src/test/java/fi/iki/elonen/
H A DHttpGetRequestTest.java5 * NanoHttpd-Core
7 * Copyright (C) 2012 - 2015 nanohttpd
49 invokeServer("GET " + HttpServerTest.URI + "?foo&bar= HTTP/1.1"); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
50 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
51 assertEquals(0, this.testServer.decodedParamters.get("foo").size()); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
52 assertTrue(this.testServer.decodedParamters.get("bar") instanceof List); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
53 assertEquals(1, this.testServer.decodedParamters.get("bar").size()); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
54 assertEquals("", this.testServer.decodedParamters.get("bar").get(0)); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
59 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingMixtureOfParameters()
60 assertTrue(this.testServer.decodedParamters.get("foo") instanceof List); in testDecodingMixtureOfParameters()
[all …]
/aosp_15_r20/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProviderTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
30 import android.net.Uri;
58 private static final Uri VALID_BATTERY_STATE_CONTENT_URI = DatabaseUtils.BATTERY_CONTENT_URI;
103 final Uri.Builder builder = in queryAndInsert_incorrectContentUri_throwsIllegalArgumentException()
104 new Uri.Builder() in queryAndInsert_incorrectContentUri_throwsIllegalArgumentException()
108 final Uri uri = builder.build(); in queryAndInsert_incorrectContentUri_throwsIllegalArgumentException() local
113 () -> in queryAndInsert_incorrectContentUri_throwsIllegalArgumentException()
115 uri, in queryAndInsert_incorrectContentUri_throwsIllegalArgumentException()
122 () -> mProvider.insert(uri, /* contentValues= */ null)); in queryAndInsert_incorrectContentUri_throwsIllegalArgumentException()
127 final Uri.Builder builder = in queryAndInsert_incorrectAuthority_throwsIllegalArgumentException()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/
DE2EAbstractMockTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
38 import android.net.Uri;
126 * End-to-end test from source and trigger registration to attribution reporting, using mocked HTTP
194 () -> { in E2EAbstractMockTest()
196 phFlagsMap.putIfAbsent(key, sPhFlags.get(key)); in E2EAbstractMockTest()
200 .get()); in E2EAbstractMockTest()
254 Uri triggerUri = TriggerContentProvider.getTriggerUri(); in E2EAbstractMockTest()
255 Uri asyncRegistrationTriggerUri = AsyncRegistrationContentProvider.getTriggerUri(); in E2EAbstractMockTest()
284 for (String uri : sourceRegistration.mUriToResponseHeadersMap.keySet()) { in prepareRegistrationServer()
285 UriConfig uriConfig = getNextUriConfig(sourceRegistration.mUriConfigsMap.get(uri)); in prepareRegistrationServer()
[all …]
/aosp_15_r20/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DFledgeCtsDebuggableTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
98 import android.net.Uri;
273 Uri.parse(
279 Uri.parse(
458 + " \"id\": \"400bed24-c62f-46e0-a1ad-211361ad771a\", \n"
617 .get(API_RESPONSE_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testFledgeAuctionSelectionFlow_overall_Success()
638 .get(API_RESPONSE_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testFledgeAuctionSelectionFlow_overall_Success()
641 .get(API_RESPONSE_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testFledgeAuctionSelectionFlow_overall_Success()
645 "Running ad selection with logic URI " + AD_SELECTION_CONFIG.getDecisionLogicUri()); in testFledgeAuctionSelectionFlow_overall_Success()
648 "Decision logic URI domain is " in testFledgeAuctionSelectionFlow_overall_Success()
[all …]
/aosp_15_r20/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/downloader/offroad/
H A DOffroad2FileDownloaderTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
26 import android.net.Uri;
65 import java.net.URI;
113 private Uri.Builder testUrlPrefix;
177 Optional.of(() -> cookieJar), in setUp()
195 Uri fileUri = tmpUri.newUri(); in testStartDownloading_downloadConditionsNull_usesWifiOnly()
201 constraints -> { in testStartDownloading_downloadConditionsNull_usesWifiOnly()
219 downloadFuture.get(MAX_CONNECTION_WAIT_SECS, SECONDS); in testStartDownloading_downloadConditionsNull_usesWifiOnly()
226 assertThat(fakeDownloadMetadataStore.read(fileUri).get(MAX_CONNECTION_WAIT_SECS, SECONDS)) in testStartDownloading_downloadConditionsNull_usesWifiOnly()
232 Uri fileUri = tmpUri.newUri(); in testStartDownloading_wifi()
[all …]
/aosp_15_r20/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/
H A DDownloadFileGroupAndroidSharingIntegrationTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
31 import android.net.Uri;
86 private static final String FILE_GROUP_TO_SHARE_1 = "test-group-1";
87 private static final String FILE_GROUP_TO_SHARE_2 = "test-group-2";
89 private static final String FILE_ID_1 = "test-file-to-share-1";
96 private static final String FILE_ID_2 = "test-file-to-share-2";
121 // Investigate why this is happening and enable single-threaded tests.
149 mobileDataDownload.clear().get(); in tearDown()
172 Uri androidUri = in oneAndroidSharedFile_blobStoreBackendNotRegistered_fileDownloadedAndStoredLocally()
175 // A file group with one android-shared file and one non-androidShared file in oneAndroidSharedFile_blobStoreBackendNotRegistered_fileDownloadedAndStoredLocally()
[all …]
/aosp_15_r20/external/aws-crt-java/src/test/java/software/amazon/awssdk/crt/test/
H A DHttp2ClientConnectionTest.java3 * SPDX-License-Identifier: Apache-2.0.
11 import java.net.URI;
29 private final static String HOST = "https://postman-echo.com";
39 URI uri = new URI(HOST); in testHttp2ConnectionGetVersion() local
41 … try (HttpClientConnectionManager connPool = createConnectionPoolManager(uri, EXPECTED_VERSION)) { in testHttp2ConnectionGetVersion()
43 … try (HttpClientConnection conn = connPool.acquireConnection().get(60, TimeUnit.SECONDS)) { in testHttp2ConnectionGetVersion()
53 shutdownComplete.get(60, TimeUnit.SECONDS); in testHttp2ConnectionGetVersion()
65 URI uri = new URI(HOST); in testHttp2ConnectionUpdateSettings() local
67 … try (HttpClientConnectionManager connPool = createConnectionPoolManager(uri, EXPECTED_VERSION)) { in testHttp2ConnectionUpdateSettings()
69 … try (Http2ClientConnection conn = (Http2ClientConnection) connPool.acquireConnection().get(60, in testHttp2ConnectionUpdateSettings()
[all …]
/aosp_15_r20/external/libcups/doc/help/
H A Dspec-ipp.html3 <!-- SECTION: Specifications -->
7 <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css">
10 <!--
13 Copyright © 2007-2016 by Apple Inc.
14 Copyright © 1997-2007 by Easy Software Products.
18 -->
24 <p>CUPS implements <a href="http://ftp.pwg.org/pub/pwg/standards/std-ipp20-20151030-5100.12.pdf">IP…
28-ippjobprinterext10-20101030-5100.11.pdf">PWG 5100.11: IPP Job and Printer Extensions - Set 2 (JPS…
30-ippjobprinterext3v10-20120727-5100.13.pdf">PWG 5100.13: IPP Job and Printer Extensions - Set 3 (J…
32 …<li><a href="http://ftp.pwg.org/pub/pwg/candidates/cs-ippeve10-20130128-5100.14.pdf">PWG 5100.14: …
[all …]

12345678910>>...59