Home
last modified time | relevance | path

Searched refs:otherUserDoc (Results 1 – 3 of 3) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentInfoTest.java166 final DocumentInfo otherUserDoc = createDocInfo("authority.a", "doc.1", "text/plain"); in testGetTreeDocumentUri_otherUser_shouldHaveDifferentUri() local
167 otherUserDoc.userId = TestProvidersAccess.OtherUser.USER_ID; in testGetTreeDocumentUri_otherUser_shouldHaveDifferentUri()
170 assertThat(otherUserDoc.getTreeDocumentUri()).isNotEqualTo(doc.getTreeDocumentUri()); in testGetTreeDocumentUri_otherUser_shouldHaveDifferentUri()
178 final DocumentInfo otherUserDoc = createDocInfo("authority.a", "doc.1", "text/plain"); in testGetTreeDocumentUri_otherUser_sameHostAndPath() local
179 otherUserDoc.userId = TestProvidersAccess.OtherUser.USER_ID; in testGetTreeDocumentUri_otherUser_sameHostAndPath()
182 assertThat(otherUserDoc.getTreeDocumentUri().getHost()) in testGetTreeDocumentUri_otherUser_sameHostAndPath()
184 assertThat(otherUserDoc.getTreeDocumentUri().getPath()) in testGetTreeDocumentUri_otherUser_sameHostAndPath()
193 final DocumentInfo otherUserDoc = createDocInfo("authority.a", "doc.1", "text/plain"); in testGetTreeDocumentUri_otherUser_userInfo() local
194 otherUserDoc.userId = TestProvidersAccess.OtherUser.USER_ID; in testGetTreeDocumentUri_otherUser_userInfo()
197 assertThat(otherUserDoc.getTreeDocumentUri().getUserInfo()) in testGetTreeDocumentUri_otherUser_userInfo()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DGlobalSearchLoaderTest.java217 final DocumentInfo otherUserDoc = mEnv.model.createFile(SEARCH_STRING + "_otherUser.png"); in testSearchResult_includeDirectory_excludedOtherUsers() local
218 otherUserDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeDirectory_excludedOtherUsers()
220 .setNextChildDocumentsReturns(otherUserDoc); in testSearchResult_includeDirectory_excludedOtherUsers()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java646 DocumentInfo otherUserDoc = mEnv.model.createDocumentForUser("a.png", in testPreviewItem_onOtherUser() local
650 mHandler.onDocumentOpened(otherUserDoc, ActionHandler.VIEW_TYPE_PREVIEW, in testPreviewItem_onOtherUser()