/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/ |
D | AbstractCopyJobTest.java | 40 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFilesTest() 41 mDocs.writeDocument(testFile1, HAM_BYTES); in runCopyFilesTest() 43 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in runCopyFilesTest() 44 mDocs.writeDocument(testFile2, FRUITY_BYTES); in runCopyFilesTest() 49 mDocs.assertChildCount(mDestRoot, 2); in runCopyFilesTest() 50 mDocs.assertHasFile(mDestRoot, "test1.txt"); in runCopyFilesTest() 51 mDocs.assertHasFile(mDestRoot, "test2.txt"); in runCopyFilesTest() 52 mDocs.assertFileContents(mDestRoot.documentId, "test1.txt", HAM_BYTES); in runCopyFilesTest() 53 mDocs.assertFileContents(mDestRoot.documentId, "test2.txt", FRUITY_BYTES); in runCopyFilesTest() 57 Uri testFile = mDocs.createVirtualFile( in runCopyVirtualTypedFileTest() [all …]
|
D | MoveJobTest.java | 36 mDocs.assertChildCount(mSrcRoot, 0); in testMoveFiles() 40 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testMoveFiles_NoSrcParent() 41 mDocs.writeDocument(testFile1, HAM_BYTES); in testMoveFiles_NoSrcParent() 43 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testMoveFiles_NoSrcParent() 44 mDocs.writeDocument(testFile2, FRUITY_BYTES); in testMoveFiles_NoSrcParent() 49 mDocs.assertChildCount(mDestRoot, 2); in testMoveFiles_NoSrcParent() 50 mDocs.assertHasFile(mDestRoot, "test1.txt"); in testMoveFiles_NoSrcParent() 51 mDocs.assertHasFile(mDestRoot, "test2.txt"); in testMoveFiles_NoSrcParent() 52 mDocs.assertFileContents(mDestRoot.documentId, "test1.txt", HAM_BYTES); in testMoveFiles_NoSrcParent() 53 mDocs.assertFileContents(mDestRoot.documentId, "test2.txt", FRUITY_BYTES); in testMoveFiles_NoSrcParent() [all …]
|
D | DeleteJobTest.java | 33 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles() 34 mDocs.writeDocument(testFile1, HAM_BYTES); in testDeleteFiles() 36 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testDeleteFiles() 37 mDocs.writeDocument(testFile2, FRUITY_BYTES); in testDeleteFiles() 43 mDocs.assertChildCount(mSrcRoot, 0); in testDeleteFiles() 47 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles_NoSrcParent() 48 mDocs.writeDocument(testFile1, HAM_BYTES); in testDeleteFiles_NoSrcParent() 50 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testDeleteFiles_NoSrcParent() 51 mDocs.writeDocument(testFile2, FRUITY_BYTES); in testDeleteFiles_NoSrcParent() 56 mDocs.assertChildCount(mSrcRoot, 0); in testDeleteFiles_NoSrcParent()
|
D | JobErrorHandlingTest.java | 37 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecoversFromInvalidUri() 39 mDocs.writeDocument(validUri, FRUITY_BYTES); in testRecoversFromInvalidUri() 47 mDocs.assertChildCount(mSrcRoot, 0); in testRecoversFromInvalidUri() 52 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecordsInvalidUris() 54 mDocs.writeDocument(validUri, FRUITY_BYTES); in testRecordsInvalidUris() 66 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testReportsCorrectFailureCount() 68 mDocs.writeDocument(validUri, FRUITY_BYTES); in testReportsCorrectFailureCount()
|
D | CopyJobTest.java | 47 mDocs.assertChildCount(mDestRoot, 0); in testCopy_BackendSideVirtualTypedFile_Fallback() 49 Uri testFile = mDocs.createDocumentWithFlags( in testCopy_BackendSideVirtualTypedFile_Fallback() 57 mDocs.assertChildCount(mDestRoot, 1); in testCopy_BackendSideVirtualTypedFile_Fallback() 58 mDocs.assertHasFile(mDestRoot, "tokyo.sth.pdf"); // Copy should convert file to PDF. in testCopy_BackendSideVirtualTypedFile_Fallback() 70 mDocs.setLoadingDuration(500); in testCopyDirRecursively_loadingInFirstCursor()
|
D | AbstractJobTest.java | 54 DocumentsProviderHelper mDocs; field in AbstractJobTest 76 mDocs = new DocumentsProviderHelper(AUTHORITY, mClient); in setUp() 93 mSrcRoot = mDocs.getRoot(ROOT_0_ID); in initTestFiles() 94 mDestRoot = mDocs.getRoot(ROOT_1_ID); in initTestFiles()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | UrisSupplier.java | 210 private final List<Uri> mDocs; field in UrisSupplier.StandardUrisSupplier 213 mDocs = listDocs(clipData); in StandardUrisSupplier() 218 mDocs = docs; in StandardUrisSupplier() 235 return mDocs.size(); in getItemCount() 240 return mDocs; in getUris() 247 builder.append("docs=").append(mDocs.toString()); in toString() 254 dest.writeTypedList(mDocs); in writeToParcel() 258 mDocs = in.createTypedArrayList(Uri.CREATOR); in StandardUrisSupplier()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersCacheTest.java | 41 private static RootInfo mDocs = buildForMimeTypes( field in ProvidersCacheTest 55 mNull, mWild, mEmpty, mImages, mAudio, mDocs, mMalformed1, mMalformed2); in setUp() 66 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_Everything() 80 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_DirectoryCopy() 87 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_PngOrWild() 115 newArrayList(mNull, mWild, mDocs), in testMatchingRoots_Document() 122 newArrayList(mNull, mWild, mAudio, mDocs), in testMatchingRoots_Application()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/ |
D | TermsListAdapterTest.java | 44 private List<TermsDocument> mDocs; field in TermsListAdapterTest 55 mDocs = Arrays.asList(doc1, doc2, doc3); in setUp() 65 TermsListAdapter adapter = new TermsListAdapter(mDocs, mLayoutInflater, mContextMenuMaker, in returnsCorrectDocument() 69 for (int i = 0; i < mDocs.size(); i++) { in returnsCorrectDocument() 71 assertThat(adapter.getChild(i, 0), sameInstance(mDocs.get(i))); in returnsCorrectDocument() 72 assertThat(adapter.getGroup(i), sameInstance(mDocs.get(i))); in returnsCorrectDocument()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | LoadDocStackTask.java | 47 private final DocumentsAccess mDocs; field in LoadDocStackTask 57 mDocs = docs; in LoadDocStackTask() 64 if (mDocs.isDocumentUri(uris[0])) { in run() 76 final Path path = mDocs.findDocumentPath(docUri); in run() 107 List<DocumentInfo> docs = mDocs.getDocuments(authority, path.getPath()); in buildStack()
|
D | AbstractActionHandler.java | 94 protected final DocumentsAccess mDocs; field in AbstractActionHandler 137 mDocs = docs; in AbstractActionHandler() 188 mDocs, in getRootDocument() 374 currentDoc = mDocs.getArchiveDocument(doc.derivedUri); in openChildContainer() 446 mDocs, in loadDocument()
|
D | RootsMonitor.java | 84 private final DocumentsAccess mDocs; field in RootsMonitor.HandleRootsChangedTask 103 mDocs = docs; in HandleRootsChangedTask() 125 mDefaultRootDocument = mDocs.getRootDocument(defaultRoot); in run()
|
D | BaseActivity.java | 86 protected DocumentsAccess mDocs; field in BaseActivity 140 mDocs = DocumentsAccess.create(this); in onCreate() 216 mDocs, in onPostCreate()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | GetRootDocumentTask.java | 42 private final DocumentsAccess mDocs; field in GetRootDocumentTask 52 mDocs = docs; in GetRootDocumentTask() 58 return mDocs.getRootDocument(mRootInfo); in run()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | CreatePickedDocumentTask.java | 43 private final DocumentsAccess mDocs; field in CreatePickedDocumentTask 61 mDocs = docs; in CreatePickedDocumentTask() 78 Uri childUri = mDocs.createDocument(cwd, mMimeType, mDisplayName); in run()
|
D | PickActivity.java | 112 mDocs, in onCreate()
|
D | ActionHandler.java | 288 mDocs, in saveDocument()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | FilesActivity.java | 129 mDocs, in onCreate()
|