Lines Matching refs:item2
62 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2");
65 Assert.assertEquals(groupId, item2.getGroupId());
193 final MenuItem item2 = mMenu.add(groupId, 2, 0, "item2");
200 Assert.assertFalse("Item was not unchecked due to exclusive checkable", item2.isChecked());
202 Assert.assertTrue("Item did not get checked", item2.isChecked());
213 Assert.assertTrue("Item did not get checked", item2.isChecked());
220 final MenuItem item2 = mMenu.add(0, 2, 0, "item2");
224 Assert.assertTrue("Item did not start as visible", item2.isVisible());
230 Assert.assertFalse("Item did not become invisible", item2.isVisible());
238 final MenuItem item2 = subMenu.add(0, 2, 0, "item2");
242 Assert.assertEquals(item2, mMenu.findItem(2));
249 final MenuItem item2 = mMenu.add(groupId, 2, 0, "item2");
259 Assert.assertEquals(item2, mMenu.findItem(2));