Lines Matching refs:dir
46 * Manages the storage space consumed by Downloads Data dir. When space falls below
47 * a threshold limit (set in resource xml files), starts cleanup of the Downloads data dir
51 /** the max amount of space allowed to be taken up by the downloads data dir */
69 /** The downloaded files are saved to this dir. it is the value returned by
147 File dir = null;
159 dir = mDownloadDataDir;
162 dir = mExternalStorageDir;
165 dir = mSystemCacheDir;
169 dir = mExternalStorageDir;
171 dir = mDownloadDataDir;
173 dir = mSystemCacheDir;
177 if (dir == null) {
181 findSpace(dir, length, destination);
205 * threshold typically is 10% of download data dir space quota.
215 * If this is system cache dir, print a warning.
221 Log.w(Constants.TAG, "System cache dir ('/cache') is running low on space." +
231 // this download is going into downloads data dir. check space in that specific dir.
235 Log.w(Constants.TAG, "Downloads data dir: " + root +
253 * returns the number of bytes available in the downloads data dir
267 Log.i(Constants.TAG, "available space (in bytes) in downloads data dir: " + space);
366 * Removes files in the systemcache and downloads data dir without corresponding entries in
376 // get a list of all files in system cache dir and downloads data dir