/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/ |
D | AbstractCopyJobTest.java | 47 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in runCopyFilesTest() 48 mDocs.writeDocument(testFile1, HAM_BYTES); in runCopyFilesTest() 50 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in runCopyFilesTest() 51 mDocs.writeDocument(testFile2, FRUITY_BYTES); in runCopyFilesTest() 56 mDocs.assertChildCount(mDestRoot, 2); in runCopyFilesTest() 57 mDocs.assertHasFile(mDestRoot, "test1.txt"); in runCopyFilesTest() 58 mDocs.assertHasFile(mDestRoot, "test2.txt"); in runCopyFilesTest() 59 mDocs.assertFileContents(mDestRoot.documentId, "test1.txt", HAM_BYTES); in runCopyFilesTest() 60 mDocs.assertFileContents(mDestRoot.documentId, "test2.txt", FRUITY_BYTES); in runCopyFilesTest() 64 Uri testFile = mDocs.createVirtualFile( in runCopyVirtualTypedFileTest() [all …]
|
D | MoveJobTest.java | 38 mDocs.assertChildCount(mSrcRoot, 0); in testMoveFiles() 42 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testMoveFiles_NoSrcParent() 43 mDocs.writeDocument(testFile1, HAM_BYTES); in testMoveFiles_NoSrcParent() 45 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testMoveFiles_NoSrcParent() 46 mDocs.writeDocument(testFile2, FRUITY_BYTES); in testMoveFiles_NoSrcParent() 51 mDocs.assertChildCount(mDestRoot, 2); in testMoveFiles_NoSrcParent() 52 mDocs.assertHasFile(mDestRoot, "test1.txt"); in testMoveFiles_NoSrcParent() 53 mDocs.assertHasFile(mDestRoot, "test2.txt"); in testMoveFiles_NoSrcParent() 54 mDocs.assertFileContents(mDestRoot.documentId, "test1.txt", HAM_BYTES); in testMoveFiles_NoSrcParent() 55 mDocs.assertFileContents(mDestRoot.documentId, "test2.txt", FRUITY_BYTES); in testMoveFiles_NoSrcParent() [all …]
|
D | DeleteJobTest.java | 34 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles() 35 mDocs.writeDocument(testFile1, HAM_BYTES); in testDeleteFiles() 37 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testDeleteFiles() 38 mDocs.writeDocument(testFile2, FRUITY_BYTES); in testDeleteFiles() 44 mDocs.assertChildCount(mSrcRoot, 0); in testDeleteFiles() 48 Uri testFile1 = mDocs.createDocument(mSrcRoot, "text/plain", "test1.txt"); in testDeleteFiles_NoSrcParent() 49 mDocs.writeDocument(testFile1, HAM_BYTES); in testDeleteFiles_NoSrcParent() 51 Uri testFile2 = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testDeleteFiles_NoSrcParent() 52 mDocs.writeDocument(testFile2, FRUITY_BYTES); in testDeleteFiles_NoSrcParent() 57 mDocs.assertChildCount(mSrcRoot, 0); in testDeleteFiles_NoSrcParent()
|
D | JobErrorHandlingTest.java | 39 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecoversFromInvalidUri() 41 mDocs.writeDocument(validUri, FRUITY_BYTES); in testRecoversFromInvalidUri() 49 mDocs.assertChildCount(mSrcRoot, 0); in testRecoversFromInvalidUri() 54 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testRecordsInvalidUris() 56 mDocs.writeDocument(validUri, FRUITY_BYTES); in testRecordsInvalidUris() 68 Uri validUri = mDocs.createDocument(mSrcRoot, "text/plain", "test2.txt"); in testReportsCorrectFailureCount() 70 mDocs.writeDocument(validUri, FRUITY_BYTES); in testReportsCorrectFailureCount()
|
D | CopyJobTest.java | 48 mDocs.assertChildCount(mDestRoot, 0); in testCopy_BackendSideVirtualTypedFile_Fallback() 50 Uri testFile = mDocs.createDocumentWithFlags( in testCopy_BackendSideVirtualTypedFile_Fallback() 58 mDocs.assertChildCount(mDestRoot, 1); in testCopy_BackendSideVirtualTypedFile_Fallback() 59 mDocs.assertHasFile(mDestRoot, "tokyo.sth.pdf"); // Copy should convert file to PDF. in testCopy_BackendSideVirtualTypedFile_Fallback() 71 mDocs.setLoadingDuration(500); in testCopyDirRecursively_loadingInFirstCursor()
|
D | AbstractJobTest.java | 55 DocumentsProviderHelper mDocs; field in AbstractJobTest 77 mDocs = new DocumentsProviderHelper(mUserId, AUTHORITY, mContext, AUTHORITY); in setUp() 88 mDocs.cleanUp(); in tearDown() 93 mDocs.clear(null, null); in resetStorage() 97 mSrcRoot = mDocs.getRoot(ROOT_0_ID); in initTestFiles() 98 mDestRoot = mDocs.getRoot(ROOT_1_ID); in initTestFiles()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | UrisSupplier.java | 216 private final List<Uri> mDocs; field in UrisSupplier.StandardUrisSupplier 219 mDocs = listDocs(clipData); in StandardUrisSupplier() 224 mDocs = docs; in StandardUrisSupplier() 241 return mDocs.size(); in getItemCount() 246 return mDocs; in getUris() 253 builder.append("docs=").append(mDocs.toString()); in toString() 260 dest.writeTypedList(mDocs); in writeToParcel() 264 mDocs = in.createTypedArrayList(Uri.CREATOR); in StandardUrisSupplier()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestStableIdProvider.java | 25 private final List<String> mDocs; field in TestStableIdProvider 28 mDocs = docs; in TestStableIdProvider() 33 return mDocs.get(position); in getKey() 38 return mDocs.indexOf(id); in getPosition()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | LoadDocStackTask.java | 49 private final DocumentsAccess mDocs; field in LoadDocStackTask 61 mDocs = docs; in LoadDocStackTask() 68 if (mDocs.isDocumentUri(uris[0])) { in run() 80 final Path path = mDocs.findDocumentPath(docUri, mUserId); in run() 112 List<DocumentInfo> docs = mDocs.getDocuments(root.userId, authority, path.getPath()); in buildStack()
|
D | RootsMonitor.java | 83 private final DocumentsAccess mDocs; field in RootsMonitor.HandleRootsChangedTask 102 mDocs = docs; in HandleRootsChangedTask() 124 mDefaultRootDocument = mDocs.getRootDocument(defaultRoot); in run()
|
D | AbstractActionHandler.java | 103 protected final DocumentsAccess mDocs; field in AbstractActionHandler 148 mDocs = docs; in AbstractActionHandler() 206 mDocs, in getRootDocument() 592 stack.push(mDocs.getArchiveDocument(top.derivedUri, top.userId)); in openFolderInSearchResult() 620 currentDoc = mDocs.getArchiveDocument(doc.derivedUri, doc.userId); in openChildContainer() 714 mDocs, in loadDocument()
|
D | BaseActivity.java | 100 protected DocumentsAccess mDocs; field in BaseActivity 158 mDocs = DocumentsAccess.create(this, mState); in onCreate() 347 mDocs, in onPostCreate()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersAccessTest.java | 56 private static RootInfo mDocs = buildForMimeTypes( field in ProvidersAccessTest 71 mNull, mWild, mEmpty, mImages, mAudio, mDocs, mMalformed1, mMalformed2, in setUp() 82 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_Everything() 89 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_PngOrWild() 117 newArrayList(mNull, mWild, mDocs), in testMatchingRoots_Document() 124 newArrayList(mNull, mWild, mAudio, mDocs), in testMatchingRoots_Application()
|
/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 | 44 private final DocumentsAccess mDocs; field in CreatePickedDocumentTask 62 mDocs = docs; in CreatePickedDocumentTask() 79 Uri childUri = mDocs.createDocument(cwd, mMimeType, mDisplayName); in run()
|
D | ActionHandler.java | 367 mDocs, in saveDocument()
|
D | PickActivity.java | 137 mDocs, in onCreate()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | FilesActivity.java | 143 mDocs, in onCreate()
|