Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java49 public class SortModel implements Parcelable { class
105 SortModel(Collection<SortDimension> columns) { in SortModel() method in SortModel
245 case SortModel.SORT_DIMENSION_ID_TITLE: in addQuerySortArgs()
250 case SortModel.SORT_DIMENSION_ID_DATE: in addQuerySortArgs()
255 case SortModel.SORT_DIMENSION_ID_SIZE: in addQuerySortArgs()
260 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in addQuerySortArgs()
302 case SortModel.SORT_DIMENSION_ID_TITLE: in getDocumentSortQuery()
305 case SortModel.SORT_DIMENSION_ID_DATE: in getDocumentSortQuery()
308 case SortModel.SORT_DIMENSION_ID_SIZE: in getDocumentSortQuery()
311 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in getDocumentSortQuery()
[all …]
DTableHeaderController.java22 import com.android.documentsui.sorting.SortModel.SortDimensionId;
41 private final SortModel.UpdateListener mModelListener = this::onModelUpdate;
43 private final SortModel mModel;
45 private TableHeaderController(SortModel sortModel, View tableHeader) { in TableHeaderController()
58 onModelUpdate(mModel, SortModel.UPDATE_TYPE_UNSPECIFIED); in TableHeaderController()
63 private void onModelUpdate(SortModel model, int updateTypeUnspecified) { in onModelUpdate()
64 bindCell(mTitleCell, SortModel.SORT_DIMENSION_ID_TITLE); in onModelUpdate()
65 bindCell(mSummaryCell, SortModel.SORT_DIMENSION_ID_SUMMARY); in onModelUpdate()
66 bindCell(mSizeCell, SortModel.SORT_DIMENSION_ID_SIZE); in onModelUpdate()
67 bindCell(mFileTypeCell, SortModel.SORT_DIMENSION_ID_FILE_TYPE); in onModelUpdate()
[all …]
DSortingCursorWrapper.java30 import com.android.documentsui.sorting.SortModel.SortDimensionId;
54 case SortModel.SORT_DIMENSION_ID_TITLE: in SortingCursorWrapper()
55 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in SortingCursorWrapper()
58 case SortModel.SORT_DIMENSION_ID_DATE: in SortingCursorWrapper()
59 case SortModel.SORT_DIMENSION_ID_SIZE: in SortingCursorWrapper()
74 case SortModel.SORT_DIMENSION_ID_TITLE: in SortingCursorWrapper()
79 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in SortingCursorWrapper()
82 case SortModel.SORT_DIMENSION_ID_DATE: in SortingCursorWrapper()
85 case SortModel.SORT_DIMENSION_ID_SIZE: in SortingCursorWrapper()
93 case SortModel.SORT_DIMENSION_ID_TITLE: in SortingCursorWrapper()
[all …]
DSortListFragment.java23 import com.android.documentsui.sorting.SortModel.SortDimensionId;
36 private SortModel mModel;
39 public static void show(FragmentManager fm, SortModel model) { in show()
70 case SortModel.SORT_DIMENSION_ID_TITLE: in setupSortingList()
71 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in setupSortingList()
74 case SortModel.SORT_DIMENSION_ID_DATE: in setupSortingList()
75 case SortModel.SORT_DIMENSION_ID_SIZE: in setupSortingList()
100 case SortModel.SORT_DIMENSION_ID_TITLE: in getSheetLabelId()
103 case SortModel.SORT_DIMENSION_ID_DATE: in getSheetLabelId()
106 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in getSheetLabelId()
[all …]
DSortController.java65 SortModel sortModel) { in create()
71 case SortModel.SORT_DIMENSION_ID_TITLE: in create()
74 case SortModel.SORT_DIMENSION_ID_SIZE: in create()
77 case SortModel.SORT_DIMENSION_ID_DATE: in create()
80 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in create()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DSortDocumentUiTest.java25 import com.android.documentsui.sorting.SortModel;
104 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_DESCENDING); in testSortByName_Descending_listMode()
114 SortModel.SORT_DIMENSION_ID_SIZE, SortDimension.SORT_DIRECTION_ASCENDING); in testSortBySize_Ascending_listMode()
124 SortModel.SORT_DIMENSION_ID_SIZE, SortDimension.SORT_DIRECTION_DESCENDING); in testSortBySize_Descending_listMode()
134 SortModel.SORT_DIMENSION_ID_DATE, SortDimension.SORT_DIRECTION_ASCENDING); in testSortByModified_Ascending_listMode()
144 SortModel.SORT_DIMENSION_ID_DATE, SortDimension.SORT_DIRECTION_DESCENDING); in testSortByModified_Descending_listMode()
154 SortModel.SORT_DIMENSION_ID_FILE_TYPE, SortDimension.SORT_DIRECTION_ASCENDING); in testSortByType_Ascending_listMode()
164 SortModel.SORT_DIMENSION_ID_FILE_TYPE, SortDimension.SORT_DIRECTION_DESCENDING); in testSortByType_Descending_listMode()
174 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_DESCENDING); in testSortByName_Descending_gridMode()
184 SortModel.SORT_DIMENSION_ID_SIZE, SortDimension.SORT_DIRECTION_ASCENDING); in testSortBySize_Ascending_gridMode()
[all …]
DDialogUiTest.java45 import com.android.documentsui.sorting.SortModel;
252 SortModel sortModel = Mockito.mock(SortModel.class); in testSortListFragmentShows_skipWhenStateSaved()
DFileManagementUiTest.java35 import com.android.documentsui.sorting.SortModel;
159 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testCopyLargeAmountOfFiles()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortModelTest.java30 import com.android.documentsui.sorting.SortModel.UpdateListener;
31 import com.android.documentsui.sorting.SortModel.UpdateType;
75 private SortModel mModel;
79 mModel = new SortModel(Arrays.asList(DIMENSIONS)); in setUp()
109 assertEquals(SortModel.UPDATE_TYPE_VISIBILITY, STUB_LISTENER.mLastUpdateType); in testSetDimensionVisibility()
114 assertEquals(SortModel.SORT_DIMENSION_ID_UNKNOWN, mModel.getSortedDimensionId()); in testNotSortedByDefault()
126 assertEquals(SortModel.UPDATE_TYPE_SORTING, STUB_LISTENER.mLastUpdateType); in testSortByDefault()
138 assertEquals(SortModel.UPDATE_TYPE_SORTING, STUB_LISTENER.mLastUpdateType); in testSortByUser()
151 assertEquals(SortModel.UPDATE_TYPE_SORTING, STUB_LISTENER.mLastUpdateType); in testOrderNotChanged_sortByDefaultAfterSortByUser()
164 assertEquals(SortModel.UPDATE_TYPE_SORTING, STUB_LISTENER.mLastUpdateType); in testOrderChanged_sortByUserAfterSortByDefault()
[all …]
DSortingCursorWrapperTest.java37 import com.android.documentsui.sorting.SortModel.SortDimensionId;
108 private SortModel sortModel;
139 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_TITLE, in testSort_names_ascending()
163 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_TITLE, in testSort_names_descending()
184 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizes_ascending()
207 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizes_descending()
242 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizesWithBucketing_ascending()
294 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizesWithBucketing_descending()
352 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_DATE, in testSort_time_ascending()
389 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_DATE, in testSort_time_descending()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DSortModels.java19 import com.android.documentsui.sorting.SortModel;
25 public static SortModel createTestSortModel() { in createTestSortModel()
28 return SortModel.createModel(); in createTestSortModel()
DTestEnv.java37 import com.android.documentsui.sorting.SortModel;
92 state.sortModel = SortModel.createModel(); in TestEnv()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSortBot.java47 import com.android.documentsui.sorting.SortModel;
48 import com.android.documentsui.sorting.SortModel.SortDimensionId;
60 private final SortModel mSortModel = SortModel.createModel();
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DGlobalSearchLoaderTest.java35 import com.android.documentsui.sorting.SortModel;
223 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeSearchString()
257 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeDifferentRoot()
289 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeCurrentUserRootOnly()
323 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeBothUsersRoots()
352 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_emptyCurrentUsersRoot()
DAbstractActionHandlerTest.java44 import com.android.documentsui.sorting.SortModel;
264 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testLoadChildrenDocuments()
289 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testCrossProfileDocuments_success()
383 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryState.java26 import com.android.documentsui.sorting.SortModel;
41 int mLastSortDimensionId = SortModel.SORT_DIMENSION_ID_UNKNOWN;
DDirectoryFragment.java112 import com.android.documentsui.sorting.SortModel;
212 private SortModel.UpdateListener mSortListener = (model, updateType) -> {
214 if ((updateType & SortModel.UPDATE_TYPE_SORTING) != 0) {
565 ? SortModel.SORT_DIMENSION_ID_DATE in onActivityCreated()
566 : SortModel.SORT_DIMENSION_ID_TITLE); in onActivityCreated()
1409 || mLocalState.mLastSortDimensionId == SortModel.SORT_DIMENSION_ID_UNKNOWN in accept()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DState.java28 import com.android.documentsui.sorting.SortModel;
80 public SortModel sortModel;
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDirectoryLoader.java50 import com.android.documentsui.sorting.SortModel;
67 private final SortModel mModel;
DBaseActivity.java76 import com.android.documentsui.sorting.SortModel;
405 state.sortModel = SortModel.createModel(); in getState()
477 SortModel.SORT_DIMENSION_ID_SUMMARY, in onRootPicked()