Home
last modified time | relevance | path

Searched refs:mExpandableListView (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListViewTest.java78 private ExpandableListView mExpandableListView; field in ExpandableListViewTest
95 mExpandableListView = mActivity.getExpandableListView(); in setup()
143 mExpandableListView.setChildDivider(drawable); in testSetChildDivider()
148 mExpandableListView.setAdapter((ListAdapter) null); in testSetAdapterOfWrongType()
154 assertNull(mExpandableListView.getAdapter()); in testGetAdapter()
157 mExpandableListView.setAdapter(expandableAdapter); in testGetAdapter()
158 assertNotNull(mExpandableListView.getAdapter()); in testGetAdapter()
166 assertNull(mExpandableListView.getExpandableListAdapter()); in testAccessExpandableListAdapter()
167 mExpandableListView.setAdapter(expandableAdapter); in testAccessExpandableListAdapter()
168 assertSame(expandableAdapter, mExpandableListView.getExpandableListAdapter()); in testAccessExpandableListAdapter()
[all …]
DExpandableListTester.java36 private final ExpandableListView mExpandableListView; field in ExpandableListTester
45 mExpandableListView = expandableListView; in ExpandableListTester()
48 mListUtil = new ListUtil(mExpandableListView, mInstrumentation); in ExpandableListTester()
49 mAdapter = mExpandableListView.getExpandableListAdapter(); in ExpandableListTester()
53 Assert.assertFalse("Group is already expanded", mExpandableListView in expandGroup()
60 WidgetTestUtils.runOnMainAndDrawSync(mActivityTestRule, mExpandableListView, null); in expandGroup()
61 mCtsKeyEventUtil.sendKeys(mInstrumentation, mExpandableListView, in expandGroup()
63 WidgetTestUtils.runOnMainAndDrawSync(mActivityTestRule, mExpandableListView, null); in expandGroup()
66 mExpandableListView.isGroupExpanded(groupIndex)); in expandGroup()
72 mExpandableListView.setOnCreateContextMenuListener(menuListener); in testContextMenus()
[all …]
DExpandableListViewBasicTest.java56 private ExpandableListView mExpandableListView; field in ExpandableListViewBasicTest
76 mExpandableListView = mActivity.getExpandableListView(); in setup()
77 mAdapter = mExpandableListView.getExpandableListAdapter(); in setup()
78 mListUtil = new ListUtil(mExpandableListView, mInstrumentation); in setup()
84 assertNotNull(mExpandableListView); in testPreconditions()
91 assertFalse("Group is already expanded", mExpandableListView.isGroupExpanded(groupPos)); in expandGroup()
97 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in expandGroup()
98 mCtsKeyEventUtil.sendKeys(mInstrumentation, mExpandableListView, in expandGroup()
100 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in expandGroup()
102 assertTrue("Group did not expand", mExpandableListView.isGroupExpanded(groupPos)); in expandGroup()
[all …]
DExpandableListViewWithHeadersTest.java51 private ExpandableListView mExpandableListView; field in ExpandableListViewWithHeadersTest
70 mExpandableListView = mActivity.getExpandableListView(); in setup()
71 mListUtil = new ListUtil(mExpandableListView, mInstrumentation); in setup()
76 assertNotNull(mExpandableListView); in testPreconditions()
83 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandOnFirstPosition()
85 mCtsKeyEventUtil.sendKeys(mInstrumentation, mExpandableListView, in testExpandOnFirstPosition()
87 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandOnFirstPosition()
89 assertFalse(mExpandableListView.isGroupExpanded(0)); in testExpandOnFirstPosition()
96 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mExpandableListView, null); in testExpandOnFirstGroup()
98 mCtsKeyEventUtil.sendKeys(mInstrumentation, mExpandableListView, in testExpandOnFirstGroup()
[all …]