Lines Matching refs:dir

110         File dir = getEmptyDir("testAddFile");
113 File f0 = new File(dir, "f0.txt");
114 File f1 = new File(dir, "f1.txt.gz");
115 File f2 = new File(dir, "f2.dat");
116 File f3 = new File(dir, "f2.dat.gz");
177 File dir = getEmptyDir("testAddEntriesInTheFuture");
181 FileWriter w0 = new FileWriter(new File(dir, "DropBoxTest@" + (before + 5000) + ".txt"));
186 FileWriter w1 = new FileWriter(new File(dir, "DropBoxTest@" + (before + 100000) + ".txt"));
191 File f2 = new File(dir, "DropBoxTest@" + (before + 100001) + ".txt.gz");
197 new FileOutputStream(new File(dir, "DropBoxTest@" + (before + 100002) + ".lost")).close();
199 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
281 File dir = getEmptyDir("testGetNextEntry");
282 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
327 File dir = getEmptyDir("testSizeLimits");
328 int blockSize = new StatFs(dir.getPath()).getBlockSize();
345 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
429 File dir = getEmptyDir("testAgeLimits");
430 int blockSize = new StatFs(dir.getPath()).getBlockSize();
440 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
469 File dir = getEmptyDir("testFileCountLimits");
471 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
522 File dir = new File(getEmptyDir("testCreateDropBoxManagerWith"), "InvalidDirectory");
523 new FileOutputStream(dir).close(); // Create an empty file
524 DropBoxManagerService service = new DropBoxManagerService(getContext(), dir);
531 dir.delete(); // Remove the file so a directory can be created
546 File dir = getEmptyDir("testDropBoxEntrySerialization");
572 File f = new File(dir, "file.dat");
585 new DropBoxManager.Entry("badfile", 99999, new File(dir, "nonexist.dat"), 0);
606 File gz = new File(dir, "file.gz");
711 File dir = getEmptyDir("testDropBoxEntrySerialization");
712 File f = new File(dir, "file.dat");
766 File dir = getContext().getDir("DropBoxTest." + name, 0);
767 for (File f : dir.listFiles()) recursiveDelete(f);
768 assertTrue(dir.listFiles().length == 0);
769 return dir;