/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortModel.java | 49 public class SortModel implements Parcelable { class 95 SortModel(Collection<SortDimension> columns) { in SortModel() method in SortModel 234 } else if (id == SortModel.SORT_DIMENSION_ID_TITLE) { in addQuerySortArgs() 238 } else if (id == SortModel.SORT_DIMENSION_ID_DATE) { in addQuerySortArgs() 242 } else if (id == SortModel.SORT_DIMENSION_ID_SIZE) { in addQuerySortArgs() 246 } else if (id == SortModel.SORT_DIMENSION_ID_FILE_TYPE) { in addQuerySortArgs() 287 } else if (id == SortModel.SORT_DIMENSION_ID_TITLE) { in getDocumentSortQuery() 289 } else if (id == SortModel.SORT_DIMENSION_ID_DATE) { in getDocumentSortQuery() 291 } else if (id == SortModel.SORT_DIMENSION_ID_SIZE) { in getDocumentSortQuery() 293 } else if (id == SortModel.SORT_DIMENSION_ID_FILE_TYPE) { in getDocumentSortQuery() [all …]
|
D | TableHeaderController.java | 40 private final SortModel.UpdateListener mModelListener = this::onModelUpdate; 42 private final SortModel mModel; 44 private TableHeaderController(SortModel sortModel, View tableHeader) { in TableHeaderController() 57 onModelUpdate(mModel, SortModel.UPDATE_TYPE_UNSPECIFIED); in TableHeaderController() 62 private void onModelUpdate(SortModel model, int updateTypeUnspecified) { in onModelUpdate() 63 bindCell(mTitleCell, SortModel.SORT_DIMENSION_ID_TITLE); in onModelUpdate() 64 bindCell(mSummaryCell, SortModel.SORT_DIMENSION_ID_SUMMARY); in onModelUpdate() 65 bindCell(mSizeCell, SortModel.SORT_DIMENSION_ID_SIZE); in onModelUpdate() 66 bindCell(mFileTypeCell, SortModel.SORT_DIMENSION_ID_FILE_TYPE); in onModelUpdate() 67 bindCell(mDateCell, SortModel.SORT_DIMENSION_ID_DATE); in onModelUpdate() [all …]
|
D | SortingCursorWrapper.java | 52 if (id == SortModel.SORT_DIMENSION_ID_TITLE in SortingCursorWrapper() 53 || id == SortModel.SORT_DIMENSION_ID_FILE_TYPE) { in SortingCursorWrapper() 55 } else if (id == SortModel.SORT_DIMENSION_ID_DATE in SortingCursorWrapper() 56 || id == SortModel.SORT_DIMENSION_ID_SIZE) { in SortingCursorWrapper() 69 if (id == SortModel.SORT_DIMENSION_ID_TITLE) { in SortingCursorWrapper() 73 } else if (id == SortModel.SORT_DIMENSION_ID_FILE_TYPE) { in SortingCursorWrapper() 75 } else if (id == SortModel.SORT_DIMENSION_ID_DATE) { in SortingCursorWrapper() 77 } else if (id == SortModel.SORT_DIMENSION_ID_SIZE) { in SortingCursorWrapper() 83 if (id == SortModel.SORT_DIMENSION_ID_TITLE in SortingCursorWrapper() 84 || id == SortModel.SORT_DIMENSION_ID_FILE_TYPE) { in SortingCursorWrapper() [all …]
|
D | SortListFragment.java | 35 private SortModel mModel; 38 public static void show(FragmentManager fm, SortModel model) { in show() 69 if (id == SortModel.SORT_DIMENSION_ID_TITLE in setupSortingList() 70 || id == SortModel.SORT_DIMENSION_ID_FILE_TYPE) { in setupSortingList() 72 } else if (id == SortModel.SORT_DIMENSION_ID_DATE in setupSortingList() 73 || id == SortModel.SORT_DIMENSION_ID_SIZE) { in setupSortingList() 96 if (id == SortModel.SORT_DIMENSION_ID_TITLE) { in getSheetLabelId() 99 } else if (id == SortModel.SORT_DIMENSION_ID_DATE) { in getSheetLabelId() 102 } else if (id == SortModel.SORT_DIMENSION_ID_FILE_TYPE) { in getSheetLabelId() 105 } else if (id == SortModel.SORT_DIMENSION_ID_SIZE) { in getSheetLabelId()
|
D | SortController.java | 65 SortModel sortModel) { in create() 71 if (id == SortModel.SORT_DIMENSION_ID_TITLE) { in create() 73 } else if (id == SortModel.SORT_DIMENSION_ID_SIZE) { in create() 75 } else if (id == SortModel.SORT_DIMENSION_ID_DATE) { in create() 77 } else if (id == 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 | DialogUiTest.java | 47 import com.android.documentsui.sorting.SortModel; 260 SortModel sortModel = Mockito.mock(SortModel.class); in testSortListFragmentShows_skipWhenStateSaved()
|
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, 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 …]
|
D | SortingCursorWrapperTest.java | 107 private SortModel sortModel; 138 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_TITLE, in testSort_names_ascending() 162 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_TITLE, in testSort_names_descending() 183 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizes_ascending() 206 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizes_descending() 241 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizesWithBucketing_ascending() 293 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE, in testSort_sizesWithBucketing_descending() 351 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_DATE, in testSort_time_ascending() 388 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_DATE, in testSort_time_descending() 408 SortModel.SORT_DIMENSION_ID_FILE_TYPE, SortDimension.SORT_DIRECTION_ASCENDING); in testSort_type_ascending() [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 | 37 import com.android.documentsui.sorting.SortModel; 92 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; 59 private final SortModel mSortModel = SortModel.createModel();
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | GlobalSearchLoaderTest.java | 34 import com.android.documentsui.sorting.SortModel; 250 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeSearchString() 284 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeDifferentRoot() 316 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeCurrentUserRootOnly() 354 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_includeBothUsersRoots() 383 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testSearchResult_emptyCurrentUsersRoot()
|
D | AbstractActionHandlerTest.java | 43 import com.android.documentsui.sorting.SortModel; 289 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testLoadChildrenDocuments() 318 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testCrossProfileDocuments_success() 416 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING); in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
|
/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 | 114 import com.android.documentsui.sorting.SortModel; 217 private SortModel.UpdateListener mSortListener = (model, updateType) -> { 219 if ((updateType & SortModel.UPDATE_TYPE_SORTING) != 0) { 635 ? SortModel.SORT_DIMENSION_ID_DATE in onActivityCreated() 636 : SortModel.SORT_DIMENSION_ID_TITLE); in onActivityCreated() 1473 || mLocalState.mLastSortDimensionId == SortModel.SORT_DIMENSION_ID_UNKNOWN in accept()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | State.java | 29 import com.android.documentsui.sorting.SortModel; 86 public SortModel sortModel;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 50 import com.android.documentsui.sorting.SortModel; 68 private final SortModel mModel;
|
D | BaseActivity.java | 77 import com.android.documentsui.sorting.SortModel; 475 state.sortModel = SortModel.createModel(); in getState() 548 SortModel.SORT_DIMENSION_ID_SUMMARY, in onRootPicked()
|
/packages/apps/DocumentsUI/ |
D | perfetto_config.pbtx | 209 # filter_tags: "SortModel"
|