Searched refs:numOfRows (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/ |
D | AppGridAdapterTest.java | 59 int numOfRows = 3; in testPageRounding_getItemCount_getPageCount() local 60 mTestAppGridAdapter = new AppGridAdapter(mMockContext, numOfCols, numOfRows, in testPageRounding_getItemCount_getPageCount() 86 numOfRows = 6; 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 …]
|
D | PageIndexingHelperTest.java | 264 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/ |
D | AppGridAdapter.java | 74 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 100 mNumOfRows = numOfRows; in AppGridAdapter() 104 mIndexingHelper = new PageIndexingHelper(numOfCols, numOfRows, pageOrientation); in AppGridAdapter() 109 public AppGridAdapter(Context context, int numOfCols, int numOfRows, in AppGridAdapter() argument 117 mNumOfRows = numOfRows; in AppGridAdapter() 122 mIndexingHelper = new PageIndexingHelper(numOfCols, numOfRows, pageOrientation); in AppGridAdapter()
|
D | AppGridLayoutManager.java | 33 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/ |
D | PageIndexingHelper.java | 36 public PageIndexingHelper(int numOfCols, int numOfRows, @PageOrientation int orientation) { in PageIndexingHelper() argument 38 mNumOfRows = numOfRows; in PageIndexingHelper()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsListTableViewHolderBinder.java | 185 int numOfRows = holder.tableContainer.getChildCount(); in unbindViewHolder() local 187 for (int i = 0; i < numOfRows; i++) { in unbindViewHolder()
|