/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortModel.java | 49 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 …]
|
D | TableHeaderController.java | 22 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 …]
|
D | SortingCursorWrapper.java | 29 import com.android.documentsui.sorting.SortModel.SortDimensionId; 53 case SortModel.SORT_DIMENSION_ID_TITLE: in SortingCursorWrapper() 54 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in SortingCursorWrapper() 57 case SortModel.SORT_DIMENSION_ID_DATE: in SortingCursorWrapper() 58 case SortModel.SORT_DIMENSION_ID_SIZE: in SortingCursorWrapper() 73 case SortModel.SORT_DIMENSION_ID_TITLE: in SortingCursorWrapper() 78 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in SortingCursorWrapper() 81 case SortModel.SORT_DIMENSION_ID_DATE: in SortingCursorWrapper() 84 case SortModel.SORT_DIMENSION_ID_SIZE: in SortingCursorWrapper() 92 case SortModel.SORT_DIMENSION_ID_TITLE: in SortingCursorWrapper() [all …]
|
D | SortListFragment.java | 20 import com.android.documentsui.sorting.SortModel.SortDimensionId; 33 private SortModel mModel; 36 public static void show(FragmentManager fm, SortModel model) { in show() 60 case SortModel.SORT_DIMENSION_ID_TITLE: in setupSortingList() 61 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in setupSortingList() 64 case SortModel.SORT_DIMENSION_ID_DATE: in setupSortingList() 65 case SortModel.SORT_DIMENSION_ID_SIZE: in setupSortingList() 90 case SortModel.SORT_DIMENSION_ID_TITLE: in getSheetLabelId() 93 case SortModel.SORT_DIMENSION_ID_DATE: in getSheetLabelId() 96 case SortModel.SORT_DIMENSION_ID_FILE_TYPE: in getSheetLabelId() [all …]
|
D | SortController.java | 65 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/ |
D | SortDocumentUiTest.java | 25 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 …]
|
D | FileManagementUiTest.java | 35 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/ |
D | SortModelTest.java | 30 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, DUMMY_LISTENER.mLastUpdateType); in testSetDimensionVisibility() 114 assertEquals(SortModel.SORT_DIMENSION_ID_UNKNOWN, mModel.getSortedDimensionId()); in testNotSortedByDefault() 126 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType); in testSortByDefault() 138 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType); in testSortByUser() 151 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType); in testOrderNotChanged_sortByDefaultAfterSortByUser() 164 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType); in testOrderChanged_sortByUserAfterSortByDefault() [all …]
|
D | SortingCursorWrapperTest.java | 37 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/ |
D | SortModels.java | 19 import com.android.documentsui.sorting.SortModel; 25 public static SortModel createTestSortModel() { in createTestSortModel() 28 return SortModel.createModel(); in createTestSortModel()
|
D | TestEnv.java | 35 import com.android.documentsui.sorting.SortModel; 80 state.sortModel = SortModel.createModel(); in TestEnv()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | SortBot.java | 47 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/ |
D | GlobalSearchLoaderTest.java | 33 import com.android.documentsui.sorting.SortModel; 188 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeSearchString() 221 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeDifferentRoot()
|
D | AbstractActionHandlerTest.java | 39 import com.android.documentsui.sorting.SortModel; 257 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testLoadChildrenDocuments()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryState.java | 26 import com.android.documentsui.sorting.SortModel; 41 int mLastSortDimensionId = SortModel.SORT_DIMENSION_ID_UNKNOWN;
|
D | DirectoryFragment.java | 103 import com.android.documentsui.sorting.SortModel; 186 private SortModel.UpdateListener mSortListener = (model, updateType) -> { 188 if ((updateType & SortModel.UPDATE_TYPE_SORTING) != 0) { 409 ? SortModel.SORT_DIMENSION_ID_DATE in onActivityCreated() 410 : SortModel.SORT_DIMENSION_ID_TITLE); in onActivityCreated() 1181 || mLocalState.mLastSortDimensionId == SortModel.SORT_DIMENSION_ID_UNKNOWN in accept()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | State.java | 28 import com.android.documentsui.sorting.SortModel; 80 public SortModel sortModel;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 46 import com.android.documentsui.sorting.SortModel; 61 private final SortModel mModel;
|
D | BaseActivity.java | 77 import com.android.documentsui.sorting.SortModel; 358 state.sortModel = SortModel.createModel(); in getState() 424 SortModel.SORT_DIMENSION_ID_SUMMARY, in onRootPicked()
|