commit | 14b92415d5eadf9d2710dbe92c5db4d963c90935 | [log] [tgz] |
---|---|---|
author | Brad Ebinger <breadley@google.com> | Mon Oct 09 11:25:01 2017 -0700 |
committer | Brad Ebinger <breadley@google.com> | Mon Oct 09 11:25:01 2017 -0700 |
tree | b5a5e6952cc70cd0ad3e1777a4eec264d8232b14 | |
parent | 20281e2f7cbd2c95b67570f1a9166a3b82d5cd84 [diff] |
Modify TestApps to use mandatory source URI Modifies the TestApps to use the new mandatory DownloadRequest#Builder constructor. Test: Manual, Run TestApps Change-Id: I3ab21db90f3b998c8ef1d068e2410d6afe5982a7
diff --git a/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/EmbmsSampleDownloadService.java b/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/EmbmsSampleDownloadService.java index dcb7320..8c87071 100644 --- a/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/EmbmsSampleDownloadService.java +++ b/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/EmbmsSampleDownloadService.java
@@ -348,8 +348,7 @@ } // Take a round-trip through the download request serialization to exercise it - DownloadRequest request1 = new DownloadRequest.Builder() - .setSource(request.getSourceUri()) + DownloadRequest request1 = new DownloadRequest.Builder(request.getSourceUri()) .setSubscriptionId(request.getSubscriptionId()) .setServiceId(request.getFileServiceId()) .setOpaqueData(request.getOpaqueData())
diff --git a/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/EmbmsTestDownloadApp.java b/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/EmbmsTestDownloadApp.java index 23f2cc5..496f9e9 100644 --- a/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/EmbmsTestDownloadApp.java +++ b/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/EmbmsTestDownloadApp.java
@@ -321,9 +321,8 @@ Intent completionIntent = new Intent(DOWNLOAD_DONE_ACTION); completionIntent.setClass(this, DownloadCompletionReceiver.class); - DownloadRequest request = new DownloadRequest.Builder() + DownloadRequest request = new DownloadRequest.Builder(sourceUriBuilder.build()) .setServiceInfo(info) - .setSource(sourceUriBuilder.build()) .setAppIntent(completionIntent) .setSubscriptionId(SubscriptionManager.getDefaultSubscriptionId()) .build();