Home
last modified time | relevance | path

Searched refs:DOWNLOADS (Results 1 – 20 of 20) sorted by relevance

/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestProvidersAccess.java42 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 …]
DTestResources.java61 res.setDefaultDocumentsUri(TestProvidersAccess.DOWNLOADS.getUri().toString()); in create()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java280 assertFalse(mManager.canSpringOpen(TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1)); in testCanSpringOpen_ReturnsFalse_DocIsInvalidDestination()
295 assertTrue(mManager.canSpringOpen(TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_2)); in testCanSpringOpen()
362 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, null); in testUpdateState_UpdatesToUnknown_RootDocIsNull()
373 TestProvidersAccess.DOWNLOADS, in testUpdateState_UpdatesToMove_SameRoot()
381 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1); in testUpdateState_UpdatesToMove_SameRoot()
400 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1); in testUpdateState_UpdatesToCopy_DifferentRoot()
411 TestProvidersAccess.DOWNLOADS, in testUpdateState_UpdatesToCopy_SameRoot_LeftCtrlPressed()
422 mUpdateShadowView, TestProvidersAccess.DOWNLOADS, TestEnv.FOLDER_1); in testUpdateState_UpdatesToCopy_SameRoot_LeftCtrlPressed()
433 TestProvidersAccess.DOWNLOADS, in testIsDragFromSameApp_afterStartDrag()
453 TestProvidersAccess.DOWNLOADS, in testIsDragFromSameApp_afterStartDrag_afterDragEnded()
[all …]
DGlobalSearchLoaderTest.java102 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 …]
DRecentsLoaderTests.java110 assertFalse(mLoader.shouldIgnoreRoot(TestProvidersAccess.DOWNLOADS)); in testLocalOnlyRoot_supportRecent_notIgnored()
115 assertTrue(mLoader.shouldIgnoreRoot(TestProvidersAccess.OtherUser.DOWNLOADS)); in testLocalOnlyRoot_supportRecent_differentUser_beIgnored()
DProfileTabsTest.java91 mState.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in setUp()
108 mTestCommonAddons.mCurrentRoot = TestProvidersAccess.DOWNLOADS; in setUp()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DAccessCheckerTest.java35 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 …]
DLocalUriMatcherTest.java174 LocalUriMatcher.DOWNLOADS, assembleTestUri(new String[] {"anything", "downloads"})); in testPublicUris()
344 LocalUriMatcher.DOWNLOADS, assembleTestUri(new String[] {"anything", "downloads"})); in testHiddenUris()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/loaders/
DSearchLoaderTest.kt85 val mockProvider = mEnv.mockProviders[TestProvidersAccess.DOWNLOADS.authority] in testLoadInBackground()
88 val userIds = listOf(TestProvidersAccess.DOWNLOADS.userId) in testLoadInBackground()
98 val rootIds = listOf(TestProvidersAccess.DOWNLOADS) in testLoadInBackground()
102 rootFolderInfo.authority = TestProvidersAccess.DOWNLOADS.authority in testLoadInBackground()
125 val userIds = listOf(TestProvidersAccess.DOWNLOADS.userId) in testBlankQueryAndRecency()
126 val rootIds = listOf(TestProvidersAccess.DOWNLOADS) in testBlankQueryAndRecency()
DFolderLoaderTest.kt64 val mockProvider = mEnv.mockProviders[TestProvidersAccess.DOWNLOADS.authority] in data()
67 val userIds = listOf(TestProvidersAccess.DOWNLOADS.userId) in data()
80 rootFolderInfo.authority = TestProvidersAccess.DOWNLOADS.authority in data()
89 TestProvidersAccess.DOWNLOADS, in data()
/packages/providers/MediaProvider/src/com/android/providers/media/
DAccessChecker.java45 import static com.android.providers.media.LocalUriMatcher.DOWNLOADS;
128 case DOWNLOADS: in hasAccessToCollection()
169 case DOWNLOADS: in hasUserSelectedAccess()
194 case DOWNLOADS: in getWhereForUserSelectedAccess()
229 case DOWNLOADS: in getWhereForLatestSelection()
322 case DOWNLOADS: { in getWhereForConstrainedAccess()
DLocalUriMatcher.java73 static final int DOWNLOADS = 800; field in LocalUriMatcher
218 mPublic.addURI(auth, "*/downloads", DOWNLOADS); in LocalUriMatcher()
DMediaProvider.java115 import static com.android.providers.media.LocalUriMatcher.DOWNLOADS;
4556 case DOWNLOADS: in getType()
4707 case DOWNLOADS: in ensureFileColumns()
6009 case DOWNLOADS:
6569 case DOWNLOADS: {
11578 case DOWNLOADS:
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java423 mActivity.currentRoot = TestProvidersAccess.DOWNLOADS; in testDocumentPicked_Downloads_ManagesApks()
424 TestEnv.FILE_APK.authority = TestProvidersAccess.DOWNLOADS.authority; in testDocumentPicked_Downloads_ManagesApks()
433 mActivity.currentRoot = TestProvidersAccess.DOWNLOADS; in testDocumentPicked_Downloads_ManagesPartialFiles()
434 TestEnv.FILE_PARTIAL.authority = TestProvidersAccess.DOWNLOADS.authority; in testDocumentPicked_Downloads_ManagesPartialFiles()
444 TestEnv.FILE_APK.authority = TestProvidersAccess.DOWNLOADS.authority; in testDocumentPicked_Recent_ManagesApks()
502 mActivity.currentRoot = TestProvidersAccess.DOWNLOADS; in testShowChooser()
511 mActivity.currentRoot = TestProvidersAccess.DOWNLOADS; in testShowChooserDesktop()
533 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded()
551 TestProvidersAccess.DOWNLOADS.getUri().toString()); in testInitLocation_forceDefaultsToRoot()
554 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_forceDefaultsToRoot()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java206 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/
DRootsFragmentTest.java82 TestProvidersAccess.DOWNLOADS.title,
92 TestProvidersAccess.DOWNLOADS.title,
245 fakeRootInfoList.add(TestProvidersAccess.DOWNLOADS); in createFakeRootInfoList()
DRootItemListBuilderTest.java43 new RootItem(TestProvidersAccess.DOWNLOADS, null, false);
56 new RootItem(TestProvidersAccess.OtherUser.DOWNLOADS, null, false);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java169 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded()
189 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocation_CopyDestination_DefaultsToDownloads()
645 mActivity.currentRoot = TestProvidersAccess.OtherUser.DOWNLOADS; in testPreviewItem_onOtherUser()
695 TestProvidersAccess.DOWNLOADS.getUri().toString()); in testInitLocationDefaultToDownloadsOnAction()
701 assertRootPicked(TestProvidersAccess.DOWNLOADS.getUri()); in testInitLocationDefaultToDownloadsOnAction()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/events/
DPhotopickerEventLogger.kt50 ALBUM_ID_DOWNLOADS to Telemetry.SelectedAlbum.DOWNLOADS, in <lambda>()
DEvent.kt473 DOWNLOADS(MediaProviderStatsLog.PHOTOPICKER_API_INFO_REPORTED__SELECTED_ALBUM__DOWNLOADS),