Home
last modified time | relevance | path

Searched refs:StubDocument (Results 1 – 2 of 2) sorted by relevance

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java88 private final Map<String, StubDocument> mStorage = new HashMap<>();
174 final StubDocument file = mStorage.get(documentId); in queryDocument()
184 final StubDocument parentDocument = mStorage.get(parentDocId); in isChildDocument()
185 final StubDocument childDocument = mStorage.get(docId); in isChildDocument()
192 StubDocument parent = mStorage.get(parentId); in createDocument()
195 final StubDocument document = StubDocument.createRegularDocument(file, mimeType, parent); in createDocument()
209 final StubDocument document = mStorage.get(documentId); in deleteDocument()
248 final StubDocument parentDocument = mStorage.get(parentDocumentId); in queryChildDocuments()
256 StubDocument document; in queryChildDocuments()
279 StubDocument parentDocument = mRoots.get(rootId).document; in querySearchDocuments()
[all …]
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
DStressProvider.java82 private Map<String, ArrayList<StubDocument>> mChildDocuments = new HashMap<>();
84 private Map<String, StubDocument> mDocuments = new HashMap<>();
95 StubDocument document; in onCreate()
97 ArrayList<StubDocument> children = new ArrayList<StubDocument>(); in onCreate()
100 document = StubDocument.createDirectory(i); in onCreate()
105 children = new ArrayList<StubDocument>(); in onCreate()
109 document = StubDocument.createFile( in onCreate()
124 mDocuments.put(STRESS_ROOT_0_DOC_ID, StubDocument.createDirectory(STRESS_ROOT_0_DOC_ID)); in onCreate()
125 mDocuments.put(STRESS_ROOT_1_DOC_ID, StubDocument.createDirectory(STRESS_ROOT_1_DOC_ID)); in onCreate()
126 mDocuments.put(STRESS_ROOT_2_DOC_ID, StubDocument.createDirectory(STRESS_ROOT_2_DOC_ID)); in onCreate()
[all …]