Home
last modified time | relevance | path

Searched refs:numOfCols (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/
DAppGridAdapterTest.java58 int numOfCols = 5; in testPageRounding_getItemCount_getPageCount() local
60 mTestAppGridAdapter = new AppGridAdapter(mMockContext, numOfCols, numOfRows, in testPageRounding_getItemCount_getPageCount()
85 numOfCols = 4; in testPageRounding_getItemCount_getPageCount()
88 mTestAppGridAdapter = new AppGridAdapter(mMockContext, numOfCols, numOfRows, in testPageRounding_getItemCount_getPageCount()
99 when(mTestAppGridAdapter.getLauncherItemsCount()).thenReturn(numOfCols * numOfRows); in testPageRounding_getItemCount_getPageCount()
100 assertEquals(numOfCols * numOfRows, mTestAppGridAdapter.getItemCount()); in testPageRounding_getItemCount_getPageCount()
103 when(mTestAppGridAdapter.getLauncherItemsCount()).thenReturn(numOfCols * numOfRows + 1); in testPageRounding_getItemCount_getPageCount()
104 assertEquals(2 * numOfCols * numOfRows, mTestAppGridAdapter.getItemCount()); in testPageRounding_getItemCount_getPageCount()
107 when(mTestAppGridAdapter.getLauncherItemsCount()).thenReturn(2 * numOfCols * numOfRows - 1); in testPageRounding_getItemCount_getPageCount()
108 assertEquals(2 * numOfCols * numOfRows, mTestAppGridAdapter.getItemCount()); in testPageRounding_getItemCount_getPageCount()
[all …]
DPageIndexingHelperTest.java264 private PageIndexingHelper createTestAppGridPagingUtils(int numOfCols, int numOfRows, in createTestAppGridPagingUtils() argument
266 PageIndexingHelper utils = new PageIndexingHelper(numOfCols, numOfRows, in createTestAppGridPagingUtils()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/recyclerview/
DAppGridAdapter.java74 public AppGridAdapter(Context context, int numOfCols, int numOfRows, in AppGridAdapter() argument
77 this(context, numOfCols, numOfRows, in AppGridAdapter()
83 public AppGridAdapter(Context context, int numOfCols, int numOfRows, in AppGridAdapter() argument
88 this(context, numOfCols, numOfRows, pageOrientation, layoutInflater, in AppGridAdapter()
92 public AppGridAdapter(Context context, int numOfCols, int numOfRows, in AppGridAdapter() argument
99 mNumOfCols = numOfCols; in AppGridAdapter()
104 mIndexingHelper = new PageIndexingHelper(numOfCols, numOfRows, pageOrientation); in AppGridAdapter()
109 public AppGridAdapter(Context context, int numOfCols, int numOfRows, in AppGridAdapter() argument
116 mNumOfCols = numOfCols; in AppGridAdapter()
122 mIndexingHelper = new PageIndexingHelper(numOfCols, numOfRows, pageOrientation); in AppGridAdapter()
DAppGridLayoutManager.java33 public AppGridLayoutManager(Context context, int numOfCols, int numOfRows, in AppGridLayoutManager() argument
35 super(context, isHorizontal(pageOrientation) ? numOfRows : numOfCols, in AppGridLayoutManager()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/pagination/
DPageIndexingHelper.java36 public PageIndexingHelper(int numOfCols, int numOfRows, @PageOrientation int orientation) { in PageIndexingHelper() argument
37 mNumOfCols = numOfCols; in PageIndexingHelper()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListTableViewHolderBinder.java189 int numOfCols = tableRow.getChildCount(); in unbindViewHolder() local
190 for (int j = 0; j < numOfCols; j++) { in unbindViewHolder()