Searched refs:targetUrl (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 122 String targetUrl = BandwidthTestUtil.buildDownloadUrl( in downloadFile() local 126 assertTrue(BandwidthTestUtil.DownloadFromUrl(targetUrl, tmpSaveFile)); in downloadFile() 173 String targetUrl = BandwidthTestUtil.buildDownloadUrl( in uploadFile() local 176 assertTrue(BandwidthTestUtil.DownloadFromUrl(targetUrl, tmpSaveFile)); in uploadFile() 235 String targetUrl = BandwidthTestUtil.buildDownloadUrl( in downloadFileUsingDownloadManager() local 237 Log.v(LOG_TAG, "Download url: " + targetUrl); in downloadFileUsingDownloadManager() 239 assertTrue(mConnectionUtil.startDownloadAndWait(targetUrl, 500000)); in downloadFileUsingDownloadManager()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | ConnectionUtil.java | 361 public boolean startDownloadAndWait(String targetUrl, long timeout) { in startDownloadAndWait() argument 362 if (targetUrl.length() == 0 || targetUrl == null) { in startDownloadAndWait() 366 Request request = new Request(Uri.parse(targetUrl)); in startDownloadAndWait() 368 Log.v(LOG_TAG, "Sending download request of " + targetUrl + " to DownloadManager"); in startDownloadAndWait() 372 Log.v(LOG_TAG, "startDownloadAndWait timed out, failed to fetch " + targetUrl + in startDownloadAndWait() 376 Log.v(LOG_TAG, "Waiting for the download to finish " + targetUrl); in startDownloadAndWait()
|
D | BandwidthTestUtil.java | 94 public static boolean DownloadFromUrl(String targetUrl, File file) { in DownloadFromUrl() argument 96 URL url = new URL(targetUrl); in DownloadFromUrl()
|