Searched refs:pdfFile (Results 1 – 3 of 3) sorted by relevance
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | Utils.java | 71 File pdfFile = sFiles.get(docRes); in createRenderer() local 73 if (pdfFile == null) { in createRenderer() 74 pdfFile = File.createTempFile("pdf", null, context.getCacheDir()); in createRenderer() 77 try (OutputStream os = new BufferedOutputStream(new FileOutputStream(pdfFile))) { in createRenderer() 96 sFiles.put(docRes, pdfFile); in createRenderer() 100 ParcelFileDescriptor.open(pdfFile, ParcelFileDescriptor.MODE_READ_ONLY)); in createRenderer()
|
D | PdfDocumentTest.java | 118 File pdfFile = File.createTempFile("tmp", "pdf", mCacheDir); in writeEmptyDoc() local 119 try (OutputStream os = new FileOutputStream(pdfFile)) { in writeEmptyDoc() 132 File pdfFile = File.createTempFile("tmp", "pdf", mCacheDir); in writeWithOpenPage() local 133 try (OutputStream os = new FileOutputStream(pdfFile)) { in writeWithOpenPage() 185 File pdfFile = File.createTempFile("tmp", "pdf", mCacheDir); in writeTwoPageDocWithSameIndex() local 186 try (OutputStream os = new FileOutputStream(pdfFile)) { in writeTwoPageDocWithSameIndex() 190 try (ParcelFileDescriptor fd = ParcelFileDescriptor.open(pdfFile, in writeTwoPageDocWithSameIndex()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 765 final File pdfFile = new File(dir, NONMEDIA_FILE_NAME); in testListDirectoriesWithNonMediaFiles() local 766 final String pdfFileName = pdfFile.getName(); in testListDirectoriesWithNonMediaFiles() 773 assertThat(createFileAs(APP_B_NO_PERMS, pdfFile.getPath())).isTrue(); in testListDirectoriesWithNonMediaFiles() 785 deleteFileAsNoThrow(APP_B_NO_PERMS, pdfFile.getPath()); in testListDirectoriesWithNonMediaFiles() 1590 final File pdfFile = new File(getDownloadDir(), NONMEDIA_FILE_NAME); in testRenameFileType() local 1593 assertThat(pdfFile.createNewFile()).isTrue(); in testRenameFileType() 1596 assertCantRenameFile(pdfFile, new File(getDcimDir(), NONMEDIA_FILE_NAME)); in testRenameFileType() 1599 assertCanRenameFile(pdfFile, videoFile); in testRenameFileType() 1605 pdfFile.delete(); in testRenameFileType() 1705 final File pdfFile = new File(nonMediaDirectory, NONMEDIA_FILE_NAME); in testRenameDirectory() local [all …]
|