/libcore/support/src/test/java/tests/support/ |
D | Support_GetLocal.java | 37 public static File getLocalFile(String url) throws IOException, in getLocalFile() argument 39 url = Support_Resources.RESOURCE_PACKAGE + url; in getLocalFile() 40 File temp = cache.get(url); in getLocalFile() 42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); in getLocalFile() 53 cache.put(url, temp); in getLocalFile() 58 public static File getExternalLocalFile(String url) throws IOException, in getExternalLocalFile() argument 60 File temp = cache.get(url); in getExternalLocalFile() 62 InputStream in = new URL(url).openStream(); in getExternalLocalFile() 73 cache.put(url, temp); in getExternalLocalFile() 78 static ByteArrayInputStream getStream(String url) throws IOException, in getStream() argument [all …]
|
D | Support_ClassLoader.java | 31 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); in getClassLoader() argument 33 public static ClassLoader getInstance(URL url, ClassLoader parent) { in getInstance() argument 45 return factory.getClassLoader(url, parent); in getInstance() 68 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() argument 69 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(), in getClassLoader() 80 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader() argument 81 return new URLClassLoader(new URL[] { url }, parent); in getClassLoader()
|
/libcore/luni/src/main/java/java/net/ |
D | URLClassLoader.java | 118 static IndexFile readIndexFile(JarFile jf, JarEntry indexEntry, URL url) { in readIndexFile() argument 123 String parentURLString = getParentURL(url).toExternalForm(); in readIndexFile() 182 private static URL getParentURL(URL url) throws IOException { in getParentURL() argument 183 URL fileURL = ((JarURLConnection) url.openConnection()).getJarFileURL(); in getParentURL() 205 URL url; field in URLClassLoader.URLHandler 208 public URLHandler(URL url) { in URLHandler() argument 209 this.url = url; in URLHandler() 210 this.codeSourceUrl = url; in URLHandler() 221 URL resURL = targetURL(url, name); in findClass() 264 URL resURL = targetURL(url, name); in findResource() [all …]
|
D | JarURLConnection.java | 65 protected JarURLConnection(URL url) throws MalformedURLException { in JarURLConnection() argument 66 super(url); in JarURLConnection() 67 file = url.getFile(); in JarURLConnection() 72 fileURL = new URL(url.getFile().substring(0,sepIdx)); in JarURLConnection() 78 if (null != url.getRef()) { in JarURLConnection() 79 entryName += "#" + url.getRef(); in JarURLConnection()
|
D | URLStreamHandler.java | 305 protected String toExternalForm(URL url) { in toExternalForm() argument 307 answer.append(url.getProtocol()); in toExternalForm() 309 String authority = url.getAuthority(); in toExternalForm() 312 answer.append(url.getAuthority()); in toExternalForm() 315 String file = url.getFile(); in toExternalForm() 316 String ref = url.getRef(); in toExternalForm() 364 protected InetAddress getHostAddress(URL url) { in getHostAddress() argument 366 String host = url.getHost(); in getHostAddress() 383 protected int hashCode(URL url) { in hashCode() argument 384 return toExternalForm(url).hashCode(); in hashCode() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/file/ |
D | Handler.java | 42 public URLConnection openConnection(URL url) throws IOException { in openConnection() argument 43 return openConnection(url, null); in openConnection() 64 public URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() argument 65 if (url == null) { in openConnection() 69 String host = url.getHost(); in openConnection() 71 return new FileURLConnection(url); in openConnection() 75 URL ftpURL = new URL("ftp", host, url.getFile()); in openConnection()
|
/libcore/luni/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | TestHelper_Driver1.java | 55 public boolean acceptsURL(String url) throws SQLException { in acceptsURL() argument 57 if (url == null) { in acceptsURL() 62 if (url.startsWith(baseURL)) { in acceptsURL() 76 public Connection connect(String url, Properties info) throws SQLException { in connect() argument 78 if (this.acceptsURL(url)) { in connect() 80 String datasource = url.substring(baseURL.length() + 1); in connect() 105 public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) in getPropertyInfo() argument
|
D | TestHelper_Driver4.java | 53 public boolean acceptsURL(String url) throws SQLException { in acceptsURL() argument 55 if (url == null) { in acceptsURL() 60 if (url.startsWith(baseURL)) { in acceptsURL() 74 public Connection connect(String url, Properties info) throws SQLException { in connect() argument 76 if (this.acceptsURL(url)) { in connect() 78 String datasource = url.substring(baseURL.length() + 1); in connect() 121 public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) in getPropertyInfo() argument
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/https/ |
D | Handler.java | 32 protected URLConnection openConnection(URL url) throws IOException { in openConnection() argument 33 return new HttpsURLConnectionImpl(url, getDefaultPort()); in openConnection() 37 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() argument 38 if (url == null || proxy == null) { in openConnection() 41 return new HttpsURLConnectionImpl(url, getDefaultPort(), proxy); in openConnection()
|
D | HttpsURLConnectionImpl.java | 58 protected HttpsURLConnectionImpl(URL url, int port) { in HttpsURLConnectionImpl() argument 59 super(url); in HttpsURLConnectionImpl() 60 httpsEngine = new HttpsEngine(url, port); in HttpsURLConnectionImpl() 63 protected HttpsURLConnectionImpl(URL url, int port, Proxy proxy) { in HttpsURLConnectionImpl() argument 64 super(url); in HttpsURLConnectionImpl() 65 httpsEngine = new HttpsEngine(url, port, proxy); in HttpsURLConnectionImpl() 353 protected HttpsEngine(URL url, int port) { in HttpsEngine() argument 354 super(url, port); in HttpsEngine() 357 protected HttpsEngine(URL url, int port, Proxy proxy) { in HttpsEngine() argument 358 super(url, port, proxy); in HttpsEngine() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/ |
D | FtpURLConnection.java | 106 protected FtpURLConnection(URL url) { in FtpURLConnection() argument 107 super(url); in FtpURLConnection() 108 hostName = url.getHost(); in FtpURLConnection() 109 String parse = url.getUserInfo(); in FtpURLConnection() 121 uri = url.toURI(); in FtpURLConnection() 133 protected FtpURLConnection(URL url, Proxy proxy) { in FtpURLConnection() argument 134 this(url); in FtpURLConnection() 142 int idx = url.getFile().lastIndexOf('/'); in cd() 145 String dir = url.getFile().substring(0, idx); in cd() 209 int port = url.getPort(); in connectInternal() [all …]
|
D | Handler.java | 55 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() argument 56 if (url == null || proxy == null) { in openConnection() 59 return new FtpURLConnection(url, proxy); in openConnection()
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/ |
D | Handler.java | 58 protected void parseURL(URL url, String spec, int start, int limit) { in parseURL() argument 59 String file = url.getFile(); in parseURL() 88 setURL(url, "jar", "", -1, null, null, file, null, null); in parseURL() 99 protected String toExternalForm(URL url) { in toExternalForm() argument 102 sb.append(url.getFile()); in toExternalForm() 103 String ref = url.getRef(); in toExternalForm()
|
/libcore/luni/src/main/java/java/sql/ |
D | Driver.java | 52 public boolean acceptsURL(String url) throws SQLException; in acceptsURL() argument 70 public Connection connect(String url, Properties info) throws SQLException; in connect() argument 109 public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) in getPropertyInfo() argument
|
D | DriverManager.java | 144 public static Connection getConnection(String url) throws SQLException { in getConnection() argument 145 return getConnection(url, new Properties()); in getConnection() 166 public static Connection getConnection(String url, Properties info) throws SQLException { in getConnection() argument 170 if (url == null) { in getConnection() 180 Connection theConnection = theDriver.connect(url, info); in getConnection() 205 public static Connection getConnection(String url, String user, in getConnection() argument 214 return getConnection(url, theProperties); in getConnection() 227 public static Driver getDriver(String url) throws SQLException { in getDriver() argument 241 if (theDriver.acceptsURL(url) in getDriver()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLStreamHandlerTest.java | 91 URL url = new URL("http://test.org"); in test_parseURLLjava_net_URLLjava_lang_StringII() local 94 handler.parseURL(url, str, 0, str.length()); in test_parseURLLjava_net_URLLjava_lang_StringII() 117 URL url = new URL("http://test.org"); in test_setURL1() local 120 handler.setURL(url, "http", "localhost", 80, "foo.c", "ref"); in test_setURL1() 127 URL url = new URL("http://test.org"); in test_setURL2() local 130 handler.setURL(url, "http", "localhost", 80, "authority", in test_setURL2() 142 for(URL url : urls) { in test_toExternalForm() 143 assertEquals("Test case for " + url.toString(), in test_toExternalForm() 144 url.toString(), handler.toExternalForm(url)); in test_toExternalForm()
|
D | OldCookieHandlerTest.java | 48 URL url = new URL(link); in test_get_put() local 49 URLConnection conn = url.openConnection(); in test_get_put() 51 url = new URL(link); in test_get_put() 52 conn = url.openConnection(); in test_get_put()
|
D | OldURLClassLoaderTest.java | 174 URL url = new URL("http://" + Support_Configuration.SpecialInetTestAddress); in test_getPermissions() local 176 CodeSource cs = new CodeSource(url, chain); in test_getPermissions() 177 TestURLClassLoader cl = new TestURLClassLoader(new URL[] {url}); in test_getPermissions() 182 TestURLClassLoader cl1 = new TestURLClassLoader(new URL[] {url}); in test_getPermissions() 225 public void addURL(URL url) { in addURL() argument 226 super.addURL(url); in addURL() 231 URL url) in definePackage() argument 233 return super.definePackage(name, man, url); in definePackage() 328 String url; in getURLClassLoader() local 331 url = "file:" + path; in getURLClassLoader() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
D | Handler.java | 68 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() argument 69 if (url == null || proxy == null) { in openConnection() 72 return new HttpURLConnectionImpl(url, getDefaultPort(), proxy); in openConnection()
|
/libcore/sqlite-jdbc/src/main/java/SQLite/ |
D | JDBCDriver.java | 85 public boolean acceptsURL(String url) throws SQLException { in acceptsURL() argument 86 return url.startsWith("sqlite:/") || in acceptsURL() 87 url.startsWith("jdbc:sqlite:/"); in acceptsURL() 90 public Connection connect(String url, Properties info) in connect() argument 92 if (!acceptsURL(url)) { in connect() 96 args[0] = url; in connect() 127 public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) in getPropertyInfo() argument
|
/libcore/luni/src/main/java/javax/xml/validation/ |
D | SecuritySupport.java | 81 static InputStream getURLInputStream(final URL url) 88 return url.openStream(); 102 URL url; 104 url = ClassLoader.getSystemResource(name); 107 url = cl.getResource(name); 109 return url;
|
/libcore/luni/src/main/java/javax/xml/xpath/ |
D | SecuritySupport.java | 81 static InputStream getURLInputStream(final URL url) 88 return url.openStream(); 102 URL url; 104 url = ClassLoader.getSystemResource(name); 107 url = cl.getResource(name); 109 return url;
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
D | HttpsURLConnectionTest.java | 84 URL url = new URL("https://localhost:55555"); in test_getCipherSuite() local 85 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getCipherSuite() 115 URL url = new URL("https://localhost:55555"); in test_getLocalCertificates() local 116 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getLocalCertificates() 200 URL url = new URL("https://localhost:55555"); in test_getLocalPrincipal() local 201 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getLocalPrincipal() 233 URL url = new URL("https://localhost:55555"); in test_getPeerPrincipal() local 234 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getPeerPrincipal() 272 URL url = new URL("https://localhost:55555"); in test_getServerCertificates() local 273 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in test_getServerCertificates() [all …]
|
/libcore/luni/src/main/java/org/apache/xpath/ |
D | SourceTree.java | 40 public SourceTree(int root, String url) in SourceTree() argument 43 m_url = url; in SourceTree()
|
/libcore/luni/src/test/java/org/apache/harmony/xml/ |
D | JaxenXPathTestSuite.java | 90 String url = document.getAttribute("url"); in suite() local 91 InputSource inputSource = new InputSource("file:" + jaxenHome + "/" + url); in suite() 93 contextToTestSuite(result, url, inputSource, context); in suite() 103 private static void contextToTestSuite(TestSuite suite, String url, in contextToTestSuite() argument 120 Context context = new Context(inputSource, url, select); in contextToTestSuite() 219 private final String url; 222 Context(InputSource inputSource, String url, String select) { 224 this.url = url; 240 return url + " " + select;
|