/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootItemListBuilderTest.java | 56 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 …]
|
D | UserItemsCombinerTest.java | 57 private static final UserId WORK_USER = TestProvidersAccess.OtherUser.USER_ID;
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | AbstractActionHandlerTest.java | 310 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 …]
|
D | GlobalSearchLoaderTest.java | 139 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()
|
D | RecentsLoaderTests.java | 93 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()
|
D | DocumentsAccessTest.java | 79 mDocumentsAccess.getDocuments(TestProvidersAccess.OtherUser.USER_ID, "authority", in testCreateDocument_noPermission()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AppsRowManagerTest.java | 124 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 …]
|
D | InflateMessageDocumentHolderTest.java | 95 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/ |
D | TestEnv.java | 64 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()
|
D | TestProvidersAccess.java | 171 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/ |
D | PickActivityTest.java | 124 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/ |
D | DocumentInfoTest.java | 167 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/ |
D | ActionHandlerTest.java | 565 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/ |
D | ModelBackedDocumentsAdapterTest.java | 55 TestProvidersAccess.OtherUser.USER_ID, null, mTestConfigStore), in setUp()
|
D | DirectoryAddonsAdapterTest.java | 64 null, TestProvidersAccess.OtherUser.USER_ID, null, in setUp()
|
D | DirectoryAddonsAdapterPrivateSpaceTest.java | 54 private static final UserId SELECTED_USER = TestProvidersAccess.OtherUser.USER_ID;
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | QuickViewIntentBuilderTest.java | 145 TestProvidersAccess.OtherUser.USER_ID); in testBuild_twoProfiles_containsOnlyPreviewDocument()
|