Home
last modified time | relevance | path

Searched refs:OtherUser (Results 1 – 14 of 14) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/
DRootItemListBuilderTest.java56 new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, null, false);
58 new RootItem(TestProvidersAccess.OtherUser.HOME, null, false);
60 new RootItem(TestProvidersAccess.OtherUser.IMAGE, null, false);
62 new RootItem(TestProvidersAccess.OtherUser.PICKLES, null, false);
92 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_allMultiProfileRootsMatchOther_defaultUser()
117 mBuilder = new RootItemListBuilder(TestProvidersAccess.OtherUser.USER_ID, in testGetList_twoUsers_allMultiProfileRootsMatchOther_otherUser()
118 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_allMultiProfileRootsMatchOther_otherUser()
142 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_defaultUserHasAllMatchingRoots()
163 mBuilder = new RootItemListBuilder(TestProvidersAccess.OtherUser.USER_ID, in testGetList_twoUsers_secondUserFillsUpNonMatchingRoots()
164 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID)); in testGetList_twoUsers_secondUserFillsUpNonMatchingRoots()
[all …]
DUserItemsCombinerTest.java51 private static final UserId WORK_USER = TestProvidersAccess.OtherUser.USER_ID;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java285 mEnv.state.stack.changeRoot(TestProvidersAccess.OtherUser.HOME); in testCrossProfileDocuments_success()
286 mEnv.state.stack.push(TestEnv.OtherUser.FOLDER_0); in testCrossProfileDocuments_success()
294 mEnv.mockProviders.get(TestProvidersAccess.OtherUser.HOME.authority) in testCrossProfileDocuments_success()
295 .setNextChildDocumentsReturns(TestEnv.OtherUser.FILE_PNG); in testCrossProfileDocuments_success()
305 assertEquals(TestEnv.OtherUser.FILE_PNG, mEnv.model.getDocument(modelIds[0])); in testCrossProfileDocuments_success()
312 mEnv.state.stack.changeRoot(TestProvidersAccess.OtherUser.HOME); in testLoadCrossProfileDoc_failsWithQuietModeException()
313 mEnv.state.stack.push(TestEnv.OtherUser.FOLDER_0); in testLoadCrossProfileDoc_failsWithQuietModeException()
315 when(mActivity.userManager.isQuietModeEnabled(TestProvidersAccess.OtherUser.USER_HANDLE)) in testLoadCrossProfileDoc_failsWithQuietModeException()
334 mEnv.state.stack.changeRoot(TestProvidersAccess.OtherUser.HOME); in testLoadCrossProfileDoc_failsWithNoPermissionException()
335 mEnv.state.stack.push(TestEnv.OtherUser.FOLDER_0); in testLoadCrossProfileDoc_failsWithNoPermissionException()
[all …]
DGlobalSearchLoaderTest.java112 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testCrossProfileRoot_notInTextSearch_beIgnored()
120 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testCrossProfileRoot_inTextSearch_beIncluded()
180 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_includeDirectory_excludedOtherUsers()
284 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_includeCurrentUserRootOnly()
318 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_includeBothUsersRoots()
347 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_emptyCurrentUsersRoot()
348 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_emptyCurrentUsersRoot()
DRecentsLoaderTests.java89 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.OtherUser.DOWNLOADS)); in testLocalOnlyRoot_supportRecent_differentUser_beIgnored()
178 TestProvidersAccess.OtherUser.USER_ID); in testLoaderOnUserWithoutPermission()
DDocumentsAccessTest.java54 mDocumentsAccess.getDocuments(TestProvidersAccess.OtherUser.USER_ID, "authority", in testCreateDocument_noPermission()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java91 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID); in setUp()
160 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_showSelectedUserItems()
162 rootList.add(new RootItem(TestProvidersAccess.OtherUser.PICKLES, mActionHandler, in testUpdateView_showSelectedUserItems()
177 when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.OtherUser.USER_ID); in testUpdateView_showSelectedUserItems_otherUser()
184 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_showSelectedUserItems_otherUser()
186 rootList.add(new RootItem(TestProvidersAccess.OtherUser.PICKLES, mActionHandler, in testUpdateView_showSelectedUserItems_otherUser()
247 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_crossProfileSearch_hideRow()
249 rootList.add(new RootItem(TestProvidersAccess.OtherUser.PICKLES, mActionHandler, in testUpdateView_crossProfileSearch_hideRow()
268 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_notCrossProfileSearch_showRow()
270 rootList.add(new RootItem(TestProvidersAccess.OtherUser.PICKLES, mActionHandler, in testUpdateView_notCrossProfileSearch_showRow()
[all …]
DInflateMessageDocumentHolderTest.java66 new CrossProfileQuietModeException(TestProvidersAccess.OtherUser.USER_ID), in testClickingButtonShouldShowProgressBar()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java64 public static class OtherUser { class in TestEnv
95 modelOtherUser = new TestModel(TestProvidersAccess.OtherUser.USER_ID, authority, features); in TestEnv()
184 OtherUser.FOLDER_0 = modelOtherUser.createFolder("folder 0"); in reset()
185 OtherUser.FILE_PNG = modelOtherUser.createFile("work.png"); in reset()
DTestProvidersAccess.java171 public static class OtherUser { class in TestProvidersAccess
174 public static final UserId USER_ID = UserId.of(OtherUser.USER_HANDLE);
183 UserId userId = OtherUser.USER_ID;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentInfoTest.java167 otherUserDoc.userId = TestProvidersAccess.OtherUser.USER_ID; in testGetTreeDocumentUri_otherUser_shouldHaveDifferentUri()
179 otherUserDoc.userId = TestProvidersAccess.OtherUser.USER_ID; in testGetTreeDocumentUri_otherUser_sameHostAndPath()
194 otherUserDoc.userId = TestProvidersAccess.OtherUser.USER_ID; in testGetTreeDocumentUri_otherUser_userInfo()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java536 mHandler.openRoot(info, TestProvidersAccess.OtherUser.USER_ID); in testOpenAppRoot_otherUser()
541 .isEqualTo(TestProvidersAccess.OtherUser.USER_HANDLE); in testOpenAppRoot_otherUser()
592 mHandler.openRoot(TestResolveInfo.create(), TestProvidersAccess.OtherUser.USER_ID); in testOpenAppRoot_doesNotHappen_differentUser()
611 mActivity.currentRoot = TestProvidersAccess.OtherUser.DOWNLOADS; in testPreviewItem_onOtherUser()
614 "image/png", /* flags= */ 0, TestProvidersAccess.OtherUser.USER_ID); in testPreviewItem_onOtherUser()
620 TestProvidersAccess.OtherUser.USER_HANDLE); in testPreviewItem_onOtherUser()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DPickActivityTest.java94 doc.userId = TestProvidersAccess.OtherUser.USER_ID; in testOnDocumentPicked_otherUser()
112 doc.userId = TestProvidersAccess.OtherUser.USER_ID; in testOnDocumentPicked_otherUserDoesNotReturn()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DQuickViewIntentBuilderTest.java145 TestProvidersAccess.OtherUser.USER_ID); in testBuild_twoProfiles_containsOnlyPreviewDocument()