diff options
Diffstat (limited to 'tests/src/com/android/providers/downloads')
-rw-r--r-- | tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java | 5 |
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 { |