Home
last modified time | relevance | path

Searched refs:sortModel (Results 1 – 13 of 13) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java107 private SortModel sortModel; field in SortingCursorWrapperTest
112 sortModel = SortModels.createTestSortModel(); in setUp()
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()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DTableHeaderController.java44 private TableHeaderController(SortModel sortModel, View tableHeader) { in TableHeaderController() argument
45 assert(sortModel != null); in TableHeaderController()
48 mModel = sortModel; in TableHeaderController()
102 SortModel sortModel, @Nullable View tableHeader) { in create() argument
103 return (tableHeader == null) ? null : new TableHeaderController(sortModel, tableHeader); in create()
DSortController.java65 SortModel sortModel) { in create() argument
68 sortModel.setMetricRecorder((SortDimension dimension) -> { in create()
88 TableHeaderController.create(sortModel, activity.findViewById(R.id.table_header))); in create()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DState.java86 public SortModel sortModel; field in State
203 out.writeParcelable(sortModel, 0); in writeToParcel()
218 + ", sortModel=" + sortModel in toString()
240 state.sortModel = in.readParcelable(loader);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DGlobalSearchLoaderTest.java249 mEnv.state.sortModel.sortByUser( in testSearchResult_includeSearchString()
283 mEnv.state.sortModel.sortByUser( in testSearchResult_includeDifferentRoot()
315 mEnv.state.sortModel.sortByUser( in testSearchResult_includeCurrentUserRootOnly()
353 mEnv.state.sortModel.sortByUser( in testSearchResult_includeBothUsersRoots()
382 mEnv.state.sortModel.sortByUser( in testSearchResult_emptyCurrentUsersRoot()
DAbstractActionHandlerTest.java288 mEnv.state.sortModel.sortByUser( in testLoadChildrenDocuments()
317 mEnv.state.sortModel.sortByUser( in testCrossProfileDocuments_success()
415 mEnv.state.sortModel.sortByUser( in testCrossProfileDocuments_reloadSuccessAfterCrossProfileError()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMultiRootDocumentsLoader.java243 sorted = mState.sortModel.sortCursor(merged, mFileTypeMap); in loadInBackgroundLocked()
246 sorted = mState.sortModel.sortCursor(notMovableMasked, mFileTypeMap); in loadInBackgroundLocked()
431 mState.sortModel.addQuerySortArgs(queryArgs); in runInternal()
DBaseActivity.java370 mSortController = SortController.create(this, mState.derivedMode, mState.sortModel); in onCreate()
475 state.sortModel = SortModel.createModel(); in getState()
547 mState.sortModel.setDimensionVisibility( in onRootPicked()
DDirectoryLoader.java95 mModel = state.sortModel; in DirectoryLoader()
DAbstractActionHandler.java335 SortListFragment.show(mActivity.getSupportFragmentManager(), mState.sortModel); in showSortDialog()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDialogUiTest.java260 SortModel sortModel = Mockito.mock(SortModel.class); in testSortListFragmentShows_skipWhenStateSaved() local
262 SortListFragment.show(mFragmentManager, sortModel); in testSortListFragmentShows_skipWhenStateSaved()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java633 mState.sortModel.setDefaultDimension( in onActivityCreated()
681 mState.sortModel.addListener(mSortListener); in onStart()
691 mState.sortModel.removeListener(mSortListener); in onStop()
1463 final int curSortedDimensionId = mState.sortModel.getSortedDimensionId(); in accept()
1466 mState.sortModel.getDimensionById(curSortedDimensionId); in accept()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java92 state.sortModel = SortModel.createModel(); in TestEnv()