Lines Matching refs:parentUri
87 public Uri createDocument(Uri parentUri, String mimeType, String name) {
92 Uri uri = DocumentsContract.createDocument(mClient, parentUri, mimeType, name);
101 Uri parentUri = buildDocumentUri(mAuthority, parentId);
102 return createDocument(parentUri, mimeType, name);
124 public Uri createFolder(Uri parentUri, String name) {
125 return createDocument(parentUri, Document.MIME_TYPE_DIR, name);
129 Uri parentUri = buildDocumentUri(mAuthority, parentId);
130 return createDocument(parentUri, Document.MIME_TYPE_DIR, name);
154 public void assertChildCount(Uri parentUri, int expected) throws Exception {
155 List<DocumentInfo> children = listChildren(parentUri);
168 public void assertHasFile(Uri parentUri, String name) throws Exception {
169 List<DocumentInfo> children = listChildren(parentUri);
179 Uri parentUri = buildDocumentUri(mAuthority, parentId);
180 assertHasFile(parentUri, name);
187 public void assertHasDirectory(Uri parentUri, String name) throws Exception {
188 List<DocumentInfo> children = listChildren(parentUri);
198 Uri parentUri = buildDocumentUri(mAuthority, parentId);
199 assertHasDirectory(parentUri, name);
206 public void assertDoesNotExist(Uri parentUri, String name) throws Exception {
207 List<DocumentInfo> children = listChildren(parentUri);
216 Uri parentUri = buildDocumentUri(mAuthority, parentId);
217 assertDoesNotExist(parentUri, name);
245 public DocumentInfo findDocument(Uri parentUri, String name) throws Exception {
246 List<DocumentInfo> children = listChildren(parentUri);
255 public List<DocumentInfo> listChildren(Uri parentUri) throws Exception {
256 String id = DocumentsContract.getDocumentId(parentUri);