summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/providers/downloads
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-05-01 03:02:14 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-05-01 03:02:14 +0000
commit1a2ddf0a75e755b3e9d98148a54014ca8c4d412b (patch)
tree74d93cb18ce5383527a76bec896cdae6788e2220 /tests/src/com/android/providers/downloads
parent8f2879758e870b8e2e65ac5b152930a0293968ed (diff)
parent178b6d89e9799473679a0d50417bda8bae2ec963 (diff)
downloadandroid_packages_providers_DownloadProvider-1a2ddf0a75e755b3e9d98148a54014ca8c4d412b.tar.gz
android_packages_providers_DownloadProvider-1a2ddf0a75e755b3e9d98148a54014ca8c4d412b.tar.bz2
android_packages_providers_DownloadProvider-1a2ddf0a75e755b3e9d98148a54014ca8c4d412b.zip
Snap for 5519018 from 178b6d89e9799473679a0d50417bda8bae2ec963 to qt-release
Change-Id: Id473234167b852783e1afeba615cd27774c5ee42
Diffstat (limited to 'tests/src/com/android/providers/downloads')
-rw-r--r--tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
index 97bc4a22..cabcc313 100644
--- a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
+++ b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
@@ -85,8 +85,9 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest {
mNotifManager = getContext().getSystemService(NotificationManager.class);
mDownloadManager = getContext().getSystemService(DownloadManager.class);
- mTestDirectory = new File(Environment.getExternalStorageDirectory() + File.separator
- + "download_manager_functional_test");
+ mTestDirectory = new File(Environment.getExternalStoragePublicDirectory(
+ Environment.DIRECTORY_DOWNLOADS)
+ + File.separator + "download_manager_functional_test");
if (mTestDirectory.exists()) {
IoUtils.deleteContents(mTestDirectory);
} else {