Home
last modified time | relevance | path

Searched refs:DocumentInfo (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DDocumentInfo.java45 public class DocumentInfo implements Durable, Parcelable { class
62 public DocumentInfo() { in DocumentInfo() method in DocumentInfo
127 public static final Creator<DocumentInfo> CREATOR = new Creator<DocumentInfo>() {
129 public DocumentInfo createFromParcel(Parcel in) {
130 final DocumentInfo doc = new DocumentInfo();
136 public DocumentInfo[] newArray(int size) {
137 return new DocumentInfo[size];
141 public static DocumentInfo fromDirectoryCursor(Cursor cursor) { in fromDirectoryCursor()
147 public static DocumentInfo fromCursor(Cursor cursor, String authority) { in fromCursor()
149 final DocumentInfo info = new DocumentInfo(); in fromCursor()
[all …]
DDocumentStack.java36 public class DocumentStack extends LinkedList<DocumentInfo> implements Durable, Parcelable {
71 for (DocumentInfo info : this) { in updateDocuments()
89 for (DocumentInfo doc : this) { in buildKey()
114 final DocumentInfo doc = new DocumentInfo(); in read()
136 final DocumentInfo doc = get(i); in write()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DDocumentsProviderHelper.java22 import static com.android.documentsui.model.DocumentInfo.getCursorString;
43 import com.android.documentsui.model.DocumentInfo;
155 List<DocumentInfo> children = listChildren(parentUri); in assertChildCount()
160 List<DocumentInfo> children = listChildren(parentId); in assertChildCount()
169 List<DocumentInfo> children = listChildren(parentUri); in assertHasFile()
170 for (DocumentInfo child : children) { in assertHasFile()
188 List<DocumentInfo> children = listChildren(parentUri); in assertHasDirectory()
189 for (DocumentInfo child : children) { in assertHasDirectory()
207 List<DocumentInfo> children = listChildren(parentUri); in assertDoesNotExist()
208 for (DocumentInfo child : children) { in assertDoesNotExist()
[all …]
DStateTest.java22 import com.android.documentsui.model.DocumentInfo;
27 private static final DocumentInfo DIR_1;
28 private static final DocumentInfo DIR_2;
33 DIR_1 = new DocumentInfo();
35 DIR_2 = new DocumentInfo();
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DFileOperationServiceTest.java30 import com.android.documentsui.model.DocumentInfo;
43 private static final DocumentInfo ALPHA_DOC = createDoc("alpha");
44 private static final DocumentInfo BETA_DOC = createDoc("alpha");
45 private static final DocumentInfo GAMMA_DOC = createDoc("gamma");
46 private static final DocumentInfo DELTA_DOC = createDoc("delta");
83 startService(createCopyIntent(new ArrayList<DocumentInfo>(), BETA_DOC)); in testRunsJobs_AfterExceptionInJobCreation()
160 private Intent createCopyIntent(ArrayList<DocumentInfo> files, DocumentInfo dest) in createCopyIntent()
168 private static DocumentInfo createDoc(String name) { in createDoc()
179 private static DocumentInfo createDoc(Uri destination) { in createDoc()
180 DocumentInfo destDoc = new DocumentInfo(); in createDoc()
[all …]
DAbstractJobTest.java33 import com.android.documentsui.model.DocumentInfo;
90 stack.push(DocumentInfo.fromUri(mResolver, destination)); in createJob()
92 List<DocumentInfo> srcDocs = Lists.newArrayList(); in createJob()
94 srcDocs.add(DocumentInfo.fromUri(mResolver, src)); in createJob()
97 return createJob(srcDocs, DocumentInfo.fromUri(mResolver, srcParent), stack); in createJob()
100 abstract T createJob(List<DocumentInfo> srcs, DocumentInfo srcParent, DocumentStack destination) in createJob()
DCopyJobTest.java25 import com.android.documentsui.model.DocumentInfo;
82 CopyJob createJob(List<DocumentInfo> srcs, DocumentInfo srcParent, DocumentStack stack) in createJob()
DDeleteJobTest.java25 import com.android.documentsui.model.DocumentInfo;
57 DeleteJob createJob(List<DocumentInfo> srcs, DocumentInfo srcParent, DocumentStack stack) in createJob()
DMoveJobTest.java26 import com.android.documentsui.model.DocumentInfo;
113 MoveJob createJob(List<DocumentInfo> srcs, DocumentInfo srcParent, DocumentStack stack) in createJob()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java26 import static com.android.documentsui.model.DocumentInfo.getCursorLong;
27 import static com.android.documentsui.model.DocumentInfo.getCursorString;
56 import com.android.documentsui.model.DocumentInfo;
75 final List<DocumentInfo> mSrcs;
76 final ArrayList<DocumentInfo> convertedFiles = new ArrayList<>();
96 String id, DocumentStack stack, List<DocumentInfo> srcs) { in CopyJob()
109 @OpType int opType, String id, DocumentStack destination, List<DocumentInfo> srcs) { in CopyJob()
234 DocumentInfo srcInfo; in start()
235 DocumentInfo dstInfo = stack.peek(); in start()
286 void processDocument(DocumentInfo src, DocumentInfo srcParent, in processDocument()
[all …]
DFileOperations.java44 import com.android.documentsui.model.DocumentInfo;
69 Activity activity, List<DocumentInfo> srcDocs, in start()
90 Activity activity, List<DocumentInfo> srcDocs, DocumentInfo srcParent, in start()
120 Activity activity, List<DocumentInfo> srcDocs, DocumentStack destination) { in copy()
144 Activity activity, List<DocumentInfo> srcDocs, DocumentInfo srcParent, in move()
170 Activity activity, List<DocumentInfo> srcDocs, DocumentInfo srcParent, in delete()
191 @OpType int operationType, Context context, String jobId, List<DocumentInfo> srcDocs, in createBaseIntent()
214 List<DocumentInfo> srcDocs, DocumentInfo srcParent, DocumentStack localeStack) { in createBaseIntent()
DMoveJob.java31 import com.android.documentsui.model.DocumentInfo;
41 final DocumentInfo mSrcParent;
54 String id, DocumentStack destination, List<DocumentInfo> srcs, DocumentInfo srcParent) { in MoveJob()
84 void processDocument(DocumentInfo src, DocumentInfo srcParent, DocumentInfo dest) in processDocument()
DDeleteJob.java29 import com.android.documentsui.model.DocumentInfo;
37 private List<DocumentInfo> mSrcs;
38 final DocumentInfo mSrcParent;
51 String id, DocumentStack stack, List<DocumentInfo> srcs, DocumentInfo srcParent) { in DeleteJob()
84 for (DocumentInfo doc : mSrcs) { in start()
DJob.java47 import com.android.documentsui.model.DocumentInfo;
76 final ArrayList<DocumentInfo> failedFiles = new ArrayList<>();
140 ContentProviderClient getClient(DocumentInfo doc) throws RemoteException { in getClient()
174 void onFileFailed(DocumentInfo file) { in onFileFailed()
186 final void deleteDocument(DocumentInfo doc, DocumentInfo parent) throws ResourceException { in deleteDocument()
293 String id, DocumentStack stack, List<DocumentInfo> srcs) { in createCopy()
300 String id, DocumentStack stack, List<DocumentInfo> srcs, in createMove()
301 DocumentInfo srcParent) { in createMove()
308 String id, DocumentStack stack, List<DocumentInfo> srcs, in createDelete()
309 DocumentInfo srcParent) { in createDelete()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/model/
DDocumentInfoTest.java25 private static final DocumentInfo TEST_DOC
38 assertFalse(TEST_DOC.equals(new DocumentInfo())); in testEquals_HandlesNullFields()
39 assertFalse(new DocumentInfo().equals(TEST_DOC)); in testEquals_HandlesNullFields()
54 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) { in createDocInfo()
55 DocumentInfo doc = new DocumentInfo(); in createDocInfo()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDocumentClipper.java30 import com.android.documentsui.model.DocumentInfo;
81 public List<DocumentInfo> getClippedDocuments() { in getClippedDocuments()
90 public List<DocumentInfo> getDocumentsFromClipData(ClipData clipData) { in getDocumentsFromClipData()
92 final List<DocumentInfo> srcDocs = new ArrayList<>(); in getDocumentsFromClipData()
111 srcDocs.add(DocumentInfo.fromCursor(cursor, itemUri.getAuthority())); in getDocumentsFromClipData()
128 public @Nullable ClipData getClipDataForDocuments(List<DocumentInfo> docs) { in getClipDataForDocuments()
132 for (DocumentInfo doc : docs) { in getClipDataForDocuments()
146 private static String[] getMimeTypes(ContentResolver resolver, List<DocumentInfo> docs) { in getMimeTypes()
148 for (DocumentInfo doc : docs) { in getMimeTypes()
163 public void clipDocuments(List<DocumentInfo> docs) { in clipDocuments()
DCreateDirectoryFragment.java46 import com.android.documentsui.model.DocumentInfo;
110 final DocumentInfo cwd = activity.getCurrentDirectory(); in createDirectory()
116 private class CreateDirectoryTask extends AsyncTask<Void, Void, DocumentInfo> {
118 private final DocumentInfo mCwd;
122 BaseActivity activity, DocumentInfo cwd, String displayName) { in CreateDirectoryTask()
134 protected DocumentInfo doInBackground(Void... params) { in doInBackground()
142 return DocumentInfo.fromUri(resolver, childUri); in doInBackground()
152 protected void onPostExecute(DocumentInfo result) { in onPostExecute()
DBaseActivity.java58 import com.android.documentsui.model.DocumentInfo;
95 public abstract void onDocumentPicked(DocumentInfo doc, Model model); in onDocumentPicked()
96 public abstract void onDocumentsPicked(List<DocumentInfo> docs); in onDocumentsPicked()
339 void onDirectoryCreated(DocumentInfo doc) { in onDirectoryCreated()
351 final DocumentInfo cwd = getCurrentDirectory(); in canCreateDirectory()
359 void openContainerDocument(DocumentInfo doc) { in openContainerDocument()
419 DocumentInfo cwd = getCurrentDirectory(); in reloadSearch()
590 public DocumentInfo getCurrentDirectory() { in getCurrentDirectory()
595 final DocumentInfo cwd = getCurrentDirectory(); in getExecutorForCurrentDirectory()
716 DocumentInfo getRootDocumentBlocking(RootInfo root) { in getRootDocumentBlocking()
[all …]
DOperationDialogFragment.java29 import com.android.documentsui.model.DocumentInfo;
59 ArrayList<DocumentInfo> failedSrcList, DocumentStack dstStack, in show()
82 final ArrayList<DocumentInfo> srcList = getArguments().getParcelableArrayList( in onCreateDialog()
114 for (DocumentInfo documentInfo : srcList) { in onCreateDialog()
DMimePredicate.java22 import com.android.documentsui.model.DocumentInfo;
25 public class MimePredicate implements Predicate<DocumentInfo> {
40 public boolean apply(DocumentInfo doc) { in apply()
DSaveFragment.java35 import com.android.documentsui.model.DocumentInfo;
43 private DocumentInfo mReplaceTarget;
156 public void setReplaceTarget(DocumentInfo replaceTarget) { in setReplaceTarget()
166 public void prepareForDirectory(DocumentInfo cwd) { in prepareForDirectory()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java24 import static com.android.documentsui.model.DocumentInfo.getCursorInt;
25 import static com.android.documentsui.model.DocumentInfo.getCursorString;
101 import com.android.documentsui.model.DocumentInfo;
172 private DocumentInfo mDocument;
367 final DocumentInfo doc = DocumentInfo.fromDirectoryCursor(cursor); in handleViewItem()
722 void onDocumentsReady(List<DocumentInfo> docs) { in openDocuments()
734 void onDocumentsReady(List<DocumentInfo> docs) { in shareDocuments()
738 List<DocumentInfo> docsForSend = new ArrayList<>(); in shareDocuments()
739 for (DocumentInfo doc: docs) { in shareDocuments()
746 final DocumentInfo doc = docsForSend.get(0); in shareDocuments()
[all …]
DRenameDocumentFragment.java51 import com.android.documentsui.model.DocumentInfo;
58 private DocumentInfo mDocument;
61 public static void show(FragmentManager fm, DocumentInfo document) { in show()
195 private class RenameDocumentsTask extends AsyncTask<DocumentInfo, Void, DocumentInfo> {
210 protected DocumentInfo doInBackground(DocumentInfo... document) { in doInBackground()
220 return DocumentInfo.fromUri(resolver, newUri); in doInBackground()
230 protected void onPostExecute(DocumentInfo result) { in onPostExecute()
DModel.java23 import static com.android.documentsui.model.DocumentInfo.getCursorLong;
24 import static com.android.documentsui.model.DocumentInfo.getCursorString;
39 import com.android.documentsui.model.DocumentInfo;
69 @Nullable DocumentInfo doc;
392 List<DocumentInfo> getDocuments(Selection items) { in getDocuments()
395 final List<DocumentInfo> docs = new ArrayList<>(size); in getDocuments()
403 docs.add(DocumentInfo.fromDirectoryCursor(cursor)); in getDocuments()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DModelTest.java35 import com.android.documentsui.model.DocumentInfo;
152 DocumentInfo.getCursorString(cOut, RootCursorWrapper.COLUMN_AUTHORITY); in testModelIdIsUnique()
153 String docId = DocumentInfo.getCursorString(cOut, Document.COLUMN_DOCUMENT_ID); in testModelIdIsUnique()
194 names.add(DocumentInfo.getCursorString(c, Document.COLUMN_DISPLAY_NAME)); in testSort_names()
216 int size = DocumentInfo.getCursorInt(c, Document.COLUMN_SIZE); in testSort_sizes()
253 String mimeType = DocumentInfo.getCursorString(cOut, Document.COLUMN_MIME_TYPE); in testSort_sizesWithBucketing()
265 int size = DocumentInfo.getCursorInt(c, Document.COLUMN_SIZE); in testSort_sizesWithBucketing()

12