Home
last modified time | relevance | path

Searched refs:pdfFile (Results 1 – 3 of 3) sorted by relevance

/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfDocumentTest.java117 File pdfFile = File.createTempFile("tmp", "pdf", mCacheDir); in writeEmptyDoc() local
118 try (OutputStream os = new FileOutputStream(pdfFile)) { in writeEmptyDoc()
131 File pdfFile = File.createTempFile("tmp", "pdf", mCacheDir); in writeWithOpenPage() local
132 try (OutputStream os = new FileOutputStream(pdfFile)) { in writeWithOpenPage()
184 File pdfFile = File.createTempFile("tmp", "pdf", mCacheDir); in writeTwoPageDocWithSameIndex() local
185 try (OutputStream os = new FileOutputStream(pdfFile)) { in writeTwoPageDocWithSameIndex()
189 try (ParcelFileDescriptor fd = ParcelFileDescriptor.open(pdfFile, in writeTwoPageDocWithSameIndex()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DUtils.java146 File pdfFile = sFiles.get(docRes); in getParcelFileDescriptorFromResourceId() local
147 if (pdfFile == null) { in getParcelFileDescriptorFromResourceId()
148 pdfFile = File.createTempFile("pdf", null, context.getCacheDir()); in getParcelFileDescriptorFromResourceId()
153 FileOutputStream outputStream = new FileOutputStream(pdfFile); in getParcelFileDescriptorFromResourceId()
165 sFiles.put(docRes, pdfFile); in getParcelFileDescriptorFromResourceId()
168 ParcelFileDescriptor.open(pdfFile, ParcelFileDescriptor.MODE_READ_ONLY)); in getParcelFileDescriptorFromResourceId()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java786 final File pdfFile = new File(dir, NONMEDIA_FILE_NAME); in testListDirectoriesWithNonMediaFiles() local
787 final String pdfFileName = pdfFile.getName(); in testListDirectoriesWithNonMediaFiles()
794 assertThat(createFileAs(APP_B_NO_PERMS, pdfFile.getPath())).isTrue(); in testListDirectoriesWithNonMediaFiles()
806 deleteFileAsNoThrow(APP_B_NO_PERMS, pdfFile.getPath()); in testListDirectoriesWithNonMediaFiles()
1681 final File pdfFile = new File(getDownloadDir(), NONMEDIA_FILE_NAME); in testRenameFileType() local
1684 assertThat(pdfFile.createNewFile()).isTrue(); in testRenameFileType()
1687 assertCantRenameFile(pdfFile, new File(getDcimDir(), NONMEDIA_FILE_NAME)); in testRenameFileType()
1690 assertCanRenameFile(pdfFile, videoFile); in testRenameFileType()
1696 pdfFile.delete(); in testRenameFileType()
1830 final File pdfFile = new File(nonMediaDirectory, NONMEDIA_FILE_NAME); in testRenameDirectory() local
[all …]