car/src/androidTest/java/androidx/car/widget/ActionBarTest.java
private void assertLeftItemsNotEmpty(int rowIdx, int numItems) {
        for (int colIdx = 0; colIdx < NUM_COLS - 1; colIdx++) {
            if (colIdx < numItems) {
                assertNotNull(String.format("Slot (%d, %d) should be taken", rowIdx, colIdx),
                        mActionBar.getViewAt(rowIdx, colIdx));
            } else {
                assertNull(String.format("Slot (%d, %d) should be empty", rowIdx, colIdx),
                        mActionBar.getViewAt(rowIdx, colIdx));
            }
        }
    }
/**
     * Asserts that only the first 'numItems' slots are used.
     */
Asserts that only the first 'numItems' slots are used.
Asserts that only the first ' numItems ' slots are used .
private void assertLeftItemsNotEmpty(int rowIdx, int numItems) {
        for (int colIdx = 0; colIdx < NUM_COLS - 1; colIdx++) {
            if (colIdx < numItems) {
                assertNotNull(String.format("Slot (%d, %d) should be taken", rowIdx, colIdx),
                        mActionBar.getViewAt(rowIdx, colIdx));
            } else {
                assertNull(String.format("Slot (%d, %d) should be empty", rowIdx, colIdx),
                        mActionBar.getViewAt(rowIdx, colIdx));
            }
        }
    }
private void assertLeftItemsNotEmpty ( int rowIdx , int numItems ) { for ( int colIdx = 0 ; colIdx < NUM_COLS - 1 ; colIdx ++ ) { if ( colIdx < numItems ) { assertNotNull ( String . format ( "Slot (%d, %d) should be taken" , rowIdx , colIdx ) , mActionBar . getViewAt ( rowIdx , colIdx ) ) ; } else { assertNull ( String . format ( "Slot (%d, %d) should be empty" , rowIdx , colIdx ) , mActionBar . getViewAt ( rowIdx , colIdx ) ) ; } } }
Asserts that only the first 'numItems' slots are used.
Asserts that only the first ' numItems ' slots are used .