Home
last modified time | relevance | path

Searched refs:docs (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DMessageBuilder.java45 public String generateDeleteMessage(List<DocumentInfo> docs) { in generateDeleteMessage() argument
49 for (DocumentInfo doc : docs) { in generateDeleteMessage()
55 if (docs.size() == 1) { in generateDeleteMessage()
60 String displayName = BidiFormatter.getInstance().unicodeWrap(docs.get(0).displayName); in generateDeleteMessage()
69 R.plurals.delete_files_confirmation_message, docs.size()); in generateDeleteMessage()
70 } else if (dirsCount == docs.size()) { in generateDeleteMessage()
73 R.plurals.delete_folders_confirmation_message, docs.size()); in generateDeleteMessage()
77 R.plurals.delete_items_confirmation_message, docs.size()); in generateDeleteMessage()
83 @DialogType int dialogType, @OpType int operationType, List<DocumentInfo> docs, in generateListMessage() argument
119 for (DocumentInfo documentInfo : docs) { in generateListMessage()
[all …]
DDialogController.java40 void confirmDelete(List<DocumentInfo> docs, ConfirmationCallback callback); in confirmDelete() argument
61 public void confirmDelete(List<DocumentInfo> docs, ConfirmationCallback callback) { in confirmDelete() argument
62 assert(!docs.isEmpty()); in confirmDelete()
67 message.setText(mMessages.generateDeleteMessage(docs)); in confirmDelete()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java69 mEnv.docs, in setUp()
113 mEnv.docs.nextPath = new Path( in testOpensContainerDocuments_jumpToNewLocation()
116 mEnv.docs.nextDocuments = Arrays.asList(TestEnv.FOLDER_1, TestEnv.FOLDER_2); in testOpensContainerDocuments_jumpToNewLocation()
122 assertEquals(mEnv.docs.nextPath.getPath().size(), mEnv.state.stack.size()); in testOpensContainerDocuments_jumpToNewLocation()
132 mEnv.docs.nextDocuments = Arrays.asList(TestEnv.FOLDER_1, TestEnv.FOLDER_2); in testOpensContainerDocuments_pushToRootDoc_NoFindPathSupport()
157 mEnv.docs.nextIsDocumentsUri = true; in testLaunchToDocuments()
158 mEnv.docs.nextPath = new Path( in testLaunchToDocuments()
164 mEnv.docs.nextDocuments = in testLaunchToDocuments()
179 mEnv.docs.nextIsDocumentsUri = true; in testLaunchToDocuments_convertsTreeUriToDocumentUri()
180 mEnv.docs.nextPath = new Path( in testLaunchToDocuments_convertsTreeUriToDocumentUri()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentStack.java66 public DocumentStack(RootInfo root, DocumentInfo... docs) { in DocumentStack() argument
68 for (int i = 0; i < docs.length; ++i) { in DocumentStack()
69 mList.add(docs[i]); in DocumentStack()
79 public DocumentStack(RootInfo root, List<DocumentInfo> docs) { in DocumentStack() argument
80 mList = new LinkedList<>(docs); in DocumentStack()
88 public DocumentStack(DocumentStack src, DocumentInfo... docs) { in DocumentStack() argument
90 for (DocumentInfo doc : docs) { in DocumentStack()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java94 DocumentsAccess docs, in ActionHandler() argument
102 super(activity, state, providers, docs, searchMgr, executors, injector); in ActionHandler()
303 List<DocumentInfo> docs = mModel.getDocuments(selection); in deleteSelectedDocuments() local
338 mDialogs.confirmDelete(docs, result); in deleteSelectedDocuments()
350 List<DocumentInfo> docs = mModel.loadDocuments( in shareSelectedDocuments() local
355 if (docs.size() == 1) { in shareSelectedDocuments()
357 DocumentInfo doc = docs.get(0); in shareSelectedDocuments()
361 } else if (docs.size() > 1) { in shareSelectedDocuments()
366 for (DocumentInfo doc : docs) { in shareSelectedDocuments()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java320 mEnv.docs.nextDocument = TestEnv.FILE_ARCHIVE; in testDocumentPicked_OpensArchives()
372 mEnv.docs.nextIsDocumentsUri = true; in testInitLocation_LaunchToDocuments()
373 mEnv.docs.nextPath = new Path( in testInitLocation_LaunchToDocuments()
378 mEnv.docs.nextDocuments = in testInitLocation_LaunchToDocuments()
414 mEnv.docs.nextRootDocument = TestEnv.FOLDER_0; in testClipper_suppliedCorrectClipData()
419 mEnv.docs, in testClipper_suppliedCorrectClipData()
448 mEnv.docs, in testClipper_notCalledIfDestInSelection()
457 localState.add(mEnv.docs.getRootDocument(TestProvidersAccess.DOWNLOADS)); in testClipper_notCalledIfDestInSelection()
547 mEnv.docs, in createHandler()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DDocumentStackAsserts.java18 public static void assertEqualsTo(DocumentStack stack, RootInfo root, List<DocumentInfo> docs) { in assertEqualsTo() argument
20 assertEquals(docs.size(), stack.size()); in assertEqualsTo()
21 for (int i = 0; i < docs.size(); ++i) { in assertEqualsTo()
22 assertEquals(docs.get(i), stack.get(i)); in assertEqualsTo()
DSelectionManagers.java35 public static SelectionManager createTestInstance(List<String> docs) { in createTestInstance() argument
36 return createTestInstance(docs, SelectionManager.MODE_MULTIPLE); in createTestInstance()
40 List<String> docs, @SelectionMode int mode) { in createTestInstance() argument
42 new TestDocumentsAdapter(docs), in createTestInstance()
DTestDocumentsProvider.java95 public void setNextChildDocumentsReturns(DocumentInfo... docs) { in setNextChildDocumentsReturns() argument
96 mNextChildDocuments = createDocumentsCursor(docs); in setNextChildDocumentsReturns()
99 private Cursor createDocumentsCursor(DocumentInfo... docs) { in createDocumentsCursor() argument
101 for (DocumentInfo doc : docs) { in createDocumentsCursor()
DDocsProviders.java28 public static UrisSupplier createDocsProvider(List<Uri> docs) { in createDocsProvider() argument
29 return new UrisSupplier.StandardUrisSupplier(docs); in createDocsProvider()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DUrisSupplier.java217 public StandardUrisSupplier(List<Uri> docs) { in StandardUrisSupplier() argument
218 mDocs = docs; in StandardUrisSupplier()
222 ArrayList<Uri> docs = new ArrayList<>(clipData.getItemCount()); in listDocs() local
227 docs.add(uri); in listDocs()
230 return docs; in listDocs()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DLoadDocStackTask.java53 DocumentsAccess docs, in LoadDocStackTask() argument
57 mDocs = docs; in LoadDocStackTask()
107 List<DocumentInfo> docs = mDocs.getDocuments(authority, path.getPath()); in buildStack() local
109 return new DocumentStack(root, docs); in buildStack()
DRootsMonitor.java51 final DocumentsAccess docs, in RootsMonitor() argument
64 docs, in RootsMonitor()
96 DocumentsAccess docs, in HandleRootsChangedTask() argument
103 mDocs = docs; in HandleRootsChangedTask()
DDragShadowBuilder.java163 final List<DocumentInfo> docs = mModel.getDocuments(selection); in getSingleSelectedDocument() local
164 assert (docs.size() == 1); in getSingleSelectedDocument()
165 return docs.get(0); in getSingleSelectedDocument()
DModel.java223 final List<DocumentInfo> docs = new ArrayList<>(size); in loadDocuments() local
228 docs.add(doc); in loadDocuments()
231 return docs; in loadDocuments()
DAbstractActionHandler.java122 DocumentsAccess docs, in AbstractActionHandler() argument
131 assert(docs != null); in AbstractActionHandler()
137 mDocs = docs; in AbstractActionHandler()
581 void onDocumentsPicked(List<DocumentInfo> docs); in onDocumentsPicked() argument
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java720 List<DocumentInfo> docs = mModel.getDocuments(selected); in openDocuments() local
721 if (docs.size() > 1) { in openDocuments()
722 mActivity.onDocumentsPicked(docs); in openDocuments()
724 mActivity.onDocumentPicked(docs.get(0)); in openDocuments()
811 List<DocumentInfo> docs = mModel.getDocuments(selected); in transferDocuments() local
817 intent.putExtra(Shared.EXTRA_DIRECTORY_COPY, hasDirectory(docs)); in transferDocuments()
836 private static boolean hasDirectory(List<DocumentInfo> docs) { in hasDirectory() argument
837 for (DocumentInfo info : docs) { in hasDirectory()
853 List<DocumentInfo> docs = mModel.getDocuments(selected); in renameDocuments() local
854 RenameDocumentFragment.show(getChildFragmentManager(), docs.get(0)); in renameDocuments()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java74 mEnv.docs, in setUp()
115 mEnv.docs.nextIsDocumentsUri = true; in testInitLocation_LaunchToDocuments()
116 mEnv.docs.nextPath = new Path( in testInitLocation_LaunchToDocuments()
122 mEnv.docs.nextDocuments = in testInitLocation_LaunchToDocuments()
255 mEnv.docs.assertCreatedDocument(TestEnv.FOLDER_1, mimeType, displayName); in testSaveDocument_SetsCorrectResultAndFinishes()
256 final Uri docUri = mEnv.docs.getLastCreatedDocumentUri(); in testSaveDocument_SetsCorrectResultAndFinishes()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DActionHandler.java82 DocumentsAccess docs, in ActionHandler() argument
88 super(activity, state, providers, docs, searchMgr, executors, injector); in ActionHandler()
307 void finishPicking(Uri... docs) { in finishPicking() argument
313 onPickFinished(docs); in finishPicking()
DPickActivity.java301 public void onDocumentsPicked(List<DocumentInfo> docs) { in onDocumentsPicked() argument
303 final int size = docs.size(); in onDocumentsPicked()
306 uris[i] = docs.get(i).derivedUri; in onDocumentsPicked()
DCreatePickedDocumentTask.java52 DocumentsAccess docs, in CreatePickedDocumentTask() argument
61 mDocs = docs; in CreatePickedDocumentTask()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DGetRootDocumentTask.java48 DocumentsAccess docs, in GetRootDocumentTask() argument
52 mDocs = docs; in GetRootDocumentTask()
/packages/inputmethods/OpenWnn/
DREADME.txt23 . Java docs of the IME (HTML)
56 *.html Java docs of the IME
/packages/apps/LegacyCamera/jni/feature_mos/doc/
DReadme.txt1 To generate the html docs, execute
/packages/apps/LegacyCamera/jni/feature_stab/doc/
DReadme.txt1 To generate the html docs, execute

12