Home
last modified time | relevance | path

Searched refs:url (Results 1 – 25 of 62) sorted by relevance

123

/tools/tradefederation/core/common_util/com/android/tradefed/util/net/
DHttpHelper.java99 public String doGet(String url) throws IOException, DataSizeException { in doGet() argument
100 CLog.d("Performing GET request for %s", url); in doGet()
106 remote = getRemoteUrlStream(new URL(url)); in doGet()
130 public void doGet(String url, OutputStream outputStream) throws IOException { in doGet() argument
131 CLog.d("Performing GET download request for %s", url); in doGet()
134 remote = getRemoteUrlStream(new URL(url)); in doGet()
145 public void doGetIgnore(String url) throws IOException { in doGetIgnore() argument
146 CLog.d("Performing GET request for %s. Ignoring result.", url); in doGetIgnore()
149 remote = getRemoteUrlStream(new URL(url)); in doGetIgnore()
159 public HttpURLConnection createConnection(URL url, String method, String contentType) in createConnection() argument
[all …]
DIHttpHelper.java49 public String buildUrl(String url, MultiMap<String, String> paramMap); in buildUrl() argument
84 public String doGet(String url) throws IOException, DataSizeException; in doGet() argument
95 public void doGet(String url, OutputStream outputStream) throws IOException; in doGet() argument
108 public String doGetWithRetry(String url) throws IOException, DataSizeException; in doGetWithRetry() argument
117 public void doGetIgnore(String url) throws IOException; in doGetIgnore() argument
128 public void doGetIgnoreWithRetry(String url) throws IOException; in doGetIgnoreWithRetry() argument
143 public String doPostWithRetry(String url, String postData) throws IOException, in doPostWithRetry() argument
160 public String doPostWithRetry(String url, String postData, String contentType) in doPostWithRetry() argument
172 public HttpURLConnection createConnection(URL url, String method, String contentType) in createConnection() argument
183 public HttpURLConnection createXmlConnection(URL url, String method) throws IOException; in createXmlConnection() argument
[all …]
DHttpMultipartPost.java47 public HttpMultipartPost(String url, IHttpHelper httpHelper) { in HttpMultipartPost() argument
49 mUrl = url; in HttpMultipartPost()
53 public HttpMultipartPost(String url) { in HttpMultipartPost() argument
54 this(url, new HttpHelper()); in HttpMultipartPost()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/
DHttpHelperTest.java115 InputStream getRemoteUrlStream(URL url) { in testDoGet_datasize()
155 InputStream getRemoteUrlStream(URL url) { in testDoGetWithRetry_datasize()
178 public String doGet(String url) throws IOException { in testDoGetWithRetry_ioexception()
209 public String doGet(String url) throws IOException, DataSizeException { in testDoGetWithRetry_retry()
214 return super.doGet(url); in testDoGetWithRetry_retry()
262 public HttpURLConnection createConnection(URL url, String method, String contentType) in testDoPostWithRetry_ioexception()
289 URL url, String method, String contentType) throws IOException { in testDoPostWithRetry_retry()
294 return super.createConnection(url, method, contentType); in testDoPostWithRetry_retry()
340 InputStream getRemoteUrlStream(URL url) { in getRemoteUrlStream() argument
348 public HttpURLConnection createConnection(URL url, String method, String contentType) in createConnection() argument
DHttpHelperFuncTest.java64 final String url = String.format("http://localhost:%d/", port); in testTimeout() local
66 http.doGet(url); in testTimeout()
106 final String url = String.format("http://localhost:%d/", port); in testNoTimeout() local
107 http.doGet(url); in testNoTimeout()
/tools/external_updater/
Darchive_utils.py71 def is_supported_archive(url): argument
73 return get_extract_func(url) is not None
76 def get_extract_func(url): argument
86 parsed_url = urllib.parse.urlparse(url)
93 if url.find('/crates.io/api/') > 0:
98 def download_and_extract(url): argument
108 print('Downloading {}'.format(url))
109 archive_file, _headers = urllib.request.urlretrieve(url)
113 get_extract_func(url)(archive_file, temporary_dir)
Dgithub_archive_updater.py64 key=lambda url: _edit_distance(url, previous_url))
91 url = f'https://api.github.com/repos/{self.owner}/{self.repo}/releases/latest'
93 with urllib.request.urlopen(url) as request:
112 url = f'https://api.github.com/repos/{self.owner}/{self.repo}/tags?page={page}'
113 with urllib.request.urlopen(url) as request:
136 url = f'https://api.github.com/repos/{self.owner}/{self.repo}/commits/master'
137 with urllib.request.urlopen(url) as request:
Dcrates_updater.py47 url = "https://crates.io/api/v1/crates/" + self.package
48 with urllib.request.urlopen(url) as request:
51 url = url + "/" + self._new_ver
52 with urllib.request.urlopen(url) as request:
62 url = 'https://crates.io' + self.dl_path
63 temporary_dir = archive_utils.download_and_extract(url)
Dexternal_updater_test.py36 url = github_archive_updater.choose_best_url(urls, previous_url)
38 self.assertEqual(url, expected_url)
41 url = github_archive_updater.choose_best_url(urls, previous_url)
43 self.assertEqual(url, expected_url)
DREADME.md37 supported url.
80 If the url type is ARCHIVE, and the url is from GitHub, `external_updater`
88 ```url
Dgit_updater.py34 for name, url in remotes.items():
36 current_remote_url = url
39 if '/platform/external/' in url:
Dupdater_utils.py41 for url in metadata.third_party.url:
43 updater = updater_cls(proj_path, url, metadata.third_party.version)
/tools/test/connectivity/acts/framework/acts/test_utils/fuchsia/
Dutils.py23 url,
47 url, out_path)
56 curl_cmd += ' --url %s > %s' % (url, file_path)
59 'Download %s to %s by ssh command %s' % (url, file_path, curl_cmd))
72 '%s is downloaded to %s successfully' % (url, file_path))
75 fd.log.warning('Fail to download %s' % url)
78 fd.log.warning('Download %s failed with exception %s' % (url, e))
86 def _generate_file_directory_and_file_name(url, out_path): argument
98 file_name = url.split('/')[-1]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/
DDownloadStressTest.py91 def download_file(self, url): argument
92 self.log.info("Start downloading: %s" % url)
95 url,
98 def download_thread(self, url): argument
99 download_status = self.download_file(url)
101 self.log.info("Success downloading: %s" % url)
103 self.log.info("Failure downloading: %s" % url)
114 for index, url in enumerate(download_urls):
116 t = threading.Thread(target=self.download_thread, args=(url, ))
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py3618 url="https://www.google.com", argument
3645 http_response = ad.data_droid.httpPing(url)
3651 ad.log.info("Http ping response for %s meet expected %s", url,
3656 ad.log.error("Http ping to %s is %s after %s second, expecting %s", url,
3661 def _generate_file_directory_and_file_name(url, out_path): argument
3662 file_name = url.split("/")[-1]
3715 def start_youtube_video(ad, url="https://www.youtube.com/watch?v=pSJoP0LR8CQ"): argument
3718 ad.adb.shell('am start -a android.intent.action.VIEW -d "%s"' % url)
3724 ad.adb.shell('am start -a android.intent.action.VIEW -d "%s"' % url)
3798 for url in file_urls:
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DTestResourceDownloader.java45 final URL url = new URL(resource.getUrl()); in download() local
46 final String protocol = url.getProtocol(); in download()
58 final List<String> cmdArgs = buildDownloadCommandArgs(url, dest); in download()
69 "Failed to download %s: command status=%s", url, result.getStatus()); in download()
79 private List<String> buildDownloadCommandArgs(URL url, File file) { in buildDownloadCommandArgs() argument
80 final String protocol = url.getProtocol(); in buildDownloadCommandArgs()
83 return ArrayUtil.list("gsutil", "cp", url.toString(), file.getAbsolutePath()); in buildDownloadCommandArgs()
88 return ArrayUtil.list("curl", "-o", file.getAbsolutePath(), "-fL", url.toString()); in buildDownloadCommandArgs()
DTestOutputUploader.java49 public void setUploadUrl(final String url) throws MalformedURLException { in setUploadUrl() argument
50 mUploadUrl = url; in setUploadUrl()
51 URL urlObj = new URL(url); in setUploadUrl()
/tools/tradefederation/core/src/com/android/tradefed/result/
DFileSystemLogSaver.java321 String url = mReportUrl; in getUrl() local
322 if (url.endsWith("/")) { in getUrl()
323 url = url.substring(0, url.length() - 1); in getUrl()
326 return String.format("%s%s", url, relativePath.replace(File.separator, "/")); in getUrl()
/tools/repohooks/tools/
Dcheckpatch.pl-update59 local url
62 url="${CGIT_URL}/scripts/checkpatch.pl?h=v${version}"
63 wget "${url}" -O checkpatch.pl
67 url="${CGIT_URL}/scripts/spelling.txt?h=v${version}"
68 wget "${url}" -O spelling.txt
/tools/acloud/setup/
Dgoogle_sdk.py169 url = GetSdkUrl()
170 filename = url[url.rfind("/") + 1:]
172 logger.info("Download file from: %s", url)
174 url_stream = urllib.request.urlopen(url)
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DLogFile.java40 public LogFile(String path, String url, LogDataType type) { in LogFile() argument
42 mUrl = url; in LogFile()
61 public LogFile(String path, String url, boolean isCompressed, LogDataType type, long size) { in LogFile() argument
63 mUrl = url; in LogFile()
/tools/metalava/src/test/java/com/android/tools/metalava/
DRewriteAnnotationsTest.kt114 val url = compiledStubs.toURI().toURL() in Test rewriting the bytecode for one of the public annotations() constant
115 val loader = URLClassLoader(arrayOf(url), null) in Test rewriting the bytecode for one of the public annotations()
151 val url = jarFile.toURI().toURL() in Test rewriting the bytecode for one of the public annotations in a jar file() constant
152 val loader = URLClassLoader(arrayOf(url), null) in Test rewriting the bytecode for one of the public annotations in a jar file()
/tools/metalava/
Dbuild.gradle.kts31 url = uri(lintRepo) in <lambda>()
199 url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") in <lambda>()
209 url.set("https://android.googlesource.com/platform/tools/metalava/") in <lambda>()
218 url = uri("file://${getDistributionDirectory().canonicalPath}/repo/m2repository") in <lambda>()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_retail_ap.py153 url, argument
175 self.visit(url)
179 page_reached = self.url.split("/")[-1] == url.split("/")[-1]
195 self.url))
/tools/asuite/atest/metrics/
Dclearcut_client.py46 def __init__(self, log_source, url=None, buffer_size=None, argument
56 self._clearcut_url = url if url else _CLEARCUT_PROD_URL

123