Home
last modified time | relevance | path

Searched refs:MODE_GRID (Results 1 – 14 of 14) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DState.java63 MODE_GRID
69 public static final int MODE_GRID = 2; field in State
75 public @ViewMode int derivedMode = MODE_GRID;
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java20 import static com.android.documentsui.base.State.MODE_GRID;
113 case MODE_GRID: in getThumbSize()
178 final boolean allowThumbnail = (mMode == MODE_GRID) in load()
DHeaderMessageDocumentHolder.java19 import static com.android.documentsui.base.State.MODE_GRID;
74 int padding = itemView.getResources().getDimensionPixelSize(mode == MODE_GRID in setPadding()
DModelBackedDocumentsAdapter.java21 import static com.android.documentsui.base.State.MODE_GRID;
90 case MODE_GRID: in onCreateViewHolder()
DTransparentDividerDocumentHolder.java49 if (mState.derivedMode == State.MODE_GRID) { in bind()
DDirectoryFragment.java22 import static com.android.documentsui.base.State.MODE_GRID;
447 mIconHelper = new IconHelper(mActivity, MODE_GRID, mState.supportsCrossProfile()); in onActivityCreated()
692 mState.derivedMode == State.MODE_GRID ? R.string.grid_mode_showing in onViewModeChanged()
749 if (mMode == MODE_GRID) { in scaleLayout()
819 case MODE_GRID: in getDirectoryPadding()
DDirectoryAddonsAdapter.java84 && mEnv.getDisplayState().derivedMode == State.MODE_GRID) { in createSpanSizeLookup()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DBaseActivity.java21 import static com.android.documentsui.base.State.MODE_GRID;
540 setViewMode(State.MODE_GRID); in onOptionsItemSelected()
608 mState.derivedMode = LocalPreferences.getViewMode(this, mState.stack.getRoot(), MODE_GRID); in refreshCurrentRootAndDirectory()
685 if (mode == State.MODE_GRID) { in setViewMode()
DMenuManager.java261 Menus.setEnabledAndVisible(grid, mState.derivedMode != State.MODE_GRID); in updateModePicker()
263 Menus.setEnabledAndVisible(grid, mState.derivedMode != State.MODE_GRID); in updateModePicker()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortController_TabletLayoutTest.java48 mController.onViewModeChanged(State.MODE_GRID); in testGridMode_hidesTable()
DSortControllerTest.java41 mController.onViewModeChanged(State.MODE_GRID); in testGridMode_hidesTable()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DModelBackedDocumentsAdapterTest.java50 new IconHelper(testContext, State.MODE_GRID, /* maybeShowBadge= */ false), in setUp()
DDirectoryAddonsAdapterTest.java59 new IconHelper(testContext, State.MODE_GRID, /* maybeShowBadge= */ false), in setUp()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java346 mState.derivedMode = visualMimes ? State.MODE_GRID : State.MODE_LIST; in refreshDirectory()