Home
last modified time | relevance | path

Searched refs:PaginationParameters (Results 1 – 7 of 7) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DPaginationParameters.java25 public class PaginationParameters { class
37 public PaginationParameters() { in PaginationParameters() method in PaginationParameters
54 public PaginationParameters(int pageSize, long dateBeforeMs, int rowId) { in PaginationParameters() method in PaginationParameters
70 public PaginationParameters(long dateBeforeMs, int rowId) { in PaginationParameters() method in PaginationParameters
DItemsProvider.java123 public Cursor getAllItems(Category category, PaginationParameters pagingParameters, in getAllItems()
161 public Cursor getLocalItems(Category category, PaginationParameters pagingParameters, in getLocalItems()
197 new PaginationParameters(), mimeTypes, category, userId, in getItemsForPreselectedMedia()
250 private Cursor queryMedia(@NonNull Uri uri, PaginationParameters paginationParameters, in queryMedia()
259 private Cursor queryMedia(@NonNull Uri uri, PaginationParameters paginationParameters, in queryMedia()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DItemsProviderTest.java65 import com.android.providers.media.photopicker.data.PaginationParameters;
441 new PaginationParameters(), in testGetItems()
472 new PaginationParameters(), in testGetItems_canceledBeforeQuery_ThrowsImmediately()
490 new PaginationParameters(), in testGetLocalItems_canceledBeforeQuery_ThrowsImmediately()
538 new PaginationParameters(/* limit */ 5, /*dateBeforeMs*/ Long.MIN_VALUE, -1), in testGetItems_withLimit()
569 new PaginationParameters(), in testGetItems_withPagination_sameDateModified()
584 PaginationParameters paginationParameters = new PaginationParameters( in testGetItems_withPagination_sameDateModified()
632 new PaginationParameters(), in testGetItems_withPagination_differentTimeModified()
647 PaginationParameters paginationParameters = new PaginationParameters( in testGetItems_withPagination_differentTimeModified()
697 new PaginationParameters(), in testGetItems_nonMedia()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModelPaginationTest.java56 import com.android.providers.media.photopicker.data.PaginationParameters;
167 ACTION_VIEW_CREATED, new PaginationParameters( in test_getItems_noItemsPresent()
202 new PaginationParameters( in test_getCategoryItems_noItemsPresent()
235 ACTION_VIEW_CREATED, new PaginationParameters( in test_getItems_correctItemsReturned()
295 new PaginationParameters( in test_differentCategories_getCategoryItems()
332 new PaginationParameters( in test_differentCategories_getCategoryItems()
386 ACTION_VIEW_CREATED, new PaginationParameters(pageSize, in test_updateItems_itemsResetAndFirstPageLoaded()
430 ACTION_VIEW_CREATED, new PaginationParameters(pageSize, in test_onReceivingNotification_itemsRefreshed()
448 new PaginationParameters( in test_onReceivingNotification_itemsRefreshed()
DPickerViewModelTest.java82 import com.android.providers.media.photopicker.data.PaginationParameters;
210 new PaginationParameters()).getValue()).getItems(); in testGetItems_noItems()
260 new PaginationParameters()); in test_getItems_correctItemsReturned()
489 PaginationParameters paginationParameters, @Nullable String[] mimeType, in getAllItems()
541 PaginationParameters paginationParameters, @Nullable String[] mimeType, in getLocalItems()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DPhotosTabFragment.java50 import com.android.providers.media.photopicker.data.PaginationParameters;
193 ? PaginationParameters.PAGINATION_PAGE_SIZE_ITEMS : -1; in onViewCreated()
200 new PaginationParameters( in onViewCreated()
209 ? PaginationParameters.PAGINATION_PAGE_SIZE_ALBUM_ITEMS : -1; in onViewCreated()
217 new PaginationParameters( in onViewCreated()
410 new PaginationParameters(firstVisibleItemPosition in onResume()
411 + PaginationParameters.PAGINATION_PAGE_SIZE_ITEMS, in onResume()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModel.java82 import com.android.providers.media.photopicker.data.PaginationParameters;
251 new PaginationParameters(mItemsPageSize, -1, -1)); in onNotificationReceived()
543 @Nullable PaginationParameters paginationParameters) { in getPaginatedItemsForAction()
566 new PaginationParameters(mItemsPageSize, item.getDateTaken(), in getPaginatedItemsForAction()
577 updatePaginatedItems(new PaginationParameters(mItemsPageSize, in getPaginatedItemsForAction()
601 private void updatePaginatedItems(PaginationParameters pagingParameters, boolean isReset, in updatePaginatedItems()
625 private void loadItemsAsync(@NonNull PaginationParameters pagingParameters, boolean isReset, in loadItemsAsync()
651 PaginationParameters pagingParameters) { in loadItems()
828 PaginationParameters pagingParameters) { in fetchItems()
849 @ItemsAction.Type int action, @Nullable PaginationParameters paginationParameters) { in getPaginatedCategoryItemsForAction()
[all …]