Home
last modified time | relevance | path

Searched refs:OtherUser (Results 1 – 17 of 17) 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.java57 private static final UserId WORK_USER = TestProvidersAccess.OtherUser.USER_ID;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java310 mEnv.state.canForwardToProfileIdMap.put(TestProvidersAccess.OtherUser.USER_ID, true); in testCrossProfileDocuments_success()
314 mEnv.state.stack.changeRoot(TestProvidersAccess.OtherUser.HOME); in testCrossProfileDocuments_success()
315 mEnv.state.stack.push(TestEnv.OtherUser.FOLDER_0); in testCrossProfileDocuments_success()
323 mEnv.mockProviders.get(TestProvidersAccess.OtherUser.HOME.authority) in testCrossProfileDocuments_success()
324 .setNextChildDocumentsReturns(TestEnv.OtherUser.FILE_PNG); in testCrossProfileDocuments_success()
334 assertEquals(TestEnv.OtherUser.FILE_PNG, mEnv.model.getDocument(modelIds[0])); in testCrossProfileDocuments_success()
341 mEnv.state.canForwardToProfileIdMap.put(TestProvidersAccess.OtherUser.USER_ID, true); in testLoadCrossProfileDoc_failsWithQuietModeException()
345 mEnv.state.stack.changeRoot(TestProvidersAccess.OtherUser.HOME); in testLoadCrossProfileDoc_failsWithQuietModeException()
346 mEnv.state.stack.push(TestEnv.OtherUser.FOLDER_0); in testLoadCrossProfileDoc_failsWithQuietModeException()
348 when(mActivity.userManager.isQuietModeEnabled(TestProvidersAccess.OtherUser.USER_HANDLE)) in testLoadCrossProfileDoc_failsWithQuietModeException()
[all …]
DGlobalSearchLoaderTest.java139 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testCrossProfileRoot_notInTextSearch_beIgnored()
147 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testCrossProfileRoot_inTextSearch_beIncluded()
207 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_includeDirectory_excludedOtherUsers()
311 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_includeCurrentUserRootOnly()
332 mEnv.state.canForwardToProfileIdMap.put(TestProvidersAccess.OtherUser.USER_ID, true); in testSearchResult_includeBothUsersRoots()
349 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_includeBothUsersRoots()
378 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_emptyCurrentUsersRoot()
379 TestProvidersAccess.PICKLES.userId = TestProvidersAccess.OtherUser.USER_ID; in testSearchResult_emptyCurrentUsersRoot()
DRecentsLoaderTests.java93 mEnv.state.canForwardToProfileIdMap.put(TestProvidersAccess.OtherUser.USER_ID, true); in setUp()
115 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.OtherUser.DOWNLOADS)); in testLocalOnlyRoot_supportRecent_differentUser_beIgnored()
203 mEnv.state.canForwardToProfileIdMap.put(TestProvidersAccess.OtherUser.USER_ID, false); in testLoaderOnUserWithoutPermission()
209 TestProvidersAccess.OtherUser.USER_ID); in testLoaderOnUserWithoutPermission()
DDocumentsAccessTest.java79 mDocumentsAccess.getDocuments(TestProvidersAccess.OtherUser.USER_ID, "authority", in testCreateDocument_noPermission()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java124 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID, in getAppsRowManager()
131 Lists.newArrayList(UserId.DEFAULT_USER, TestProvidersAccess.OtherUser.USER_ID); in getAppsRowManager()
206 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_showSelectedUserItems()
208 rootList.add(new RootItem(TestProvidersAccess.OtherUser.PICKLES, mActionHandler, in testUpdateView_showSelectedUserItems()
224 when(mActivity.getSelectedUser()).thenReturn(TestProvidersAccess.OtherUser.USER_ID); in testUpdateView_showSelectedUserItems_otherUser()
231 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_showSelectedUserItems_otherUser()
233 rootList.add(new RootItem(TestProvidersAccess.OtherUser.PICKLES, mActionHandler, in testUpdateView_showSelectedUserItems_otherUser()
298 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_crossProfileSearch_hideRow()
300 rootList.add(new RootItem(TestProvidersAccess.OtherUser.PICKLES, mActionHandler, in testUpdateView_crossProfileSearch_hideRow()
320 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_notCrossProfileSearch_showRow()
[all …]
DInflateMessageDocumentHolderTest.java95 userIdToLabelMap.put(TestProvidersAccess.OtherUser.USER_ID, "Work"); in setUp()
98 TestProvidersAccess.OtherUser.USER_ID, true); in setUp()
110 when(userManager.getUserProperties(TestProvidersAccess.OtherUser.USER_HANDLE)) in setUp()
118 TestProvidersAccess.OtherUser.USER_ID, userIdToLabelMap, userManager, in setUp()
131 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()
185 OtherUser.FOLDER_0 = modelOtherUser.createFolder("folder 0"); in reset()
186 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/functional/com/android/documentsui/
DPickActivityTest.java124 doc.userId = TestProvidersAccess.OtherUser.USER_ID; in testOnDocumentPicked_otherUser()
134 TestProvidersAccess.OtherUser.USER_ID, true); in testOnDocumentPicked_otherUser()
150 doc.userId = TestProvidersAccess.OtherUser.USER_ID; in testOnDocumentPicked_otherUserDoesNotReturn()
/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.java565 mEnv.state.canForwardToProfileIdMap.put(TestProvidersAccess.OtherUser.USER_ID, true); in testOpenAppRoot_otherUser()
569 mHandler.openRoot(info, TestProvidersAccess.OtherUser.USER_ID); in testOpenAppRoot_otherUser()
574 .isEqualTo(TestProvidersAccess.OtherUser.USER_HANDLE); in testOpenAppRoot_otherUser()
625 mHandler.openRoot(TestResolveInfo.create(), TestProvidersAccess.OtherUser.USER_ID); in testOpenAppRoot_doesNotHappen_differentUser()
644 mActivity.currentRoot = TestProvidersAccess.OtherUser.DOWNLOADS; in testPreviewItem_onOtherUser()
647 "image/png", /* flags= */ 0, TestProvidersAccess.OtherUser.USER_ID); in testPreviewItem_onOtherUser()
653 TestProvidersAccess.OtherUser.USER_HANDLE); in testPreviewItem_onOtherUser()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DModelBackedDocumentsAdapterTest.java55 TestProvidersAccess.OtherUser.USER_ID, null, mTestConfigStore), in setUp()
DDirectoryAddonsAdapterTest.java64 null, TestProvidersAccess.OtherUser.USER_ID, null, in setUp()
DDirectoryAddonsAdapterPrivateSpaceTest.java54 private static final UserId SELECTED_USER = TestProvidersAccess.OtherUser.USER_ID;
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DQuickViewIntentBuilderTest.java145 TestProvidersAccess.OtherUser.USER_ID); in testBuild_twoProfiles_containsOnlyPreviewDocument()