/tools/tradefederation/core/common_util/com/android/tradefed/util/net/ |
D | HttpHelper.java | 99 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 …]
|
D | IHttpHelper.java | 49 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 …]
|
D | HttpMultipartPost.java | 47 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/ |
D | HttpHelperTest.java | 115 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
|
D | HttpHelperFuncTest.java | 64 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/ |
D | archive_utils.py | 71 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)
|
D | github_archive_updater.py | 64 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:
|
D | crates_updater.py | 47 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)
|
D | external_updater_test.py | 36 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)
|
D | README.md | 37 supported url. 80 If the url type is ARCHIVE, and the url is from GitHub, `external_updater` 88 ```url
|
D | git_updater.py | 34 for name, url in remotes.items(): 36 current_remote_url = url 39 if '/platform/external/' in url:
|
D | updater_utils.py | 41 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/ |
D | utils.py | 23 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/ |
D | DownloadStressTest.py | 91 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/ |
D | tel_test_utils.py | 3618 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/ |
D | TestResourceDownloader.java | 45 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()
|
D | TestOutputUploader.java | 49 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/ |
D | FileSystemLogSaver.java | 321 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/ |
D | checkpatch.pl-update | 59 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/ |
D | google_sdk.py | 169 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/ |
D | LogFile.java | 40 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/ |
D | RewriteAnnotationsTest.kt | 114 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/ |
D | build.gradle.kts | 31 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/ |
D | wifi_retail_ap.py | 153 url, argument 175 self.visit(url) 179 page_reached = self.url.split("/")[-1] == url.split("/")[-1] 195 self.url))
|
/tools/asuite/atest/metrics/ |
D | clearcut_client.py | 46 def __init__(self, log_source, url=None, buffer_size=None, argument 56 self._clearcut_url = url if url else _CLEARCUT_PROD_URL
|