Home
last modified time | relevance | path

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

/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DGenreFragment.java185 private HeaderSpanSizeLookup(int spanCount) { in HeaderSpanSizeLookup() argument
186 mSpanCount = spanCount; in HeaderSpanSizeLookup()
195 public int getSpanIndex(int position, int spanCount) { in getSpanIndex() argument
196 return position == 0 ? 0 : (position - 1) % spanCount; in getSpanIndex()
200 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
201 return adapterPosition == 0 ? 0 : ((adapterPosition - 1) / spanCount) + 1; in getSpanGroupIndex()
DSeriesFragment.java189 private HeaderSpanSizeLookup(int spanCount) { in HeaderSpanSizeLookup() argument
190 mSpanCount = spanCount; in HeaderSpanSizeLookup()
199 public int getSpanIndex(int position, int spanCount) { in getSpanIndex() argument
200 return position == 0 ? 0 : (position - 1) % spanCount; in getSpanIndex()
204 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
205 return adapterPosition == 0 ? 0 : ((adapterPosition - 1) / spanCount) + 1; in getSpanGroupIndex()
DMovieFragment.java194 private HeaderSpanSizeLookup(int spanCount) { in HeaderSpanSizeLookup() argument
195 mSpanCount = spanCount; in HeaderSpanSizeLookup()
204 public int getSpanIndex(int position, int spanCount) { in getSpanIndex() argument
205 return position == 0 ? 0 : (position - 1) % spanCount; in getSpanIndex()
209 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
210 return adapterPosition == 0 ? 0 : ((adapterPosition - 1) / spanCount) + 1; in getSpanGroupIndex()
DAlbumFragment.java189 private HeaderSpanSizeLookup(int spanCount) { in HeaderSpanSizeLookup() argument
190 mSpanCount = spanCount; in HeaderSpanSizeLookup()
199 public int getSpanIndex(int position, int spanCount) { in getSpanIndex() argument
200 return position == 0 ? 0 : (position - 1) % spanCount; in getSpanIndex()
204 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
205 return adapterPosition == 0 ? 0 : ((adapterPosition - 1) / spanCount) + 1; in getSpanGroupIndex()
DArtistFragment.java200 private HeaderSpanSizeLookup(int spanCount) { in HeaderSpanSizeLookup() argument
201 mSpanCount = spanCount; in HeaderSpanSizeLookup()
210 public int getSpanIndex(int position, int spanCount) { in getSpanIndex() argument
211 return position == 0 ? 0 : (position - 1) % spanCount; in getSpanIndex()
215 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
216 return adapterPosition == 0 ? 0 : ((adapterPosition - 1) / spanCount) + 1; in getSpanGroupIndex()
DPlaylistFragment.java245 private HeaderSpanSizeLookup(int spanCount) { in HeaderSpanSizeLookup() argument
246 mSpanCount = spanCount; in HeaderSpanSizeLookup()
255 public int getSpanIndex(int position, int spanCount) { in getSpanIndex() argument
256 return position == 0 ? 0 : (position - 1) % spanCount; in getSpanIndex()
260 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
261 return adapterPosition == 0 ? 0 : ((adapterPosition - 1) / spanCount) + 1; in getSpanGroupIndex()
DOtherFragment.java230 public int getSpanIndex(int position, int spanCount) { in getSpanSizeLookup() argument
232 return super.getSpanIndex(position, spanCount); in getSpanSizeLookup()
236 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanSizeLookup() argument
238 return super.getSpanGroupIndex(adapterPosition, spanCount); in getSpanSizeLookup()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DGridSpacingItemDecoration.java47 int spanCount = layoutManager.getSpanCount(); in getItemOffsets() local
48 outRect.left = column * mSpacing / spanCount; in getItemOffsets()
49 outRect.right = mSpacing - (column + 1) * mSpacing / spanCount; in getItemOffsets()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiGridLayoutStyle.java66 public void setSpanCount(int spanCount) { in setSpanCount() argument
67 if (spanCount <= 0) { in setSpanCount()
70 mSpanCount = spanCount; in setSpanCount()
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialLayoutManager.java27 public SpeedDialLayoutManager(Context context, int spanCount) { in SpeedDialLayoutManager() argument
28 super(context, spanCount); in SpeedDialLayoutManager()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestGridLayoutManager.java39 private TestGridLayoutManager(Context context, int spanCount) { in TestGridLayoutManager() argument
40 super(context, spanCount); in TestGridLayoutManager()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DSharedLibraryFactoryAdapterV1.java164 final int spanCount = a.getInt( in from() local
181 return spanCount; in from()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerFragment.java1413 int spanCount = ((GridLayoutManager) mImageGrid.getLayoutManager()).getSpanCount();
1414 int numRows = (int) Math.ceil((float) getItemCount() / spanCount);
1415 int rowOfNewlySelectedTile = newlySelectedPosition / spanCount;
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DQuickSettingGridAdapter.java274 public int getSpanIndex(int position, int spanCount) { in getSpanIndex() argument