HomeSort by relevance Sort by last modified time
    Searched refs:SortModel (Results 1 - 18 of 18) sorted by null

  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
SortModels.java 19 import com.android.documentsui.sorting.SortModel;
25 public static SortModel createTestSortModel() {
28 return SortModel.createModel();
TestEnv.java 31 import com.android.documentsui.sorting.SortModel;
76 state.sortModel = SortModel.createModel();
  /packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
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) {
46 assert(sortModel != null);
49 mModel = sortModel;
58 onModelUpdate(mModel, SortModel.UPDATE_TYPE_UNSPECIFIED);
63 private void onModelUpdate(SortModel model, int updateTypeUnspecified) {
64 bindCell(mTitleCell, SortModel.SORT_DIMENSION_ID_TITLE)
    [all...]
SortModel.java 48 public class SortModel implements Parcelable {
92 private static final String TAG = "SortModel";
104 SortModel(Collection<SortDimension> columns) {
244 case SortModel.SORT_DIMENSION_ID_TITLE:
249 case SortModel.SORT_DIMENSION_ID_DATE:
254 case SortModel.SORT_DIMENSION_ID_SIZE:
259 case SortModel.SORT_DIMENSION_ID_FILE_TYPE:
301 case SortModel.SORT_DIMENSION_ID_TITLE:
304 case SortModel.SORT_DIMENSION_ID_DATE:
307 case SortModel.SORT_DIMENSION_ID_SIZE
    [all...]
SortController.java 78 SortModel sortModel) {
80 sortModel.setMetricRecorder((SortDimension dimension) -> {
82 case SortModel.SORT_DIMENSION_ID_TITLE:
85 case SortModel.SORT_DIMENSION_ID_SIZE:
88 case SortModel.SORT_DIMENSION_ID_DATE:
96 sortModel,
99 sortModel,
DropdownSortWidgetController.java 31 import com.android.documentsui.sorting.SortModel.SortDimensionId;
32 import com.android.documentsui.sorting.SortModel.UpdateType;
42 private final SortModel mModel;
47 private final SortModel.UpdateListener mListener;
49 public DropdownSortWidgetController(SortModel model, View widget) {
63 onModelUpdate(mModel, SortModel.UPDATE_TYPE_UNSPECIFIED);
94 private void onModelUpdate(SortModel model, @UpdateType int updateType) {
97 if ((updateType & SortModel.UPDATE_TYPE_VISIBILITY) != 0) {
101 if ((updateType & SortModel.UPDATE_TYPE_SORTING) != 0) {
118 if (sortedId == SortModel.SORT_DIMENSION_ID_UNKNOWN)
    [all...]
SortingCursorWrapper.java 29 import com.android.documentsui.sorting.SortModel.SortDimensionId;
53 case SortModel.SORT_DIMENSION_ID_TITLE:
54 case SortModel.SORT_DIMENSION_ID_FILE_TYPE:
57 case SortModel.SORT_DIMENSION_ID_DATE:
58 case SortModel.SORT_DIMENSION_ID_SIZE:
73 case SortModel.SORT_DIMENSION_ID_TITLE:
78 case SortModel.SORT_DIMENSION_ID_FILE_TYPE:
81 case SortModel.SORT_DIMENSION_ID_DATE:
84 case SortModel.SORT_DIMENSION_ID_SIZE:
92 case SortModel.SORT_DIMENSION_ID_TITLE
    [all...]
  /packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
SortDocumentUiTest.java 24 import com.android.documentsui.sorting.SortModel;
103 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_DESCENDING);
113 SortModel.SORT_DIMENSION_ID_SIZE, SortDimension.SORT_DIRECTION_ASCENDING);
123 SortModel.SORT_DIMENSION_ID_SIZE, SortDimension.SORT_DIRECTION_DESCENDING);
133 SortModel.SORT_DIMENSION_ID_DATE, SortDimension.SORT_DIRECTION_ASCENDING);
143 SortModel.SORT_DIMENSION_ID_DATE, SortDimension.SORT_DIRECTION_DESCENDING);
153 SortModel.SORT_DIMENSION_ID_FILE_TYPE, SortDimension.SORT_DIRECTION_ASCENDING);
163 SortModel.SORT_DIMENSION_ID_FILE_TYPE, SortDimension.SORT_DIRECTION_DESCENDING);
173 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_DESCENDING);
183 SortModel.SORT_DIMENSION_ID_SIZE, SortDimension.SORT_DIRECTION_ASCENDING)
    [all...]
FileManagementUiTest.java 33 import com.android.documentsui.sorting.SortModel;
154 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING);
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
SortModelTest.java 29 import com.android.documentsui.sorting.SortModel.UpdateListener;
30 import com.android.documentsui.sorting.SortModel.UpdateType;
74 private SortModel mModel;
78 mModel = new SortModel(Arrays.asList(DIMENSIONS));
108 assertEquals(SortModel.UPDATE_TYPE_VISIBILITY, DUMMY_LISTENER.mLastUpdateType);
113 assertEquals(SortModel.SORT_DIMENSION_ID_UNKNOWN, mModel.getSortedDimensionId());
125 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType);
137 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType);
150 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType);
163 assertEquals(SortModel.UPDATE_TYPE_SORTING, DUMMY_LISTENER.mLastUpdateType)
    [all...]
SortingCursorWrapperTest.java 35 import com.android.documentsui.sorting.SortModel.SortDimensionId;
106 private SortModel sortModel;
111 sortModel = SortModels.createTestSortModel();
137 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_TITLE,
161 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_TITLE,
182 sortModel.sortByUser(SortModel.SORT_DIMENSION_ID_SIZE
    [all...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DirectoryState.java 25 import com.android.documentsui.sorting.SortModel;
40 int mLastSortDimensionId = SortModel.SORT_DIMENSION_ID_UNKNOWN;
DirectoryFragment.java 103 import com.android.documentsui.sorting.SortModel;
187 private SortModel.UpdateListener mSortListener = (model, updateType) -> {
189 if ((updateType & SortModel.UPDATE_TYPE_SORTING) != 0) {
401 mState.sortModel.setDefaultDimension(
403 ? SortModel.SORT_DIMENSION_ID_DATE
404 : SortModel.SORT_DIMENSION_ID_TITLE);
415 mState.sortModel.addListener(mSortListener);
422 mState.sortModel.removeListener(mSortListener);
    [all...]
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
SortHeaderBot.java 41 import com.android.documentsui.sorting.SortModel;
42 import com.android.documentsui.sorting.SortModel.SortDimensionId;
54 private final SortModel mSortModel = SortModel.createModel();
  /packages/apps/DocumentsUI/src/com/android/documentsui/base/
State.java 28 import com.android.documentsui.sorting.SortModel;
79 public SortModel sortModel;
135 out.writeParcelable(sortModel, 0);
151 + ", sortModel=" + sortModel
174 state.sortModel = in.readParcelable(loader);
  /packages/apps/DocumentsUI/src/com/android/documentsui/
DirectoryLoader.java 46 import com.android.documentsui.sorting.SortModel;
59 private final SortModel mModel;
75 SortModel model,
BaseActivity.java 66 import com.android.documentsui.sorting.SortModel;
193 mSortController = SortController.create(this, mState.derivedMode, mState.sortModel);
271 state.sortModel = SortModel.createModel();
308 mState.sortModel.setDimensionVisibility(
309 SortModel.SORT_DIMENSION_ID_SUMMARY,
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
AbstractActionHandlerTest.java 37 import com.android.documentsui.sorting.SortModel;
220 mEnv.state.sortModel.sortByUser(
221 SortModel.SORT_DIMENSION_ID_TITLE, SortDimension.SORT_DIRECTION_ASCENDING);

Completed in 1309 milliseconds