Home | History | Annotate | Download | only in cts

Lines Matching defs:TableRow

45 import android.widget.TableRow;
54 * Test {@link TableRow}.
72 new TableRow(mActivity);
74 new TableRow(mActivity, null);
80 TableRow tableRow = new TableRow(mActivity);
84 tableRow.setOnHierarchyChangeListener(mockHierarchyChangeListener);
87 tableRow.addView(toAdd);
88 verify(mockHierarchyChangeListener, times(1)).onChildViewAdded(tableRow, toAdd);
89 tableRow.removeViewAt(0);
90 verify(mockHierarchyChangeListener, times(1)).onChildViewRemoved(tableRow, toAdd);
93 tableRow.setOnHierarchyChangeListener(null);
94 tableRow.addView(new TextView(mActivity));
95 tableRow.removeViewAt(0);
106 TableRow tableRow = (TableRow) tableLayout.getChildAt(0);
109 ((TextView) tableRow.getVirtualChildAt(0)).getText().toString());
111 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString());
113 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString());
118 tableRow = (TableRow) tableLayout.getChildAt(0);
119 assertNull(tableRow.getVirtualChildAt(0));
121 ((TextView) tableRow.getVirtualChildAt(1)).getText().toString());
123 ((TextView) tableRow.getVirtualChildAt(2)).getText().toString());
125 ((TextView) tableRow.getVirtualChildAt(3)).getText().toString());
127 ((TextView) tableRow.getVirtualChildAt(4)).getText().toString());
137 TableRow tableRow = (TableRow) tableLayout.getChildAt(0);
138 assertEquals(3, tableRow.getVirtualChildCount());
143 tableRow = (TableRow) tableLayout.getChildAt(0);
144 assertEquals(5, tableRow.getVirtualChildCount());
149 TableRow tableRow = new TableRow(mActivity);
155 assertNotNull(tableRow.generateLayoutParams(attr));
157 assertNotNull(tableRow.generateLayoutParams((AttributeSet) null));
164 assertTrue(mockTableRow.checkLayoutParams(new TableRow.LayoutParams(200, 300)));
179 assertTrue(layoutParams instanceof TableRow.LayoutParams);
191 assertTrue(layoutParams instanceof TableRow.LayoutParams);
216 * Mock class for TableRow to test protected methods
218 private class MockTableRow extends TableRow {