Home
last modified time | relevance | path

Searched refs:groupPosition (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DPositionTesterContextMenuListener.java28 private int groupPosition, childPosition; field in PositionTesterContextMenuListener
37 public void expectGroupContextMenu(int groupPosition) { in expectGroupContextMenu() argument
38 this.groupPosition = groupPosition; in expectGroupContextMenu()
42 public void expectChildContextMenu(int groupPosition, int childPosition) { in expectChildContextMenu() argument
43 this.groupPosition = groupPosition; in expectChildContextMenu()
49 this.groupPosition = flatPosition; in expectAdapterContextMenu()
61 if (!areEqual("Wrong flat position", groupPosition, adapterContextMenuInfo.position)) { in onCreateContextMenu()
79 if (!areEqual("Wrong group position", groupPosition, packedPositionGroup)) { in onCreateContextMenu()
DBaseExpandableListAdapterTest.java135 public Object getChild(int groupPosition, int childPosition) { in getChild() argument
139 public long getChildId(int groupPosition, int childPosition) { in getChildId() argument
143 public View getChildView(int groupPosition, int childPosition, in getChildView() argument
148 public int getChildrenCount(int groupPosition) { in getChildrenCount() argument
152 public Object getGroup(int groupPosition) { in getGroup() argument
164 public long getGroupId(int groupPosition) { in getGroupId() argument
168 public View getGroupView(int groupPosition, boolean isExpanded, in getGroupView() argument
177 public boolean isChildSelectable(int groupPosition, int childPosition) { in isChildSelectable() argument
DExpandableListViewTest.java407 public int getChildrenCount(int groupPosition) { in getChildrenCount() argument
408 switch (groupPosition) { in getChildrenCount()
416 public Object getGroup(int groupPosition) { in getGroup() argument
417 switch (groupPosition) { in getGroup()
425 public Object getChild(int groupPosition, int childPosition) { in getChild() argument
426 if (groupPosition == 0 && childPosition == 0) in getChild()
432 public long getGroupId(int groupPosition) { in getGroupId() argument
436 public long getChildId(int groupPosition, int childPosition) { in getChildId() argument
444 public View getGroupView(int groupPosition, boolean isExpanded, in getGroupView() argument
449 public View getChildView(int groupPosition, int childPosition, in getChildView() argument
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DExpandableListScenario.java303 public Object getChild(int groupPosition, int childPosition) { in getChild() argument
304 return getValueAtPosition(ExpandableListView.getPackedPositionForChild(groupPosition, in getChild()
308 public long getChildId(int groupPosition, int childPosition) { in getChildId() argument
309 return mGroups.get(groupPosition).children.get(childPosition).id; in getChildId()
312 public int getChildrenCount(int groupPosition) { in getChildrenCount() argument
313 return mGroups.get(groupPosition).children.size(); in getChildrenCount()
316 public View getChildView(int groupPosition, int childPosition, boolean isLastChild, in getChildView() argument
318 return getView(ExpandableListView.getPackedPositionForChild(groupPosition, in getChildView()
322 public Object getGroup(int groupPosition) { in getGroup() argument
323 return getValueAtPosition(ExpandableListView.getPackedPositionForGroup(groupPosition)); in getGroup()
[all …]
/cts/tests/app/src/android/app/cts/
DExpandableListTestActivity.java170 public void onGroupCollapse(int groupPosition) { in onGroupCollapse() argument
172 super.onGroupCollapse(groupPosition); in onGroupCollapse()
176 public void onGroupExpand(int groupPosition) { in onGroupExpand() argument
178 super.onGroupExpand(groupPosition); in onGroupExpand()