Home
last modified time | relevance | path

Searched refs:URI (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContentProviderClientTest.java32 private final Uri URI = Uri.parse("content://" + AUTHORITY); field in ShadowContentProviderClientTest
84 client.query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER); in shouldDelegateToContentProvider()
85 verify(provider).query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER); in shouldDelegateToContentProvider()
88 client.query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER, signal); in shouldDelegateToContentProvider()
89 verify(provider).query(URI, PROJECTION, SELECTION, SELECTION_ARGS, SORT_ORDER, signal); in shouldDelegateToContentProvider()
91 client.insert(URI, VALUES); in shouldDelegateToContentProvider()
92 verify(provider).insert(URI, VALUES); in shouldDelegateToContentProvider()
94 client.update(URI, VALUES, SELECTION, SELECTION_ARGS); in shouldDelegateToContentProvider()
95 verify(provider).update(URI, VALUES, SELECTION, SELECTION_ARGS); in shouldDelegateToContentProvider()
97 client.delete(URI, SELECTION, SELECTION_ARGS); in shouldDelegateToContentProvider()
[all …]
DShadowContentUrisTest.java14 Uri URI; field in ShadowContentUrisTest
18 URI = Uri.parse("content://foo.com"); in setUp()
22 assertThat(ContentUris.withAppendedId(URI, 1)).isEqualTo(Uri.parse("content://foo.com/1")); in canAppendId()
31 assertThat(ContentUris.parseId(Uri.withAppendedPath(URI, "1"))).isEqualTo(1L); in canParseId()
32 assertThat(ContentUris.parseId(URI)).isEqualTo(-1L); in canParseId()
37 ContentUris.parseId(Uri.withAppendedPath(URI, "bar")); in parseIdThrowsNumberFormatException()
/external/apache-http/src/org/apache/http/client/utils/
DURIUtils.java32 import java.net.URI;
78 public static URI createURI( in createURI()
112 return new URI(buffer.toString()); in createURI()
131 public static URI rewriteURI( in rewriteURI()
132 final URI uri, in rewriteURI()
162 public static URI rewriteURI( in rewriteURI()
163 final URI uri, in rewriteURI()
176 public static URI resolve(final URI baseURI, final String reference) { in resolve()
177 return URIUtils.resolve(baseURI, URI.create(reference)); in resolve()
188 public static URI resolve(final URI baseURI, URI reference){ in resolve()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DManagedChannelImplGetNameResolverTest.java26 import java.net.URI;
45 new URI("defaultscheme", "", "/[valid]", null)); in validTargetWithInvalidDnsName()
51 new URI("defaultscheme", "", "/foo.googleapis.com:8080", null)); in validAuthorityTarget()
57 new URI("scheme", "", "/foo.googleapis.com:8080", null)); in validUriTarget()
63 new URI("defaultscheme", "", "/127.0.0.1:1234", null)); in validIpv4AuthorityTarget()
69 new URI("dns", "", "/127.0.0.1:1234", null)); in validIpv4UriTarget()
75 new URI("defaultscheme", "", "/[::1]:1234", null)); in validIpv6AuthorityTarget()
86 new URI("dns", "", "/[::1]:1234", null)); in validIpv6UriTarget()
92 new URI("defaultscheme", "", "//target", null)); in validTargetStartingWithSlash()
99 public NameResolver newNameResolver(URI targetUri, Attributes params) { in validTargetNoResovler()
[all …]
DOverrideAuthorityNameResolverTest.java28 import java.net.URI;
40 when(wrappedFactory.newNameResolver(any(URI.class), any(Attributes.class))) in overridesAuthority()
45 NameResolver nameResolver = factory.newNameResolver(URI.create("dns:///localhost:443"), in overridesAuthority()
54 when(wrappedFactory.newNameResolver(any(URI.class), any(Attributes.class))).thenReturn(null); in wontWrapNull()
58 factory.newNameResolver(URI.create("dns:///localhost:443"), Attributes.EMPTY)); in wontWrapNull()
65 when(wrappedFactory.newNameResolver(any(URI.class), any(Attributes.class))) in forwardsNonOverridenCalls()
70 factory.newNameResolver(URI.create("dns:///localhost:443"), Attributes.EMPTY); in forwardsNonOverridenCalls()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpGetRequestTest.java49 invokeServer("GET " + HttpServerTest.URI + "?foo&bar= HTTP/1.1"); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
59 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingMixtureOfParameters()
73 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingParametersFromParameterMap()
82 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValue()
94 invokeServer("GET " + HttpServerTest.URI + "?foo&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValueAndMissingValue()
105 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&foo=baz HTTP/1.1"); in testDecodingSingleFieldRepeated()
114 invokeServer("GET " + HttpServerTest.URI + " HTTP/1.1"); in testEmptyHeadersSuppliedToServeMethodFromSimpleWorkingGetRequest()
123 … ByteArrayOutputStream outputStream = invokeServer("GET " + HttpServerTest.URI + " HTTP/1.1"); in testFullyQualifiedWorkingGetRequest()
139 invokeServer("GET " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testMultipleGetParameters()
146 invokeServer("GET " + HttpServerTest.URI + "?foo=&baz=zot HTTP/1.1"); in testMultipleGetParametersWithMissingValue()
[all …]
DHttpHeadRequestTest.java56 invokeServer("HEAD " + HttpServerTest.URI + "?foo&bar= HTTP/1.1"); in testDecodingFieldWithEmptyValueAndFieldWithMissingValueGiveDifferentResults()
66 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingMixtureOfParameters()
80 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&foo=baz&zot&zim= HTTP/1.1"); in testDecodingParametersFromParameterMap()
89 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValue()
101 invokeServer("HEAD " + HttpServerTest.URI + "?foo&baz=zot HTTP/1.1"); in testDecodingParametersWithSingleValueAndMissingValue()
112 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&foo=baz HTTP/1.1"); in testDecodingSingleFieldRepeated()
121 invokeServer("HEAD " + HttpServerTest.URI + " HTTP/1.1"); in testEmptyHeadersSuppliedToServeMethodFromSimpleWorkingGetRequest()
130 … ByteArrayOutputStream outputStream = invokeServer("HEAD " + HttpServerTest.URI + " HTTP/1.1"); in testHeadRequestDoesntSendBackResponseBody()
146 invokeServer("HEAD " + HttpServerTest.URI + "?foo=bar&baz=zot HTTP/1.1"); in testMultipleGetParameters()
153 invokeServer("HEAD " + HttpServerTest.URI + "?foo=&baz=zot HTTP/1.1"); in testMultipleGetParametersWithMissingValue()
[all …]
DHttpDeleteRequestTest.java47 … ByteArrayOutputStream outputStream = invokeServer("DELETE " + HttpServerTest.URI + " HTTP/1.1"); in testDeleteRequestThatDoesntSendBackResponseBody_EmptyString()
65 … ByteArrayOutputStream outputStream = invokeServer("DELETE " + HttpServerTest.URI + " HTTP/1.1"); in testDeleteRequestThatDoesntSendBackResponseBody_NullInputStream()
83 … ByteArrayOutputStream outputStream = invokeServer("DELETE " + HttpServerTest.URI + " HTTP/1.1"); in testDeleteRequestThatDoesntSendBackResponseBody_NullString()
101 … ByteArrayOutputStream outputStream = invokeServer("DELETE " + HttpServerTest.URI + " HTTP/1.1"); in testDeleteRequestThatSendsBackResponseBody_Accepted()
120 … ByteArrayOutputStream outputStream = invokeServer("DELETE " + HttpServerTest.URI + " HTTP/1.1"); in testDeleteRequestThatSendsBackResponseBody_Success()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DJarFinder.java30 import java.net.URI;
65 Map<URI, ClassLoader> map = Maps.newLinkedHashMap(); in findJarFiles()
69 for (Map.Entry<URI, ClassLoader> entry : map.entrySet()) { in findJarFiles()
75 @VisibleForTesting static ImmutableMap<URI, ClassLoader> getClassPathEntries( in getClassPathEntries()
77 Map<URI, ClassLoader> entries = Maps.newLinkedHashMap(); in getClassPathEntries()
86 URI uri; in getClassPathEntries()
102 private final Set<URI> scannedUris = Sets.newHashSet();
108 void scan(URI uri, ClassLoader classloader) throws IOException { in scan()
151 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
168 @VisibleForTesting static ImmutableSet<URI> getClassPathFromManifest( in getClassPathFromManifest()
[all …]
/external/apache-http/src/org/apache/http/impl/client/
DRedirectLocations.java34 import java.net.URI;
48 private final Set<URI> uris;
52 this.uris = new HashSet<URI>(); in RedirectLocations()
58 public boolean contains(final URI uri) { in contains()
65 public void add(final URI uri) { in add()
72 public boolean remove(final URI uri) { in remove()
DDefaultRedirectHandler.java34 import java.net.URI;
98 public URI getLocationURI( in getLocationURI()
117 URI uri; in getLocationURI()
119 uri = new URI(location); in getLocationURI()
144 URI requestURI = new URI(request.getRequestLine().getUri()); in getLocationURI()
145 URI absoluteRequestURI = URIUtils.rewriteURI(requestURI, target, true); in getLocationURI()
162 URI redirectURI; in getLocationURI()
/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/
DClientAuthInterceptor.java31 import java.net.URI;
70 URI uri = serviceUri(next, method); in interceptCall()
97 private URI serviceUri(Channel channel, MethodDescriptor<?, ?> method) throws StatusException {
106 URI uri;
108 uri = new URI(scheme, authority, path, null, null);
120 private URI removePort(URI uri) throws StatusException {
122 return new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), -1 /* port */,
131 private Map<String, List<String>> getRequestMetadata(URI uri) throws StatusException {
/external/libxml2/doc/examples/
Dio1.c35 sqlMatch(const char * URI) { in sqlMatch() argument
36 if ((URI != NULL) && (!strncmp(URI, "sql:", 4))) in sqlMatch()
51 sqlOpen(const char * URI) { in sqlOpen() argument
52 if ((URI == NULL) || (strncmp(URI, "sql:", 4))) in sqlOpen()
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/util/
DTestRunnerWithManifest.java4 import java.net.URI;
30 final URI workingDirectory = URI.create(System.getProperty("user.dir")); in resourcesBaseDirFile()
31 final URI absolutePath = URI.create(resourceUrl.getPath()); in resourcesBaseDirFile()
32 final URI relativePath = workingDirectory.relativize(absolutePath); in resourcesBaseDirFile()
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/util/
DTestRunnerWithManifest.java4 import java.net.URI;
30 final URI workingDirectory = URI.create(System.getProperty("user.dir")); in resourcesBaseDirFile()
31 final URI absolutePath = URI.create(resourceUrl.getPath()); in resourcesBaseDirFile()
32 final URI relativePath = workingDirectory.relativize(absolutePath); in resourcesBaseDirFile()
/external/opencensus-java/contrib/zpages/src/test/java/io/opencensus/contrib/zpages/
DZPageHttpHandlerTest.java21 import java.net.URI;
32 URI uri = new URI("http://localhost:8000/tracez"); in parseUndefinedQuery()
38 URI uri = new URI("http://localhost:8000/tracez?ztype=1&zsubtype&zname=Test"); in parseQuery()
/external/guava/guava/src/com/google/common/reflect/
DClassPath.java36 import java.net.URI;
91 for (Map.Entry<URI, ClassLoader> entry : getClassPathEntries(classloader).entrySet()) { in from()
278 @VisibleForTesting static ImmutableMap<URI, ClassLoader> getClassPathEntries( in getClassPathEntries()
280 LinkedHashMap<URI, ClassLoader> entries = Maps.newLinkedHashMap(); in getClassPathEntries()
289 URI uri; in getClassPathEntries()
307 private final Set<URI> scannedUris = Sets.newHashSet();
313 void scan(URI uri, ClassLoader classloader) throws IOException { in scan()
375 for (URI uri : getClassPathFromManifest(file, jarFile.getManifest())) { in scanJar()
399 @VisibleForTesting static ImmutableSet<URI> getClassPathFromManifest( in getClassPathFromManifest()
404 ImmutableSet.Builder<URI> builder = ImmutableSet.builder(); in getClassPathFromManifest()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DRecordingProxySelector.java23 import java.net.URI;
31 final List<URI> requestedUris = new ArrayList<>();
35 @Override public List<Proxy> select(URI uri) { in select()
40 public void assertRequests(URI... expectedUris) { in assertRequests()
45 @Override public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { in connectFailed()
/external/nist-sip/java/gov/nist/javax/sip/address/
DGenericURI.java29 import javax.sip.address.URI;
39 public class GenericURI extends NetObject implements javax.sip.address.URI {
121 else if (that instanceof URI) { in equals()
122 final URI o = (URI) that; in equals()
/external/nist-sip/java/gov/nist/javax/sip/header/
DAlertInfo.java87 public void setAlertInfo(URI uri) { in setAlertInfo()
103 public URI getAlertInfo() { in getAlertInfo()
104 URI alertInfoUri = null; in getAlertInfo()
107 alertInfoUri = (URI) this.uri; in getAlertInfo()
110 alertInfoUri = (URI) new GenericURI(string); in getAlertInfo()
/external/opencensus-java/exporters/stats/signalfx/src/main/java/io/opencensus/exporter/stats/signalfx/
DSignalFxStatsConfiguration.java23 import java.net.URI;
41 public static final URI DEFAULT_SIGNALFX_ENDPOINT;
45 DEFAULT_SIGNALFX_ENDPOINT = new URI("https://ingest.signalfx.com");
69 public abstract URI getIngestEndpoint(); in getIngestEndpoint()
116 public abstract Builder setIngestEndpoint(URI url); in setIngestEndpoint()
/external/jcommander/src/main/java/com/beust/jcommander/converters/
DURIConverter.java23 import java.net.URI;
31 public class URIConverter extends BaseConverter<URI> {
37 public URI convert(String value) { in convert()
39 return new URI(value); in convert()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/options/
DPropertyOptions.java27 public static final int URI = 0x00000002; field in PropertyOptions
79 return getOption(URI); in isURI()
89 setOption(URI, value); in setURI()
372 URI | in getValidOptions()
393 case URI : return "URI"; in defineOptionName()
423 else if ((options & URI) > 0 && (options & (ARRAY | STRUCT)) > 0) in assertConsistency()
/external/libxml2/
Dcheck-xinclude-test-suite.py77 URI = basedir + "/" + uri
79 URI = uri
80 if os.access(URI, os.R_OK) == 0:
81 print "Test %s missing: base %s uri %s" % (URI, basedir, uri)
109 doc = libxml2.parseFile(URI)
123 print "Failed to parse %s" % (URI)
156 log.write(" File: %s\n" % (URI))
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/
DAbstractResponseCache.java22 import java.net.URI;
30 @Override public CacheResponse get(URI uri, String requestMethod, in get()
35 @Override public CacheRequest put(URI uri, URLConnection connection) throws IOException { in put()
39 public static URI toUri(URL serverUrl) { in toUri()

12345678910>>...18