/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 42 public static final RootInfo DOWNLOADS; field in TestProvidersAccess 59 DOWNLOADS = new RootInfo() {{ 62 DOWNLOADS.userId = userId; 63 DOWNLOADS.authority = Providers.AUTHORITY_DOWNLOADS; 64 DOWNLOADS.rootId = Providers.ROOT_ID_DOWNLOADS; 65 DOWNLOADS.title = "Downloads"; 66 DOWNLOADS.derivedType = RootInfo.TYPE_DOWNLOADS; 67 DOWNLOADS.flags = Root.FLAG_LOCAL_ONLY 176 public static final RootInfo DOWNLOADS; field in TestProvidersAccess.OtherUser 185 DOWNLOADS = new RootInfo(); [all …]
|
D | TestResources.java | 61 res.setDefaultDocumentsUri(TestProvidersAccess.DOWNLOADS.getUri().toString()); in create()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | DragAndDropManagerTests.java | 252 assertFalse(mManager.canSpringOpen(TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1)); in testCanSpringOpen_ReturnsFalse_DocIsInvalidDestination() 267 assertTrue(mManager.canSpringOpen(TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_2)); in testCanSpringOpen() 334 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, null); in testUpdateState_UpdatesToUnknown_RootDocIsNull() 345 TestProvidersAccess.DOWNLOADS, in testUpdateState_UpdatesToMove_SameRoot() 353 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1); in testUpdateState_UpdatesToMove_SameRoot() 372 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1); in testUpdateState_UpdatesToCopy_DifferentRoot() 383 TestProvidersAccess.DOWNLOADS, in testUpdateState_UpdatesToCopy_SameRoot_LeftCtrlPressed() 394 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1); in testUpdateState_UpdatesToCopy_SameRoot_LeftCtrlPressed() 405 TestProvidersAccess.DOWNLOADS, in testIsDragFromSameApp_afterStartDrag() 425 TestProvidersAccess.DOWNLOADS, in testIsDragFromSameApp_afterStartDrag_afterDragEnded() [all …]
|
D | GlobalSearchLoaderTest.java | 102 mEnv.mockProviders.get(TestProvidersAccess.DOWNLOADS.authority) in setUp() 105 TestProvidersAccess.DOWNLOADS.flags |= DocumentsContract.Root.FLAG_SUPPORTS_SEARCH; in setUp() 110 TestProvidersAccess.DOWNLOADS.flags &= ~DocumentsContract.Root.FLAG_SUPPORTS_SEARCH; in tearDown() 139 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testCrossProfileRoot_notInTextSearch_beIgnored() 140 assertThat(mLoader.shouldIgnoreRoot(TestProvidersAccess.DOWNLOADS)).isTrue(); in testCrossProfileRoot_notInTextSearch_beIgnored() 141 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.USER_ID; in testCrossProfileRoot_notInTextSearch_beIgnored() 147 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.OtherUser.USER_ID; in testCrossProfileRoot_inTextSearch_beIncluded() 148 assertThat(mLoader.shouldIgnoreRoot(TestProvidersAccess.DOWNLOADS)).isFalse(); in testCrossProfileRoot_inTextSearch_beIncluded() 149 TestProvidersAccess.DOWNLOADS.userId = TestProvidersAccess.USER_ID; in testCrossProfileRoot_inTextSearch_beIncluded() 157 mEnv.mockProviders.get(TestProvidersAccess.DOWNLOADS.authority) in testSearchResult_includeDirectory() [all …]
|
D | RecentsLoaderTests.java | 110 assertFalse(mLoader.shouldIgnoreRoot(TestProvidersAccess.DOWNLOADS)); in testLocalOnlyRoot_supportRecent_notIgnored() 115 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.OtherUser.DOWNLOADS)); in testLocalOnlyRoot_supportRecent_differentUser_beIgnored()
|
D | ProfileTabsTest.java | 91 mState.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in setUp() 108 mTestCommonAddons.mCurrentRoot = TestProvidersAccess.DOWNLOADS; in setUp()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | AccessCheckerTest.java | 35 import static com.android.providers.media.LocalUriMatcher.DOWNLOADS; 78 DOWNLOADS, in testHasAccessToCollection_forRead_noPerms() 103 DOWNLOADS, in testHasAccessToCollection_forRead_hasReadMediaPerms() 121 DOWNLOADS, in testHasAccessToCollection_forRead_hasLegacyRead() 139 DOWNLOADS, in testHasAccessToCollection_forWrite_noPerms() 164 DOWNLOADS, in testHasAccessToCollection_forWrite_hasWriteMediaPerms() 192 DOWNLOADS, in testHasAccessToCollection_forWrite_hasLegacyWrite() 210 DOWNLOADS, in testHasUserSelectedAccess_noPerms() 221 DOWNLOADS, in testHasUserSelectedAccess_noPerms() 237 DOWNLOADS, in testHasUserSelectedAccess_userSelectedPerms() [all …]
|
D | LocalUriMatcherTest.java | 172 LocalUriMatcher.DOWNLOADS, assembleTestUri(new String[] {"anything", "downloads"})); in testPublicUris() 342 LocalUriMatcher.DOWNLOADS, assembleTestUri(new String[] {"anything", "downloads"})); in testHiddenUris()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | AccessChecker.java | 45 import static com.android.providers.media.LocalUriMatcher.DOWNLOADS; 125 case DOWNLOADS: in hasAccessToCollection() 166 case DOWNLOADS: in hasUserSelectedAccess() 190 case DOWNLOADS: in getWhereForUserSelectedAccess() 225 case DOWNLOADS: in getWhereForLatestSelection() 318 case DOWNLOADS: { in getWhereForConstrainedAccess()
|
D | LocalUriMatcher.java | 73 static final int DOWNLOADS = 800; field in LocalUriMatcher 214 mPublic.addURI(auth, "*/downloads", DOWNLOADS); in LocalUriMatcher()
|
D | MediaProvider.java | 102 import static com.android.providers.media.LocalUriMatcher.DOWNLOADS; 4203 case DOWNLOADS: in getType() 4354 case DOWNLOADS: in ensureFileColumns() 5642 case DOWNLOADS: 6202 case DOWNLOADS: { 10757 case DOWNLOADS:
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | ActionHandlerTest.java | 369 mActivity.currentRoot = TestProvidersAccess.DOWNLOADS; in testDocumentPicked_Downloads_ManagesApks() 370 TestEnv.FILE_APK.authority = TestProvidersAccess.DOWNLOADS.authority; in testDocumentPicked_Downloads_ManagesApks() 379 mActivity.currentRoot = TestProvidersAccess.DOWNLOADS; in testDocumentPicked_Downloads_ManagesPartialFiles() 380 TestEnv.FILE_PARTIAL.authority = TestProvidersAccess.DOWNLOADS.authority; in testDocumentPicked_Downloads_ManagesPartialFiles() 390 TestEnv.FILE_APK.authority = TestProvidersAccess.DOWNLOADS.authority; in testDocumentPicked_Recent_ManagesApks() 429 mActivity.currentRoot = TestProvidersAccess.DOWNLOADS; in testShowChooser() 448 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded() 466 TestProvidersAccess.DOWNLOADS.getUri().toString()); in testInitLocation_forceDefaultsToRoot() 469 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_forceDefaultsToRoot() 538 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_LaunchToDownloads() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AppsRowManagerTest.java | 206 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_showSelectedUserItems() 231 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_showSelectedUserItems_otherUser() 250 mState.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testUpdateView_notInRecent_hideRow() 298 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_crossProfileSearch_hideRow() 320 rootList.add(new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, mActionHandler, in testUpdateView_notCrossProfileSearch_showRow()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootItemListBuilderTest.java | 43 new RootItem(TestProvidersAccess.DOWNLOADS, null, false); 56 new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, null, false);
|
D | RootsFragmentTest.java | 74 TestProvidersAccess.DOWNLOADS.title, 191 fakeRootInfoList.add(TestProvidersAccess.DOWNLOADS); in createFakeRootInfoList()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 169 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded() 189 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_CopyDestination_DefaultsToDownloads() 644 mActivity.currentRoot = TestProvidersAccess.OtherUser.DOWNLOADS; in testPreviewItem_onOtherUser() 693 TestProvidersAccess.DOWNLOADS.getUri().toString()); in testInitLocationDefaultToDownloadsOnAction() 699 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocationDefaultToDownloadsOnAction()
|