From f5699308bc41c39ccbb388feb00a248304f30c54 Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Fri, 7 Jan 2011 11:39:25 -0800 Subject: downloadmanager should use "files" dir - not "cache" dir to store its files data/data/com.android.providers.downlaods/cache is being used to store the downloaded files, when the user doesn't specify the destination path. but system seems to remove files from this dir EVEN when space is running low. bug:3324673 instead, let DownloadManager use data/data/com.android.providers.downlaods/files dir Downlaodmanager manages its space anyway. Change-Id: I2eb15570395a214477891f50f635fada0b466544 --- .../com/android/providers/downloads/DownloadManagerFunctionalTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src/com/android/providers') diff --git a/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java b/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java index c3ac8904..fac905f8 100644 --- a/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java +++ b/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java @@ -65,7 +65,7 @@ public class DownloadManagerFunctionalTest extends AbstractDownloadManagerFuncti Integer.toString(Downloads.Impl.DESTINATION_CACHE_PARTITION)); runUntilStatus(downloadUri, Downloads.Impl.STATUS_SUCCESS); assertEquals(FILE_CONTENT, getDownloadContents(downloadUri)); - assertStartsWith(getContext().getCacheDir().getAbsolutePath(), + assertStartsWith(getContext().getFilesDir().getAbsolutePath(), getDownloadFilename(downloadUri)); } -- cgit v1.2.3