HomeSort by relevance Sort by last modified time
    Searched refs:targetUrl (Results 1 - 3 of 3) sorted by null

  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
BandwidthTest.java 117 String targetUrl = BandwidthTestUtil.buildDownloadUrl(
121 assertTrue(BandwidthTestUtil.DownloadFromUrl(targetUrl, tmpSaveFile));
168 String targetUrl = BandwidthTestUtil.buildDownloadUrl(
171 assertTrue(BandwidthTestUtil.DownloadFromUrl(targetUrl, tmpSaveFile));
230 String targetUrl = BandwidthTestUtil.buildDownloadUrl(
232 Log.v(LOG_TAG, "Download url: " + targetUrl);
234 assertTrue(mConnectionUtil.startDownloadAndWait(targetUrl, 500000));
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
BandwidthTestUtil.java 90 * @param targetUrl the url to download
94 public static boolean DownloadFromUrl(String targetUrl, File file) {
96 URL url = new URL(targetUrl);
ConnectionUtil.java 357 * @param targetUrl the target to download.x
361 public boolean startDownloadAndWait(String targetUrl, long timeout) {
362 if (targetUrl.length() == 0 || targetUrl == null) {
366 Request request = new Request(Uri.parse(targetUrl));
368 Log.v(LOG_TAG, "Sending download request of " + targetUrl + " to DownloadManager");
372 Log.v(LOG_TAG, "startDownloadAndWait timed out, failed to fetch " + targetUrl +
376 Log.v(LOG_TAG, "Waiting for the download to finish " + targetUrl);

Completed in 463 milliseconds